Loading...
  OR  Zero-K Name:    Password:   

AI Commander name tags

3 posts, 285 views
Post comment
Filter:    Player:  
sort
2 years ago
I was surprised/amused the first time I saw name tags on AI commanders. They didn't show what I expected them to show though.

Then I just randomly saw this bug, wasn't even looking for anything of the sort:
https://github.com/ZeroK-RTS/Zero-K/issues/4496

The fix is just one line replaced with two, so I'll just post the instructions here. The change is done to the unit_comm_nametags.lua widget.

Line 111 is
local name = GetPlayerInfo(player, false) or 'name unknown'

Replace it with
   local _, ai =Spring.GetAIInfo(team)
   local name = ai or GetPlayerInfo(player, false) or "Forgotten"


"Forgotten" can be changed to anything, but I think it looks better than "Zombie" and not as clinical as "name unknown".

This is just a simple fix that doesn't even attempt address the problem of very long names not fitting the name tag.
+1 / -0
Thanks, I applied the AI name fix but not ROrankForgotten because that's an actual player that I knew off the top of my head.
+1 / -0
2 years ago
Thank you, that was quick! Now that you mention him, I actually know of that player. Just somehow didn't ring a bell before.
+0 / -0