Author Topic: Uhh...help? (ALTER_TRANS SOLVED_JOURNAL TRA string problem)  (Read 2556 times)

Offline Wisp

  • Moderator
  • Planewalker
  • *****
  • Posts: 1176
When I try to use ALTER_TRANS to change a SOLVED_JOURNAL entry with a TRA string, I get the following warning
Quote
Warning at src/dc.ml.214
WARNING: @1 taken from setup.tra.

Following the suggestion posted by erebusant e.g. here and using # instead of @ in the .d file, like so
Code: [Select]
"SOLVED_JOURNAL" ~#1~ results in use of tlk string #1 (~No, I'm sorry, none of them sound familiar.~)

This is with WeiDU 207. I had the same, but reversed, problem with 206. Using #1 would result in a warning (identical except for 213 instead of 214) and @1 would result in use of tlk string #1.

When I hard code the entry
Code: [Select]
"SOLVED_JOURNAL" ~Test~ everything installs just fine and a new tlk string is created for the journal entry.

The full snippet of code if it's of any interest
Code: [Select]
APPEND ~%karoug%~
IF WEIGHT #-1 ~KIT(PLAYER1,SHAPESHIFTER)~ THEN BEGIN karougSS1
SAY @0
COPY_TRANS ~%karoug%~ 2
END
END

ALTER_TRANS ~%karoug%~ BEGIN karougSS1 END BEGIN 0 END BEGIN
"SOLVED_JOURNAL" ~Test~
END

Offline the bigg

  • The Avatar of Fighter / Thieves
  • Moderator
  • Planewalker
  • *****
  • Posts: 3804
  • Gender: Male
Re: Uhh...help? (ALTER_TRANS SOLVED_JOURNAL TRA string problem)
« Reply #1 on: June 04, 2008, 05:10:07 PM »
Remove MODDER?
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 Taimon

  • Planewalker
  • *****
  • Posts: 328
Re: Uhh...help? (ALTER_TRANS SOLVED_JOURNAL TRA string problem)
« Reply #2 on: June 04, 2008, 05:20:35 PM »
I fail to see your problem.
Meaning of # and @ in ALTER_TRANS was swapped in v207 (see changelog).

Offline Wisp

  • Moderator
  • Planewalker
  • *****
  • Posts: 1176
Re: Uhh...help? (ALTER_TRANS SOLVED_JOURNAL TRA string problem)
« Reply #3 on: June 04, 2008, 05:26:01 PM »
Commenting out MODDER does indeed make the warning go away, but I still get the journal entry set to @1 from my setup.tra, rather than from the tra file I should get it from. The @0 from the same tra file gets used just fine.

Offline the bigg

  • The Avatar of Fighter / Thieves
  • Moderator
  • Planewalker
  • *****
  • Posts: 3804
  • Gender: Male
Re: Uhh...help? (ALTER_TRANS SOLVED_JOURNAL TRA string problem)
« Reply #4 on: June 04, 2008, 05:26:52 PM »
Are you using USING and/or AUTO_TRA? Does the tra file contain @1?
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 Wisp

  • Moderator
  • Planewalker
  • *****
  • Posts: 1176
Re: Uhh...help? (ALTER_TRANS SOLVED_JOURNAL TRA string problem)
« Reply #5 on: June 04, 2008, 05:30:31 PM »
I'm using just AUTO_TRA and the tra file does have the proper @1 in it.

EDIT: Using USING instead of, or in addition to, AUTO_TRA results in @1 from setup.tra being used as well, in both cases.

Changing the @1 in my karoug.d and karoug.tra into a reference that does not exist in setup.tra (e.g. @20, my setup.tra does not have a @20 reference) results in
Quote
ERROR: No translation provided for @20
ERROR: cannot resolve strings in _KAROUG
ERROR: postprocessing [_KAROUG]: Not_found
Stopping installation because of error.
« Last Edit: June 04, 2008, 06:01:43 PM by Wisp »

Offline the bigg

  • The Avatar of Fighter / Thieves
  • Moderator
  • Planewalker
  • *****
  • Posts: 3804
  • Gender: Male
Re: Uhh...help? (ALTER_TRANS SOLVED_JOURNAL TRA string problem)
« Reply #6 on: June 05, 2008, 12:55:03 PM »
Cannot reproduce.
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 Wisp

  • Moderator
  • Planewalker
  • *****
  • Posts: 1176
Re: Uhh...help? (ALTER_TRANS SOLVED_JOURNAL TRA string problem)
« Reply #7 on: June 05, 2008, 02:08:40 PM »
I guess that would make it a bit difficult to do something about it.
I can reproduce it, and not just with SOLVED_JOURNAL and the same tra, d, tp2, and .exe files, but I guess it's something on my end.
Thanks for taking the time.

Offline the bigg

  • The Avatar of Fighter / Thieves
  • Moderator
  • Planewalker
  • *****
  • Posts: 3804
  • Gender: Male
Re: Uhh...help? (ALTER_TRANS SOLVED_JOURNAL TRA string problem)
« Reply #8 on: June 05, 2008, 02:10:20 PM »
Yeah, I managed to reproduce the tra not loading at all (both @0 and @1 taken from setup.tra), but one being taken from setup.tra and the other from myfile.tra is madness.

Spartaaaaaaaa!!!!
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 Taimon

  • Planewalker
  • *****
  • Posts: 328
Re: Uhh...help? (ALTER_TRANS SOLVED_JOURNAL TRA string problem)
« Reply #9 on: June 06, 2008, 03:18:31 AM »
How about packing the relevant files (tp2,d, tras) in an archive and attaching it to your post?

Offline Wisp

  • Moderator
  • Planewalker
  • *****
  • Posts: 1176
Re: Uhh...help? (ALTER_TRANS SOLVED_JOURNAL TRA string problem)
« Reply #10 on: June 06, 2008, 01:15:07 PM »
I don't see a way for me to add attachments.
I can email it, if there's someone willing to take a look.

Offline Taimon

  • Planewalker
  • *****
  • Posts: 328
Re: Uhh...help? (ALTER_TRANS SOLVED_JOURNAL TRA string problem)
« Reply #11 on: June 06, 2008, 01:50:51 PM »
Sorry, didn't know that uploading attachments is only granted to some people here.
Feel free to mail it to me. (If you can't see my mail address, let me know about it, since I'm not sure if "Hide email from public" also includes registered members.)

Offline Wisp

  • Moderator
  • Planewalker
  • *****
  • Posts: 1176
Re: Uhh...help? (ALTER_TRANS SOLVED_JOURNAL TRA string problem)
« Reply #12 on: June 06, 2008, 02:15:44 PM »
It does include registered members.

Offline the bigg

  • The Avatar of Fighter / Thieves
  • Moderator
  • Planewalker
  • *****
  • Posts: 3804
  • Gender: Male
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 Wisp

  • Moderator
  • Planewalker
  • *****
  • Posts: 1176
Re: Uhh...help? (ALTER_TRANS SOLVED_JOURNAL TRA string problem)
« Reply #14 on: June 06, 2008, 02:56:01 PM »
Mail sent.

Offline the bigg

  • The Avatar of Fighter / Thieves
  • Moderator
  • Planewalker
  • *****
  • Posts: 3804
  • Gender: Male
Re: Uhh...help? (ALTER_TRANS SOLVED_JOURNAL TRA string problem)
« Reply #15 on: June 06, 2008, 05:34:12 PM »
Got it, will look at it ASAP.
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 Taimon

  • Planewalker
  • *****
  • Posts: 328
Re: Uhh...help? (ALTER_TRANS SOLVED_JOURNAL TRA string problem)
« Reply #16 on: June 07, 2008, 01:05:16 AM »
I've PM'ed you my mail address.

Offline Taimon

  • Planewalker
  • *****
  • Posts: 328
Re: Uhh...help? (ALTER_TRANS SOLVED_JOURNAL TRA string problem)
« Reply #17 on: June 09, 2008, 04:27:09 AM »
I can only reproduce ALTER_TRANS using strings from setup.tra instead of the intended .tra file.
It only happened with AUTO_TRA. USING was fine. (However, this may be due to the limited test case.)

The problem is somehow related to the fact that ALTER_TRANS strings aren't resolved during parsing, but in post processing. (top of translation stack is different in those two cases.)

Offline the bigg

  • The Avatar of Fighter / Thieves
  • Moderator
  • Planewalker
  • *****
  • Posts: 3804
  • Gender: Male
Re: Uhh...help? (ALTER_TRANS SOLVED_JOURNAL TRA string problem)
« Reply #18 on: June 10, 2008, 05:25:00 AM »
Fixed. PM me if you want the beta URL to test this in your scenario.
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).

 

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