Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FRED Asserts with scripting and async calls #6521

Open
MjnMixael opened this issue Jan 13, 2025 · 0 comments
Open

FRED Asserts with scripting and async calls #6521

MjnMixael opened this issue Jan 13, 2025 · 0 comments

Comments

@MjnMixael
Copy link
Contributor

I was trying to use async to essentially force a script to init after a downstream script where the file hierarchy kinda made naming for priority tricky and ran into this. Basically if you use on async call with the onFrameExecutor, it expects a game state which of course is invalid in FRED. It triggers the assert in gamesequence.cpp on line 437 because FRED is not in a game state.

I don't know a whole lot about the async code so I didn't try anything really but I'm wondering if we could either create a GS_STATE_FRED = -1 enumeration for the game states or perhaps if Fred_running at line 437, return some kind of preset value since FRED can't really have other states. I'm not sure if there's other places the onFrameExecutor might break down in FRED, though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant