Page 1 of 1

Changing bot color/player name in singleplayer?

Posted: 28 Aug 2013, 17:11
by Cmdr_Shaffer
See the thread title: Is this possible? I have version 91.0 of Spring (working on trying to upgrade, see my thread in the Linux forum), but not really sure I want to upgrade anyway, because 1) I'm a terrible RTS player by multiplayer standards, and 2) I want to play Zero-K, and Zero-K apparently uses Spring 91. So--is there a way, via a .cfg file or something like that that I can change my player name/enemy bot colors? It seems so, since the colors are the same each time--it's a pattern.

Re: Changing bot color/player name in singleplayer?

Posted: 28 Aug 2013, 17:19
by hoijui
do you start the game though the spring executable directly?
you should use a lobby.
even though some lobbies have a singleplayer tab, it is usually better to use the multiplayer one, as it is much better maintained. you just open a normal battle, and set a password, so no others will enter. then you can easily add as many bots as you want, and change their color, and even choose their starting positions on a mini-map.

Re: Changing bot color/player name in singleplayer?

Posted: 28 Aug 2013, 17:22
by Cmdr_Shaffer
I use the springlobby that comes from the Ubuntu Software Center, and I'm using the singleplayer tab, because when I try to log in, it says that since I'm using version 91, online play is disabled.

EDIT: There is no "multiplayer" tab in my springlobby. There is: Chat, Battlelist, Battleroom, Singleplayer, and Replays. I go into the Battleroom and try to host a game, and since I'm using version 91, I can't.

Re: Changing bot color/player name in singleplayer?

Posted: 28 Aug 2013, 17:29
by hoijui
~/.springlobby/springlobby.conf
make shure you close springlobby, then open the above file, adn set this property:
DisableVersionCheck=1
it is meant for testing purposes only, so you should set it back to 0 some day.. :D

Re: Changing bot color/player name in singleplayer?

Posted: 28 Aug 2013, 17:32
by Cmdr_Shaffer
Thanks, will do :)

Re: Changing bot color/player name in singleplayer?

Posted: 28 Aug 2013, 20:40
by zwzsg
Cmdr_Shaffer wrote:So--is there a way, via a .cfg file or something like that that I can change my player name/enemy bot colors?
Usually the communication between whatever prepares the game, and the engine, is done via script.txt. So open a script.txt in your favorite text editor, change the bot color and the player name (should be easy to spot how), then pass this script.txt as argument to your spring engine.

Re: Changing bot color/player name in singleplayer?

Posted: 29 Aug 2013, 17:03
by knorke
So--is there a way, via a .cfg file or something like that that I can change my player name/enemy bot colors?
In most spring players can freely chose their color. zero-K did away with that and you see your own units always as teal. Enemies automatically get red/yellow colors no matter what they or you set or saw in lobby.
If you want to change these pre-configured colors best ask at http://zero-k.info/Forum or in #zk channel in lobby.

So open a script.txt in your favorite text editor, change the bot color and the player name (should be easy to spot how), then pass this script.txt as argument to your spring engine.
Does not work with zero-K, because above. For other games you can just select a color in spring lobby.
When adding bots in springlobby, they get random (or maybe there is a pattern) colors. Seems only way is to add lots of bots and then remove the ones with colors you do not like.

Name change for offline play:
http://springrts.com/wiki/Springsettings.cfg#name

Re: Changing bot color/player name in singleplayer?

Posted: 29 Aug 2013, 17:07
by Anarchid
they get random (or maybe there is a pattern)
There is a pattern. First bot is always yellow, etc.