Jump to content

COPY_EXISTING A Same File in Different Components


Abel

Recommended Posts

Posted

I have a mod with two components.

The first component changes a 2DA. The second component changes it as well.

Each component can be installed separately or together and in that case, I want #2 to remember the changes of #1.

Each component uses the same copy code: COPY_EXISTING ~file.2da~ ~override~

Unfortunately, COPY_EXISTING in #2 doesn't get the modified 2DA in the override folder but acts as if nothing's there and modify the normal game file.

Is it a bug or am I missing something? Any help would be appreciated!

Posted (edited)

Something is off. Weidu does everything sequentially - any changes made to a file are taken into account by any later changes. (With very few exception, like certain changes inside a single patch.)  If you do

COPY_EXISTING ~thac0.2da~ ~override~
  REPLACE_TEXTUALLY ~FIGHTER~ ~FIGHTING_MAN~
BUT_ONLY

COPY_EXISTING ~thac0.2da~ ~override~
  REPLACE_TEXTUALLY ~FIGHTING_MAN~ ~MEAT_SHIELD~
BUT_ONLY

...then the result will be  that you will see "MEAT_SHIELD" in the file.

Edited by subtledoctor
Posted (edited)

Hmm... Thank you for your answer, subtledoctor! I'll give it another look then.

Edit: you're right! Somehow, it now works as expected. I don't know what happened!

Edited by Abel
Posted

It's possible you didn't close out one Weidu process before installing another one. Or you ran the Weidu installer while the game was running but minimized, or while NI was modifying the file, or something like that.

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...