Page 1 of 1

[0.11.1][kovarex] Using mods in sandbox results in ctd

Posted: Thu Nov 06, 2014 10:05 pm
by drs9999
I received a bug-report that my mod won't work in sandbox mode, I found that the game crashes if the onBuiltEntity-event is raised.
So I did some more tests and ended up with zero code for the event that I use => but it still crashes.

EDIT: I believe it crashes because the event-data expects a character and not a controller, obviously in sandbox there is not character

Re: [0.11.1]Using mods in sandbox results in ctd

Posted: Fri Nov 07, 2014 10:10 am
by pyrolytic_tungsten
Sounds like more than 1 event is bugged in the sandbox. See this post I made.

Re: [0.11.1]Using mods in sandbox results in ctd

Posted: Fri Nov 07, 2014 11:03 am
by drs9999
Ah yes that is true.

If I didnt't miss anything following events are affected:
- OnPlayerPickedUpItem
- OnPlayerPreMinedItem
- OnPlayerMinedItem
- OnPlayerBuiltEntity
- OnPlayerRotatedEntity

Re: [0.11.1][kovarex] Using mods in sandbox results in ctd

Posted: Fri Nov 07, 2014 3:59 pm
by kovarex
Thanks for notice.

The fix is actually quite simple, but I decided to include the event testing into our automated integration tests, so it took longer, but let's hope it will help to prevent such problems in the future.