Greetings, I have a question for you guys, Ive done a lot of searching even encountering a similar problem that another user had which Blackfox managed to help fix but the fix sadly isnt working for me.
My question then is thus, are any other 1.20 or AirMod users getting an array out of bounds error in built games when triggering the quicksavegame command in an fpi script?
Error 118, array out of bounds line 46648, the errors longer than that but the code and line are the important parts.
After some extensive testing (building the exe some 17 times in various iterations) I managed to narrow it down to a script, eventually a line and finally to that specific command.
I removed the command from all Fpi's in the exe and the game works fine, better than i expected even!
But without a way to reload the level from scratch upon a failure condition I need to get the quick save command working!
I have a fail cond in my game where if a hostage is shot, fail. But the player simply respawns at the spawn point but level remains the same as the point at which the player died, it needs to reload so I ask if theres a way to do this or if anyone knows how to get past this array subscript error.
One command is killing my game.
**Edit**
Little testing seems to suggests its worse than I first thought, out of curiosity I loaded up the last working test exe and instead of starting a new game, I hit load game, boom same error, 118 line 46648, seems like the entire save/load function in the exe isnt working correctly.... Ideas?
I know on my previous project it worked fine, the built Alpha saved, loaded no problems.
Possibly related now that I think of it, on the build game menu, I cant seem to edit any of the files any more without getting an error, again an array/subscript error, 118 line 58694 this time, Im beginning to think there may be something that has recently gone seriously wrong inside my fpsc somewhere.
Any help would be greatly appreciated, I really made some unexpectedly big progress to the point where Ive got something that worked perfectly in the test game environment, but seems to be catastrophically failing at the last hurdle!
**EDIT EDIT**
Just to test if my FPSC was at fault i renamed the existing fpsc folder to something else, installed fpsc all over again, and just built a quick test exe in that folder, built the game, and no error.
So In asking for help and testing it in the mean time I may have found a solution, but that doesnt help explain why it happened in the first place, Im not to well versted with array/subscript tables or whatever, but if someone knows what those lines in the error are for and can give me some sort of explanation for whats happening and how I may be able to rebuild the array if a fail like this happens again?
smoke em if you got em