Changing bot color/player name in singleplayer?

Changing bot color/player name in singleplayer?

Various things about Spring that do not fit in any of the other forums listed below, including forum rules.

Moderator: Moderators

Post Reply
Cmdr_Shaffer
Posts: 28
Joined: 19 Aug 2013, 06:20

Changing bot color/player name in singleplayer?

Post 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.
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: Changing bot color/player name in singleplayer?

Post 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.
Cmdr_Shaffer
Posts: 28
Joined: 19 Aug 2013, 06:20

Re: Changing bot color/player name in singleplayer?

Post 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.
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: Changing bot color/player name in singleplayer?

Post 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
Cmdr_Shaffer
Posts: 28
Joined: 19 Aug 2013, 06:20

Re: Changing bot color/player name in singleplayer?

Post by Cmdr_Shaffer »

Thanks, will do :)
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7052
Joined: 16 Nov 2004, 13:08

Re: Changing bot color/player name in singleplayer?

Post 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.
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Changing bot color/player name in singleplayer?

Post 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
User avatar
Anarchid
Posts: 1384
Joined: 30 Nov 2008, 04:31

Re: Changing bot color/player name in singleplayer?

Post by Anarchid »

they get random (or maybe there is a pattern)
There is a pattern. First bot is always yellow, etc.
Post Reply

Return to “General Discussion”