Jump to content

Photo

A puzzle with HIDESPL.2DA


5 replies to this topic

#1 DavidW

DavidW
  • Gibberlings
  • 4527 posts
  • Gender:Male

Posted 17 September 2018 - 04:30 PM

I've been trying to understand the EE mechanism for hiding spells. I get that

- if a spell is on HIDESPL (with appropriate values set) it isn't presented to the player at sorcerer level-up or character creation
- if a spell is on HIDESPL with IS_FINAL set to 1, all the spells after it are also removed.

But there is apparently more to it than that, because even if I wipe HIDESPL entirely, not all spells are shown to the player at sorcerer level-up. Specifically, at level 9 removing HIDESPL makes the 10th-level spells visible at level-up, but the various not-for-players spells in the SPWI950-999 namespace are not visible, nor is a pretty-much-verbatim copy of a "legal" 9th level spell if I put it at SPWI966. I'd wondered if SPELL.2DA was still playing some role (it controlled this, much more crudely, in vanilla BG2) but it doesn't even have columns for L8 and L9 spells, and adding one for L8 and L9, and/or setting all the values to 99, doesn't help.

Any thoughts?

#2 subtledoctor

subtledoctor
  • Modders
  • 2774 posts
  • Gender:Male

Posted 17 September 2018 - 05:08 PM

I might be pulling this out of my butt, but I think the SPWIx50-x99 numbered spells are never presented to the player, irregardless of HIDESPL.  Still hard-coded I think. 

 

Maybe. 

 

Don't quote me.


Faiths & Powers: Spell spheres and kit pack for priests and paladins
Might & Guile: Tweaks and kits for warriors and rogues
Scales of Balance: Game tweaks and rule overhauls
NPC_EE: More options for NPCs in BGEE, SoD, & BG2EE


#3 DavidW

DavidW
  • Gibberlings
  • 4527 posts
  • Gender:Male

Posted 17 September 2018 - 05:11 PM

I kind of think it must be something like that, but it's a bit weird given that hidespl allows it to be totally externalized anyway.

#4 DavidW

DavidW
  • Gibberlings
  • 4527 posts
  • Gender:Male

Posted 17 September 2018 - 05:19 PM

Oh - and thanks.

#5 Avenger

Avenger
  • Modders
  • 3803 posts
  • Gender:Male
  • Location:Hungary

Posted 20 September 2018 - 08:07 AM

Yes, the spells are hardcoded to not go over 50. 

 

I might be pulling this out of my butt, but I think the SPWIx50-x99 numbered spells are never presented to the player, irregardless of HIDESPL.  Still hard-coded I think. 

 

Maybe. 

 

Don't quote me.

I can confirm that, so you can be quoted



#6 DavidW

DavidW
  • Gibberlings
  • 4527 posts
  • Gender:Male

Posted 20 September 2018 - 08:40 AM

Not over 50 at level 9 too? Or is the hardcoded limit lower there?





Reply to this topic



  


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users