[1.0.0] Crash when attempting to move after tweaking spider_engine.legs table
Posted: Sat Aug 15, 2020 8:56 pm
Probably related to this: viewtopic.php?f=7&t=88035
I'm in the process of adding code to allow players to change the number of visible legs by changing the number of legs that are part of the spider_engine definition, rather than just hiding individual legs.
However, loading my design space and then attempting to move crashes the game. The configuration in question should be the default spider_engine setup, but reconstructed.
I've attached the mod, save, and the log.
Reproduction steps:
- Sync mod settings with save
- Load the save
- Attempt to move
- You should hard crash immediately
Edit: This is due to blocking_legs = {0}, which is my mistake for not finishing my table before I started testing, lel. Confirmed by finishing the table...
Edit 2: On further testing, when blocking_legs is set to values that aren't within the range of the legs table, crashing occurs. There's also crashing related to changing the number of legs and then loading a save with spidertrons already in the world.
I'm in the process of adding code to allow players to change the number of visible legs by changing the number of legs that are part of the spider_engine definition, rather than just hiding individual legs.
However, loading my design space and then attempting to move crashes the game. The configuration in question should be the default spider_engine setup, but reconstructed.
I've attached the mod, save, and the log.
Reproduction steps:
- Sync mod settings with save
- Load the save
- Attempt to move
- You should hard crash immediately
Edit: This is due to blocking_legs = {0}, which is my mistake for not finishing my table before I started testing, lel. Confirmed by finishing the table...
Edit 2: On further testing, when blocking_legs is set to values that aren't within the range of the legs table, crashing occurs. There's also crashing related to changing the number of legs and then loading a save with spidertrons already in the world.