Author Topic: ALTER_TRANS Tutorial slightly off  (Read 2435 times)

Offline Qwinn

  • Planewalker
  • *****
  • Posts: 111
ALTER_TRANS Tutorial slightly off
« on: April 19, 2008, 11:34:50 AM »
First, let me say that WeiDU is an absolutely -awesome- tool, I've been modding my brains out with it after I finally grokked it a few days ago, and it really is an amazing tool, thanks so much to all for developing it.  And I very much plan on making it up to the modding community :)  For those who don't know already... if you were planning on running through Planescape Torment any time soon... hold off for another month or two :)

Anyways - on to my point.  Took me a bit to figure out, but I believe I've detected an error in the WeiDU documentation, specifically the ALTER_TRANS tutorial.

It says these are some options::

# REPLY: The playerís reply, if any. i.e. "REPLY" ~REPLY #57922~
# JOURNAL: Can add or change the journal entry. i.e. "JOURNAL" ~JOURNAL @100~
# SOLVED_JOURNAL: Same as JOURNAL, except for entries into the solved section of the journal.
# UNSOLVED_JOURNAL: Same as JOURNAL, except for entries into the unsolved section of the journal.
# EPILOGUE: Specifies where the transition leads to (GOTO, EXTERN, or EXIT) i.e. EPILOGUE" ~EXTERN BVICONI 0~
# FLAGS: Used to set transition flags manually, though I canít imagine why one would do this.


The examples for JOURNAL and REPLY, at least, are incorrect.  The words REPLY and JOURNAL should not be repeated within the tildes, and it will not function if you do so.  Working examples would be:

# REPLY: The playerís reply, if any. i.e. "REPLY" ~@57922~
# JOURNAL: Can add or change the journal entry. i.e. "JOURNAL" ~@100~

Took me a pretty good while to figure that out, heh.

(I'm doing PS:T which doesn't have translations, so I need to use @'s... I suspect it would need to be # signs for translations though)

Anyways, thanks all for the great work!  (sinks back into weidu oblivion)

Qwinn
« Last Edit: April 19, 2008, 11:50:35 AM by Qwinn »

Offline the bigg

  • The Avatar of Fighter / Thieves
  • Moderator
  • Planewalker
  • *****
  • Posts: 3804
  • Gender: Male
Re: ALTER_TRANS Tutorial slightly off
« Reply #1 on: April 19, 2008, 12:07:35 PM »
OK, thanks.
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 Qwinn

  • Planewalker
  • *****
  • Posts: 111
Re: ALTER_TRANS Tutorial slightly off
« Reply #2 on: April 21, 2008, 07:52:39 AM »
No thanks needed :)

If I may ask - is there any way to get that statement to remove a JOURNAL entry from a response altogether?  If I do:  BEGIN "JOURNAL" ~~ END, I get a new dialog.tlk entry that's blank, and a journal entry with nothing after it in the journal.

Would careful use of FLAGS do it, maybe?

Qwinn
« Last Edit: April 21, 2008, 08:02:31 AM by Qwinn »

Offline the bigg

  • The Avatar of Fighter / Thieves
  • Moderator
  • Planewalker
  • *****
  • Posts: 3804
  • Gender: Male
Re: ALTER_TRANS Tutorial slightly off
« Reply #3 on: April 21, 2008, 09:24:43 AM »
I wouldn't work on FLAGS if my life depended on it. I'll make it so that *_JOURNAL and REPLY on an empty string removes the feature.
« Last Edit: April 21, 2008, 09:26:25 AM by the bigg »
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 Qwinn

  • Planewalker
  • *****
  • Posts: 111
Re: ALTER_TRANS Tutorial slightly off
« Reply #4 on: April 21, 2008, 10:55:12 AM »
Awesome!  Thanks!

Qwinn

Offline erebusant

  • Planewalker
  • *****
  • Posts: 20
Re: ALTER_TRANS Tutorial slightly off
« Reply #5 on: May 18, 2008, 02:28:36 PM »
First, let me say that WeiDU is an absolutely -awesome- tool, I've been modding my brains out with it after I finally grokked it a few days ago, and it really is an amazing tool, thanks so much to all for developing it.  And I very much plan on making it up to the modding community :)  For those who don't know already... if you were planning on running through Planescape Torment any time soon... hold off for another month or two :)

Anyways - on to my point.  Took me a bit to figure out, but I believe I've detected an error in the WeiDU documentation, specifically the ALTER_TRANS tutorial.

It says these are some options::

# REPLY: The playerís reply, if any. i.e. "REPLY" ~REPLY #57922~
# JOURNAL: Can add or change the journal entry. i.e. "JOURNAL" ~JOURNAL @100~
# SOLVED_JOURNAL: Same as JOURNAL, except for entries into the solved section of the journal.
# UNSOLVED_JOURNAL: Same as JOURNAL, except for entries into the unsolved section of the journal.
# EPILOGUE: Specifies where the transition leads to (GOTO, EXTERN, or EXIT) i.e. EPILOGUE" ~EXTERN BVICONI 0~
# FLAGS: Used to set transition flags manually, though I canít imagine why one would do this.


The examples for JOURNAL and REPLY, at least, are incorrect.  The words REPLY and JOURNAL should not be repeated within the tildes, and it will not function if you do so.  Working examples would be:

# REPLY: The playerís reply, if any. i.e. "REPLY" ~@57922~
# JOURNAL: Can add or change the journal entry. i.e. "JOURNAL" ~@100~

Took me a pretty good while to figure that out, heh.

(I'm doing PS:T which doesn't have translations, so I need to use @'s... I suspect it would need to be # signs for translations though)

Anyways, thanks all for the great work!  (sinks back into weidu oblivion)

Qwinn
So after a bit more experimentation using WeiDU v206 it appears the proper syntax for ALTER_TRANS uses a combination of @ and # to call a string from the same .tra file. My .d code that patches properly is as follows:
Code: [Select]
REPLACE_SAY JAHEIRAJ 358 @101

REPLACE_SAY KELDORJ 100 @102
REPLACE_SAY KELDORJ 101 @104

REPLACE_SAY EDWINJ 43 @103
REPLACE_SAY EDWINJ 44 @105

REPLACE_SAY MINSCJ 98 @106


REPLACE_SAY FIRKRA02 6 @107
ALTER_TRANS FIRKRA02 BEGIN 21 END BEGIN 0 END BEGIN ~UNSOLVED_JOURNAL~ ~#108~ END

ALTER_TRANS FIRKRA02 BEGIN 36 END BEGIN 2 END BEGIN ~REPLY~ ~#109~ END

 

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)?: