Settings and Map Rotator Script

Something else for Armagetron? Goody!
AI Teâm
Core Dumper
Posts: 106
Joined: Sun Nov 02, 2008 8:38 pm
Location: Munich

Settings and Map Rotator Script

Post by AI Teâm »

hi all
im going to make a Multi Mode server for my clan.
the settings hould change every round , but for that i need a script.
maybe some o you know or has a goos script to do this.
the server is running sty+ct.
bb
AI


P.S.sry for my terrible english xD
User avatar
ed
Match Winner
Posts: 613
Joined: Mon Feb 13, 2006 12:34 pm
Location: UK

Post by ed »

Here's the script that runs flower sumo. Although that does all kinds of things in very strange ways. But it is self contained, ie, no database behind it. If you have used php you should be able to strip out what you need.
There is some info here about possible ways to run a server using a script like this.
AI Teâm
Core Dumper
Posts: 106
Joined: Sun Nov 02, 2008 8:38 pm
Location: Munich

Post by AI Teâm »

i know this methode , but i suck at PHP.
but i someone who can write PHP perfect ;)
User avatar
compguygene
Adjust Outside Corner Grinder
Posts: 2346
Joined: Thu Aug 21, 2008 12:09 pm
Location: Cleveland, Ohio
Contact:

Post by compguygene »

Thanks for sharing the script ed...I have filed it away for future use.
I am learning PHP. P4 has sent me some examples from the CT servers, and I have been taking tutorials online.
PHP + sty+ct FTW!
User avatar
kyle
Reverse Outside Corner Grinder
Posts: 1975
Joined: Thu Jun 08, 2006 3:33 pm
Location: Indiana, USA, Earth, Milky Way Galaxy, Universe, Multiverse
Contact:

Post by kyle »

I've started using Python for our development wildfort server :)

it works pretty well just sometimes it has a mishap which i'm trying to figure out
AI Teâm
Core Dumper
Posts: 106
Joined: Sun Nov 02, 2008 8:38 pm
Location: Munich

Post by AI Teâm »

have you make a script or something you want to share with it??
User avatar
hoop
Round Winner
Posts: 201
Joined: Tue Jul 24, 2007 7:45 am
Contact:

Post by hoop »

d'oh!
when you asked me for the script I didn't remember this thing I published:
http://hoop.altervista.org/cfg_rotator.html
the instructions given should let you run it easily, though there are better ways to connect the script with the server
I'll help if you have problems with it
AI Teâm
Core Dumper
Posts: 106
Joined: Sun Nov 02, 2008 8:38 pm
Location: Munich

Post by AI Teâm »

ty thats exactly what i where looking for , ill try it as ar as possible!!
AI Teâm
Core Dumper
Posts: 106
Joined: Sun Nov 02, 2008 8:38 pm
Location: Munich

Post by AI Teâm »

wel i tried it and i have a problem :

picnik@portanigra:~$ g++ -Wall cfg_rotator.cpp -o cfg_rotator
cfg_rotator.cpp: In function âint main()â:
cfg_rotator.cpp:48: error: âstrstrâ was not declared in this scope
cfg_rotator.cpp: In function âvoid everytime(std::string&)â:
cfg_rotator.cpp:70: error: âexitâ was not declared in this scope

whats is the problem??
User avatar
Z-Man
God & Project Admin
Posts: 11717
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Post by Z-Man »

Missing includes. Add

Code: Select all

#include <string.h>
#include <stdlib.h>
somewhere near the top of the file.
AI Teâm
Core Dumper
Posts: 106
Joined: Sun Nov 02, 2008 8:38 pm
Location: Munich

Post by AI Teâm »

ty ;)

wiedereinmal :lol: :lol:
AI Teâm
Core Dumper
Posts: 106
Joined: Sun Nov 02, 2008 8:38 pm
Location: Munich

Post by AI Teâm »

ive got a problem again:

picnik@portanigra:~$ ./armagetronad-dedicated | ./cfg_rotator
-bash: ./armagetronad-dedicated: Datei oder Verzeichnis nicht gefunden

??
User avatar
Z-Man
God & Project Admin
Posts: 11717
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Post by Z-Man »

That command line assumes you're in the server's binary directory. Just remove the first ./ and it should work (if you have set the correct path to everytime.cfg, of course.)
AI Teâm
Core Dumper
Posts: 106
Joined: Sun Nov 02, 2008 8:38 pm
Location: Munich

Post by AI Teâm »

ok thank you :P
AI Teâm
Core Dumper
Posts: 106
Joined: Sun Nov 02, 2008 8:38 pm
Location: Munich

Post by AI Teâm »

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?
Post Reply