Game Development Community

Custom Servers

by LC50 · in ThinkTanks · 08/25/2003 (8:21 am) · 13 replies

Does anyone know how the Shockwave servers cycle through the maps of Lush/Spooky? I'd like to set up a server that changes maps from game to game instead of constantly being set on Hypothalamus Hills or whatever. Totally random maps would also be cool. Any ideas?

I would bet that the change can be made to the $Pref::Server::missionIndex value....

LC50

#1
08/25/2003 (10:20 pm)
Hey LC did you do that with the OSX version? If so so could you drop me a line on with the how-to's. Thx!











Az
#2
08/26/2003 (5:56 am)
No, but it's not hard to do. For windows, just edit the "prefs.cs" file with notepad or whatever.... it is located in ....\ThinkTanks\game\server folder. Make a backup 1st! Changing the values is pretty intuitive, but if you need any help, just send me an email. One important thing... to get the prefs file back to normal, not only do you have to replace your hacked file with the original, you must make some superficial change to it with notepad so that the file date will be more recent (e.g., change the game title). Otherwise, the prefs file will be a strange mix of the hacked and original prefs file.

I still want to know how to set the maps to "random"...

I know that hacking the prefs file can be done with OSX.... ask FP, Nathan, etc. They know much more about hacking TT anyway... last night, 4 inches of powder fell in Nathan's Frantic world, although someone's dog got loose and made a little yellow snow here and there.

The last Mac I worked with was over 10 years ago... it was the one with the little 6-inch B&W screen. And I remember learning a little programming on an Apple IIe many years ago....

Cheers,
LC50
#3
08/26/2003 (7:58 am)
Ok thx for the info.

I think in a future release its a planned feature:).












Az
#4
08/26/2003 (8:47 am)
From the Read Me:

Question: Can I host a dedicated server for ThinkTanks?

Answer: Yes. On Windows, if you chose to install a shortcut in the Start Menu, then you will find dedicated server shortcuts there too. On Linux, there is a directory of dedicated server scripts available. To start a server from the command line on Windows and Linux type:

ThinkTanks -dedicated -mission -game

where,

missionName can either be the name of a mission (full path from app directory, so game/data/missions/TT1_1.mis, e.g.) or one of GREEN, BLUE, RED, or ALL which will cause game to cycle on that mission (or all the lush missions in the case of GREEN or all missions in the case of ALL).

And,

B - battlemode, TB - team battlemode, S - scrum, TS - team scrum

If you are using a Macintosh, you will do similarly, but you need to type the name of the application inside the application package. So, from the command-line from the directory that contains the application package, you would type

./ThinkTanks.app/Contents/MacOS/ThinkTanks\ OSX -dedicated -mission -Game

where and have the same meaning as described above for Windows and Linux.
#5
08/26/2003 (8:51 am)
Quote:...you must make some superficial change to it with notepad so that the file date will be more recent (e.g., change the game title). Otherwise, the prefs file will be a strange mix of the hacked and original prefs file.

LC50,

I don't know what the file structure is for the MAC version of Think Tanks. If you have a pref.cs and a pref.cs.dso, then just delete your prefs.cs.dso. The .cs.dso is a script that has been compiled by Torque. Just delete the pref.cs.dso before you edit the pref.cs. When you run the game, it will compile your pref.cs (into pref.cs.dso).

*edit* - nevermind, Joe got it while I was typing this up. Heh. :)
#6
08/26/2003 (4:55 pm)
Ok, thanks Joe, I guess I overlooked that in the readme.

I have it figured out now... It cycles through all maps in a world, but then goes to the first map of the next world. It's a nice break in the Scrum monotony.

LC50
#7
08/26/2003 (5:41 pm)
Thx Joe!
#8
12/28/2003 (10:23 am)
I have a problem with my server. I set it for max 12 players in the pref.cs and to auto kick bots but when it's running it only has the six bots and keeps telling me that the server is full. Can anyone help?
#9
12/28/2003 (11:52 am)
Try deleting prefs.cs.dso see what happens
#10
12/29/2003 (2:15 am)
Will it replace the pref.cs.dso itself then or how is this going to work?
#11
12/29/2003 (5:50 am)
The file will be replaced using the data entered in prefs.cs .

It should, anyway........
#12
12/29/2003 (5:56 am)
Okay I've tried and it works but at the start of the second game it resets it back to the old settings and shows server is full message with 6 bots. Any sugestions would be very much aprieciated.
#13
12/30/2003 (1:35 pm)
Anyone......?