Hoops' Map_rotator Script

Post here if you need help setting up your server, etc.
Post Reply
User avatar
INW
Reverse Outside Corner Grinder
Posts: 1950
Joined: Tue Jul 07, 2009 4:10 pm
Location: Charlotte, NC, USA

Hoops' Map_rotator Script

Post by INW »

So i looked at an old topic to find a map_rotation script. In that topic i found hoop's map_rotator script.

Following the directions and saving the document as everytime.cfg in my var folder, i began to add some maps to the cfg.push_back section of the file. I previously added the correct EVERYTIME_PATH; but for some reason the "/" were facing the wrong way on the default text. I changed those to "\" hoping it would not change the document's way of finding the file. I added two maps and their full location in 2 of the cfg.push_back places as it states. I then opened up tron and my server and typed

Code: Select all

$ g++ -Wall cfg_rotator.cpp -o cfg_rotator 
and

Code: Select all

$ ./armagetronad-dedicated | ./cfg_rotator
in both to make sure it gets working and both come up saying the command $ is unknown. Am i not putting the commands in the right place? Also, i wanted to point out the "/" to make sure changing it to "\" would not alter anything.

If someone could point out my error, it would be greatly appreciated.
User avatar
Tannermon11
Average Program
Posts: 86
Joined: Tue Sep 18, 2007 1:11 am

Re: Hoops' Map_rotator Script

Post by Tannermon11 »

the $ is just to state it is in a shell... in other words you don't type it
User avatar
INW
Reverse Outside Corner Grinder
Posts: 1950
Joined: Tue Jul 07, 2009 4:10 pm
Location: Charlotte, NC, USA

Re: Hoops' Map_rotator Script

Post by INW »

stop making me feel so stupid tanner! (:

Thank you. (:

EDIT: Now that i took out the $ it now says for the first code..."Command G++ Unknown"......

Do i have the file locations correct and or the correct codes? Also, when it means "terminal" that is the server command prompt correct?

To clarify any questions, i have the path to my var folder with these--\ instead of these-/....not sure if that does anything. Also, i have named two files in my var folder cfg1.cfg and cfg2.cfg and put those in their corresponding place (cfg.push_back) with their settings and locations.

The problem i have to even test if my settings r correct is the compiling part of hoop's steps. The commands are found unknown in my terminal. I use windows vista sty+ct .3 dedicated server.
User avatar
Z-Man
God & Project Admin
Posts: 11717
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Re: Hoops' Map_rotator Script

Post by Z-Man »

The instructions are for Unix and can't be easily translated to plain Windows instructions. You may have luck and get them to work verbatim if you install and use the cygwin environment.
User avatar
INW
Reverse Outside Corner Grinder
Posts: 1950
Joined: Tue Jul 07, 2009 4:10 pm
Location: Charlotte, NC, USA

Re: Hoops' Map_rotator Script

Post by INW »

Finding myself not understanding the exact concept of the above statement by z-man, looks like i will try and find another one that works more easily for windows. ><
User avatar
compguygene
Adjust Outside Corner Grinder
Posts: 2346
Joined: Thu Aug 21, 2008 12:09 pm
Location: Cleveland, Ohio
Contact:

Re: Hoops' Map_rotator Script

Post by compguygene »

Allow me to elaborate.

The software environment in which you do development on windows for armagetron is VERY different from the development environment for linux. Armagetron is first developed on Linux, and then windows and mac binaries are made.
There is an alternative. If you use a "trunk" or .3 series server, map and settings rotation is built in. However, the current trunk has not been built for a Windows dedicated server at this time.
The reason Z-man mentioned Cygwin is this. Cygwin is a Linux environment for windows. The key word here Z-man mentioned is a WORKING Cygwin environment. I looked into trying that myself, and quickly gave up. Linux really is the way to go to host Armagetron servers.
Armagetron: It's a video game that people should just play and enjoy :)
https://bit.ly/2KBGYjvCheck out the simple site about TheServerPharm
User avatar
INW
Reverse Outside Corner Grinder
Posts: 1950
Joined: Tue Jul 07, 2009 4:10 pm
Location: Charlotte, NC, USA

Re: Hoops' Map_rotator Script

Post by INW »

Well maybe some day a genius will arise from the sunset of Windows and make it easy for us. (:

Until then, im out of luck-cant change a family windows computer into a linux.

Maybe when i get my own laptop, i will make it lunux for myself. (:
Post Reply