Author Topic: Appending to CHARSTR.2DA  (Read 1714 times)

Offline Kulyok

  • Global Moderator
  • Planewalker
  • *****
  • Posts: 6250
  • Gender: Female
  • The perfect moment is now.
Appending to CHARSTR.2DA
« on: April 19, 2009, 06:11:39 AM »
I'm going to append five sets of subtitles for my IWD NPC soundsets to CHARSTR.2DA file. (Finally!)

Unfortunately, I'm not sure I know how to do it: the thing is, CHARSTR.2DA records look like

Female_Fighter_1   19743   19744   19747   19749   19750   11644   19751   19752   19753   19754   19756   19757   19758   19759   19760   19761   19762   19763   19764   19765   19766   19767   19768   19769   19770   19772   19774   19775   19776   19777   19778   19779   19782   19789   19790   19791   19797   19798   19799   19800

- a long list of dialog.tlk line references. I don't have line references, obviously, and I probably can't use @100 .tra line references... right? So... I wonder. What should I do?

Offline Kulyok

  • Global Moderator
  • Planewalker
  • *****
  • Posts: 6250
  • Gender: Female
  • The perfect moment is now.
Re: Appending to CHARSTR.2DA
« Reply #1 on: April 19, 2009, 06:20:47 AM »
(tried to find something via search at SHS/G3/PPG - nothing)

Offline Mike1072

  • Planewalker
  • *****
  • Posts: 296
  • Gender: Male
Re: Appending to CHARSTR.2DA
« Reply #2 on: April 19, 2009, 07:26:48 AM »
First, append a line with dummy values in the place of each entry, like 'dummy100', 'dummy101,' ..., then do REPLACE dummy100 @100, REPLACE dummy101 @101, ....

Offline Kulyok

  • Global Moderator
  • Planewalker
  • *****
  • Posts: 6250
  • Gender: Female
  • The perfect moment is now.
Re: Appending to CHARSTR.2DA
« Reply #3 on: April 19, 2009, 07:50:42 AM »
It looks like a solution, thank you. I'm not sure I know how REPLACE works - never had any experience with it, but I'm about to look up the documentation.

EDIT: And it worked. Thank you again!

 

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