Help please concerning adding kit correctly and associating it with my npc. The way I did it on the mod I'm working is:
1. made kit weidu way without WRITE_SHORT 0x244 0 etc.
2. started game using new kit for my PC.
3. used SK to convert to cre.
4. created dlg and bcs files for cre
5. used nearinfinity to edit my cre with new bcs/dlg files, items variables.etc
6. reloaded kit/mod with files d,cre,clab,bcs etc
7. my npc joined fine in dungeon (ar0602), leveled her up and she got all her appropriate abilities, bonuses, etc. All the kit and dlg associated files contained new information as it should (except kit.ids file)
My question is I didn't use suggested WRITE_SHORT 0x244 0
WRITE_BYTE 0x246 ~%xxxxx%~
WRITE_BYTE 0x247 0x40
because I kept getting a could not convert integer message. Is this a necessary step? Thankx in advance.

Question concerning kit addition
Started by
-David-
, Jun 10 2003 10:03 PM
4 replies to this topic
#1
-David-
Posted 10 June 2003 - 10:03 PM
#2
-Ghreyfain-
Posted 11 June 2003 - 10:15 AM
It is necessary, because your .cre file uses the 33rd kit in the list. If someone has other kits installed before that, then the .cre would have whichever kit was in the 33rd slot.
Not sure how to do the variable thing, though, as I've never tried. Perhaps Wes or japheth can explain it better.
Not sure how to do the variable thing, though, as I've never tried. Perhaps Wes or japheth can explain it better.
#3
Posted 11 June 2003 - 11:07 AM
You're probably getting that error because you're doing the COPY action before the ADD_KIT action.
Make absolutely sure that the
COPY ~blah/blah.cre~ ~override/blah.cre~
WRITE_SHORT 0x244 0
WRITE_BYTE 0x246 ~%MYKIT%~
WRITE_BYTE 0x247 0x40
is below the ADD_KIT action.
Make absolutely sure that the
COPY ~blah/blah.cre~ ~override/blah.cre~
WRITE_SHORT 0x244 0
WRITE_BYTE 0x246 ~%MYKIT%~
WRITE_BYTE 0x247 0x40
is below the ADD_KIT action.
Check out BG1Tutu.
#4
Posted 11 June 2003 - 02:33 PM
Thanks for the reply. I did have it after ADD_KIT. The following is partial copy of my tp2.
ADD_KIT ~AikMas ~
~AikMas 1 1 1 1 1 1 1 1~
~AIkMas 5 5 0 0 0 0 0 0 0 5 5 0 0 5 5 5 0 0 0 0 0 0 0 0 0 0 5 0 0 0 2 3 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5~
~AikMas 8 15 3 3 3 3~
~AikMas -3 2 - 0 0 0~
~AikMas 8 15 3 3 3 3~
~AikMas 8 15 3 3 3 3~
~AikMas 0 1 1 1 1 1 1 1 1~
~AikMas 0 0 0 0 0 0~
~azrii/clabazam.2da~
~K_T_E~
~0x00004000 4~
~Th0~
~ * * * * * * * * * * * * * * * * * * * *~
SAY ~aikuchi master~
SAY ~Aikuchi Master~
SAY ~Aikuchi Master: This mysterious school is known only by its adherents. Only they can impart any information concerning it's aims and whereabouts
Advantages:
-Can reach grandmastery in all single handled swords, daggers and darts
-Can excel at single weaponry (2 slots)
-Can excel at dual wielding (3 slots)
-Can backstab x9 (level 10, 18, 22 + 31)
-Dextertity is given a +2 bonus
-Normal thief bonuses
Disadvantages:
-Can only use single handed swords, darts and daggers
-Strenth is given a -3 decrease
-Constitution is given a -3 decrease~
COPY ~azrii/azrii.cre~ ~override/azrii.cre~
WRITE_SHORT 0x244 0
WRITE_BYTE 0x246 ~%AikMas%~
WRITE_BYTE 0x247 0x40
The azrii.cre was made before last 4 lines of tp2 added (COPY, WRITE, etc.)
So after i loaded kit i started game and used aikmas kit, saved game then used SK to convert to azrii.cre. Later on i'll compile d files and add bcs and use near infinity to associate them with azrii.cre. Anyway after I uninstalled kit then added those last 4 lines to tp2 and reinstalled it still said cannot convert to ~%AikMas%~ to integer. Thanks again, perhaps someone has tried adding mod with new npc as new kit and they will reply. Plenty of dialogue still to write in meantime.
ADD_KIT ~AikMas ~
~AikMas 1 1 1 1 1 1 1 1~
~AIkMas 5 5 0 0 0 0 0 0 0 5 5 0 0 5 5 5 0 0 0 0 0 0 0 0 0 0 5 0 0 0 2 3 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5~
~AikMas 8 15 3 3 3 3~
~AikMas -3 2 - 0 0 0~
~AikMas 8 15 3 3 3 3~
~AikMas 8 15 3 3 3 3~
~AikMas 0 1 1 1 1 1 1 1 1~
~AikMas 0 0 0 0 0 0~
~azrii/clabazam.2da~
~K_T_E~
~0x00004000 4~
~Th0~
~ * * * * * * * * * * * * * * * * * * * *~
SAY ~aikuchi master~
SAY ~Aikuchi Master~
SAY ~Aikuchi Master: This mysterious school is known only by its adherents. Only they can impart any information concerning it's aims and whereabouts
Advantages:
-Can reach grandmastery in all single handled swords, daggers and darts
-Can excel at single weaponry (2 slots)
-Can excel at dual wielding (3 slots)
-Can backstab x9 (level 10, 18, 22 + 31)
-Dextertity is given a +2 bonus
-Normal thief bonuses
Disadvantages:
-Can only use single handed swords, darts and daggers
-Strenth is given a -3 decrease
-Constitution is given a -3 decrease~
COPY ~azrii/azrii.cre~ ~override/azrii.cre~
WRITE_SHORT 0x244 0
WRITE_BYTE 0x246 ~%AikMas%~
WRITE_BYTE 0x247 0x40
The azrii.cre was made before last 4 lines of tp2 added (COPY, WRITE, etc.)
So after i loaded kit i started game and used aikmas kit, saved game then used SK to convert to azrii.cre. Later on i'll compile d files and add bcs and use near infinity to associate them with azrii.cre. Anyway after I uninstalled kit then added those last 4 lines to tp2 and reinstalled it still said cannot convert to ~%AikMas%~ to integer. Thanks again, perhaps someone has tried adding mod with new npc as new kit and they will reply. Plenty of dialogue still to write in meantime.
#5
Posted 11 June 2003 - 07:04 PM
If I had to guess, I'd say that the mysterious space between the s and the ~ in ~AikMas ~ is the problem.ADD_KIT ~AikMas ~
If not, re-run with --debug-assign and post the output.