Settings and Map Rotator Script
I don't believe you have folders called "cfg.cfg" or "sumo.cfg", do you?AI Teâm wrote:cfg.push_back ("cfg.cfg/round_1.cfg");
cfg.push_back ("sumo.cfg/round_2.cfg");
cfg.push_back ("fort.cfg/round_3.cfg");
cfg.push_back ("teamsumo.cfg/round_4.cfg");
cfg.push_back (df.cfg/round_5.cfg);
cfg.push_back ("hr.cfg/round_6.cfg");
cfg.push_back ("nanoctf.cfg/round_7.cfg");
should it look like that?
looking at your code I guess you misunderstood what I wrote in the instructions
I'll try to show you an example:
Code: Select all
your directory tree might look like:
armagetron-server
cfg_rotator
|- bin
armagetronad-dedicated
|- var
|- settings
sumo.cfg
fort.cfg
teamsumo.cfg
Code: Select all
cfg.push_back ("settings/sumo.cfg");
cfg.push_back ("settings/fort.cfg");
cfg.push_back ("settings/teamsumo.cfg");
/me is the biggest PC noob ever
i got it work!
the problem was :
i start my servers by doing screen sh server1
screen sh server2
...
and so i just sh server5 instead of ./armgetron-dedicated
sh server | ./cfg_rotator looks it now.
but another questiion
how can i the csript two times on the same machine with different settings??
i got it work!
the problem was :
i start my servers by doing screen sh server1
screen sh server2
...
and so i just sh server5 instead of ./armgetron-dedicated
sh server | ./cfg_rotator looks it now.
but another questiion
how can i the csript two times on the same machine with different settings??