-
Notifications
You must be signed in to change notification settings - Fork 22
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
Added start level argument #75
base: master
Are you sure you want to change the base?
Conversation
There was a typo in the message displayed when the command line argument was not recognised.
This is needed for something like this: ``` --load ../data/levels/jungle.map ```
… the game This checks if something was passed into --startlevel and then directly loads it, skipping the cractro, main menu and the intro. I added the check in the InitNewGameLevel function (basically the same as the --load flag)
Can't get it to work, what is the correct usage? |
The help message still contained "--loadlevel", but the flag is called "--startlevel" so I renamed it.
7764a44
to
1fb0e05
Compare
This is because the "-S" flag exists, which is checked before "-SL". So if "-SL" is passed, the "-S" gets triggered. :/
Sorry, it was a stressful week when I wrote this. There were multiple mistakes in this
|
Thanks, will have a look, as time permits. |
Ok, now it works, but it's similar to the |
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).