raiguard / MouseOverConstruction

MIT License
2 stars 1 forks source link

Crash mousing over an item-with-tags that is marked for an upgrade planner #3

Closed oorzkws closed 1 year ago

oorzkws commented 2 years ago

Describe the Bug

In certain situations, mouse-over construction will crash the game with the following error:

15151.096 Error MainLoop.cpp:1284: Exception at tick 42560154: The mod Mouse-over Construction (1.2.0) caused a non-recoverable error. Please report this error to the mod author.

Error while running event MouseOverConstruction::on_selected_entity_changed (ID 54) MouseOverConstruction/control.lua:27: attempt to compare number with nil stack traceback: MouseOverConstruction/control.lua:27: in function 'get_first_item' MouseOverConstruction/control.lua:39: in function 'upgrade_entity' MouseOverConstruction/control.lua:153: in function 'check_selected' MouseOverConstruction/control.lua:237: in function <MouseOverConstruction/control.lua:224>

To Reproduce

Steps to reproduce the behavior:

  1. Have a building placed (in this case, gun-turret)
  2. Mark it for upgrade to an item that you have in your inventory that is an item-with-tags using a filtered upgrade planner
  3. Mouse over the marked entity Be certain to reproduce the issue on the same save file that you upload.

Save file & Username

Save uses indev mods. Should be reproducible with just HeroTurrets, make sure the kills tracking setting is set to "exact".

Log file

I cannot attach: image

oorzkws commented 2 years ago

I came back to it today to try and get you a bug report save but I'm having no luck whatsoever. I'm not sure what other variables factor in here.

raiguard commented 2 years ago

If you can find a consistent way to reproduce it, please reach out on the mailing list.