OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Knut Erik on 25 Apr 2003, 17:20:51

Title: StringTable.csv
Post by: Knut Erik on 25 Apr 2003, 17:20:51
Okay people. I have a problem that inclues the "StringTable.csv" file..

I know how to add Id's and sutch, but when I add text that needs commas, like : "Hi, I'm Joe" I just gets the text "Hi" in the screen!  >:(

Is there a way to solve this, or have BIS not included any commas!
Title: Re:StringTable.csv
Post by: toadlife on 25 Apr 2003, 22:29:31
YOu need to put quotes around the text in your stringtable file. THe game sees the comma and things it's the end of the line.

Code: [Select]
"LANGUAGE","English","Comment",
"STRM_hello","Hello, my name is bob.","bob talking",
Title: Re:StringTable.csv
Post by: Knut Erik on 26 Apr 2003, 01:11:29
Thanks a LOT toadlife !!  :D ;)

You are the best  :-*

*Topic opened again*

Unfourtanly I can't get it to work. When I create quotes arround, nothing appeares!

First my description.ext file :

Code: [Select]
class CfgSounds
{
   sounds[] =
   {
Officer1,Officer2,Officer3
   };


   class Officer1
   {
      name = "Officer1";
      sound[] = {"Officer1.ogg", db-0, 1.0};
      titles[] =
      {
         0, $STRM_Officer1,
      };
   };
   class Officer2
   {
      name = "Officer2";
      sound[] = {"Officer2.ogg", db-0, 1.0};
      titles[] =
      {
         0, $STRM_Officer2,
      };
   };
   class Officer3
   {
      name = "Officer3";
      sound[] = {"Officer3.ogg", db-0, 1.0};
      titles[] =
      {
         0, $STRM_Officer3,
      };
   };
};


And then my stringtable.csv file :

Code: [Select]
LANGUAGE,English,Comment,

STRM_Officer1,"Okay, Joe. This day could get pritty hot. We're going to strike four Russian bases",

STRM_Officer2,"The base in Le Port, two docks and a small outpost.",

STRM_Officer3,"But, let's get down to the mission spesific shall we?",
Title: Re:StringTable.csv
Post by: toadlife on 26 Apr 2003, 02:41:07
Strange..everything looks good.   ??? ??? ??? ???

Are you editing your strintable file with a text editor or excell type program?
Title: Re:StringTable.csv
Post by: Knut Erik on 26 Apr 2003, 11:52:08
Exel...
Title: Re:StringTable.csv
Post by: toadlife on 26 Apr 2003, 12:15:17
try opening it up with a text editor instead of excell. Excewll type programs can be good for editing stringtables, but they can screw them up too.

I used openoffice calc (free version of Excel) to do large stringtables for Operation Lojack (70 lines and 5 languages!).
Title: Re:StringTable.csv
Post by: Knut Erik on 26 Apr 2003, 13:15:22
Will do !
Thanks for your help so far  :D
Title: Re:StringTable.csv
Post by: Knut Erik on 26 Apr 2003, 23:48:46
I MADE IT WOOOOOOOORK!!! WORK WORK WOOOOORK!!!
 ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D

Had to edit it in notepad exept of exel...

Thank for your help toadlife. I know I couldn't have done it with out you!

Topic solved and locked for the second time, but now for good (HopeFully)