![]() |
The Black Wyrm's Lair Terms of Use |
![]() ![]() ![]() ![]() |
![]() |
![]()
Post
#1
|
|
![]() A fool and a knave Forum Member Posts: 153 Joined: 21-July 04 From: Oxford, UK ![]() |
Are the changes made in this mod file direct copy overwrites, or are they done by patching?
-------------------- "We are the Gibberlings Three, as merry a band as you ever did see..." - Home of IE mods.
<jcompton> Suggested plugs include "Click here so Compton doesn't ban me. http://www.pocketplane.net/ub" |
|
|
![]() |
![]()
Post
#2
|
|
![]() ![]() Mod Developer Posts: 210 Joined: 3-December 05 ![]() |
QUOTE(Ascension64 @ Dec 22 2005, 10:36 AM) Well, hopefully the 'source parameter' and the 'overwriting parameter', isn't, say, adding a spell, and changing an item name, respectively. If the 'overwriting parameter' does not read offsets and byte-patches the item, then it will clearly miss (due to changed offsets by adding a spell) and corrupt the item file. For example, if I decide to add the spell 'Globe of Invulnerability' to a creature, than another mod decides to change that creature's 'Staffspear+3' to a normal 'Staff', then the second mod must ensure that they don't just WRITE_ASCII 0x3f0 ~STAF01~ #8. Not that that will ever happen, I hope. ![]() I didn't understand your example. I know it would overwrite the staff+3 by a normal staff. But I don't see the point with the globe. Why would the item be corrupted? (and I think you meant the cre) Currently, in my tp2, I have line like: // Sorcerous sundries store COPY_EXISTING ~_sto0703.sto~ ~override/_sto0703.sto~ ADD_STORE_ITEM + ~_wand10~ #5 #0 #0 ~IDENTIFIED~ #1 // wand of summoning ADD_STORE_ITEM ~scrlar~ #1 #0 #0 ~IDENTIFIED~ #3 // new scroll : sunfire // items COPY_EXISTING ~_RAMAZI.cre~ ~override~ PATCH_IF (SOURCE_SIZE > 0x2d3) THEN BEGIN // protects against invalid files ADD_CRE_ITEM ~rin95~ #0 #0 #0 ~undroppable~ ~LRING~ ADD_CRE_ITEM ~BOOT_09~ #0 #0 #0 ~undroppable~ ~BOOTS~ ADD_CRE_ITEM ~ap#ele~ #0 #0 #0 ~undroppable~ ~RRING~ END BUT_ONLY_IF_IT_CHANGES Is that not correct? I know they will overwrite old ring or boot, but it is intended. This post has been edited by aigleborgne: Dec 22 2005, 02:09 PM |
|
|
![]() ![]() |
![]() |
Lo-Fi Version | Time is now: 11th April 2025 - 05:23 AM |