Author Topic: traify-ing question  (Read 19682 times)

Offline the bigg

  • The Avatar of Fighter / Thieves
  • Moderator
  • Planewalker
  • *****
  • Posts: 3804
  • Gender: Male
Re: traify-ing question
« Reply #50 on: May 27, 2008, 05:19:24 PM »
Sorry, do you need the link or not? I'm slow sometimes  :(
Author or Co-Author: WeiDU (http://j.mp/bLtjOn) - Widescreen (http://j.mp/aKAiqG) - Generalized Biffing (http://j.mp/aVgw3U) - Refinements (http://j.mp/bLHoCc) - TB#Tweaks (http://j.mp/ba02Eg) - IWD2Tweaks (http://j.mp/98OFYY) - TB#Characters (http://j.mp/ak8J55) - Traify Tool (http://j.mp/g1Ry9A) - Some mods that I won't mention in public
Maintainer: Semi-Multi Clerics (http://j.mp/9UeIwB) - Nalia Mod (http://j.mp/dng9l0) - Nvidia Fix (http://j.mp/aRWjjg)
Code dumps: Detect custom secondary types (http://j.mp/hVzzXG) - Stutter Investigator (http://j.mp/gdtBn8)

If possible, send diffs, translations and other contributions using Git (http://j.mp/aBZFrq).

jastey*

  • Guest
Re: traify-ing question
« Reply #51 on: May 28, 2008, 03:58:16 AM »
Yes, but don't expect any reports because by the time I'll start using it, it might be officially available.

Offline the bigg

  • The Avatar of Fighter / Thieves
  • Moderator
  • Planewalker
  • *****
  • Posts: 3804
  • Gender: Male
Re: traify-ing question
« Reply #52 on: May 28, 2008, 04:11:07 AM »
Actually, I'm going to release it either today or tomorrow. I'll make it a point to send you the link next time this happens though  :)
Author or Co-Author: WeiDU (http://j.mp/bLtjOn) - Widescreen (http://j.mp/aKAiqG) - Generalized Biffing (http://j.mp/aVgw3U) - Refinements (http://j.mp/bLHoCc) - TB#Tweaks (http://j.mp/ba02Eg) - IWD2Tweaks (http://j.mp/98OFYY) - TB#Characters (http://j.mp/ak8J55) - Traify Tool (http://j.mp/g1Ry9A) - Some mods that I won't mention in public
Maintainer: Semi-Multi Clerics (http://j.mp/9UeIwB) - Nalia Mod (http://j.mp/dng9l0) - Nvidia Fix (http://j.mp/aRWjjg)
Code dumps: Detect custom secondary types (http://j.mp/hVzzXG) - Stutter Investigator (http://j.mp/gdtBn8)

If possible, send diffs, translations and other contributions using Git (http://j.mp/aBZFrq).

Offline jastey

  • Global Moderator
  • Planewalker
  • *****
  • Posts: 1524
  • Gender: Female
Re: traify-ing question
« Reply #53 on: August 01, 2008, 06:10:48 PM »
I guess there is nothing I can do if the tryifying doesn't work because of OUTER_SPRINT syntax like %SOLVED_JOURNAL% that I use for bgqe. Traifying stops with syntax error warning, but also it now deleted the whole content of my .d file, and left me with an empty .d and (also empty) .tra file. (I am working with a copy, so I didn't chose a new name for the trayfied version, but still.)

Offline the bigg

  • The Avatar of Fighter / Thieves
  • Moderator
  • Planewalker
  • *****
  • Posts: 3804
  • Gender: Male
Re: traify-ing question
« Reply #54 on: August 02, 2008, 02:56:44 PM »
Sorry, can't help you there I'm afraid  :(
Author or Co-Author: WeiDU (http://j.mp/bLtjOn) - Widescreen (http://j.mp/aKAiqG) - Generalized Biffing (http://j.mp/aVgw3U) - Refinements (http://j.mp/bLHoCc) - TB#Tweaks (http://j.mp/ba02Eg) - IWD2Tweaks (http://j.mp/98OFYY) - TB#Characters (http://j.mp/ak8J55) - Traify Tool (http://j.mp/g1Ry9A) - Some mods that I won't mention in public
Maintainer: Semi-Multi Clerics (http://j.mp/9UeIwB) - Nalia Mod (http://j.mp/dng9l0) - Nvidia Fix (http://j.mp/aRWjjg)
Code dumps: Detect custom secondary types (http://j.mp/hVzzXG) - Stutter Investigator (http://j.mp/gdtBn8)

If possible, send diffs, translations and other contributions using Git (http://j.mp/aBZFrq).

Offline jastey

  • Global Moderator
  • Planewalker
  • *****
  • Posts: 1524
  • Gender: Female
Re: traify-ing question
« Reply #55 on: August 02, 2008, 02:59:06 PM »
Yes, I meant to start the sentence with "I guess there is nothing you can do...", actually.
I'll try to remember it next time, so I don't have to delete and re-edit the crossengine syntax.

Offline jastey

  • Global Moderator
  • Planewalker
  • *****
  • Posts: 1524
  • Gender: Female
Re: traify-ing question
« Reply #56 on: January 16, 2013, 03:43:51 PM »
because I didn't remember, or it is the same file I left laying around for some time: Same problem again. traify chokes on the cross-platform OUTER_SPRINT difinitions in the %...%. Any way this could be included into the traify progress, now?

Offline Miloch

  • Barbarian
  • Planewalker
  • *****
  • Posts: 1032
  • Gender: Male
Re: traify-ing question
« Reply #57 on: January 20, 2013, 08:50:41 PM »
Not sure if this is the solution, but you might try OUTER_TEXT_SPRINT instead of OUTER_SPRINT. Also, you can generally leave out %...% when defining variables - you only need them when doing variable substitution.

Offline jastey

  • Global Moderator
  • Planewalker
  • *****
  • Posts: 1524
  • Gender: Female
Re: traify-ing question
« Reply #58 on: January 26, 2013, 06:15:35 AM »
OUTER_TEXT_SPRINT has the same problems with tarify if weidu doesn't know what the variables stand vor. Your second command I don't understand: If I use (undefined) variables in a .d weidu will choke, regardless of whether I put them in % or not.

What I meant was that something along the lines of

I_C_T %tutu_var%bg1dlg 4
SAY ~bla~
IF ~~ THEN %SOLVED_JOURNAL% ~bla~ EXIT
END

cannot be traified using weidu, as it will give error messages, plus it leaves an empty .d / .tra combo.

Question to the weidu maintainer8s): Would it be possible to combine traify with the OUTER_SPRINT definitions? Like, including them into the process, so weidu knows what to do with them while traifying?
« Last Edit: January 26, 2013, 06:17:45 AM by jastey »

Offline Wisp

  • Moderator
  • Planewalker
  • *****
  • Posts: 1176
Re: traify-ing question
« Reply #59 on: January 26, 2013, 12:59:02 PM »
Question to the weidu maintainer8s): Would it be possible to combine traify with the OUTER_SPRINT definitions? Like, including them into the process, so weidu knows what to do with them while traifying?
I don't think so. traify does its own little thing, with no knowledge of mods and other such things.
Can you solve your problem by installing the mod and calling --trans on the DLG?

Offline jastey

  • Global Moderator
  • Planewalker
  • *****
  • Posts: 1524
  • Gender: Female
Re: traify-ing question
« Reply #60 on: January 26, 2013, 02:37:09 PM »
Quote
--trans   Emit coupled D and TRA files when decompiling a DLG.

Hm, the problem is it has to be a dlg, as it seems. This could work for a mod-npc's dlg, as long as there are no NPC interjections etc. My .d are usually a summation of new mod-npc-dlgs and APPEND (E_B) to existing game dlgs with dialogues between them etc.

But keep them coming, I wasn't aware --trans existed! I should study the weidu readme again carefully. Last time I did that was, well, some time ago.

Offline Miloch

  • Barbarian
  • Planewalker
  • *****
  • Posts: 1032
  • Gender: Male
Re: traify-ing question
« Reply #61 on: January 27, 2013, 01:08:10 PM »
Which causes the error, %tutu_var%bg1dlg or %SOLVED_JOURNAL% or both? Pretty sure I've used such syntax without issue in both cases. I am assuming you double-checked your variables are actually defined.

jastey*

  • Guest
Re: traify-ing question
« Reply #62 on: January 28, 2013, 03:11:32 AM »
Milcoh: If I use weidu to --traify my .d, the OUTER_SPRINT variables are not defined, obviously. Or am I missing something?

Installing the mod goes fine. Traifying doesn't. Are you saying that e.g. %tutu_var% is known by weidu and doesn't lead to an error message upon --traify?

If yes, I didn't come that far. weidu gave some obscure error message (helpful like: syntax error near text: end of error message) when I tried traifying my .d, so I didn't identify which %-% OUTER_SPRINTs make problems.

jastey*

  • Guest
Re: traify-ing question
« Reply #63 on: January 28, 2013, 03:13:39 AM »
Sorry for the spelling error. :(

Offline Miloch

  • Barbarian
  • Planewalker
  • *****
  • Posts: 1032
  • Gender: Male
Re: traify-ing question
« Reply #64 on: January 28, 2013, 01:45:09 PM »
Oh, I see. I forget how I did it but try traifying it with your variables already substituted and then mass replace them with the variables after it's traified.

Offline jastey

  • Global Moderator
  • Planewalker
  • *****
  • Posts: 1524
  • Gender: Female
Re: traify-ing question
« Reply #65 on: January 28, 2013, 03:23:41 PM »
Yes, I did something like that. It's still some pre- and postparation work I'd rather spare.

Offline jastey

  • Global Moderator
  • Planewalker
  • *****
  • Posts: 1524
  • Gender: Female
Re: traify-ing question
« Reply #66 on: February 15, 2014, 09:38:19 AM »
Using weidu v236 the traifying of strings for male and female versions doubles the string number in the .d file. Meaning:

IF ~~ THEN statenumber
SAY ~line for male PC~ ~line for female PC~
IF ~~ THEN EXIT
END

gets traified to

IF ~~ THEN statenumber
SAY @0 @0
IF ~~ THEN EXIT
END

With @0   = ~line for male PC~ ~line for female PC~

Giving an error message upon install because of the doubled line number in the .d file.

Offline Wisp

  • Moderator
  • Planewalker
  • *****
  • Posts: 1176
Re: traify-ing question
« Reply #67 on: February 23, 2014, 04:29:12 AM »
Will fix.

Offline jastey

  • Global Moderator
  • Planewalker
  • *****
  • Posts: 1524
  • Gender: Female
Re: traify-ing question
« Reply #68 on: February 23, 2014, 04:49:04 PM »
Thank you!

Offline jastey

  • Global Moderator
  • Planewalker
  • *****
  • Posts: 1524
  • Gender: Female
Re: traify-ing question
« Reply #69 on: March 08, 2014, 02:48:33 PM »
There has to be a solution to the problem of "traifying a mod that is coded using the "Crossing the great Divide" approach aka OUTER_SPRINT variables". Please! PLEEEASE!

If I try to traify something like
Quote
EXTEND_BOTTOM %tutu_var%SCAR 14
+ ~!Alignment(Player1,19)
!Alignment(Player1,35)
!Alignment(Player1,51)
ReputationGT(Player1,11)~ + ~First, I would like to talk to you some more, Scar.~ + talking_battle
END
weidu chokes at the OUTER_SPRINT variable if I try to traify it. OK, it looks like syntax error, I can understand, so I replaced all "%" with "_PERCENTAGESIGN_". Leading to weidu still choking, at the use of "CD_STATE_NOTVALID" (not in the example) - why? This is not a syntax error, so weidu shouldn't care for traifying purpose. And next it complains that there exists no "_PERCENTAGESIGN_tutu_var_PERCENTAGESIGN_SCAR" dlg in the game. Why? It shouldn't care!
State is, it is impossible to traify a mod that uses OUTER_SPRINT variables, currently.

Would it be possible to let the traify process either use the libs of the mod I want to traify, or let it ignore dlg names and things the mod introduces if they are not (yet) installed?

I do not know how to solve this, without a lot of handwork. (I am talking about a mod with 35 components, btw.)

jastey - sad.  :'(

Offline jastey

  • Global Moderator
  • Planewalker
  • *****
  • Posts: 1524
  • Gender: Female
Re: traify-ing question
« Reply #70 on: March 08, 2014, 03:38:18 PM »
Oh, cool! I installed the mod, replaced the % signs with "__" in the .d for traifying, and now traifying worked without complains.

Supercool! I can manage the replacing and back-replacing. So this seems to be working.

jastey - happy!

Offline Wisp

  • Moderator
  • Planewalker
  • *****
  • Posts: 1176
Re: traify-ing question
« Reply #71 on: March 09, 2014, 04:18:05 AM »
Having the D parser evaluate TP2 variables will not fly, sorry. I'll try to think of something, but I explicitly make no promises about whether something will materialise.

Offline jastey

  • Global Moderator
  • Planewalker
  • *****
  • Posts: 1524
  • Gender: Female
Re: traify-ing question
« Reply #72 on: March 15, 2014, 10:09:21 AM »
I manage with replacing and re-replacing the OUTER_SPRINTs, but if you comeup with something, this would be great.

Offline jastey

  • Global Moderator
  • Planewalker
  • *****
  • Posts: 1524
  • Gender: Female
Re: traify-ing question
« Reply #73 on: March 24, 2014, 05:12:43 PM »
Or maybe I am an idiot and the traify works although weidu gives all sorts of error messages. It just traified a neat .d/.tra pair after giving all sorts of parsing errors. I am confused.

EDIT: It didn't traify because of one OUTER_SPRINT variable (%tutu_var% in connection with a dlg name), whereas other OUTER_SPRINTS ("stand alone" like %IsGabberPlayer1% used as trigger) didn't lead to a stop. I guess it can be explained by the error tolerance of weidu ("do not stop because of non-identified trigger", for example?)
« Last Edit: March 24, 2014, 05:42:12 PM by jastey »

Offline Wisp

  • Moderator
  • Planewalker
  • *****
  • Posts: 1176
Re: traify-ing question
« Reply #74 on: May 24, 2014, 04:46:49 PM »
Using weidu v236 the traifying of strings for male and female versions doubles the string number in the .d file.
Okay, fixed. Due to the extra work of ensuring a correct traification of varied input, --traify now also runs a bit slower (it's perhaps only be noticeable on very big files).

 

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Name: Email:
Verification:
Type the letters shown in the picture
Listen to the letters / Request another image
Type the letters shown in the picture:
What color is grass?:
What is the seventh word in this sentence?:
What is five minus two (use the full word)?: