Page 1 of 1

[1.0.0] Crash when attempting to move after tweaking spider_engine.legs table

Posted: Sat Aug 15, 2020 8:56 pm
by kirazy
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.

Re: [1.0.0] Crash when attempting to move after tweaking spider_engine.legs table

Posted: Sun Aug 16, 2020 12:20 am
by Rseding91
Thanks for the report. This and the other report are both fixed for some future release. I noticed both of these issues yesterday while working on some other spider related things and fixed both of them.