OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting Resources Beta Testing & Submission => Topic started by: bardosy on 30 Mar 2007, 14:46:24

Title: makeStringtable utility (OBSOLETE)
Post by: bardosy on 30 Mar 2007, 14:46:24
EDITORS DEPOT STAFF NOTE: This resource is no longer under development.  See last post.

I made a makeStringtable utility.

UPDATE!!! 11.05.2007  (v1.021)
EDITORS DEPOT STAFF NOTE: This resource is no longer under development.  See last post for details.

Description: If you are a mission designer for ArmA/OFP, you usually make sqs/sqf files. And these files you use TitleText and sideChat commands for text. It's very easy when you're designing a mission, but later - when mission done - you must collect the texts into a stringtable.csv
This utility make this work.

1., Sweep your mission folder for sqs/sqf files
2., and get the TitleText and sideChat commands
3., extract your text from these commands
4., change this text with   localize "STR_xx" and append a new line to the stringtable.csv


This is a consol aplication (no woindows/frontend).
Required: Java Runtime Environment


Usage:
makestringtable workfolder
The parameter is a folder path, where your sqs and sqf files are.

E.g:
makestringtable c:\Arma\missions\mymission
or
makestringtable "c:\Documents and settings\Name\Arma\missions\mymission"


DOWNLOAD (http://lacko.pcdome.hu/ArmA/makeStringtable.zip)


KNOWN BUG(S):
1., In script files only one Titletext or sideChat is in one line! (Multiple string commands prohibited)
Title: Re: makeStringtable utility
Post by: bardosy on 04 Apr 2007, 09:08:39
I have a few questions:

1., Is there anybody who use stringtable.csv for missions? And everybody write directly into stringtable.csv?
2., What type of commands are you use for texts? TitleText, sideChat...? And what else?
3., Java Environment is not a usual request? (Generally I didn't like if a tool request any environment, like .NET)
Title: Re: makeStringtable utility
Post by: Cheetah on 04 Apr 2007, 09:26:04
Yep, I write them directly into the stringtable, because I want to write them only once. Find it frustrating to spent too much time and it's not too hard to do in my opinion. Most of my texts are used in sideRadio, say and playSound, don't know if you look for them in your utility?

Anyway, I don't have the Java Environment or well I think I don't have it but as I write them directly into the stringtable I don't need it either. Wouldn't it be possible to export the file so that you don't need a Java environment, just a quick executable or something to run, like the dePBO stuff?
Title: Re: makeStringtable utility
Post by: bardosy on 04 Apr 2007, 09:52:14
Thanks cheetah for your answers...

I made this utility to me ;) because I usually write the text into sqs and sqf files and when mission is done, I extract the texts from scripts to stringtable manually. So I made it to me, but I thought it's a good idea to share it.

1., When you make a cutscene (intro/outro), is not very hard to know witch line is witch text it you see onli localize STR_23 ??? :) I like to see the texts in the designing time.
2., sideRadio, say and playSound commands is not text commands, but voice commands. I used them AFTER voiceover procedure.
3., I had no too much time for made this util, so I used my current "real job" environment (java).
Title: Re: makeStringtable utility
Post by: bardosy on 11 Apr 2007, 14:46:41
First post updated!!!


The utility become EXE. (you can run it without java).
Title: Re: makeStringtable utility
Post by: bardosy on 10 May 2007, 15:37:02
first post updated
Title: Re: makeStringtable utility
Post by: hoz on 05 Sep 2007, 14:52:23
I tried to use this tool, I even installed the sun java environment. But when I run the util it says I no Java Env. Is it possible to provide a link to the java stuff I need to make it work?
Title: Re: makeStringtable utility
Post by: MattiusRochelle on 05 Sep 2007, 15:14:42
When i run this tool it starts and then just dissapears instantly. Who no error  :(
Title: Re: makeStringtable utility
Post by: hoz on 05 Sep 2007, 15:28:49
You need to run it from the CLI
Title: Re: makeStringtable utility
Post by: bardosy on 07 Sep 2007, 09:03:06
Mattius:

1., Do you have Java Environment? (JRE)
2., If you run it in a Command Line Window, you can check the error/info messages. (It's a command line application without windows)

Title: Re: makeStringtable utility
Post by: hoz on 12 Sep 2007, 17:52:10
I have the JRE but I can't seem to make this app work.
Title: Re: makeStringtable utility
Post by: bardosy on 21 Sep 2007, 11:27:49
Hi hoz!

Quote
I have the JRE but I can't seem to make this app work.

Could you run it in a consol? Did you get error message or nothing?

I was confused with the jar2exe utilities... And when I did this last version, I made this exe (but needed the JRE). But maybe publish the jar file could be better...    :confused: ???  I don't know...


Title: Re: makeStringtable utility
Post by: Mandoble on 21 Sep 2007, 14:02:29
Any plan to make it Java-less  :whistle: ?
Title: Re: makeStringtable utility
Post by: bardosy on 21 Sep 2007, 14:35:24
Yeah... Maybe...
Well, I'm thinking on a plan....  :)
Because it's sux. But I'm not sure, anybody want to use this tool. And recode it in a non-java language is resource (time) needed process And I don't want waste it, if only me use it (because I could/can use it with java too) ;)
Title: Re: makeStringtable utility
Post by: Mandoble on 21 Sep 2007, 15:48:32
Well, IMO a working make string table based on current radio, title and cut text would be an outstanding tool. The only problem I see there is the java requirements.
Title: Re: makeStringtable utility (OBSOLETE)
Post by: bardosy on 07 Nov 2007, 07:30:51
Hi all,

when I noticed I have no time and inspiration do this utility in a windows oriented language, I contacted with Chris (the designer of ArmA Edit) and adviced him to develop this feature into his Editor. And he did it! If yoy download the newest version of this editor, you can found this feature (extract the strings to a CSV) under the Tool menu.