Random Map cycle

Random Map cycle

Re: Random Map cycle Posted by Dark Tree on Thu Jul 15th 2004 at 12:24am
Dark Tree
646 posts
Posted 2004-07-15 12:24am
646 posts 264 snarkmarks Registered: Apr 30th 2004 Occupation: DigiPen student Location: USA
Yes, how do I make a completely random map cycle while setting up my own server in Steam? This is for a listen server, btw. Yes, I could put random maps in my mapcycle.txt file, but, I have hundereds of maps...is there a special character or mapname I could put in the file to randomize every level change? Is this a server command? Is it possible?

:confused:
Re: Random Map cycle Posted by fishy on Thu Jul 15th 2004 at 1:12am
fishy
2623 posts
Posted 2004-07-15 1:12am
fishy
member
2623 posts 1476 snarkmarks Registered: Sep 7th 2003 Location: glasgow
not really in the right forum, but........

make a list of all your maps, but put them in a random order. copy the list to your mapcycle.txt :smile:

if you've got hundreds of maps, no-one should notice that they come in the same order all the time. if they do, they should take up proffesional card playing.

or adminmod, amxmod or the like have plugins that pick random maps to vote on.
Re: Random Map cycle Posted by Forceflow on Thu Jul 15th 2004 at 9:27am
Forceflow
2420 posts
Posted 2004-07-15 9:27am
2420 posts 451 snarkmarks Registered: Nov 6th 2003 Occupation: Engineering Student (CS) Location: Belgium
Re: Random Map cycle Posted by Hornpipe2 on Thu Jul 15th 2004 at 10:10pm
Hornpipe2
636 posts
Posted 2004-07-15 10:10pm
636 posts 123 snarkmarks Registered: Sep 7th 2003 Occupation: Programmer Location: Conway, AR, USA
Sounds like a good application for some computer programming. Maybe I'll punch up a quick randomizer that generates a new maplist.txt for the day from the old one. In fact, if you have them set to cycle on some regular time period, it could work out exactly how many maps long to make the list. Then you run it every day at 12 AM (automate it with something) and boom, random maps daily.

Damn, that would be cool. I'll have to try it.
Re: Random Map cycle Posted by Forceflow on Fri Jul 16th 2004 at 9:01am
Forceflow
2420 posts
Posted 2004-07-16 9:01am
2420 posts 451 snarkmarks Registered: Nov 6th 2003 Occupation: Engineering Student (CS) Location: Belgium
I thought like, write 7 mapcycles, and make them change every day, by using batchfiles

The Tuesday Batchfile would look like this:
@echo off

echo It is now TUESDAY

echo Changing Mapcycle from MONDAY to TUESDAY

rename mapcycle.txt monday.txt

rename tuesday.txt mapcycle.txt

echo Mapcycle switch succesful !

end
And then the Wednesday batchfile would look like this:
@echo off

echo It is now WEDNESDAY

echo Changing Mapcycle from TUESDAY to WEDNESDAY

rename mapcycle.txt tuesday.txt

rename wednesday.txt mapcycle.txt

echo Mapcycle switch succesful !

end
Then make a schedule to run the corresponding batch file at 0:00 every day, and it's set.

It's very primitive, but this way, you don't have to code in AMXmod :smile:
Re: Random Map cycle Posted by Dark Tree on Fri Jul 16th 2004 at 9:00pm
Dark Tree
646 posts
Posted 2004-07-16 9:00pm
646 posts 264 snarkmarks Registered: Apr 30th 2004 Occupation: DigiPen student Location: USA
I found a vbs script that takes all of my bsps in my maps folder, puts them in my mapcycle.txt, and randomizess the list...it randomizes the maps every time I run the program....it is like 2 kbn's :smile:
Re: Random Map cycle Posted by scary_jeff on Fri Jul 16th 2004 at 9:39pm
scary_jeff
1614 posts
Posted 2004-07-16 9:39pm
1614 posts 191 snarkmarks Registered: Aug 22nd 2001
Edit your post to be an answer, add a link to the program you found, then mark your answer as correct.
Re: Random Map cycle Posted by Forceflow on Sat Jul 17th 2004 at 11:31pm
Forceflow
2420 posts
Posted 2004-07-17 11:31pm
2420 posts 451 snarkmarks Registered: Nov 6th 2003 Occupation: Engineering Student (CS) Location: Belgium
I'd like to know that program too ... is the source included ?
Re: Random Map cycle Posted by wil5on on Sun Jul 18th 2004 at 12:20pm
wil5on
1733 posts
Posted 2004-07-18 12:20pm
wil5on
member
1733 posts 570 snarkmarks Registered: Dec 12th 2003 Occupation: Mapper Location: Adelaide
Its a VBS script... which is VB code in a text file, sorta like a batch file.

Oh what fun I had with VBS scripts "back in the day"...
Re: Random Map cycle Posted by Forceflow on Sun Jul 18th 2004 at 1:19pm
Forceflow
2420 posts
Posted 2004-07-18 1:19pm
2420 posts 451 snarkmarks Registered: Nov 6th 2003 Occupation: Engineering Student (CS) Location: Belgium
oops, didn't read it .. thought it was an executable ... wel paste the link anyway !
Re: Random Map cycle Posted by Hornpipe2 on Mon Jul 19th 2004 at 1:10am
Hornpipe2
636 posts
Posted 2004-07-19 1:10am
636 posts 123 snarkmarks Registered: Sep 7th 2003 Occupation: Programmer Location: Conway, AR, USA
I was working up a C program but I guess you found something.
Re: Random Map cycle Posted by ghost of evilspy on Mon Jul 19th 2004 at 8:16am
ghost of evilspy
65 posts
Posted 2004-07-19 8:16am
65 posts 127 snarkmarks Registered: Jul 11th 2004
You guys know about 'mapcyclefile' cvar on server? Right? Default value for it is "mapcycle.txt"... I wonder what happens if you change it to "mapcycle_monday.txt" ;D
Re: Random Map cycle Posted by ReNo on Tue Jul 20th 2004 at 11:55am
ReNo
5457 posts
Posted 2004-07-20 11:55am
ReNo
member
5457 posts 1991 snarkmarks Registered: Aug 22nd 2001 Occupation: Level Designer Location: Scotland
I think its time an admin marked this as answered, even if he hasn't posted the link to that script.
Re: Random Map cycle Posted by Gwil on Tue Jul 20th 2004 at 1:39pm
Gwil
2864 posts
Posted 2004-07-20 1:39pm
Gwil
super admin
2864 posts 315 snarkmarks Registered: Oct 13th 2001 Occupation: Student Location: Derbyshire, UK
hint hint eh ReNo :wink:

I'm happy to accept AMX Mod as the answer, it runs on hundreds of
servers i've played on and seems to do the job with a wide assortment
of bells and whistles as an extra option :smile:
Re: Random Map cycle Posted by ReNo on Tue Jul 20th 2004 at 1:54pm
ReNo
5457 posts
Posted 2004-07-20 1:54pm
ReNo
member
5457 posts 1991 snarkmarks Registered: Aug 22nd 2001 Occupation: Level Designer Location: Scotland
Not at all Gwil, I'll wait til HL2 is out before I present my case for a staff position :razz: