[beta] SDR for Nehrim and other alternate game worlds

Post » Wed Dec 14, 2011 9:34 am

Edit: It's not the game settings, it's the hasmagiceffect function:
if vActor.HasMagicEffect LGHT == 1 is killing it. Looks like it's time to hit the wiki.

That line references the Light magic effect. Magic effect formIDs are assigned by the first file to modify the effect (http://www.gamesas.com/index.php?/topic/1232385-relz-oblivion-script-extender-obse-0020/page__view__findpost__p__18980059), so this creates a dependency on Oblivion.esm. And you can't just recompile the script without Oblivion.esm, either, because then the Light effect won't have a formID at all, and the script will fail in game.


Replace it with:
let effectRef := MagicEffectFromChars "LGHT" ;; effectRef is a ref variableif vActor.HasMagicEffect effectRef  == 1...
This should fetch LGHT by effect code rather than formID, and effect codes are hard-coded into the engine.
User avatar
kitten maciver
 
Posts: 3472
Joined: Fri Jun 30, 2006 2:36 pm

Post » Wed Dec 14, 2011 8:55 am

That line references the Light magic effect. Magic effect formIDs are assigned by the first file to modify the effect (http://www.gamesas.com/index.php?/topic/1232385-relz-oblivion-script-extender-obse-0020/page__view__findpost__p__18980059), so this creates a dependency on Oblivion.esm. And you can't just recompile the script without Oblivion.esm, either, because then the Light effect won't have a formID at all, and the script will fail in game.


Replace it with:
let effectRef := MagicEffectFromChars "LGHT" ;; effectRef is a ref variableif vActor.HasMagicEffect effectRef  == 1...
This should fetch LGHT by effect code rather than formID, and effect codes are hard-coded into the engine.

Yup. Totally works! You are da man. :bowdown: :bowdown: :bowdown:

New SDR for Nehrim version, RC2, available for download. No errors generated (as far as I can tell).
http://saebel.net/sdrBeta.php
User avatar
Shiarra Curtis
 
Posts: 3393
Joined: Thu Jan 04, 2007 3:22 pm

Post » Wed Dec 14, 2011 12:52 am

It loads and initializes.

I've not yet tested that much. My character there is stealth/magic based so I'm certain I will sooner or later.

thanks
User avatar
Mark Hepworth
 
Posts: 3490
Joined: Wed Jul 11, 2007 1:51 pm

Post » Wed Dec 14, 2011 12:33 am

Hi saebel, You are the man! :clap:
I was about to Install 3.1 when I saw this link I will be loading it up into my game & I will let you know how it goes Thanks Beebee
User avatar
Rude_Bitch_420
 
Posts: 3429
Joined: Wed Aug 08, 2007 2:26 pm

Post » Wed Dec 14, 2011 6:09 am

Hi saebel, You are the man! :clap:
I was about to Install 3.1 when I saw this link I will be loading it up into my game & I will let you know how it goes Thanks Beebee
User avatar
KIng James
 
Posts: 3499
Joined: Wed Sep 26, 2007 2:54 pm

Previous

Return to IV - Oblivion