Hurrican icon indicating copy to clipboard operation
Hurrican copied to clipboard

Added start level argument

Open Mia75owo opened this issue 1 year ago • 4 comments

This adds the --startlevel argument. When this gets passed to the game, it skips loading the cractro, main menu and the intro to directly start into the level. This is just a little handy feature for debugging purposes and for using external tools (like being able to directly start a level from a map editor).

Mia75owo avatar Jan 18 '24 16:01 Mia75owo

Can't get it to work, what is the correct usage? Also the help text is wrong.

drfiemost avatar Mar 03 '24 10:03 drfiemost

Sorry, it was a stressful week when I wrote this. There were multiple mistakes in this terrible PR which I think are fixed now. The correct usage for the flag is to pass a path to a map file. For example: (executed in Hurrican/Hurrican/build)

./hurrican -RL ../data/levels/mpde.map
./hurrican --startlevel ../data/levels/temple.map

Mia75owo avatar Mar 03 '24 19:03 Mia75owo

Thanks, will have a look, as time permits.

drfiemost avatar Mar 06 '24 20:03 drfiemost

Ok, now it works, but it's similar to the --level option, except that it takes you directly to the game. Could this be changed into something like a skipmenu option to be used in combination with the former?

drfiemost avatar Mar 30 '24 17:03 drfiemost