PkmX/hpbar

commandline args

Opened this issue · 2 comments

Hi,
I really love this mod. I want to pass the following arguments on startup "hpbar_threshold 1000". Is there a way to achieve this (so it gets done automatically)? I tried by adding "+hpbar_threshold 1000" in the command line, but it still has the default value (0) when I enter my servers.

thank you for helping me out.......

for completeness: I run my servers on a raspberry pi and I administer them via the command line by using some basic script. I give you an example:

#!/bin/bash trap "" 2 /home/pi/doom/zandronum-server \ -iwad /home/pi/doom/iwads/doom2.wad \ -file /home/pi/doom/pwads/dintop_v7b.wad \ -file /home/pi/doom/pwads/complex-doom.v26a2.pk3 \ -file /home/pi/doom/pwads/complex-doom-justammo.v4.wad \ -file /home/pi/doom/pwads/cd-nobfgatstart-v1.wad \ -file /home/pi/doom/pwads/newtextcolours_260.pk3 \ -file /home/pi/doom/pwads/hpbar-v15.pk3 \ -file /home/pi/doom/pwads/muhammad-v4.wad \ -port 10666 \ +sv_maxlives 0 \ -host \ +alwaysapplydmflags 1 \ -skill 4 \ +survival 1 \ +sv_hostemail "" \ +map MAP01 \ +sv_maprotation 0 \ +sv_randommaprotation 0 \ +sv_motd "http://grrfield.duckdns.org" \ +sv_hostname "[Flemish Doom Servers] :: http://grrfield.duckdns.org >> Complex Descent into Pandemo$ +sv_website "" \ +sv_password "" \ +sv_forcepassword 0 \ +sv_joinpassword "" \ +sv_forcejoinpassword 0 \ +sv_rconpassword somepasswordiuseformyservers \ +sv_broadcast true \ +sv_masterip master.zandronum.com:15300\ +sv_updatemaster true \ +sv_maxclients 10 \ +sv_maxplayers 10 \ +dmflags 3227652 \ +dmflags2 8388608 \ +zadmflags 16 \ +compatflags 64 \ +zacompatflags 0 \ +lmsallowedweapons 0 \ +lmsspectatorsettings 0 \ +sv_afk2spec 0 \ +sv_coop_damagefactor 1 \ +sv_defaultdmflags 1 \ +sv_showlauncherqueries false \ +sv_showwarnings false \+sv_maxclients 10 \ +sv_maxplayers 10 \ +dmflags 3227652 \ +dmflags2 8388608 \ +zadmflags 16 \ +compatflags 64 \ +zacompatflags 0 \ +lmsallowedweapons 0 \ +lmsspectatorsettings 0 \ +sv_afk2spec 0 \ +sv_coop_damagefactor 1 \ +sv_defaultdmflags 1 \ +sv_showlauncherqueries false \ +sv_showwarnings false \ +sv_timestamp true \ +exec /home/pi/doom/descentintopandemonium.cfg \ +hpbar_threshold 1000 \ -useip 192.168.0.163\

PkmX commented

This is Zandronum's problem. In 3.0, you will be able to set CVARs defined in CVARINFO by "+set hpbar_threshold 1000" in the command line.

Ok, thank you for the reply. It keeps the headaches away from further trying...

Too bad though, i prefer to start it up with hpbar_threshold 1000; hpbar_announcer false (too annoying) and hpbar_rekt false (don't like this feature that much). I'll have to wait for Zan3.0, unless you make some modified versions that we all can use to have different starting options. Managing servers becomes tedious otherwise.

regards.