Freedom Reborn Archive

Freedom Force Forums => Scripting Forum => Topic started by: M25 on September 18, 2007, 11:01:51 AM

Title: Language Files quick generator
Post by: M25 on September 18, 2007, 11:01:51 AM
If you've used FFEdit to create your language files, you know how slow it is. 

I've uploaded a program to the EZ script wiki to speed up the process considerably.  It can generate the language files in a matter of seconds instead of minutes.  As always, use at your own risk, and back up your language files first.

http://ezscript.wikispaces.com/Mod+Tools

Title: Re: Language Files quick generator
Post by: GGiant on September 20, 2007, 04:55:44 AM
COOL! :cool:
Title: Re: Language Files quick generator
Post by: Lunarman on September 20, 2007, 09:11:50 AM
Nice job! although my language files have always generated in seconds anyway ;P ;)

Title: Re: Language Files quick generator
Post by: Juanjete on September 20, 2007, 11:38:19 AM
Thank you M25
Great Tool!!  :thumbup:
Title: Re: Language Files quick generator
Post by: Epimethee on September 23, 2007, 08:20:41 PM
Nice work, G. :)
Title: Re: Language Files quick generator
Post by: apfarmakis on October 28, 2007, 01:57:44 PM
Has anyone given this a go? I've tried it and the program generated the files and BAK files as well but I didn't see any changes in the captions or strings in game. Could this have something to do with my install being in E: drive (I did set the path in the tool btw).
Title: Re: Language Files quick generator
Post by: Previsionary on October 28, 2007, 02:28:24 PM
yes, i tried it in the final build of my exiles mod. Seems to work fine.
Title: Re: Language Files quick generator
Post by: yell0w_lantern on October 28, 2007, 06:53:00 PM
Thank you, I was trying to find this a few weeks ago.
Title: Re: Language Files quick generator
Post by: M25 on October 29, 2007, 09:23:48 AM
Quote from: apfarmakis on October 28, 2007, 01:57:44 PM
Has anyone given this a go? I've tried it and the program generated the files and BAK files as well but I didn't see any changes in the captions or strings in game. Could this have something to do with my install being in E: drive (I did set the path in the tool btw).


It shouldn't matter where the game is installed as the tool simply works in the directory you give it.  As long as you make the changes to the captions.txt file (and have the commas in the right places) it should work.  Are you using  :ffvstr:?  (It wasn't designed for  :ff:.)
Title: Re: Language Files quick generator
Post by: apfarmakis on October 29, 2007, 11:54:32 AM
Using  :ffvstr: Boy, do I feel  :banghead:
Title: Re: Language Files quick generator
Post by: M25 on October 29, 2007, 01:06:47 PM
It was made for  :ffvstr:.  It should work for you.
Title: Re: Language Files quick generator
Post by: apfarmakis on October 30, 2007, 07:55:30 AM
I tried it again but there was still a problem. I made a new built-in, added info to strings.txt and tried the tool. The characted was added to strings.dat but some of the UI captions (e.g. start new game) and power descriptions (e.g. lightning bolt) appeared with their FFEdit names.
Title: Re: Language Files quick generator
Post by: Previsionary on October 30, 2007, 08:21:02 AM
that usually means there's an error in your strings text and you need to give it a good read through. This is one area where ffedit comes in handy, it actually points out the error.
Title: Re: Language Files quick generator
Post by: apfarmakis on October 30, 2007, 12:05:16 PM
If there were a problem, wouldn't the DATs built by the FFEdit also contain errors?
Title: Re: Language Files quick generator
Post by: Previsionary on October 30, 2007, 12:18:14 PM
Quote from: Previsionary on October 30, 2007, 08:21:02 AM
that usually means there's an error in your strings text and you need to give it a good read through. This is one area where ffedit comes in handy, it actually points out the error.

Bolded for emphasis. Yes, ffedit would contain the error, but it would also point it out before halting it's progress and using the "default" entry names (seen in ffedit). I used M25's program at least 4 different times with no errors so I find it odd that it's giving you errors if it's not an error in your language text files. Of course, it could just as well be a program error.
Title: Re: Language Files quick generator
Post by: M25 on October 31, 2007, 10:31:31 AM
It turns out there is a quirk in strings.dat that I missed.

I've updated the file to version 1.1 (use the link in the first post to get to it).  You might want to start with a fresh copy of strings.dat (either from your ffx3 folder or your data folder), but KEEP your strings.txt file so you don't lose your changes - and then re-run the tool.


For those that are interested, the game only uses lower case entries from strings.dat, even though many things in strings.txt are in upper case.  The tool has been updated to correctly convert to lower case.  You don't need to do anything to your strings.txt - it should all be handled automatically.

Title: Re: Language Files quick generator
Post by: Epimethee on October 31, 2007, 06:04:43 PM
Quote from: M25 on October 31, 2007, 10:31:31 AM
It turns out there is a quirk in strings.dat that I missed. (...) For those that are interested, the game only uses lower case entries from strings.dat, even though many things in strings.txt are in upper case.
Stupid Ép. question #21456828: I take it FFEdit itself does that conversion on the fly?
Title: Re: Language Files quick generator
Post by: stumpy on October 31, 2007, 06:37:33 PM
Yes. All the string tags inside the strings.dat files are lower-case.
Title: Re: Language Files quick generator
Post by: M25 on November 01, 2007, 08:33:12 AM
Quote from: Epimethee on October 31, 2007, 06:04:43 PM
I take it FFEdit itself does that conversion on the fly?

While I don't know the inner workings of FFEdit, it must do the conversion as well.  As stumpy confirmed, all of the keys in strings.dat are in lower case regardless of what is put in strings.txt