Programming the Strike Dash, crashes on startup saying "action not set before reading it" #29
-
Hey there! So I'm currently working on implementing the strike dash ability for my private fork of Orbinaut. I think it's basically finished, but I'm running into a really strange error that's basically forbidding me from testing it. The game directly crashes on startup with the following text:
If you need to read over my code, I will provide screenshots of it below, including the global variables and macros I defined. I don't think I did anything wrong, since I wrote it similarly to how the rest of the code would do something like this. For the record, line 69 is the very first line of actual code, the one that checks if you're not strike dashing and if your peel out type is the Chaos or Triple Trouble. As for why those macros are there, that's not important. Just know I have a reason for it. I inserted this code underneath the default Peel Out code, so that might be causing issues? I could try moving it to its own file. If you need my YYZ file to look over everything, I will provide that as well. If this manages to find you, I would appreciate some advice on how I could fix this. Thank you in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Beta Was this translation helpful? Give feedback.
The reason this happens is the extra closing bracket at line 66. It is closing the function itself
But the script overall is a huge mess the Strike Dash won't probably work correctly at all even if you delete the bracket due to
return false
on the next linereturn
stops the code executing. Ifreturn
is reached, everything below it basically does not existI'm breaking down the CD Peelout here but you get the idea. Make a separate script. Pay close attention to the logic of your code