Jump to content

Error installing arcane spell pack


Recommended Posts

Posted (edited)

EDIT: i converted the debug file to a .docx file and was under 1000kB.  I uploaded it here.

Edit 2: I installed the arcane spell pack on a fresh/vanilla installation of BG2EE 2.6.6.0.  Is there a way to determine which mod I already have installed that might be causing this IWDification install error?

 

I'm installing IWDification to a heavily modded Installation of BG2EE 2.6.6.0.  While installing the arcane spell pack, it's spitting an error at me, saying:

"Error: locating resource for 'copy'

resource  [wizard_conjure_lesser_water_elemental_scroll.itm] not found in key file: [./chitin.key]

The debug file is over 1000kB, so i can't post it here... the following part of the debug file seem significant, so i'll copy/paste it here:

supposed in-game object %WIZARD_CONJURE_LESSER_WATER_ELEMENTAL_SCROLL%.itm is missing, aborting struct_copy operation
Copying and patching 1 file ...

ERROR locating resource for 'COPY'
Resource [%WIZARD_CONJURE_LESSER_WATER_ELEMENTAL_SCROLL%.itm] not found in KEY file:
	[./chitin.key]

This prevents me from installing the arcane spell pack.  Is there a way to fix this or at least skip the spell that won't install properly?

Thank you for the mod, I enjoyed it very much on my previous installation of BG2EE!

 

WeiDU.log

bg2ee arcane spell pack install error.docx

Edited by ImoensPinkHair
Guest morpheus562
Posted

I am receiving the same error on my installs.

Posted

Going through the files, several layers deep in function calls to different library files ... this is the code for what to do if an arcane spell being added already exists and has a scroll:

ACTION_IF VARIABLE_IS_SET "%spell%_SCROLL" && overwrite_scrolls BEGIN
	LAF spl_make_scroll STR_VAR spell_resref="%new_resref%" scroll_resref=EVAL "%%spell%_SCROLL%" END
END // ... and keep going with other stuff

(from iwdspells/lib_move_spell_resources.tph, in the main install_spell_resources function)

Basically, it's supposed to take the existing scroll resource and replace it with an entirely new spell scroll item, because the mod doesn't trust the existing item to have the details right. But if that second layer of EVAL doesn't happen (from the error report, %spell% was evaluated to WIZARD_CONJURE_LESSER_WATER_ELEMENTAL but %WIZARD_CONJURE_LESSER_WATER_ELEMENTAL_SCROLL% wasn't evaluated to a valid resource reference), then it tries to do its thing with a bogus resource reference with a name that's way too long and can't make the file.

At least, that's what it looks like to me. Are there any other references to "%%spell%_scroll%" that might not be getting evaluated deeply enough?

(Note: the "%spell%_SCROLL" variables are defined earlier by running a macro data_scroll_resrefs that checks all existing items.)

Posted
On 5/22/2023 at 7:22 AM, jmerry said:

Going through the files, several layers deep in function calls to different library files ... this is the code for what to do if an arcane spell being added already exists and has a scroll:

ACTION_IF VARIABLE_IS_SET "%spell%_SCROLL" && overwrite_scrolls BEGIN
	LAF spl_make_scroll STR_VAR spell_resref="%new_resref%" scroll_resref=EVAL "%%spell%_SCROLL%" END
END // ... and keep going with other stuff

(from iwdspells/lib_move_spell_resources.tph, in the main install_spell_resources function)

Basically, it's supposed to take the existing scroll resource and replace it with an entirely new spell scroll item, because the mod doesn't trust the existing item to have the details right. But if that second layer of EVAL doesn't happen (from the error report, %spell% was evaluated to WIZARD_CONJURE_LESSER_WATER_ELEMENTAL but %WIZARD_CONJURE_LESSER_WATER_ELEMENTAL_SCROLL% wasn't evaluated to a valid resource reference), then it tries to do its thing with a bogus resource reference with a name that's way too long and can't make the file.

At least, that's what it looks like to me. Are there any other references to "%%spell%_scroll%" that might not be getting evaluated deeply enough?

(Note: the "%spell%_SCROLL" variables are defined earlier by running a macro data_scroll_resrefs that checks all existing items.)

This is exactly what happened to me during my install.  The Water Elemental Scroll error popped up.  I figure it had to do with a conflict with the BG1npcSOA mod.  I'm currently de-installing my mods up the install order so I can get rid of that mod, and then try reinstalling the Arcane pack after.  I'm not crossing my fingers though...

Posted

Sorry I shoulda updated or responded, but i haven't used these forums before and thought i'd be notified when someone posted on this thread.

Anyways, just yesterday I managed to avoid this particular IWDification installation issue when installing the "Trials of the Luremaster" mod AFTER IWDification.

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...