So... I just started making a mod and ran into this issue.
I have an entity that the player can place but when he does, I replace this entity with another one (apart from some harmless other actions). That means I have to destroy the original entity at some point in the on_built_entity event handler.
Here comes the issue - sometimes (pretty randomly, but mostly right after I load the game up) the game throws an error at me saying: Access violation - no RTTI data! When I remove the entity.destroy() call it doesn't happen anymore.
After some digging around the internet I came to a conclusion, that this is an error coming from the C++ code that I can't really solve from the lua API and I'd probably have to hack around it somehow...
Can anyone help me figure out what this actually is? Or at least tell me if my conclusion is correct?
Any answers are greatly appreciated.
TRK
EDIT: After some more testing I noticed that the error is thrown either before the entire event handler runs or after it just completed. Just thought that might be helpful. Also it sometimes crashes to desktop for some reason.
Access violation - no RTTI data!
- theRustyKnife
- Filter Inserter
- Posts: 260
- Joined: Thu Feb 26, 2015 9:26 pm
- Contact:
Access violation - no RTTI data!
Last edited by theRustyKnife on Wed Feb 24, 2016 8:51 am, edited 2 times in total.
Re: Access violation - no RTTI data!
Make a small mod, that does the miniumum needed to reproduce the bug. Then post it in bug reports.
- theRustyKnife
- Filter Inserter
- Posts: 260
- Joined: Thu Feb 26, 2015 9:26 pm
- Contact:
Re: Access violation - no RTTI data!
Ok, made a bug report.