Page 1 of 1

Adding to the .ini file to set defaults?

Posted: Sun Aug 17, 2014 3:35 am
by PlutonianEmpire
Hello there; I've had Zandronum for about a week, and while I like to set the options in the gameplay options menu, it does get cumbersome after a while, and I looked around on the wiki, and noticed that the gameplay options weren't seen in the .ini file that existed for my username and installation.

So my question is, is it possible to add the dm flag variables to the .ini file that aren't already there, and how do I know whether to use true/false or the numerical dmflag/dmflag2 values provided in-game and in the wiki?

RE: Adding to the .ini file to set defaults?

Posted: Sun Aug 17, 2014 4:09 am
by Slim
Depends, if you want dmflags for singleplayer, then you might wanna just do this in an autoexec.cfg in your main Zandronum folder:

Code: Select all


//example,

sv_nojump 0 //enables jumping for singleplayer only, if the server doesn't allow jumping then you won't jump (duh).

//or

sv_infiniteammo 1 //again, doing it to work with singleplayer only here, so don't expect servers to have it on.

RE: Adding to the .ini file to set defaults?

Posted: Sun Aug 17, 2014 4:44 am
by PlutonianEmpire
Hmm. I keep seeing "unknown command errors" on startup.

Edit: I seem to have fixed the start up errors, as I no longer see them, but they don't seem to be having any effect, since yes, I'm intending these for single player.

RE: Adding to the .ini file to set defaults?

Posted: Sun Aug 17, 2014 10:35 pm
by Empyre
You can use Doomseeker (which came bundled with Zandronum) to launch a single-player game. Click the Create Server button (looks like a computer and monitor, right next to the Wadseeker button). Set everything up including the flags. Save the configuration so you can easily launch the same set-up again. Finally, click Play Offline instead of Start Server.
Setting up the game should be straightforward but if you have any questions, ask here. On the Custom Parameters tab, you can choose to add +multiplayer to emulate a multiplayer game, so you will respawn when you die, like in coop. In mine, I also have +sv_coop_damagefactor 1.0 so I can easily change the amount of damage the monsters do to me (the number is a multiplier, so 0.5 is half damage and 2.0 is double damage. Enter any positive number, but remember that 1000 would mean that the monsters would 1000 times normal damage, so even a zombieman would instagib you.), but I usually leave it at the default 1.0, and I also have +sv_fastweapons 0, so I can easily change that setting (0 is normal, 1 is fast weapons, and 2 is even faster weapons), and I usually leave it at 0.
Using Doomseeker makes it easy to load more than one wad (or pk3), too. This is handy for loading maps in 1 (or more) wad and custom monsters or weapons or even classes in other wads, just like servers often do.

RE: Adding to the .ini file to set defaults?

Posted: Mon Aug 18, 2014 12:09 am
by PlutonianEmpire
When saving the settings from doomseeker, is it safe to overwrite the "zandronum-<user>.ini" file, or would it be better to save it as it's own separate .ini?

Edit: NVM, but I think I managed to get a basic setup working in my preference, so many thanks for the help!

RE: Adding to the .ini file to set defaults?

Posted: Mon Aug 18, 2014 2:05 am
by PlutonianEmpire
Okay, I do have some new questiosn; how do I enforce the map lists for the offline play mode? I keep starting at E1M1, instead of say, E3M6, and E2M4 would be next in the map list. Do I add the first map in the list into the Map field under the General tab?

Secondly, when starting a new game via the ingame menu, how do I force the game to retain the settings I set in the Create server window in Doomseeker?

RE: Adding to the .ini file to set defaults?

Posted: Mon Aug 18, 2014 6:50 am
by Empyre
DO NOT OVERWRITE YOUR ZANDRONUM-<USER>.INI FILE. For best results (but optional), create a new folder inside the Zandronum folder just for your Doomseeker configs.

You can't enforce the maps list in single player. You can only set the first map, in the general tab. The game will follow the episode from there. You can use the map command in the console (losing all your inventory) or changemap command (keeping your inventory) to change to any map you want.

To start over with the same settings, use the map command to go to the first map (map e2m1 or map map01, for example).

Another idea would be to create your own server. Broadcast to LAN but not to Master. Connect to 127.0.0.1:10666, which will be your own computer. That will allow you to follow your custom map list, but not allow you to use cheats, unless you put +sv_cheats 1 in the Custom Parameters tab. You would also have to switch to the server console to change maps (or use callvote changemap or callvote map).

RE: Adding to the .ini file to set defaults?

Posted: Thu Aug 21, 2014 4:16 am
by PlutonianEmpire
Aha, that makes a lot more sense now. Thanks! :)