Jump to content

how to write_long with tra


smeagolheart

Recommended Posts

so something like this works


COPY_EXISTING ~S9HouseRules/sto/s9panver.sto~ ~override/s9panver.sto~

WRITE_LONG 0x0c 25502



How would I


COPY_EXISTING ~S9HouseRules/sto/s9panver.sto~ ~override/s9panver.sto~

WRITE_LONG 0x0c @1200


instead?


I'd like to set the name of my store through TRA. Am I doing it wrong? Well I know I'm doing it wrong but am I also going about it wrong?



I'm trying to make it so when you shop at the store it doesn't show "invalid: 10120" it show's whatever string I set at @1200 as the store title.

Link to comment

What exactly did you wrote in the .tra file ?

 

@1200 = ?????????????

And you did code the .tra to be inserted via languages...

BACKUP ~backup folder~
AUTHOR ~smeagolheart~

LANGUAGE ~English~ ~English~ ~modfolder/English/setup.tra~ //this line !!!
BEGIN ~maincomponent name~ 
Link to comment

The data type stored at that position in the file is a reference to a string in dialog.tlk. You need to add the string to dialog.tlk and write its reference to the file.

 

The most common way to do this is with the SAY command. It is specifically for this purpose.

Link to comment

The data type stored at that position in the file is a reference to a string in dialog.tlk. You need to add the string to dialog.tlk and write its reference to the file.

 

The most common way to do this is with the SAY command. It is specifically for this purpose.

 

@ Jarno Mikkola , @1200 can be anything, that's not a problem. ACtually I'm using 3201 as my reference so I'll update to that..

here's from TRA

@3201 = ~Panver's Magical Tomes~

 

@Mike1072,

 

COPY_EXISTING ~S9HouseRules/sto/s9panver.sto~ ~override/s9panver.sto~
SAY NAME1 @3201

 

This doesn't work, it still shows up as "invalid 120012" or whatever as the store title when you open up the store

 

If you know beforehand the string reference, then it DOES work as this

 

COPY_EXISTING ~S9HouseRules/sto/s9panver.sto~ ~override/s9panver.sto~
WRITE_LONG 0x0c 25502
I'd like to build the string reference from TP2 TRA...
Link to comment
COPY_EXISTING ~S9HouseRules/sto/s9panver.sto~ ~override/s9panver.sto~

SAY NAME1 @3201

 

This doesn't work, it still shows up as "invalid 120012" or whatever as the store title when you open up the store

 

That is the correct command. If it isn't working in-game, something else is to blame.

Link to comment

 

COPY_EXISTING ~S9HouseRules/sto/s9panver.sto~ ~override/s9panver.sto~

SAY NAME1 @3201

 

This doesn't work, it still shows up as "invalid 120012" or whatever as the store title when you open up the store

 

That is the correct command. If it isn't working in-game, something else is to blame.

 

 

 

hmm.. okay.. well I'll try on a clean install..

Link to comment

yes this is for iwd:ee. weidu.conf is set correctly. Heh I've had that problem before and figured out why just now with this fresh install the first time you run weidu it asks you to pick your language. I'm used to english being option 0, in the first weidu run German is 0. Then another menu comes up for the mod and says pick a language to install your mod and then english is 0.

 

Anyway, fresh install, same result. Invalid string in the game. Back to the drawing board...

Link to comment

yes this is for iwd:ee. weidu.conf is set correctly. Heh I've had that problem before and figured out why just now with this fresh install the first time you run weidu it asks you to pick your language. I'm used to english being option 0, in the first weidu run German is 0. Then another menu comes up for the mod and says pick a language to install your mod and then english is 0.

This is because, in the games own configuration files, the foreign languages are arranged alphabetically, and weidu needs to follow the same line to identify the correct .dlg to add strings to. and yes, the Deutsch is before the English. :)

Link to comment

 

yes this is for iwd:ee. weidu.conf is set correctly. Heh I've had that problem before and figured out why just now with this fresh install the first time you run weidu it asks you to pick your language. I'm used to english being option 0, in the first weidu run German is 0. Then another menu comes up for the mod and says pick a language to install your mod and then english is 0.

This is because, in the games own configuration files, the foreign languages are arranged alphabetically, and weidu needs to follow the same line to identify the correct .dlg to add strings to. and yes, the Deutsch is before the English. :)

 

 

That's fine with me just different, there are other places where it's not. If you are used to it being in another place and I missed it, it's 0 elsewhere... But anyway, that wasn't the issue here.

 

I messed with my sto file, deleted all the items in it and set the string to 0 then reinstalled the game, changed around my code, and then something in there fixed it and it's working now.

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...