Author Topic: STRING_SET adjustment or a new variant  (Read 1685 times)

Offline plainab

  • Sasha al'Therin
  • Planewalker
  • *****
  • Posts: 491
    • Infinity Engine Modding
STRING_SET adjustment or a new variant
« on: May 20, 2009, 02:58:47 PM »
Okay, I'm going to ask because the other people in the discussion haven't done so yet. Not that they aren't reluctant to ask, but the one wanting the code has been away from the forums for awhile and hasn't gotten caught up here. So, Miloch, if you see this I've asked for you...

Thread/posts at Spellhold concerning the topic: http://www.shsforums.net/index.php?showtopic=40544&st=0#

Basically it boils down to a desire to do STRING_SET @1 @2 where the first tra number equates to the string text of a previously added mod and the second number is the tra entry for the replacement text string.

To give a working example as I understand it:  Mod A installs dialog and stuff. Mod B also installs dialog and stuff but needs to adjust one or two words in one maybe two strings of Mod A's dialog.  Given the nature of multiple install orders the string reference number for the dialog.tlk is unknown. In this example, multiple languages need to be dealt with. Using a TRA value in both entries will be much easier and simpler because then both entries can be keep together in each language folder.

Thanks in advance for your thoughts.
My working mods:
an AI Party Script for BG2 game engine DOWNLOAD LINK ONLY!
Interactive Tweaks for BG series with some IWD support. DOWNLOAD LINK ONLY!
Rest For 8 Hours an IWD mod
-------------------------------------------
My contributions: BG1Fixpack, BG1Tweaks
On Hold: Solestia an NPC for SOA
-------------------------------------------
My website: http://sasha-altherin.webs.com

Offline the bigg

  • The Avatar of Fighter / Thieves
  • Moderator
  • Planewalker
  • *****
  • Posts: 3804
  • Gender: Male
Re: STRING_SET adjustment or a new variant
« Reply #1 on: May 20, 2009, 07:10:48 PM »
No. STRING_SET already juggles enough different options and features and it doesn't need any more complexity added in. Consider adapting ALTER_TLK to your needs instead.
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 plainab

  • Sasha al'Therin
  • Planewalker
  • *****
  • Posts: 491
    • Infinity Engine Modding
Re: STRING_SET adjustment or a new variant
« Reply #2 on: May 20, 2009, 07:56:19 PM »
Not my needs that need to be met, but okay. I was just interested in hearing your thoughts and suggestions on the matter. I'll pass along the info...
My working mods:
an AI Party Script for BG2 game engine DOWNLOAD LINK ONLY!
Interactive Tweaks for BG series with some IWD support. DOWNLOAD LINK ONLY!
Rest For 8 Hours an IWD mod
-------------------------------------------
My contributions: BG1Fixpack, BG1Tweaks
On Hold: Solestia an NPC for SOA
-------------------------------------------
My website: http://sasha-altherin.webs.com

temujin_

  • Guest
Re: STRING_SET adjustment or a new variant
« Reply #3 on: May 20, 2009, 10:47:51 PM »
Taimon's approach is the most interesting, and the best way to go about doing this.  Clever mofo.

Offline Taimon

  • Planewalker
  • *****
  • Posts: 328
Re: STRING_SET adjustment or a new variant
« Reply #4 on: May 22, 2009, 07:13:32 AM »
I've modified STRING_SET_EVALUATE to be more consistent with STRING_SET (i. e. also accept strings as first argument). [see git]
That should get rid of the workaround.

Offline the bigg

  • The Avatar of Fighter / Thieves
  • Moderator
  • Planewalker
  • *****
  • Posts: 3804
  • Gender: Male
Re: STRING_SET adjustment or a new variant
« Reply #5 on: May 22, 2009, 09:25:56 AM »
Merged.
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)?: