Stunts Forum

Stunts - the Game => Stunts Chat => Topic started by: GTAManRCR on March 08, 2021, 09:41:55 AM

Title: Hungarian translation of Stunts
Post by: GTAManRCR on March 08, 2021, 09:41:55 AM
Hello pipsqueaks! Let me introduce you the Hungarian translated version of Stunts made by me with dstien's Stressed tool
Download link: https://drive.google.com/file/d/1qLYxHv3zHXyeI2XxDrJdNEw7O7TNwYI3/view?usp=sharing

Also attached here for good
2 years later, grammar and other issues were fixed
Title: Re: Hungarian translation of Stunts
Post by: Daniel3D on March 08, 2021, 09:57:28 AM
Do you have a spreadsheet of the translation per file?
We could make more translations easy that way..
Just give someone the spreadsheet and change the text..
Title: Re: Hungarian translation of Stunts
Post by: GTAManRCR on March 08, 2021, 10:23:39 AM
Alright! So OPPx.RES/PRE contains the opponent text
CARxxxx.RES contains car text
MAIN.RES contains the game's main text
MISC.RES contains the miscellaneous text
GAME.RES contains the in-game menu text (While racing) but beware! Only use the new Stressed build with this, because the older Stressed will make it corrupted
TEDIT.RES contains the track/terrain editor text (Use new Stressed only)
SDMSEL.VSH contains the main menu text (Car, opponent, Let's drive, track, options) you have to export this image and edit with GIMP (Better than MS Paint)
SDTITL.VSH contains the title screen (BB Software presents, Stunts made by...)

The font on the title screen, and main menu screen is Pixolde as it's free, and pretty much similar to Stunts' default font https://www.dafont.com/pixolde.font
Title: Re: Hungarian translation of Stunts
Post by: GTAManRCR on March 08, 2021, 10:24:47 AM
Quote from: Daniel3D on March 08, 2021, 09:57:28 AM
Just give someone the spreadsheet and change the text..

But if you want to edit these, open them with Stressed. Don't use hex editors! They'll corrupt the game files!
Title: Re: Hungarian translation of Stunts
Post by: Ryoma on March 08, 2021, 10:30:58 AM
Quote from: GTAMan18 on March 08, 2021, 10:23:39 AM
GAME.RES contains the in-game menu text (While racing) but beware! Only use the new Stressed build with this, because the older Stressed will make it corrupted

Where is it ?

Nice job

Kosy
Title: Re: Hungarian translation of Stunts
Post by: GTAManRCR on March 08, 2021, 10:42:00 AM
In Stunts' main directory. If you find GAME.PRE don't be surprised! These files are packed by default, and Stressed will unpack them. Don't save as PRE, otherwise the game will try to decompress the uncompressed file, and will crash
Title: Re: Hungarian translation of Stunts
Post by: GTAManRCR on March 08, 2021, 11:10:31 AM
Quote from: Ryoma on March 08, 2021, 10:30:58 AM
Where is it ?

If you ask for the new Stressed, look here: https://bitbucket.org/duplode/gameformats/downloads/stressed-20210307-windows-x86_64.zip
Title: Re: Hungarian translation of Stunts
Post by: GTAManRCR on March 08, 2021, 04:26:03 PM
Had a little bit modification, for example:
Instead of "Megdöntötted a saját id?det -> You've beaten your own time"
Now it says "Felkerültél a listára -> You're on the list"

Which I think is better, but also removed the shortenings of words, for example
Vissza a visszaj.-hoz
is now
Visszatérés a visszajátszáshoz

Without accents of course as the game won't show them
Here, take a look at some screenshots
Title: Re: Hungarian translation of Stunts
Post by: Daniel3D on March 11, 2021, 08:17:25 AM
Quote from: GTAMan18 on March 08, 2021, 10:23:39 AM
The font on the title screen, and main menu screen is Pixolde as it's free, and pretty much similar to Stunts' default font https://www.dafont.com/pixolde.font
I manually recreated one of the 3 fonts of stunts
(The one used in the menu's) to aid in edit graphics.
Title: Re: Hungarian translation of Stunts
Post by: GTAManRCR on March 11, 2021, 08:41:00 AM
Very good recreation, dude! Despite the original Stunts font type doesn't support accents, why don't you add them? It's very easy. After copying the corresponding character, draw the accents over them, as Hungarian language, and many others contains accented letters
Title: Re: Hungarian translation of Stunts
Post by: Daniel3D on March 11, 2021, 09:01:57 AM
I drew them pixel by pixel and used a simple web editor for this purpose. It didn't contain the accents.
So I couldn't.
I am working on a more elaborate version. But it will take time. That editor is full ASCII. 127 or 254 characters 8x8 pixel grits I have to set manually.
It's the only good one I could find..
Title: Re: Hungarian translation of Stunts
Post by: GTAManRCR on March 11, 2021, 09:05:55 AM
FNT to TTF conversion?
That's why I used Pixolde font, because it containts accented letters. That's why the main menu contains "Autó" "Ellenfél" "Vezetés" "Pálya"
Title: Re: Hungarian translation of Stunts
Post by: Daniel3D on March 11, 2021, 11:16:02 AM
Quote from: GTAMan18 on March 11, 2021, 09:05:55 AM
FNT to TTF conversion?
That's why I used Pixolde font, because it containts accented letters. That's why the main menu contains "Autó" "Ellenfél" "Vezetés" "Pálya"
Pixolde font is different from the original Stunts font.
But close. I've found an other and a different editor so I can alter an existing font to the Stunts style with all accents.
Title: Re: Hungarian translation of Stunts
Post by: GTAManRCR on March 11, 2021, 11:27:32 AM
It must be a very good software then
Title: Re: Hungarian translation of Stunts
Post by: Daniel3D on March 17, 2021, 06:43:08 AM
Quote from: GTAMan18 on March 11, 2021, 08:41:00 AM
Very good recreation, dude! Despite the original Stunts font type doesn't support accents, why don't you add them? It's very easy. After copying the corresponding character, draw the accents over them, as Hungarian language, and many others contains accented letters
I can't add accents. There's not enough room in the font bitmap to add it and preserve the font.
It is probably possible to change the font in Stunts and but the engine will most likely ignore it because it's built simple and fast. I don't think it supports accents at all.
Outside of stunts it should be possible. I am working on a better font file.
Title: Re: Hungarian translation of Stunts
Post by: Cas on March 17, 2021, 06:53:01 PM
Stunts fonts, by looking at the files inside, very clearly support 256 characters, but only use a bunch for basic ASCII. It seems to me that it's perfectly possible to add composite characters that can later be used in the translation to properly display diacritics. The game code doesn't have to do anything different to handle the extra characters, so it should work. There are, however, a few bytes in the font header that I don't fully understand, but none of them seems to be anything sensitive such as file length, number of characters in the font, etc.

There are three font files coming with Stunts: FONTDEF is the font used for the text in menus and dialog boxes; FONTN is used for the scoreboard text and the car specs in the showroom; finally, FONTLED contains the digits used in the replay menu panel. The first two include all basic letters, numbers and punctuation, whereas the latter only provides numbers. Nevertheless, all of them have 256 slots.

Format description:
The file format begins with a header that's about 40 bytes long (not sure exactly what the length is, because I just made a quick look, but I can easily find out), I don't know what these bytes do, but most are zero. After that, comes the index region, measuring 512 bytes. Each word there is a zero-based pointer relative to the beginning of the file to the position of the corresponding character from 0 to 255 in code-point. The code points are typically unordered and if read in sequence, they would not coincide with the ASCII ordering, so following the indexes is important. On the other hand, there isn't any space between the contents. Pointers to unused code points have a zero (they point to the beginning of the file, but it's understood they're supposed to be null). Data appears to begin right after the index list. FONTDEF and FONTN have their character data start with a byte that indicates the individual character width in pixels. This doesn't happen with FONTLED. I guess there can be one of the bytes in the header telling how this should be handled, but having only three fonts, we can consider this an individual characteristic and leave the headers alone. If character width is larger than 8, two bytes follow containing the pixel values (on or off) in its bits. Read as a words, pixel positions grow to the left. If the width is up to 8, only one byte is issued per row and one could assume more bytes would be issued if the width were longer than 16, but there aren't any characters that wide. Height appears to be always 8, surely specified in the header. The character widths only contain the glyphs themselves with no spacing, so maybe spacing is also specified in the header.
Title: Re: Hungarian translation of Stunts
Post by: Daniel3D on March 17, 2021, 08:38:29 PM
Then there is still not enough room in the uppercase characters to add accents, but in the lower case it should be possible. They need the full upper 7 pixels or all 8 in some cases.
Title: Re: Hungarian translation of Stunts
Post by: Cas on March 18, 2021, 06:03:33 AM
The good thing is that Stunts adjusts menus to the height of fonts. I have even tried it with a 16 pixel high font. So a taller font can be used easily.
Title: Re: Hungarian translation of Stunts
Post by: GTAManRCR on March 30, 2021, 03:18:19 PM
Now it has accent support too. If you understand this language, the read the README.TXT (OLVASSEL in Hungarian). If not, then use some translator software
Some screenshots
Title: Re: Hungarian translation of Stunts
Post by: Cas on March 30, 2021, 10:53:38 PM
Glad to have been able to help! :)
Title: Re: Hungarian translation of Stunts
Post by: GTAManRCR on March 31, 2021, 08:17:51 AM
Such an amazing work you did