
Quote from: horred the plague on December 03, 2012, 03:58:43 AMJust today I went through and sorted the TDD spells to work with LC and SellRev. By this I mean the player-learnable spells, the ones that can appear in your selection list.
Whereas with Spell Revisions I had many TDD spells overwritten, with LC and its nicer use of ADD_SPELL it's just a few duplicates. It's a BP-based patch I have, but what it will do is:
1) If LC is already installed, BP will change the TDD-duplicates into lvl 1 innates (i.e., not in the spellbook any more)
2) If BP is installed before LC, it changes the TDD spell.ids entries to match the LC identifiers. This should have LC installing to the same spot and overwriting the TDD spell duplication. Nobody needs two version of Static Charge, e.g.
Spell.IDS entries are also jostled around, changed/added/deleted as needed. ADD_SPELL used whereever it was fitting and could do the job. It seems limited in the number of spells it can patch in, even if there's a wide open field of slots in a given level. I also wrote cludgy workaround code to handle these cases.
Quote from: horred the plague on December 03, 2012, 03:58:43 AMIt also handles Spell Revisions either before or after BP, but that was much messier code work--trust me. While Spell Revisions might be a well-made mod, it's a blatant overwriter of other files--almost always unnecessarily. In dire need of advanced tp2 coding techniques. Vanilla spells can be patched, custom spells can be ADD_SPELL 'ed. Even a 6-year-retired modder like myself was able to figure it out easily enough. I'm not sure why a compatibility mod like the BWP would highly recommend it, as it stands.I've been less diligent in marketing SpellPack (which is still officially in beta) because (a.) I would like to settle into an established and reliable mod/install structure first and (b.) events in RL have kept me busy the past few years.
Quote from: horred the plague on December 03, 2012, 03:58:43 AMNow, this brings me to what I was actually aiming to do (shocking how many little things prevented it). I wish to include the LC custom spells in the BP Series party AI. Putting them in is "simple" enough, but as LC requires Spell() instead of SpellRES() I have to account for whether LC is installed or not. With that check, I REPLACE_TEXTUALLY my scripts to/from Spell() and SpellRES() where needed. Missing SpellRes() resouces just give minor errors, where missing IDS entries in Spell() triggers & actions throw major compiler errors.Thank you so much for your support; I really appreciate this, and I will help you as much as possible. I was planning to do some sort of guide for AI modders, but that doesn't mean we couldn't cobble one together as you go. Because SpellPack is extremely modular, I suggest you approximate with same-level-similar placeholder spells where possible (ie. Sphere of Chaos vs. SpellPack's Charm Plants) or dumbed-down versions of the SpellPack spells (like TDD). I've gone to great lengths to implement everything in extreme detail, hence the patching of thousands of files tailored to each spell, and I would like to be able to handle future changes to patching efficiently myself. Otherwise, I have no qualms if you wish to borrow some stuff, just let me know.
Quote from: horred the plague on December 03, 2012, 03:58:43 AMSo...is there a file you can recommend to use as an LC identifier in another tp2 file?Yes, go to override/LCLIST_SPELLS.2da which lists all the spells that are installed at the time. First column is equivalent to IDS number, second column is IDS symbol, third column is spell filename, and fourth column is scroll filename (used by aTweaks' scribe scroll).
Quote from: horred the plague on December 03, 2012, 03:58:43 AMP.S: What exactly are you doing with traps? BP was the mod that added the first series of 'enemy rogue traps' along w/ AI to set them, and it's not broken as it stands. Forgive me for being paranoid about them, but I have other reasons for installing BP after LC to weigh against. A working REGEXP-based disease-detection (for scripts) system, to name one.There are hardcoded engine limitations about traps casting spells. First, summon creature called through a 177 crashes the game. Second, opcode 148 (target self) does not work with traps. I go around this by having them summon invisible .cres, which do the work for them. ToBEx fixes 177 (was a memory leak), but atm 148 (and 146) are not fixed. I will be removing this as fixes to the hardcoded engine appear.
Quote from: Chasington on October 18, 2012, 11:48:53 PMFirst off, great mod Galactygon!Thanks for the praise! I'm sorry about the delay, I've been very busy in RL these past few months/years, but will hopefully have time to sort things out come December.
Quote from: Chasington on October 18, 2012, 11:48:53 PMI love this mod so much that I've gone through great lengths just to fix this minor issue - I will not settle for anything less! I could go on about how I love this mod, but I'm not here to buy your help with flattery dammit! ^_^Thank you so much for your hard work, it makes my job much easier. Could you attach the relevant mod files changed by SpellPack so that I can recreate the issue?
Quote from: Chasington on October 18, 2012, 11:48:53 PMHere is my WeiDU.log... *WARNING... LONG*I don't see SpellPack on your posted log, but am assuming it's installed right before SCS and tweak packs, but after all other spell-introducing mods.
...
Quote from: Chasington on October 18, 2012, 11:48:53 PMI did use the latest Big World Setup to install all of these mods. Spell Revisions and Spell Pack are doing well together, thanks to their hard work!I'm glad and relieved to hear they work smoothly together!
