Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

player_equipment & armor_inventory_changed events will crash if Player has no Character #66

Open
JTacoCSharpie opened this issue Sep 4, 2023 · 0 comments

Comments

@JTacoCSharpie
Copy link

Factorio Stable v1.1.87
Thaumaturgic-Machinations v0.1.26

Bug(s):

  • Control.lua will crash on line 71 when the player has no associated character & attempts to insert or remove equipment from a grid
  • Control.lua crashes on line 134 when the player has no character & changes their armor (possible in scenario editor)

Reproducing:

player_equipment events

  • Create a default save on any mode without a character (editor, sandbox, blueprint designer lab mod)
  • Place a Spidertron (vanilla) or any entity with an equipment grid (i.e modded vehicles)
  • Attempt to place any equippable item in it's equipment grid

player_armor_inventory_changed

  • Open a new scenerio in scenario editor
  • Place armor in armor slot (bottom right slot)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant