Urban Terror Forums: Radomizing mapcycle - Urban Terror Forums

Jump to content

 Login | Register 
Advertisement
  • (2 Pages)
  • +
  • 1
  • 2
  • You cannot start a new topic
  • This topic is locked

Radomizing mapcycle Rate Topic: -----

#1 User is offline   paelleon (old) Icon

  • Joined: 21-November 07
  • Posts: 178

Posted 04 September 2008 - 01:33 PM

I've looked and looked,and it appears as if you cannot randomise the mapcycle.

So I was thinking. What if I got a program to randomise the list of maps, and replace mapcycle.txt in the background. Would that work? As I understand it, Urban Terror goes into the mapcycle, and finds the map just played. It then loads the next map, or the first map if the last played map was at the end of the document. So if I replaced mapcycle.txt mid game, would it load the new mapcycle at the end of the round?

#2 User is offline   L3mMinG (old) Icon

  • Joined: 20-February 04
  • Posts: 862

Posted 04 September 2008 - 01:37 PM

Try it and let us know

#3 User is offline   paelleon (old) Icon

  • Joined: 21-November 07
  • Posts: 178

Posted 04 September 2008 - 02:05 PM

:-D

I'd love to except I'm not sure if i have the skillz to do the whole randomise and write to txt thing ... I could try in excel, but that's where my knowledge both begins and ends.

#4 User is offline   Woekele Icon

  •   former FS member   
    Public Relations
  • Account: woekele
  • Country:
  • Joined: 26-January 10
  • Posts: 11,575

Posted 04 September 2008 - 02:55 PM

Yes, I think it would work.

#5 User is offline   Courgette Icon

  •   community dev   
    B3 bot developer
  • Account: courgette
  • Main tag: [B3]
  • Country:
  • Joined: 09-June 09
  • Posts: 204

Posted 04 September 2008 - 04:45 PM

so the server is not caching the mapcycle file content (as it does for the banlist file) ?

bullet_loaderAdvertisement

#6 User is offline   Woekele Icon

  •   former FS member   
    Public Relations
  • Account: woekele
  • Country:
  • Joined: 26-January 10
  • Posts: 11,575

Posted 04 September 2008 - 05:14 PM

No, I think it doesn't.

Though you'd have to try to make sure.

#7 User is offline   Loanna (old) Icon

  • Joined: 14-February 04
  • Posts: 67

Posted 05 September 2008 - 02:33 AM

I can confirm it works.

If you change g_mapcycle during a game, it will be effective instantly.


For example you have mapcycle1.txt with :

turnpike, abbey, uptown and casa.

And mapcycle2.txt with :

elgin, abbey, algiers and ramelle.

You're on abbey with the mapcycle1, if you change it to mapcycle2 during teh round, at teh end it will load algiers.

#8 User is offline   will35010 (old) Icon

  • Joined: 04-September 08
  • Posts: 13

Posted 05 September 2008 - 05:35 AM

You could just set a cron job for this on linux.

#9 User is offline   paelleon (old) Icon

  • Joined: 21-November 07
  • Posts: 178

Posted 05 September 2008 - 09:25 AM

Well, my minor skillz in excel allowed me to write a vba macro to randomise and rewrite the mapcycle.txt every 75 seconds. and it works. Now if only i could program in a more memory usage friendly way ...

#10 User is offline   Rambetter Icon

  •   community dev   
  • Account: rambetter
  • Joined: 28-February 10
  • Posts: 1,140

Posted 07 September 2008 - 12:27 AM

Do you use Linux?  I posted my randomizer a while back but I could do it again I suppose.

  • (2 Pages)
  • +
  • 1
  • 2
  • You cannot start a new topic
  • This topic is locked

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users

Advertisement


Copyright © 1999-2024 Frozensand Games Limited  |  All rights reserved  |  Urban Terror™ and FrozenSand™ are trademarks of Frozensand Games Limited

Frozensand Games is a Limited company registered in England and Wales. Company Reg No: 10343942