How to edit the TOAW font and date format and scenario strings, etc

Post discussions and advice on TOAW scenario design here.

Moderators: JAMiAM, ralphtricky

Post Reply
User avatar
ralphtricky
Posts: 6675
Joined: Sun Jul 27, 2003 4:05 am
Location: Colorado Springs
Contact:

How to edit the TOAW font and date format and scenario strings, etc

Post by ralphtricky »

The below talks about editing the english.dll file to change to European date format. A similar process is used to edit the two font files. You can also do similar things to edit all the strings in a scenario, just save the DLL as graphics/Scenario Name/Scenario Name.DLL. The French scenario is an extreme example of this.

It can actually be done now by using a resource editor, copying the English.DLL to EuroDate.DLL and changing string table entry 17 from MDY to DMY. You can also change string table entry 18 from a / to a . if you want a different date separator.

The following steps are required.
Download XNResource(http://www.btinternet.com/~wilsoncpw/xn ... _setup.exe)
Run the setup program.
Run XNResource
Open c:\Matrix Game\The Operational Art of War III\English.DLL
Change the string table entry #17 from MDY to DMY
Change the string table entry #18 from / to .
Save the file as EuroDate.DLL
Close XNResource
Run TOAW
Select File/Choose Language and pick EuroDate.
Ralph Trickey
TOAW IV Programmer
Blog: http://operationalwarfare.com
---
My comments are my own, and do not represent the views of any other person or entity. Nothing that I say should be construed in any way as a promise of anything.
PDiFolco
Posts: 1195
Joined: Mon Oct 11, 2004 8:14 am

RE: How to edit the TOAW font and date format and scenario strings, etc

Post by PDiFolco »

Fine, works like a charm !
But the instructions have an hole : what should be edited are ID 17 and 18 of the 2nd entry of the String Table, not the 17-18th entries as I understood when I read you... [:'(]

Anyway I think that just posting the file (attached zipped) is simpler ;) I've kept the "/" separator so I get D/M/Y format (usual here ... in France :)

And BTW how could one change the fonts ? I never liked the TOAW font ... [:-]
Attachments
EuroDate.zip
(102.74 KiB) Downloaded 69 times
PDF
User avatar
ralphtricky
Posts: 6675
Joined: Sun Jul 27, 2003 4:05 am
Location: Colorado Springs
Contact:

RE: How to edit the TOAW font and date format and scenario strings, etc

Post by ralphtricky »

ORIGINAL: PDiFolco

Fine, works like a charm !
But the instructions have an hole : what should be edited are ID 17 and 18 of the 2nd entry of the String Table, not the 17-18th entries as I understood when I read you... [:'(]

Anyway I think that just posting the file (attached zipped) is simpler ;) I've kept the "/" separator so I get D/M/Y format (usual here ... in France :)

And BTW how could one change the fonts ? I never liked the TOAW font ... [:-]
Thanks!

The font is in the same file, you should follow the same instructions, but replace the font files.
Ralph Trickey
TOAW IV Programmer
Blog: http://operationalwarfare.com
---
My comments are my own, and do not represent the views of any other person or entity. Nothing that I say should be construed in any way as a promise of anything.
User avatar
JMass
Posts: 2363
Joined: Sat Jun 03, 2006 4:45 pm
Location: Italy

RE: How to edit the TOAW font and date format and scenario strings, etc

Post by JMass »

ORIGINAL: ralphtrick
The font is in the same file, you should follow the same instructions, but replace the font files.

Just done, thank you!

[:)]

"Klotzen, nicht Kleckern!"Generaloberst Heinz Wilhelm Guderian

My boardgames collection: http://www.boardgamegeek.com/collection ... dgame&ff=1
PDiFolco
Posts: 1195
Joined: Mon Oct 11, 2004 8:14 am

RE: How to edit the TOAW font and date format and scenario strings, etc

Post by PDiFolco »

There's 3 font entries in the editor - one "red", one "yellow", and one "blue". What are they for ? The modded fonts I got have 2 files only : toawfont and toawboldfont, which should be copied where ? [&:]
PDF
User avatar
ralphtricky
Posts: 6675
Joined: Sun Jul 27, 2003 4:05 am
Location: Colorado Springs
Contact:

RE: How to edit the TOAW font and date format and scenario strings, etc

Post by ralphtricky »

ORIGINAL: PDiFolco

There's 3 font entries in the editor - one "red", one "yellow", and one "blue". What are they for ? The modded fonts I got have 2 files only : toawfont and toawboldfont, which should be copied where ? [&:]
What screen are those choices on?
Ralph Trickey
TOAW IV Programmer
Blog: http://operationalwarfare.com
---
My comments are my own, and do not represent the views of any other person or entity. Nothing that I say should be construed in any way as a promise of anything.
PDiFolco
Posts: 1195
Joined: Mon Oct 11, 2004 8:14 am

RE: How to edit the TOAW font and date format and scenario strings, etc

Post by PDiFolco »

ORIGINAL: ralphtrick
ORIGINAL: PDiFolco

There's 3 font entries in the editor - one "red", one "yellow", and one "blue". What are they for ? The modded fonts I got have 2 files only : toawfont and toawboldfont, which should be copied where ? [&:]
What screen are those choices on?

That's what I see in the Resource Editor, in the entries TOAGFONT, TOAPFONT and TOAGFONT under Bitmaps.
I supposed we have to change them here as the game doesn't properly uses external "fonts" bmp ? [&:]
PDF
User avatar
Silvanski
Posts: 2507
Joined: Sun Jan 23, 2005 3:16 pm
Location: Belgium, residing in TX-USA

RE: How to edit the TOAW font and date format and scenario strings, etc

Post by Silvanski »

Ralph, can you give some more info on your plans with the "opart 3 fonts.ini" ?
I've been playing around with it... trying out the pre-alpha with Arial Rounded MT Bold in highlighted mode gives good results for me... up till now no apparent glitches.
 
 
The TOAW Redux Dude
markoid
Posts: 8
Joined: Wed Mar 21, 2007 8:18 pm

RE: How to edit the TOAW font and date format and scenario strings, etc

Post by markoid »

ORIGINAL: ralphtrick

The below talks about editing the english.dll file to change to European date format. A similar process is used to edit the two font files. You can also do similar things to edit all the strings in a scenario, just save the DLL as graphics/Scenario Name/Scenario Name.DLL. The French scenario is an extreme example of this.

It can actually be done now by using a resource editor, copying the English.DLL to EuroDate.DLL and changing string table entry 17 from MDY to DMY. You can also change string table entry 18 from a / to a . if you want a different date separator.

The following steps are required.
Download XNResource(http://www.btinternet.com/~wilsoncpw/xn ... _setup.exe)
Run the setup program.
Run XNResource
Open c:\Matrix Game\The Operational Art of War III\English.DLL
Change the string table entry #17 from MDY to DMY
Change the string table entry #18 from / to .
Save the file as EuroDate.DLL
Close XNResource
Run TOAW
Select File/Choose Language and pick EuroDate.

What about map fonts Ralph?

M
User avatar
ralphtricky
Posts: 6675
Joined: Sun Jul 27, 2003 4:05 am
Location: Colorado Springs
Contact:

RE: How to edit the TOAW font and date format and scenario strings, etc

Post by ralphtricky »

ORIGINAL: markoid

ORIGINAL: ralphtrick

The below talks about editing the english.dll file to change to European date format. A similar process is used to edit the two font files. You can also do similar things to edit all the strings in a scenario, just save the DLL as graphics/Scenario Name/Scenario Name.DLL. The French scenario is an extreme example of this.

What about map fonts Ralph?

M
It's very similar to the way it's done for the surodate stuff, except that the changes are to the two font files.

That may change with the next release, though.

Out of curiosity, why do you want to try using alternate font files?

Thanks,
Ralph
Ralph Trickey
TOAW IV Programmer
Blog: http://operationalwarfare.com
---
My comments are my own, and do not represent the views of any other person or entity. Nothing that I say should be construed in any way as a promise of anything.
markoid
Posts: 8
Joined: Wed Mar 21, 2007 8:18 pm

RE: How to edit the TOAW font and date format and scenario strings, etc

Post by markoid »

Ralph,
 
I have issues with playing the game and being able to read the text late at night.  It is always useful to able to change fonts, text sizes etc.  I am involved in some work looking at IT and DDA (Disability Discrimination Act) issues.  Good to see that all though it is not built in, people have the ability to change the format - good job guys.
 
Oh yes, and it looks good on the AAR's! :)
ColinWright
Posts: 2604
Joined: Thu Oct 13, 2005 6:28 pm

RE: How to edit the TOAW font and date format and scenario strings, etc

Post by ColinWright »

.
I am not Charlie Hebdo
User avatar
L`zard
Posts: 362
Joined: Fri Jun 03, 2005 6:12 am
Location: Oregon, USA

RE: How to edit the TOAW font and date format and scenario strings, etc

Post by L`zard »

ORIGINAL: ralphtrick
ORIGINAL: markoid
ORIGINAL: ralphtrick

What about map fonts Ralph?

M
It's very similar to the way it's done for the surodate stuff, except that the changes are to the two font files.

That may change with the next release, though.

Out of curiosity, why do you want to try using alternate font files?

Thanks,
Ralph

Ralph;

Majorically in order to change the fonts for specific hexes........Capitals, etc; Would be useful in order to 'pick out' particular points of interest on the map.

Perhaps a post concerning the whole editing, naming process would be useful, ???
"I have the brain of a genius, and the heart of a little child! I keep them in a jar under my bed."

ColinWright
Posts: 2604
Joined: Thu Oct 13, 2005 6:28 pm

RE: How to edit the TOAW font and date format and scenario strings, etc

Post by ColinWright »

ORIGINAL: L`zard

ORIGINAL: ralphtrick
ORIGINAL: markoid


What about map fonts Ralph?

M
It's very similar to the way it's done for the surodate stuff, except that the changes are to the two font files.

That may change with the next release, though.

Out of curiosity, why do you want to try using alternate font files?

Thanks,
Ralph

Ralph;

Majorically in order to change the fonts for specific hexes........Capitals, etc; Would be useful in order to 'pick out' particular points of interest on the map...

Yeah -- hardly an imperative need, but this would be nice.
I am not Charlie Hebdo
Post Reply

Return to “Scenario Design”