Weidu Help: Traify Not Working
DatBenz
Member Posts: 6
New to Weidu and I'm a bit stuck. I cannot for the life of me get --traify to work properly. I have my .d file and use the command
weidu --traify imoen.d --out imoen-new
It does create the imoen-new.d and imoen-new.tra but it just basically copies the original .d file and the .tra is blank. What am I doing wrong?
weidu --traify imoen.d --out imoen-new
It does create the imoen-new.d and imoen-new.tra but it just basically copies the original .d file and the .tra is blank. What am I doing wrong?
Post edited by DatBenz on
0
Comments
I don't think it is a syntax error, or weidu would give an parse error message. Maybe missing writing permissions in the folder you are in?
I use weidu imoen.dlg to get an imoen.d file in my game directory.
Then I use weidu --traify imoen.d --out imoen-new and it gives me a imoen-new.d still with string numbers and an imoen-new.tra that's completely blank.
Am I using an incorrect source file? You get a .tra file with string references @1 @2 ect when you do it?
The traify command turns literal strings into @ references.
When you decompile imoen.dlg into a .D file, there are no literal strings there. Instead, there are # references, to existing strings in dialog.tlk.
For example, here's an excerpt from a .D file in my own mod (part of "Noober's Game"): Those # references are strings that already exist in the game; I built this .D file by exporting OHBNOOB.DLG with Near Infinity and slightly modifying it. Almost all of the changes I made were simple tweaks to variables, conditions, and actions. The @ reference here is in fact the only @ reference in the entire ~170KB file.
While I built this traified from the start, I could have used WeiDU to automate that. It would have gone from to and a new (English) .tra file consisting of
The other >800 # references in the dialogue file would be untouched. They're already translated, after all - every language the game comes in has versions of those strings. You're not getting anything meaningful out of traify because the file you're testing it on has nothing that needs translation.
Maybe I need to go about this a different way. How can I create .tra files with sequential @ references for various characters? I will potentially need this for every character in the game so I would really rather not do this all manually lol