Jump to content


Photo

The cheesed kit.ids !


  • Please log in to reply
2 replies to this topic

#1 The Imp

The Imp

    Not good, see EVIL is better. You'll LIVE.

  • Member
  • 5155 posts

Posted 24 November 2013 - 01:35 PM

This is clearly unnecessary, and messy ! : 


COPY_EXISTING     ~KIT.IDS~                  ~override/KIT.IDS~
  REPLACE_TEXTUALLY ~0x00004000 TRUECLASS~     ~0x4000 TRUECLASS~
  REPLACE_TEXTUALLY ~0x00000001~         ~0x4001~//BERSERKER
  REPLACE_TEXTUALLY ~0x00000002~         ~0x4002~//WIZARDSLAYER
  REPLACE_TEXTUALLY ~0x00000004~         ~0x4003~//KENSAI
  REPLACE_TEXTUALLY ~0x00000008~         ~0x4004~//CAVALIER
  REPLACE_TEXTUALLY ~0x00000010~         ~0x4005~//INQUISITOR
  REPLACE_TEXTUALLY ~0x00000020~         ~0x4006~//UNDEADHUNTER
  REPLACE_TEXTUALLY ~0x00000040~         ~0x0040~//MAGESCHOOL_ABJURER
  REPLACE_TEXTUALLY ~0x00000080~         ~0x0080~//MAGESCHOOL_CONJURER
  REPLACE_TEXTUALLY ~0x00000100~         ~0x0100~//MAGESCHOOL_DIVINER
  REPLACE_TEXTUALLY ~0x00000200~         ~0x0200~//MAGESCHOOL_ENCHANTER
  REPLACE_TEXTUALLY ~0x00000400~         ~0x0400~//MAGESCHOOL_ILLUSIONIST
  REPLACE_TEXTUALLY ~0x00000800~         ~0x0800~//MAGESCHOOL_INVOKER
  REPLACE_TEXTUALLY ~0x00001000~         ~0x1000~//MAGESCHOOL_NECROMANCER
  REPLACE_TEXTUALLY ~0x00002000~         ~0x2000~//MAGESCHOOL_TRANSMUTER
  REPLACE_TEXTUALLY ~0x00008000~         ~0x4007~//FERALAN
  REPLACE_TEXTUALLY ~0x00010000~         ~0x4008~//STALKER
  REPLACE_TEXTUALLY ~0x00020000~         ~0x4009~//BEASTMASTER
  REPLACE_TEXTUALLY ~0x00040000 MAGESCHOOL_GENERALIST~   ~0x4000 MAGESCHOOL_GENERALIST~
  REPLACE_TEXTUALLY ~0x00080000~         ~0x400B~//BOUNTYHUNTER
  REPLACE_TEXTUALLY ~0x00100000~         ~0x400C~//SWASHBUCKLER
  REPLACE_TEXTUALLY ~0x00200000~         ~0x400D~//BLADE
  REPLACE_TEXTUALLY ~0x00400000~         ~0x400E~//JESTER
  REPLACE_TEXTUALLY ~0x00800000~         ~0x400F~//SKALD
  REPLACE_TEXTUALLY ~0x01000000~         ~0x4013~//GODTALOS
  REPLACE_TEXTUALLY ~0x02000000~         ~0x4014~//GODHELM
  REPLACE_TEXTUALLY ~0x04000000~         ~0x4015~//GODLATHANDER
  REPLACE_TEXTUALLY ~0x08000000~         ~0x4010~//TOTEMIC
  REPLACE_TEXTUALLY ~0x10000000~         ~0x4011~//SHAPESHIFTER
  REPLACE_TEXTUALLY ~0x20000000~         ~0x4012~//BEASTFRIEND
  REPLACE_TEXTUALLY ~0x40000000 BARBARIAN~         ~0x401F BARBARIAN~
  REPLACE_TEXTUALLY ~0x00004000 BARBARIAN~         ~0x401F BARBARIAN~
  REPLACE_TEXTUALLY ~0x40010000~ 	       ~0x4001~//BERSERKER
  REPLACE_TEXTUALLY ~0x40020000~ 	       ~0x4002~//WIZARDSLAYER
  REPLACE_TEXTUALLY ~0x40030000~ 	       ~0x4003~//KENSAI
  REPLACE_TEXTUALLY ~0x40040000~ 	       ~0x4004~//CAVALIER
  REPLACE_TEXTUALLY ~0x40050000~ 	       ~0x4005~//INQUISITOR
  REPLACE_TEXTUALLY ~0x40060000~ 	       ~0x4006~//UNDEADHUNTER
  REPLACE_TEXTUALLY ~0x00400000~ 	       ~0x0040~//MAGESCHOOL_ABJURER
  REPLACE_TEXTUALLY ~0x00800000~ 	       ~0x0080~//MAGESCHOOL_CONJURER
  REPLACE_TEXTUALLY ~0x01000000~ 	       ~0x0100~//MAGESCHOOL_DIVINER
  REPLACE_TEXTUALLY ~0x02000000~ 	       ~0x0200~//MAGESCHOOL_ENCHANTER
  REPLACE_TEXTUALLY ~0x04000000~ 	       ~0x0400~//MAGESCHOOL_ILLUSIONIST
  REPLACE_TEXTUALLY ~0x08000000~ 	       ~0x0800~//MAGESCHOOL_INVOKER
  REPLACE_TEXTUALLY ~0x10000000~ 	       ~0x1000~//MAGESCHOOL_NECROMANCER
  REPLACE_TEXTUALLY ~0x20000000~ 	       ~0x2000~//MAGESCHOOL_TRANSMUTER
  REPLACE_TEXTUALLY ~0x40000000 TRUECLASS~ 	       ~0x4000 TRUECLASS~
  REPLACE_TEXTUALLY ~0x40000000 MAGESCHOOL_GENERALIST~   ~0x4000 MAGESCHOOL_GENERALIST~
  REPLACE_TEXTUALLY ~0x40070000~ 	       ~0x4007~//FERALAN
  REPLACE_TEXTUALLY ~0x40080000~ 	       ~0x4008~//STALKER
  REPLACE_TEXTUALLY ~0x40090000~ 	       ~0x4009~//BEASTMASTER
  REPLACE_TEXTUALLY ~0x400A0000~ 	       ~0x400A~//ASSASIN
  REPLACE_TEXTUALLY ~0x400B0000~ 	       ~0x400B~//BOUNTYHUNTER
  REPLACE_TEXTUALLY ~0x400C0000~ 	       ~0x400C~//SWASHBUCKLER
  REPLACE_TEXTUALLY ~0x400D0000~ 	       ~0x400D~//BLADE
  REPLACE_TEXTUALLY ~0x400E0000~ 	       ~0x400E~//JESTER
  REPLACE_TEXTUALLY ~0x400F0000~ 	       ~0x400F~//SKALD
  REPLACE_TEXTUALLY ~0x40130000~ 	       ~0x4013~//GODTALOS
  REPLACE_TEXTUALLY ~0x40140000~ 	       ~0x4014~//GODHELM
  REPLACE_TEXTUALLY ~0x40150000~ 	       ~0x4015~//GODLATHANDER
  REPLACE_TEXTUALLY ~0x40100000~ 	       ~0x4010~//TOTEMIC
  REPLACE_TEXTUALLY ~0x40110000~ 	       ~0x4011~//SHAPESHIFTER
  REPLACE_TEXTUALLY ~0x40120000~ 	       ~0x4012~//BEASTFRIEND
  REPLACE_TEXTUALLY ~0x401F0000~ 	       ~0x401F~//BARBARIAN

//APPEND ~kit.ids~ ~0x0000 WILDMAGE~
//  UNLESS ~\bWILDMAGE\b~

The only change all the other mods agree is that the Refinements re-fix made it best... and so the bricks fell and it stands as the paragon of kit.ids'es changes... and yours reverts it back to the more broken state.

PS, this whole process also makes havok with the scripts that it appends while it's in the broken state if it's fixed so it's very advisable to not to make such a drastic change, and on the other hand, if it's not fixed, then all the script before it's install that use the kit.ids, will not work after.

And there's no way you can actually assume that any of the 0x400y kits are not already assigned to some other kit as you actually won't confirm it in the replace textually command as you probably should. Now, I do understand that you might wish to make the kit.ids reminisent of that in the BGEE's, but there's no reason for it... as it happens, that any spell or script that would use the kit.ids data can be updated during the install as you just need to set the figure to a random number and then overwrite it during the installation of the mod according to the assigned value currently in usage. I can find the function specifically made just for this if you so require, it will take some time to go through my mod folder, I am not able to provide it just now.

 

PS, I forgot to mention that the Refinements itself of course is flawed also, so the actual code from the mod should never be used just the above linked fix, as the ALWAYS block is totally cheesed, topic of it's own, which I already made a small time ago.


Edited by The Imp, 19 December 2013 - 10:16 AM.

Yep, Jarno Mikkola. my Mega Mod FAQ. Use of the BWS, and how to use it(scroll down that post a bit). 
OK, desert dweller, welcome to the sanity, you are free to search for the limit, it's out there, we drew it in the sand. Ouh, actually it was still snow then.. but anyways.


#2 Kwiat_W

Kwiat_W
  • Modder
  • 290 posts

Posted 26 November 2013 - 09:34 AM

Thanks, I'm going to remove that, should have done that a long time ago. I have commented out the wildmage because I don't need to check for wildmage, just like I don't need to check for most of the rest. I just need the other mage kits. Should I append entries or does mage kit detection work without any changes?


icon11.gif W_GUI - a GUI replacement for Baldur's Gate 2/TUTU/BGT/CA
icon11.gif W_PackMule - Your own pack mule for Baldur's Gate 2/Tutu/BGT/CA, BGEE and BG2:EE

icon11.gif Psionics Unleashed - play as a Psion, mod for Baldur's Gate 2/Tutu/BGT/CA

 


#3 The Imp

The Imp

    Not good, see EVIL is better. You'll LIVE.

  • Member
  • 5155 posts

Posted 26 November 2013 - 04:59 PM

Thanks.

Should I append entries or does mage kit detection work without any changes?

Checking...
They are exactly these in both BG2 and in BGEE&BG2EE, as they are in fact exactly the same:

  REPLACE_TEXTUALLY ~0x00000040~         ~0x0040~//MAGESCHOOL_ABJURER
  REPLACE_TEXTUALLY ~0x00000080~         ~0x0080~//MAGESCHOOL_CONJURER
  REPLACE_TEXTUALLY ~0x00000100~         ~0x0100~//MAGESCHOOL_DIVINER
  REPLACE_TEXTUALLY ~0x00000200~         ~0x0200~//MAGESCHOOL_ENCHANTER
  REPLACE_TEXTUALLY ~0x00000400~         ~0x0400~//MAGESCHOOL_ILLUSIONIST
  REPLACE_TEXTUALLY ~0x00000800~         ~0x0800~//MAGESCHOOL_INVOKER
  REPLACE_TEXTUALLY ~0x00001000~         ~0x1000~//MAGESCHOOL_NECROMANCER
  REPLACE_TEXTUALLY ~0x00002000~         ~0x2000~//MAGESCHOOL_TRANSMUTER

As 0 and 00000000 are equal. And yes, the 1 is also 0000000001 , the zeroes just don't usually matter so they are not marked to the calculations.

AKA, you won't need to make those changes.


Edited by The Imp, 19 December 2013 - 10:19 AM.

Yep, Jarno Mikkola. my Mega Mod FAQ. Use of the BWS, and how to use it(scroll down that post a bit). 
OK, desert dweller, welcome to the sanity, you are free to search for the limit, it's out there, we drew it in the sand. Ouh, actually it was still snow then.. but anyways.