php, and map cycling?

Everything todo with programming goes HERE.
Post Reply
User avatar
Blaze
Posts: 9
Joined: Tue Dec 30, 2008 7:59 pm

php, and map cycling?

Post by Blaze »

I want to open a racing server, and I asked Animuson how to cycle maps and he said you need to configure your "php" but I have NO clue what php is or how to cycle maps...

Please help! :o
User avatar
Z-Man
God & Project Admin
Posts: 11624
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Post by Z-Man »

php is a programming language, especially popular for generating dynamic websites such as this. This map rotator also uses it:
http://wiki.armagetronad.net/index.php? ... p_Rotation
so you need it installed on your system.

Alternatively to the external rotator, you can use a server from the 0.3 development series, they have map and config rotation built in.
User avatar
Blaze
Posts: 9
Joined: Tue Dec 30, 2008 7:59 pm

Hi

Post by Blaze »

So, Ive downloaded Lucifers map cycling program, but where exactly do I put it?
User avatar
Z-Man
God & Project Admin
Posts: 11624
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Post by Z-Man »

Looks to me the location doesn't matter. Have you tried reading the included README?

Oh, of course, Lucifer's script is in Python, not PHP. The CT scripts are PHP, I think.
User avatar
Blaze
Posts: 9
Joined: Tue Dec 30, 2008 7:59 pm

Post by Blaze »

All I now really want to know is how to cycle maps, I have no clue if that has ANYTHING to do with php or not...

Actually...I just reread Lucifers settings and it says "Not known to work in Windows" :(
User avatar
wrtlprnft
Reverse Outside Corner Grinder
Posts: 1679
Joined: Wed Jan 04, 2006 4:42 am
Location: 0x08048000
Contact:

Post by wrtlprnft »

That's not the same as “known not to work under windows”. It very likely will, it's just that noone tested it.
There's no place like ::1
User avatar
Blaze
Posts: 9
Joined: Tue Dec 30, 2008 7:59 pm

Post by Blaze »

So...theres a chance that, it could work...or...is there another one that someone knows of that would work 4 windows...?
User avatar
Lucifer
Project Developer
Posts: 8683
Joined: Sun Aug 15, 2004 3:32 pm
Location: Republic of Texas
Contact:

Post by Lucifer »

I hven't looked at my map rotator in some time, so I don't remember if I did anything linux-specific in it or not. I may have. I'm willing to help you get it working, but you'll have to post error messages and tracebacks. :)

And wrtlprnft is right, "not known to work in windows" doesn't mean "doesn't work in windows". Just that nobody has tried it. I usually use what's considered best practices in the python world for cross-platform programming. So I've actually written python programs that I couldn't test in windows or mac os x that, when tested by somebody else, worked without modification. So give it a shot, eh? ;)
Image

Be the devil's own, Lucifer's my name.
- Iron Maiden
User avatar
Blaze
Posts: 9
Joined: Tue Dec 30, 2008 7:59 pm

Post by Blaze »

I opened scripts and added the map_file settings, do I now put it in the 'resource' folder in my Armagetron configuration?
User avatar
kyle
Reverse Outside Corner Grinder
Posts: 1897
Joined: Thu Jun 08, 2006 3:33 pm
Location: Indiana, USA, Earth, Milky Way Galaxy, Universe, Multiverse
Contact:

Post by kyle »

Z-Man wrote:The CT scripts are PHP, I think.
You think right for the most part. I'm trying some python stuff now though
User avatar
smoothice
On Lightcycle Grid
Posts: 45
Joined: Sun Nov 09, 2008 7:54 pm

Re: php, and map cycling?

Post by smoothice »

Blaze wrote:I want to open a racing server, and I asked Animuson how to cycle maps and he said you need to configure your "php" but I have NO clue what php is or how to cycle maps...

Please help! :o
If you get server version 0.3.1 or compile the latest trunk you can use the built in map/config rotation engine.
Image
User avatar
wrtlprnft
Reverse Outside Corner Grinder
Posts: 1679
Joined: Wed Jan 04, 2006 4:42 am
Location: 0x08048000
Contact:

Post by wrtlprnft »

kyle wrote:
Z-Man wrote:The CT scripts are PHP, I think.
You think right for the most part. I'm trying some python stuff now though
IIRC there was some perl stuff in the mean time, too. Too bad “ruby” doesn't start with a 'p', otherwise it would make a perfect addition.
There's no place like ::1
Post Reply