Jump to content

Error installing SCSv32 on EET


Recommended Posts

Hello

I've been trying to install SCS v32 on a megamod install, and while every component installs just fine, I get an error on AI improvement part, which then cancels out all tactical and other improvements afterwards, as it needs the base AI improvement part to be installed.

I've tried to install through the mod-setup tool, and manually, both fail at the same point. I've also tried to install the previous v31, which also refuses to install.

I'm a bit at a loss what the problem is, and I hope one of you can point it out to me, what I should do.

I've added the Setup-Stratagems.debug file below. If you need more files or information, do not hesitate to ask :)

SETUP-STRATAGEMS.7z

Link to comment
On 3/18/2019 at 6:40 PM, DavidW said:

If you post your Weidu.log, post the debug in something more easily readable (I.e. zip) and ideally give a quote of the actual error message, I will have a look. 

Sorry I was on holiday, I'm working on it.

This is the error:

"

Copying and patching 1 file ...
[./override/statdesc.2da] loaded, 6841 bytes
[./override/MSECTYPE.2DA] loaded, 559 bytes
[./override/MSECTYPE.2DA] loaded, 559 bytes
Appending to files ...
[./override/MSECTYPE.2DA] loaded, 559 bytes
override/MSECTYPE.2DA copied to stratagems_external/backup/stratagems/1000/MSECTYPE.2DA, 559 bytes
Appended text to [MSECTYPE.2DA]
Added MSECTYPE.2DA SpellShield
Copying and patching 1 file ...
[./override/spwi519.spl] loaded, 5978 bytes
ERROR: cannot convert spellshieldheader_10 or %spellshieldheader_10% to an integer
ERROR: [spwi519.spl] -> [override] Patching Failed (COPY) (Not_found)
Stopping installation because of error.
Stopping installation because of error.
Stopping installation because of error.
Stopping installation because of error.
Stopping installation because of error.
Stopping installation because of error.
Stopping installation because of error.
Stopping installation because of error.

ERROR Installing [Initialise mod (all other components require this)], rolling back to previous state
Unable to Unlink [stratagems_external/backup/stratagems/1000/OTHER.1000]: Unix.Unix_error(1, "unlink", "stratagems_external/backup/stratagems/1000/OTHER.1000")
[stratagems_external/backup/stratagems/1000/UNSETSTR.1000] SET_STRING uninstall info not found
Will uninstall 7907 files for [STRATAGEMS/SETUP-STRATAGEMS.TP2] component 1000.
"

I will link my weidu.log

WeiDU.zip

Link to comment

Thanks.

It looks like some previous mod has done something weird to the ‘Spell Shield’ spell (spwi519.spl), either changing it to something different or (more likely) just breaking it. SCS patches that spell, and it doesn’t anticipate whatever the weirdness is.

Things you can do:

1) if you know how, do a WEIDU change-log on spwi519.spl. (You have hundreds of mods: any of them could have changed it.) Opening a command line in your game directory and typing setup-stratagems — change-log spwi519.spl will probably work.

2) zip and upload spwi519.spl here. (It should be in your override directory.)

3) to be honest, just deleting spwi519.spl from your override will probably let SCS install, though it might have slightly odd side-effects.

Link to comment
21 hours ago, DavidW said:

Thanks.

It looks like some previous mod has done something weird to the ‘Spell Shield’ spell (spwi519.spl), either changing it to something different or (more likely) just breaking it. SCS patches that spell, and it doesn’t anticipate whatever the weirdness is.

Things you can do:

1) if you know how, do a WEIDU change-log on spwi519.spl. (You have hundreds of mods: any of them could have changed it.) Opening a command line in your game directory and typing setup-stratagems — change-log spwi519.spl will probably work.

2) zip and upload spwi519.spl here. (It should be in your override directory.)

3) to be honest, just deleting spwi519.spl from your override will probably let SCS install, though it might have slightly odd side-effects.

I tried to do the command line in 1. however that did nothing, so I will zip and post the file for you.

If you can't find the actual error in there, I will try 3 and just deal with the side-effects - but I am a little worried that whatever mod caused the error, might have corrupted some other spell files too - in which case I would go through the (time consuming) process of reinstalling SCS for nothing :)

 

Either way, I appreciate the help! 


 

SPWI519.zip

Edited by falagar
Link to comment
50 minutes ago, falagar said:

I tried to do the command line in 1.

 

It won't work, cause the forum retyped the

 --change-log 

to be "— change-log"... well, it wasn't the forum, but whatever... and it needs to contain the commanded files .exe -extension cause of things.  DavidW hasn't had to use it like a normal megamodder does, by reading my post about it and then following up from there...

Edited by Jarno Mikkola
Link to comment

OK, this is an incompatibility with one of SubtleDoctor's mods (based on the modder prefix), but I'm not sure which one. There's a fairly radical shift in the structure of Spell Shield which my code doesn't anticipate (and which probably hasn't shown up so far as it's - I take it - on a non-EE install). 

I can probably harden against this sort of thing in future releases but there's no very straightforward workaround - the trick of removing the spell from the override is probably your best bet.

Link to comment

Really?  I noticed this thread, looked at the Weidu.log, and went through various mods that I've worked on looking for SPWI519, and didn't find anything that targets it.  So I figured it could not be that.  I suppose I do have two mods that uniformly patch all spells: the TnB invisibility tweaks adds a global effect that cancels a new invisibility spell (I think this only gets installed if SR is already there); the the TnB Revised Specialists add new ability headers to every wizard spell, with min_level=51, to allow specialists to spontaneously convert any memorized spells into spells from their chosen school. 

Incidentally, neither of those components - nor anything I've worked on in the last year or so - should be installed in the pre-EE games.  Lately I make heavy use of EE-only opcodes (EE 2.0+ opcodes, in fact) which will crash the old engine.

Also FWIW, I've been working on a heavily modded install myself recently - going to play the trilogy, finally, on my ipad.  I've installed things a few times, fixing a few bugs in between, with a mod list that encompasses most of what is in the one attached above and has more besides.  It includes SCS v31, and over several installs there has been no conflict between SCS v31 and any of my mods.

Link to comment

Took a look.  It has been modified by Tome & Blood's "Revised Specialists" - there is an added ability, with min level 51, which invokes a different 214 effect for each specialist kit; and there are some added global effects.  Not sure how that's tripping up SCS.  I suppose global effects can be an issue - I was trying to code a spell patch some time ago, looping through abilities and effects, and was thrown off by the fact that global effects are squeezed in front of them.  If that's the case, I think it can be circumvented by reading the  number of global effects at 0x70, and starting any effect loops at (effect_offset + (num_global_effects * 48 bytes)).  On the other hand, if the issue is that the added ability has different effects than earlier ones, then patching loops can exclude abilities with min level > 50.

Btw, with that Tome & Blood component installed, every SPWI spell will have these same characteristics.

Link to comment

The trip-up is to do with that level-51 ability, not the global effects. There is ancient code (not even by me) in SCS that fixes the bug in Spell Shield on non-EE installs. It assumes that the 226 opcode is in every ability, so it chokes on that special new ability. I can fix it easily enough on my end.

Link to comment
3 hours ago, falagar said:

So my best bet (if all SPWI spells have been affected) is to just do a reinstall without this T&B component?

Yes - mostly because I'm pretty sure it uses opcode 321, which will crash your game if you're not playing an EE game. 

(My fault for not updating the .tp2 to prevent it being installed; that willbe remedied soon.)

EDIT - which means, to be clear, that there is no need to change anything on the SCS side, unless you want to anyway. 

Edited by subtledoctor
Link to comment

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