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
[0.11.1][kovarex] Using mods in sandbox results in ctd
- pyrolytic_tungsten
- Fast Inserter
- Posts: 115
- Joined: Fri Aug 01, 2014 4:29 am
- Contact:
Re: [0.11.1]Using mods in sandbox results in ctd
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
Ah yes that is true.
If I didnt't miss anything following events are affected:
- OnPlayerPickedUpItem
- OnPlayerPreMinedItem
- OnPlayerMinedItem
- OnPlayerBuiltEntity
- OnPlayerRotatedEntity
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
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.
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.