Author Topic: REPLACE and IDS files  (Read 1470 times)

Loriel

  • Guest
REPLACE and IDS files
« on: September 25, 2003, 05:34:48 AM »
Normal people ask questions about how to append to an ids file, but I, for some strange reason, have a compelling urge to screw up my game.  Actually, I am trying to change stats.ids to match the TOB (or perhaps Detectable Spells?) version without replacing it.  APPENDing is no problem, but I ran into something I can't figure out.

In SoA I have:
Code: [Select]
161 SCRIPTINGSTATE6
162 SCRIPTINGSTATE7
163 SCRIPTINGSTATE8
164 SCRIPTINGSTATE9
165 SCRIPTINGSTATE10

In the ToB version:
Code: [Select]
161 WIZARD_SPELL_DEFLECTION
162 WIZARD_SPELL_TURNING
163 WIZARD_PROTECTION_FROM_ENERGY
164 WIZARD_SPELL_TRAP
165 WIZARD_IMPROVED_ALACRITY

I have tried using both REPLACE and REPLACE_TEXTUALLY, but both give me a standard parsing error:
Code: [Select]
[./setup-stats.exe] WeiDU version 137

[SETUP-STATS.TP2] PARSE ERROR at line 6 column 3-9
Near Text: REPLACE
        syntax error

[SETUP-STATS.TP2]  ERROR at line 6 column 3-9
Near Text: REPLACE
        Parsing.Parse_error
ERROR: parsing [SETUP-STATS.TP2]: Parsing.Parse_error
ERROR: problem parsing TP file [SETUP-STATS.TP2]: Parsing.Parse_error

ERROR: Parsing.Parse_error

What am I missing here?

 

Idobek

  • Guest
REPLACE and IDS files
« Reply #1 on: September 25, 2003, 06:13:52 AM »
I was doing the exact same thing the other day and had no problems. Here is the tp2 code I used:
Quote
COPY_EXISTING ~stats.ids~ ~override/stats.ids~
   REPLACE_TEXTUALLY ~SCRIPTINGSTATE6~ ~WIZARD_SPELL_DEFLECTION~
   REPLACE_TEXTUALLY ~SCRIPTINGSTATE7~ ~WIZARD_SPELL_TURNING~
   REPLACE_TEXTUALLY ~SCRIPTINGSTATE8~ ~WIZARD_PROTECTION_FROM_ENERGY~
   REPLACE_TEXTUALLY ~SCRIPTINGSTATE9~ ~WIZARD_SPELL_TRAP~
Oh, it's Detectable Spells that makes the changes.

Idobek

  • Guest
REPLACE and IDS files
« Reply #2 on: September 25, 2003, 07:23:58 AM »
As I wrote the last post I became aware the I am going to want to put in the IDS number as well. I also wondered if this was going to be a problem. So, I ran a little test using this code:
Quote
COPY_EXISTING ~stats.ids~ ~override/stats.ids~
  REPLACE_TEXTUALLY ~161 SCRIPTINGSTATE6~ ~161 WIZARD_SPELL_DEFLECTION~
  REPLACE_TEXTUALLY ~162 SCRIPTINGSTATE7~ ~162 WIZARD_SPELL_TURNING~
  REPLACE_TEXTUALLY ~163 SCRIPTINGSTATE8~ ~164 WIZARD_PROTECTION_FROM_ENERGY~
  REPLACE_TEXTUALLY ~164 SCRIPTINGSTATE9~ ~164 WIZARD_SPELL_TRAP~
It worked fine. Thankfully spaces aren't a problem. I didn't think they would be, but best to check.

Can you post your tp2 code? Error messages don't mean much to me :) . I have tended to notice, though that errors can often be before the command that WeiDU states in the error message. (ie what is before your REPLACE or REPLACE_TEXTUALLY command?)

Loriel

  • Guest
REPLACE and IDS files
« Reply #3 on: September 25, 2003, 04:01:35 PM »
Here's the code I tried - to me it looks exactly like yours, but I'm probably missing something.  At first I thought it might be a problem with the larger tp2 I was doing, so I pruned it down to just this:

Quote
BEGIN ~Update STATS.IDS~
COPY EXISTING ~stats.ids~ ~override/stats.ids~
  REPLACE_TEXTUALLY ~161 SCRIPTINGSTATE6~ ~161 WIZARD_SPELL_DEFLECTION~
  REPLACE_TEXTUALLY ~162 SCRIPTINGSTATE7~ ~162 WIZARD_SPELL_TURNING~
  REPLACE_TEXTUALLY ~163 SCRIPTINGSTATE8~ ~163 WIZARD_PROTECTION_FROM_ENERGY~
  REPLACE_TEXTUALLY ~164 SCRIPTINGSTATE9~ ~164 WIZARD_SPELL_TRAP~
  REPLACE_TEXTUALLY ~165 SCRIPTINGSTATE10~ ~165 WIZARD_IMPROVED_ALACRITY~

No matter how hard I stare at that code, I can't figure out the problem, I just get a headache.  Maybe a fresh pair of eyes could see what I can't.

 

Sim

  • Guest
REPLACE and IDS files
« Reply #4 on: September 25, 2003, 04:07:10 PM »
Your COPY_EXISTING needs an underscore.

Loriel

  • Guest
REPLACE and IDS files
« Reply #5 on: September 26, 2003, 03:27:28 AM »
Now I feel pretty dumb! :rolleyes:

I should take Bioware's advice, and then some:
"While your character does not have to eat, remember that YOU do. We don't want to lose any dedicated players."

I think this would apply to sleep, too.  Thank you and good night!

 

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