Page 6 of 15

Re: Controls2 - Fonts - Courier

Posted: Sat Jul 02, 2011 9:03 pm
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.

Re: Controls2 - Fonts - Courier

Posted: Sat Jul 02, 2011 11:18 pm
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

Re: Controls2 - Fonts - Courier

Posted: Sat Jul 02, 2011 11:37 pm
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.

Re: Controls2 - Fonts - Courier

Posted: Sun Jul 03, 2011 12:16 am
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

Re: Controls2 - Fonts - Courier

Posted: Sun Jul 03, 2011 2:23 am
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

Re: Controls2 - Fonts - Courier

Posted: Sun Jul 03, 2011 2:53 am
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?

Re: Controls2 - Fonts - Courier

Posted: Sun Jul 03, 2011 3:20 am
by born2see
I agree with AJ. Fold2 is much better.

Re: Controls2 - Fonts - Courier

Posted: Sun Jul 03, 2011 3:43 am
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

Re: Controls2 - Fonts - Courier

Posted: Sun Jul 03, 2011 4:21 am
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?

Re: Controls2 - Fonts - Courier

Posted: Sun Jul 03, 2011 4:46 am
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