Settings and Map Rotator Script

Something else for Armagetron? Goody!
User avatar
Z-Man
God & Project Admin
Posts: 11587
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Post by Z-Man »

I think so, but I only skimmed the readme.
AI Teâm
Core Dumper
Posts: 106
Joined: Sun Nov 02, 2008 8:38 pm
Location: Munich

Post by AI Teâm »

i tried , but it doesnt work with that
User avatar
Z-Man
God & Project Admin
Posts: 11587
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Post by Z-Man »

Well, where does it fail then? Compilation? Execution? Does it run, but not change anything on the config?
User avatar
hoop
Round Winner
Posts: 201
Joined: Tue Jul 24, 2007 7:45 am
Contact:

Post by hoop »

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?
I don't believe you have folders called "cfg.cfg" or "sumo.cfg", do you?
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
with a tree like that you should put these lines:

Code: Select all

cfg.push_back ("settings/sumo.cfg");
cfg.push_back ("settings/fort.cfg");
cfg.push_back ("settings/teamsumo.cfg");
AI Teâm
Core Dumper
Posts: 106
Joined: Sun Nov 02, 2008 8:38 pm
Location: Munich

Post by AI Teâm »

ah ok ty =D

sure i dont have folders named cfg.cfg
AI Teâm
Core Dumper
Posts: 106
Joined: Sun Nov 02, 2008 8:38 pm
Location: Munich

Post by AI Teâm »

well i tried all i could do , but it still does not work .
i need to give up...
User avatar
hoop
Round Winner
Posts: 201
Joined: Tue Jul 24, 2007 7:45 am
Contact:

Post by hoop »

:(
you can get lot of help here, just give us some clues
AI Teâm
Core Dumper
Posts: 106
Joined: Sun Nov 02, 2008 8:38 pm
Location: Munich

Post by AI Teâm »

well the problem is that i dont know thw problem.
i up the server , enter it and then there are the normal settings ( cycle_speed 30 cycle_delay 0.1...) and no rotation :( :(
AI Teâm
Core Dumper
Posts: 106
Joined: Sun Nov 02, 2008 8:38 pm
Location: Munich

Post by AI Teâm »

/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 :lol: :lol:
how can i the csript two times on the same machine with different settings??
User avatar
Z-Man
God & Project Admin
Posts: 11587
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Post by Z-Man »

AI Teâm wrote:how can i the csript two times on the same machine with different settings??
With this system? You make a copy of the .cpp file, put in different settings, compile again, and run the other executable.
AI Teâm
Core Dumper
Posts: 106
Joined: Sun Nov 02, 2008 8:38 pm
Location: Munich

Post by AI Teâm »

but if i name the 2th cfg_Rotator2.cpp and im doing:#
g++ -Wall cfg_rotator2.cpp -o cfg_rotator2
it works , but when i want to start the server by doing :
sh server3 | ./cfg_rotator2 it says :
Configiration files not found.Check your installation.
User avatar
Z-Man
God & Project Admin
Posts: 11587
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Post by Z-Man »

Check your server3 script. It's pointing arma to the wrong configuration directory. One that doesn't exist. (Of course, your two instances need different configuration directories, otherwise they can't be treated individually).
Post Reply