Home   Help Search Login Register  

Author Topic: Question about stringtable file  (Read 988 times)

0 Members and 1 Guest are viewing this topic.

Offline Hawkins

  • Former Staff
  • ****
  • Team 2-2
Question about stringtable file
« on: 05 Mar 2003, 20:09:24 »
Oke I think this is pretty advanced so... ;D :P Anyways;

Is it possible to make my own callsign with the stringtable without replacing the regular one that come with the game? Like i'd like to make a new stringtable to my missions folder and define a new callsign (instead of Papa_Bear or Base Firedly) for that mission? Possible?

Hawki

Offline toadlife

  • OFPEC Old Skool
  • Former Staff
  • ****
  • Official OFP Editing Center Toad
    • toadlife.net
Re:Question about stringtable file
« Reply #1 on: 05 Mar 2003, 22:28:29 »
On a hunch, I decided to try something, and guess what...IT WORKED! :o. Perhaps someone else has allready figured this out, but I've never seen it anywhere, so here goes:


How to make customized Base/HQ Callsigns in your missions![/size]

Allrighty! Lets say that in your mission, you want "PAPA_BEAR" to be "Mama Bear" instead.

Start with your init.sqs file. At the top, put this:

mamabear = [West, "HQ"]

[West,"HQ"] tells the game to use the name for the entry "STR_CFG_PAPABEAR" in your stringtable.csv file

Here is the game's default entry for "papa_bear":

LANGUAGE,English,French,Italian,Spanish,German,Czech
STR_CFG_PAPABEAR,PAPA_BEAR,PAPA_OURS,PAPÀ_BEAR,PAPÁ OSO,PAPA_BÄR, Tata medved
[/tt]


Now open up your stringtable.csv file and place this line:
STR_CFG_PAPABEAR,"Mama Bear"[/tt]

You can specify other languages by following the example from the official description.ext


After doing the above items, you can now make "Mama Bear" talk on the radio with this command:

mamabear sideradio "myradiomessage"[/tt]

YAY!!  :D
"Whenever you want information on the 'net, don't ask a question; just post a wrong answer." -- Cancer Omega.

Offline Sui

  • Former Staff
  • ****
    • OFPEC
Re:Question about stringtable file
« Reply #2 on: 06 Mar 2003, 00:22:19 »
Ah ha! :D

Good find, Toadlife.

I was mucking around with that a while ago, but couldn't get it to work. I was trying something like this:

com = [West,"Command"]
com sideradio "radio"

And in my stringtable:

STR_CFG_Command,"Command",

But I couldn't get that going. I guess you have to use some of the pre-defined values (HQ, Papabear etc.)...

Offline toadlife

  • OFPEC Old Skool
  • Former Staff
  • ****
  • Official OFP Editing Center Toad
    • toadlife.net
Re:Question about stringtable file
« Reply #3 on: 06 Mar 2003, 00:30:29 »
 ;D I didn't think anyone had figured it out yet.

I'll investigate it a bit more, organize it a little better and post this as a mini-tute in the ed depot.

EDIT: I was just about to release Operation LoJack 2. Now I can make it so in the mission, "mama bear" actually appears as "Mama Bear"
 ;D ;D ;D ;D
« Last Edit: 06 Mar 2003, 00:32:48 by toadlife »
"Whenever you want information on the 'net, don't ask a question; just post a wrong answer." -- Cancer Omega.

Offline Hawkins

  • Former Staff
  • ****
  • Team 2-2
Re:Question about stringtable file
« Reply #4 on: 06 Mar 2003, 07:45:00 »
Yes now this is VERY usefull! :D Excelent find toadlife! ;) ;D :-* And thanks for the help! ;D

Hawki

Offline Hawkins

  • Former Staff
  • ****
  • Team 2-2
Re:Question about stringtable file
« Reply #5 on: 06 Mar 2003, 09:08:29 »
Hmm... The line that ya put in the init file has the name of the unit right? Like in my init:
kingsix = [West, "HQ"]

Well that didn't work. :-\ It says, error reserved variable in expression or sth like that. :o What's the catch?

Hawki

Offline toadlife

  • OFPEC Old Skool
  • Former Staff
  • ****
  • Official OFP Editing Center Toad
    • toadlife.net
Re:Question about stringtable file
« Reply #6 on: 06 Mar 2003, 19:34:55 »
Hmm... The line that ya put in the init file has the name of the unit right? Like in my init:
kingsix = [West, "HQ"]

Well that didn't work. :-\ It says, error reserved variable in expression or sth like that. :o What's the catch?

Hawki

No These callsigns don't refer to any unit on the map. YOu have to put a name that doesn't belong to a unit.

I ?think? maybe you were asking about naming units, which is done with the setidentity command and decription.ext file.
"Whenever you want information on the 'net, don't ask a question; just post a wrong answer." -- Cancer Omega.

Offline Hawkins

  • Former Staff
  • ****
  • Team 2-2
Re:Question about stringtable file
« Reply #7 on: 06 Mar 2003, 19:52:05 »
Didn't mean naming units. ;) I know how that's done but even if I do that the callsign for a base is a bit weird. Your find was just what I was refering to in my first post. ;D Making own base callisigns. :) :-* Thanks for the help Toadlife! :)

Hawki

Offline Hawkins

  • Former Staff
  • ****
  • Team 2-2
Re:Question about stringtable file
« Reply #8 on: 06 Mar 2003, 20:44:34 »
Aww g'deam. :-\ Now I get PAPA_BEAR in the sidechat menu. Here's what I have in the init.sqs and stringtable.csv;

Init.sqs
kingsix = [West, "HQ"]

Stringtable.csv
STR_CFG_PAPABEAR,"King Six"

And to make King Six speak I write:
kingsix sidechat "King Six to all elements you are clear to move in on the objective."
Might this be because I have v1.91? ??? :-\

Hawki
« Last Edit: 06 Mar 2003, 20:46:12 by Hawki »

Offline toadlife

  • OFPEC Old Skool
  • Former Staff
  • ****
  • Official OFP Editing Center Toad
    • toadlife.net
Re:Question about stringtable file
« Reply #9 on: 06 Mar 2003, 22:45:14 »
I don't think you can use it with sidechat. I think it needs to be radio. I could be wrong.

It's now posted as a tute in the ed depot, complete with two example missions.

http://www.ofpec.com/editors/resource_view.php?id=447
"Whenever you want information on the 'net, don't ask a question; just post a wrong answer." -- Cancer Omega.

Offline Hawkins

  • Former Staff
  • ****
  • Team 2-2
Re:Question about stringtable file
« Reply #10 on: 07 Mar 2003, 06:57:46 »
Ok if I can't get it to work now i'm stupid.... :-X :P ;D

Hawki

EDIT: It worked! :o G'daem I had to configure the radio untill I got tje sideradio to work. ;D Those exapmle missions were a very good addition! :) Thanks again for the help. :D This really made my mission a lot better! :)
« Last Edit: 07 Mar 2003, 07:24:36 by Hawki »

Josef

  • Guest
Re:Question about stringtable file
« Reply #11 on: 07 Mar 2003, 15:19:42 »
I cant make the radiomessage to work!

how ???

Offline Hawkins

  • Former Staff
  • ****
  • Team 2-2
Re:Question about stringtable file
« Reply #12 on: 07 Mar 2003, 16:45:18 »
You get a message that says the radio message cannot be found right? It comes up at the middle of the screen? If yes then I had the same thing at the start. I'll tell ya what ya need to do. :) This was in one of the example missions wich came with Toadlife's tutorial:

Just look at the things I have in my stringtable and description files. And then modify them at your will. ;)

Stringtable.csv
LANGUAGE,English,
STR_CFG_PAPABEAR,"King Six",
STRM_KINGSIX,"All units report in.",
I noticed that you only need to configure one STRM. After that you just make him talk with the name you defined in the init.sqs
Description.ext
class CfgRadio
   {
   sounds[] = {kingsix};

      class kingsix
     Â Â Â Â Â Â Â Â Â {
                   name = "kingsix";
                   sound[] = {"kingsix.ogg", db+0, 1.0};
                   title = $STRM_KINGSIX;
     Â Â Â Â Â Â Â Â Â };
   };
You need to configure the radio untill you can get the command to work. Then just make King Six, in your mission whatever you choose :) ,talk the one STRM and after that you just make him talks normaly. He actually talked with sidechat after I had once used the sideradio command. :o

I hope this helped you out. If you want to use something other than King Six (I think you do ;D ) then just replace all the King Six related things with your own. But use Caps Lock and write the words in a row like I did there but just replace the name. You know what I mean. ;) I hope this helped you out! :)

Hawki
« Last Edit: 07 Mar 2003, 16:45:50 by Hawki »

Offline toadlife

  • OFPEC Old Skool
  • Former Staff
  • ****
  • Official OFP Editing Center Toad
    • toadlife.net
Re:Question about stringtable file
« Reply #13 on: 07 Mar 2003, 19:19:39 »
THanks dude. I'll do a more testing and update the tute with that info!  ;)
"Whenever you want information on the 'net, don't ask a question; just post a wrong answer." -- Cancer Omega.

Fishion

  • Guest
Re:Question about stringtable file
« Reply #14 on: 08 Mar 2003, 19:03:24 »
hmmm, now all we need is to be able to change stringtable entries dynamically...

-Fishion