Controls2 - Fonts - Courier

This is where our experts try to teach you the very flexible modding system for our previous release - SOW Gettysburg and its add-ons. It's powerful, but dangerous. Post your tips and your questions.
Post Reply
born2see
Reactions:
Posts: 1326
Joined: Fri Apr 22, 2011 9:25 am

Re: Controls2 - Fonts - Courier

Post by born2see »

Question - If you change the name of your font - do you still have the default font listed in your gamefonts file?
No. I changed the gamefonts file to reflect the new name. Didn't change the gscreen file at all.

To reach waaaayyy back to the days when I thought I might like to be a programmer ( :laugh: :laugh: :laugh: ); This is what I think is going on. The game engine is looking for a variable called MsgFont as shown in the gscreen file at Line 4 / Column D and Line 12 / Column D. This variable is defined in the gamefonts file. To make a change in the font used for the Courier Message you just need to change the value at Line 25 / Column C of the gamefonts file and the game engine will try to use whatever's defined there. Of course that file has to be in the Fonts folder of the mod

Hope this isn't muddying the waters. It helps me to understand if I have to write it out.
Last edited by born2see on Sat Jul 02, 2011 9:08 pm, edited 1 time in total.
"Those in whose judgment I rely, tell me that I fought the battle splendidly and that it was a masterpiece of art.” - George McClellan to his wife describing the battle of Antietam
Davinci
Reactions:
Posts: 3034
Joined: Wed Jul 02, 2008 12:53 pm

Re: Controls2 - Fonts - Courier

Post by Davinci »

To reach waaaayyy back to the days when I thought I might like to be a programmer ( :laugh: :laugh: :laugh: ); This is what I think is going on. The game engine is looking for a variable called MsgFont as shown in the gscreen file at Line 4 / Column D and Line 12 / Column D.

Understood.
This variable is defined in the gamefonts file. To make a change in the font used for the Courier Message you just need to change the value at Line 25 / Column C of the gamefonts file and the game engine will try to use whatever's defined there. Of course that file has to be in the Fonts folder of the mod.
OK, do you think that we can add another font such as…

MsgFont2,MsgFont2,RageItalic32.pft,0.92 – and use two different fonts for the courier messages?

I tried this but the game would only use one line of the new font, but I could have done something wrong!

davinci
Last edited by Davinci on Sat Jul 02, 2011 11:21 pm, edited 1 time in total.
The only true logic is that, there is no true logic!
born2see
Reactions:
Posts: 1326
Joined: Fri Apr 22, 2011 9:25 am

Re: Controls2 - Fonts - Courier

Post by born2see »

OK, do you think that we can add another font such as…

MsgFont2,MsgFont2,RageItalic32.pft,0.92 – and use two different fonts for the courier messages?

I tried this but the game would only use one line of the new font, but I could have done something wrong!
I don't think so. The game engine is looking for a variable MsgFont for the Courier Screen. If you change the name to something else it won't know what to do. MsgFont is hard coded, the only thing you can change is it's value, which is the font name in the gamefonts file. Haven't tested this but I'm pretty sure. I also don't think you can use two different fonts in the message because there's now way to tell the game engine when to change fonts.
Last edited by born2see on Sat Jul 02, 2011 11:40 pm, edited 1 time in total.
"Those in whose judgment I rely, tell me that I fought the battle splendidly and that it was a masterpiece of art.” - George McClellan to his wife describing the battle of Antietam
Davinci
Reactions:
Posts: 3034
Joined: Wed Jul 02, 2008 12:53 pm

Re: Controls2 - Fonts - Courier

Post by Davinci »

This is what I tried to do and it worked for only one line, which was the top line in the courier message.

gamefonts
MsgFont,MsgFont,VinerHand32.pft,0.92

MsgFont2,MsgFont2,RageItalic32.pft,0.92

gscreens

BASEFONT,,,MsgFont2-L-2,2,2,,,,,,,,,,,, Line 4 – Column D

BASEFONT,,,MsgFont-L-2,2,2,,,,,,,,,,,, Line 12 – Column D

Basically – the game appears to be designed to allow for a different font – as long as the font is defined before the message is written.

This is what line 4 – Column D is supposed to do – establish the font that should be used for this message.

Now, when the courier message screen is listed it also has a place to input which font to use in Line 12 – Column D

I think that it can be done, just haven’t figured out how to do it at this time.

As a secondary plan – if this can’t be done – what would happen if we used a different font that is used by another entry, this way the game is already programmed to accept this font. I’ll try this method out, also .

What do you think?

davinci
Last edited by Davinci on Sun Jul 03, 2011 12:17 am, edited 1 time in total.
The only true logic is that, there is no true logic!
Davinci
Reactions:
Posts: 3034
Joined: Wed Jul 02, 2008 12:53 pm

Re: Controls2 - Fonts - Courier

Post by Davinci »

Hey, does this look like a folded courier dispatch?

I don't mind if you say H... No!

I trying to continue to edit this one instead of starting over!

davinci
Attachments
fold3.jpg
fold3.jpg (245.25 KiB) Viewed 413 times
fold2.jpg
fold2.jpg (260.06 KiB) Viewed 413 times
Last edited by Davinci on Sun Jul 03, 2011 2:39 am, edited 1 time in total.
The only true logic is that, there is no true logic!
Amish John
Reactions:
Posts: 894
Joined: Thu Jan 24, 2008 8:20 am

Re: Controls2 - Fonts - Courier

Post by Amish John »

I like the fold2. In fold3 the fold lines are too distinct. What's going on with the left and right edges on the top fold?
You can get farther with a kind word and a gun than you can with a kind word alone.
born2see
Reactions:
Posts: 1326
Joined: Fri Apr 22, 2011 9:25 am

Re: Controls2 - Fonts - Courier

Post by born2see »

I agree with AJ. Fold2 is much better.
"Those in whose judgment I rely, tell me that I fought the battle splendidly and that it was a masterpiece of art.” - George McClellan to his wife describing the battle of Antietam
Davinci
Reactions:
Posts: 3034
Joined: Wed Jul 02, 2008 12:53 pm

Re: Controls2 - Fonts - Courier

Post by Davinci »

What's going on with the left and right edges on the top fold?
You are not going to believe this but the courier was holding the dispatch out of the freaking window in his new GCM truck while racing to deliver it!
I agree with AJ. Fold2 is much better.
OK, My Bad! – How about this one?

davinci
Attachments
fold4.jpg
fold4.jpg (267.71 KiB) Viewed 413 times
The only true logic is that, there is no true logic!
Amish John
Reactions:
Posts: 894
Joined: Thu Jan 24, 2008 8:20 am

Re: Controls2 - Fonts - Courier

Post by Amish John »

The fold4 looks good. Nice work.

Is there a way to change the time display format? For example, currently it's 08:15:23. Any way to change the format to 8:15 AM. Also, will the time always be displayed twice?
Last edited by Amish John on Sun Jul 03, 2011 4:22 am, edited 1 time in total.
You can get farther with a kind word and a gun than you can with a kind word alone.
Davinci
Reactions:
Posts: 3034
Joined: Wed Jul 02, 2008 12:53 pm

Re: Controls2 - Fonts - Courier

Post by Davinci »

Is there a way to change the time display format? For example, currently it's 08:15:23. Any way to change the format to 8:15 AM. Also, will the time always be displayed twice?
OK, before I think that it is Hard-Coded – and you prove me wrong again, I’ll check the files for a listing such as HH:MM:SS.

I will guess that the time cannot be listed as am or pm considering that the games clock use military time.

But, there is also a problem with the games clock – midnight is listed as 24:00, and after that it keeps going to 25:00, 26:00, 27:00, etc…

BTW - thanks for the comments pertaining to the courier message.

davinci
The only true logic is that, there is no true logic!
Post Reply