Map Font questions

Discuss and post your mods and scenarios here for others to download.

Moderator: Vic

Post Reply
User avatar
Magpius
Posts: 1728
Joined: Thu Sep 20, 2007 11:21 pm
Location: Melbourne, Australia

Map Font questions

Post by Magpius »

Hi y'all
1. How do I set the font colour of Map text in the scenario template file, prior to generating the game?
2. Map big scale has a solid font pattern, (looks a little like arial), is it possible to set the font to another style? (is this what the fonts folder is for?)
3. Can the font style be modified for the other maps? The courier text style font is often lost amongst the graphics.

I've searched about, but only find info on colour changing text in the editor, on a case by case basis.

Ta.

"I don't believe in reincarnation because I refuse to come back as a bug or as a rabbit". -New Order
User avatar
Ormand
Posts: 826
Joined: Tue Feb 17, 2009 1:31 am

Re: Map Font questions

Post by Ormand »

I'll have to research this. I think the answer is that you can't change fonts.
One man alone can be pretty dumb sometimes, but for real bona fide stupidity, there ain't nothin' can beat teamwork -- Edward Abbey
User avatar
ernieschwitz
Posts: 4544
Joined: Tue Sep 15, 2009 3:46 pm
Location: Denmark

Re: Map Font questions

Post by ernieschwitz »

If you somehow, and I am not sure you can, find a way to make another font appear, you have to remember to have it be spaced the same distances as the original one. The Hex info is what carriers the text. It has 5 letters in the top, and 5 letters in the bottom of the hex. If you choose a font that is spaced differently then the outcome might look strange, as there could be spaces between hex text.

If the really big hex text is chosen, only 1 letter per hex.
Creator of High Quality Scenarios for:
  • Advanced Tactics Gold
    DC: Warsaw to Paris
    DC: Community Project.
Try this Global WW2 Scenario: https://www.vrdesigns.net/scenario.php?nr=280
User avatar
Magpius
Posts: 1728
Joined: Thu Sep 20, 2007 11:21 pm
Location: Melbourne, Australia

Re: Map Font questions

Post by Magpius »

Thanks for the replies folks.
I'm working on a lighter more retro map mod, and the white courier text is almost invisible.
While as I mentioned, it can be edited afterwards, it's painful doing them all individually.
If the generative scenario could be tweaked prior, then all the resource and town names would be black in advance.

A pity there's nothing similar to the opart.ini file.

"I don't believe in reincarnation because I refuse to come back as a bug or as a rabbit". -New Order
User avatar
ernieschwitz
Posts: 4544
Joined: Tue Sep 15, 2009 3:46 pm
Location: Denmark

Re: Map Font questions

Post by ernieschwitz »

I believe you can make code that you can run (either from the editor, or before the map is shown the first time), that can change the text color. I'll post the code, later, if I remember it, if all you want to do is change the color.
Creator of High Quality Scenarios for:
  • Advanced Tactics Gold
    DC: Warsaw to Paris
    DC: Community Project.
Try this Global WW2 Scenario: https://www.vrdesigns.net/scenario.php?nr=280
User avatar
ernieschwitz
Posts: 4544
Joined: Tue Sep 15, 2009 3:46 pm
Location: Denmark

Re: Map Font questions

Post by ernieschwitz »

Now IF the scenario is not random generated, it is actually more simple than adding code. This button in Setngs will change all locations names into the color of your choice.
AutoSetLabels.jpg
AutoSetLabels.jpg (117.92 KiB) Viewed 171 times
Oops. Button above the one in the graphic above.
Creator of High Quality Scenarios for:
  • Advanced Tactics Gold
    DC: Warsaw to Paris
    DC: Community Project.
Try this Global WW2 Scenario: https://www.vrdesigns.net/scenario.php?nr=280
User avatar
ernieschwitz
Posts: 4544
Joined: Tue Sep 15, 2009 3:46 pm
Location: Denmark

Re: Map Font questions

Post by ernieschwitz »

If the map is random generated, from a Master file, then you need code, that is put into the master file. Yes, you need to make a NEW master file, from the old one.

To do this, load the file in the editor that is used to create the random scenario. Go to the Event editor, and go to the very end of the event codes. Add an event, and edit it to look like this.
Code for Text.jpg
Code for Text.jpg (119.15 KiB) Viewed 168 times
Note, that 0, deletes all labels. If there are some location types you don't want to change the color of, or have a text at all, then the code becomes a bit more complex, but not much. When you've finished clicking in all of this code, should not take too long, then make sure that it is run as a Round Check, save the file under a new name... and you are done.

Just remember to use the NEW master file to generate the scenario.
Creator of High Quality Scenarios for:
  • Advanced Tactics Gold
    DC: Warsaw to Paris
    DC: Community Project.
Try this Global WW2 Scenario: https://www.vrdesigns.net/scenario.php?nr=280
User avatar
Magpius
Posts: 1728
Joined: Thu Sep 20, 2007 11:21 pm
Location: Melbourne, Australia

Re: Map Font questions

Post by Magpius »

Thank you very much!

"I don't believe in reincarnation because I refuse to come back as a bug or as a rabbit". -New Order
User avatar
Magpius
Posts: 1728
Joined: Thu Sep 20, 2007 11:21 pm
Location: Melbourne, Australia

Re: Map Font questions

Post by Magpius »

It's very much w.i.p.
But the colour change means I'll keep pushing pixels.
Thanks again.
Image
Attachments
Untitled.png
Untitled.png (1.32 MiB) Viewed 154 times
User avatar
ernieschwitz
Posts: 4544
Joined: Tue Sep 15, 2009 3:46 pm
Location: Denmark

Re: Map Font questions

Post by ernieschwitz »

It just hit me, that this won't include things that are upgraded or built. So... I first figured more code... But never fear.. it doesn't :)

Under each Location Type in the LT submenu you can change what color the Location gets the color text needed.
Label Change.jpg
Label Change.jpg (125.8 KiB) Viewed 147 times
I've made a graphic here that shows it. So Raw level 2, 3 and Oil level 2, 3 as well as the different factory types, need this changed to the color from before. Easy.
Creator of High Quality Scenarios for:
  • Advanced Tactics Gold
    DC: Warsaw to Paris
    DC: Community Project.
Try this Global WW2 Scenario: https://www.vrdesigns.net/scenario.php?nr=280
User avatar
Magpius
Posts: 1728
Joined: Thu Sep 20, 2007 11:21 pm
Location: Melbourne, Australia

Re: Map Font questions

Post by Magpius »

Brill.
Ta.
Also; have to add, having set up that Event Code...
OMG!
The potential of the editor, with the myriad of options,
my mind truly blown at the possibilities.
I started on people's tactics but, my only gripe for not playing A.T. more, was that the percentage of screen real estate lost to the panels, made the map feel too tiny. (Laptop).
Bigger (desktop) screens have brought me back.


So thanks to the hard core crew and developer(s) that have kept this amazing game alive.

"I don't believe in reincarnation because I refuse to come back as a bug or as a rabbit". -New Order
Post Reply

Return to “Mods and Scenarios”