How to hide those #+*!+ Labels

General feedback and discussion of the game.

Moderators: Forum Moderators, Developers

Post Reply
pete83
Posts: 4
Joined: September 29th, 2010, 9:15 pm
Location: Germany

How to hide those #+*!+ Labels

Post by pete83 »

Hello,

I couldn't find any advice on that, wherever I looked. I installed the version 1.8 from the Ubuntu repository, but now, whenever I create a random map in multiplayer, I have tons of stupid name labels on my screen (like on every village, on every forest, mountain), and I want to get rid of them. Yet the only way possible I have found is to right click and select "set team label" and set this to empty string. Which is pretty impracticable considering the vast amount of labels...
Is that really the only way? This is seriously limiting the fun... Even though I love wesnoth otherwise ;-)
Anyway, any help would be highly appreciated (probably there is a really easy solution and I was only too stupid to find it, wouldn't be the first time...)

Greetz!

User avatar
boru
Posts: 788
Joined: November 19th, 2009, 11:02 pm

Re: How to hide those #+*!+ Labels

Post by boru »

Command+C should clear labels. Not sure if that works in Ubuntu, if not, look in preferences hotkeys for "Clear Labels."
“It is written in my life-blood, such as that is, thick or thin; and I can no other.” - J.R.R. Tolkien

My campaign: Swamplings - Four centuries before the founding of Wesnoth, the first wolf rider emerges from a tribe of lowly swamp goblins.

pete83
Posts: 4
Joined: September 29th, 2010, 9:15 pm
Location: Germany

Re: How to hide those #+*!+ Labels

Post by pete83 »

Hmm, yeah, I found that in the manual, but somehow it doesn't work... All the other key combinations work... (Like Ctrl + r, Ctrl + v , etc.)
Maybe there is something wrong :-( These labels were never there in wesnoth 1.6 anyway...
Thanks for your reply though :-)
Maybe this is a bug in the ubuntu version...

User avatar
Iris
Site Administrator
Posts: 6692
Joined: November 14th, 2006, 5:54 pm
Location: Chile
Contact:

Re: How to hide those #+*!+ Labels

Post by Iris »

pete83 wrote:Maybe there is something wrong :-( These labels were never there in wesnoth 1.6 anyway...
Odd, because I recall them in random maps since as far as Wesnoth 0.9.6.
Author of the unofficial UtBS sequels Invasion from the Unknown and After the Storm (now available for Wesnoth 1.14).

pete83
Posts: 4
Joined: September 29th, 2010, 9:15 pm
Location: Germany

Re: How to hide those #+*!+ Labels

Post by pete83 »

Hmm, might there be a global option to switch that on or off? I'm sure that in 1.6 I didn't have these, otherwise they wouldn't have struck me now suddenly...

User avatar
zookeeper
WML Wizard
Posts: 9742
Joined: September 11th, 2004, 10:40 pm
Location: Finland

Re: How to hide those #+*!+ Labels

Post by zookeeper »

Doesn't seem like there's a way to switch them off. However, you can open up your data/multiplayer/scenarios/Random_Scenario*.cfg's and insert this inside [multiplayer][generator][scenario]:

Code: Select all

[event]
                name=prestart

                [store_map_dimensions]
                    variable=map_size
                [/store_map_dimensions]

                {VARIABLE x 1}
                [while]
                    [variable]
                        name=x
                        less_than_equal_to=$map_size.width
                    [/variable]

                    [do]
                        {VARIABLE y 1}
                        [while]
                            [variable]
                                name=y
                                less_than_equal_to=$map_size.height
                            [/variable]

                            [do]
                                [label]
                                    x,y=$x,$y
                                    text=" "
                                [/label]

                                {VARIABLE_OP y add 1}
                            [/do]
                        [/while]

                        {VARIABLE_OP x add 1}
                    [/do]
                [/while]
            [/event]
Might cause a bit of a delay when starting a bigger random map, though.

Alink
Inactive Developer
Posts: 181
Joined: March 5th, 2007, 6:45 am
Location: Belgium

Re: How to hide those #+*!+ Labels

Post by Alink »

Another way, simpler but more hackish:
in data/hardwired/english.cfg blank all the naming keys:

Code: Select all

    #naming of terrain features
    bridge_name=""
    road_name=""
    river_name=""
    forest_name=""
    lake_name=""
    mountain_name=""
    swamp_name=""
    village_name=""
    village_name_lake=""
    village_name_river=""
    village_name_river_bridge=""
    village_name_grassland=""
    village_name_forest=""
    village_name_hill=""
    village_name_mountain=""
    village_name_mountain_anonymous=""
    village_name_road=""
    village_name_swamp=""
Labels are still there but blank. All seem to work fine, but I didn't test much. Try " " if there is a problem.

pete83
Posts: 4
Joined: September 29th, 2010, 9:15 pm
Location: Germany

Re: How to hide those #+*!+ Labels

Post by pete83 »

Thanks a lot for your replies :-) I tried the second approach since I don't care about those labels and it seemed faster and it worked :-) Finally no more stupid labels *joy*
Time to play some Wesnoth :D

Post Reply