Posted: Mon Feb 19, 2007 8:40 pm Post subject:
OS Font Editor
Subject description: It's about damn time.
Heck, it's almost been a decade since RA2 came out and the only people who managed to edit the game font were the AlliesRevenge dudes (afaik).
The only project that seemed to be serious was that by Siberian GRemlin, but that was for RA1 and besides it's cancelled.
So here you are, a tool to edit RA2's game.fnt!
This is some crappy WIP version. The program's functionality is complete (for RA2's game.fnt), but it looks awful and besides I want it to support more formats (there are two different formats in the RA2 mixs, fonT and FoNt, I will code stuff for FoNt pretty soon, right now I'm tired).
So I'd really appreciate it if somebody could upload the TS font file so I can create a format breakdown and make this tool support it.
This version only reads the first 512 characters out of the file and doesn't display the first 31 for editing (they aren't readable anyway). Actually, there are like thousands (chinese and stuff... I found no Cyrillic or Greek though which surprised me).
The first 512 should be all you need.
The program explains itself.
Just note that the "Save" button is for the character you're currently editing. To save the whole file, you gotta go File -> Save...
I didn't get to add a toolbar or something yet.
So just pull out game.fnt out of your RA2 mixs, put it into the RA2 dir and edit it.
And please somebody test it for TS, maybe the format's the same.
This will be open source with v1.00 which should still take a while
And beware: I made it in VB6 'cause I hate Delphi.
There you go.
About TS... I couldnt find a game.fnt... but with a little looking it looks like the text in TS is based off shp's and pcx's... take a look at files in the zip. But i did add some .fnt files i found...
you should make something that will convert any installed windows truetype fonts to these game font bitmaps at the right size etc all in one go.
if you figure out how to do that then please let me know how because i've been trying to do that for my program but all i managed to do so far is get it to draw the fonts on screen but not onto a texture.
btw can these game fonts have multicolors and antialiasing? QUICK_EDIT
The truetype stuff is one of the aims of course
But first I want the program to support as many formats as possible.
Converting can be done afterwards.
Colors and AA aren't possible with the RA2 fnt files, because the characters are 24x16 monochrome bitmaps (one bit per pixel).
Oh and thanks MadHQ, I'll have a look at them
EDIT:
Argh, seems the TS formats are entirely different.
Gotta reinstall TS then <.< QUICK_EDIT
I don't know the Unicode IDs for Cyrillic letters.
But among the first 0x7FFF, there are none.
Why welcome back? I've never been gone
I found the program to have a few "problems" which actually aren't any problems, errrm, well:
The letters I (upper case i) and l (lower case L) use the exact same monochrome bitmaps in the file. That means if you edit and save I, you edit l as well, and vice versa.
Besides it seems that the program can't save several letters for a reason I didn't figure yet.
So before I continue working on other formats I should get this one working. QUICK_EDIT
If you have suggestions or ideas for a different icon, add me on MSN and we can talk there. The actual .ico file is complete, poke me for it. _________________ QUICK_EDIT
The TS fonts are not used for the GUI, as said, they are controlled by PCX files. The TS fnt's are used for the ingame things and the "score" screen you get when you win/surrender a skirmish. And yes, the TS fnt's are different from the RA2 ones. _________________ QUICK_EDIT
I found the program to have a few "problems" which actually aren't any problems, errrm, well:
The letters I (upper case i) and l (lower case L) use the exact same monochrome bitmaps in the file. That means if you edit and save I, you edit l as well, and vice versa.
Besides it seems that the program can't save several letters for a reason I didn't figure yet.
So before I continue working on other formats I should get this one working.
A simple decision - why not make the upper case I have those pixels on the side, like the letter used here?
Quote:
I don't know the Unicode IDs for Cyrillic letters.
But among the first 0x7FFF, there are none.
Ah, that's too bad. But will you try to find them? I think Siberian_GRemlin might give them to you if you ask him. You will have all Slavic people's eternal gratitude (well, modders anyway :p) QUICK_EDIT
I fixed the program, you can now separate letters from others which share the same bitmap.
Also you can now edit all of the 65,536 characters available.
Besides all the saving/loading problems (there are some in 0.01) are resolved as well.
I still have to fix a few things so a second WIP version should come in the next 48 hours.
BTW, there aren't any Cyrillic letters inside game.fnt.
In the exe's internal language list, Russian is not listed, because RA2 was never officially released in Russian.
Well, people can work on a Russian version now
My next post here will contain the updated tool including Icy's logo. Last edited by pd on Wed Feb 21, 2007 8:38 pm; edited 1 time in total QUICK_EDIT
Joined: 22 Aug 2006 Location: somewhere south of the north pole
Posted: Wed Feb 21, 2007 12:07 pm Post subject:
I am sorry (and lazy) but can some upload a freash GAME.fnt? Thank you
BTW: I love the idea of a fnt editor, I will come in handy! _________________ This is a signature Last edited by Dupl3xxx on Fri Feb 23, 2007 1:52 pm; edited 1 time in total QUICK_EDIT
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum