ingame AI names

ingame AI names

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

ingame AI names

Post by hoijui »

We can set names for AIs in the lobby. By default this is Bot1, Bot2 and so on in TASClient eg.. In-game though, these names are not used, but rather the name of the player on whichs computer the AI runs (i think).

Should we change that?
It could also be a combination, eg:
"${lobby-name} ($player-name)"
which may look like this in the end: "RAI-Bot-1 (hoijui)"

Would it need change in lots of places?
... eg. LUA scripts and such, or just in a few places in the engine?
imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

Re: ingame AI names

Post by imbaczek »

hoijui wrote:"RAI-Bot-1 (hoijui)"
RAI-Bot-1 (owner: hoijui)

also, default name should go into the settings.
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: ingame AI names

Post by hoijui »

imbaczek wrote:RAI-Bot-1 (owner: hoijui)
+1

i do not get what you mean with: the default name should go into the settings. you mean somehow.. that all lobbies will use the same default names for bots?

Edit:
when no Name tag is specified in script.txt, then the AIs name is used, so it would be:
"RAI (owner: hoijui)"
if hoijui has two RAIs without name, it is:
"RAI (owner: hoijui)"
and
"RAI_0 (owner: hoijui)"
(this is all done by the engine)
Post Reply

Return to “Engine”