Jump to content

Toggle action group to toggle engines unity crash

Recommended Posts

Developing a mod that allows external toggling of action groups etc.

Everything works nicely until we get a unity crash.  Upon inspection of the log file, it seems the error is caused by sounds for parts that create sound on toggling.

This line is repeated, in different variations, throughout the logfile. 

Function class SoundHandleAPI *__cdecl SoundHandle::operator ->(void) const may only be called from main thread!

Here is the log file.



We also had a bug where unity would crash if you activated a part that needed electric charge, while your ship has no electric charge. We were able to solve this on the arduino side however.

Any help/advice is greately appreciated. Is there some kind of check we need to make before toggling a group within the mod? or somekind of method to override?


Link to post
Share on other sites
This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...