Terrain labels (not) showing?
Moderator: Forum Moderators
Forum rules
Before reporting issues in this section, you must read the following topic:
Before reporting issues in this section, you must read the following topic:
Terrain labels (not) showing?
I have a scenario where several places have labels (like "Tower of This", "Mountain of That", for orientation purposes).
When i start this scenario (from the previous), those labels don't show, even if I'm standing on the hex. If I save the game and reload that save, they do appear.
What's going on?
(1.16 on Linux)
When i start this scenario (from the previous), those labels don't show, even if I'm standing on the hex. If I save the game and reload that save, they do appear.
What's going on?
(1.16 on Linux)
Re: Terrain labels (not) showing?
Verify on newer version.
Re: Terrain labels (not) showing?
To do so I'd need to port the whole campaign to 1.18 and replay it (several scenarios), which I haven't the time right now.
What I actually asking for is if I'm doing something wrong, or if this is a known issue (1.16 must have been the newest version for a time, didn't anybody notice back then?).
What I actually asking for is if I'm doing something wrong, or if this is a known issue (1.16 must have been the newest version for a time, didn't anybody notice back then?).
Re: Terrain labels (not) showing?
You really dont need to play anything specific. Basically open any random scenario and run your [label] commands with viewtopic.php?t=56440
Re: Terrain labels (not) showing?
Thanks, but I have no knowledge of programming in general or more specifically Lua (besides knowing it exists), and thus I don't understand a single word of your (I'm sure) very interesting test method...
Sorry...
Sorry...
Re: Terrain labels (not) showing?
It may be useful if you showed example how you set one of the labels with issue.
Re: Terrain labels (not) showing?
Like this:
Code: Select all
[label]
color="221,221,221,0"
immutable=yes
team_name=""
text=_ "The Signal Tower"
visible_in_fog=yes
visible_in_shroud=no
x=45
y=15
[/label]
Re: Terrain labels (not) showing?
Use color="221,221,221". Remove or set team_name.
Re: Terrain labels (not) showing?
Will do, thanks.
But do you think this is the reason labels only appear after loading a save?
But do you think this is the reason labels only appear after loading a save?
Re: Terrain labels (not) showing?
According to the documentation, the format is "r,g,b". So the 4th number is invalid. Because it's invalid, the 4th number probably doesn't get saved to the save file. So it just gets saved askurt751 wrote: July 29th, 2026, 5:42 pm Will do, thanks.
But do you think this is the reason labels only appear after loading a save?
color="221,221,221" in the save file. Then it "works" when you load it from the save file.Re: Terrain labels (not) showing?
gnombat wrote: July 29th, 2026, 6:07 pm According to the documentation, the format is "r,g,b". So the 4th number is invalid.
As for the 4th number, I assumed it was transparency. As I said, it's straight out of the map editor.