mersox
Active member
Hi all, I'm trying to use:
But it's not working. I want to make it so when players select "load game" in the menu, they're taken straight to a specific saved state. My game only can save in one of its level "sets" so there's no need for the "load game" menu screen.
This is my updated.c:
Notes:
- The script is pretty much ignored, nothing happens nor does the game crashes
- The "in_load_game" portion of the script works when using other commands like shutdown()
- The "set" I want to load is the second one in my levels.txt, which is why I'm using 1 and not 0 in the code
playgame(set_index, usesave)
- set_index like getsaveinfo and usesave == 1 if you want continue your game from a loaded file, else use 2.
- Example: playgame(0,1) to continue the ARCADE mode or playgame(0,2) to start an ARCADE mode.
But it's not working. I want to make it so when players select "load game" in the menu, they're taken straight to a specific saved state. My game only can save in one of its level "sets" so there's no need for the "load game" menu screen.
This is my updated.c:
Code:
void main(){
if(openborvariant("in_load_game"))
{
loadgamefile();
playgame(1, 1);
}
}
Notes:
- The script is pretty much ignored, nothing happens nor does the game crashes
- The "in_load_game" portion of the script works when using other commands like shutdown()
- The "set" I want to load is the second one in my levels.txt, which is why I'm using 1 and not 0 in the code


