| The Black Wyrm's Lair Terms of Use |
Help
Search
Members
Calendar
|
Dec 13 2005, 06:46 PM
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" |
|
|
|
![]() |
Dec 22 2005, 02:07 PM
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 |
|
|
|
Andyr Ovewrite/patching Dec 13 2005, 06:46 PM
aigleborgne Changes are made by overwritting.
I have difficul... Dec 13 2005, 10:21 PM
NiGHTMARE You should probably include a warning about the .c... Dec 21 2005, 12:11 PM
Salk NiGHTMARE,
thanks for the tip!
We won't ... Dec 21 2005, 01:31 PM
aigleborgne Patching cre is not easy.
You probably think this... Dec 21 2005, 04:51 PM
Salk aigleborgne,
there won't be any problem becau... Dec 21 2005, 05:10 PM
NiGHTMARE
It's easy once you've left the learning s... Dec 21 2005, 05:45 PM
aigleborgne Assuming I would do this with a script and because... Dec 21 2005, 06:39 PM
NiGHTMARE
True, but then again at the moment it requires ab... Dec 21 2005, 07:03 PM
Baronius Advice (to all modders): compatibility is importan... Dec 21 2005, 08:06 PM
CamDawg I couldn't disagree more. Start learning new a... Dec 21 2005, 09:03 PM
NiGHTMARE
Are you suggesting there are things you can do wi... Dec 21 2005, 09:12 PM
Andyr If your modification does something bad like crash... Dec 21 2005, 09:21 PM
aigleborgne Ok, I will try to make to mod a cre with patching ... Dec 21 2005, 10:16 PM
NiGHTMARE The number one resource for such things is IESDP, ... Dec 21 2005, 11:54 PM
Ascension64 PM'ed aigleborgne. Since everyone else seems ... Dec 22 2005, 12:17 AM
Andyr Near Infinity is really good for offsets. And reme... Dec 22 2005, 12:19 AM
Salk I thank you all guys for your help (especially Asc... Dec 22 2005, 09:50 AM
aigleborgne If both mod change the same parameter, the last in... Dec 22 2005, 10:23 AM
Ascension64 Well, hopefully the 'source parameter' and... Dec 22 2005, 10:36 AM
The Bigg Meta-code like ADD_CRE_ITEM makes sure to do all n... Dec 22 2005, 02:26 PM
cujo Maybe this is easier to understand:
Two people wa... Dec 22 2005, 02:54 PM
Baronius
To sum up my opinion: ensure compatibility if po... Dec 22 2005, 10:45 PM
NiGHTMARE In certain circumstances, coding is a heck of a lo... Dec 22 2005, 11:44 PM
Baronius These are not the only two possibilities obviousl... Dec 23 2005, 12:09 AM
CamDawg
I understood. I disagreed. Dec 23 2005, 03:31 AM
Baronius In that case, you say that even an important part ... Dec 23 2005, 03:33 AM
Ascension64 I just hope that, speaking generally and slightly ... Dec 23 2005, 09:08 AM
CamDawg
That's not what I'm saying at all. Overwr... Dec 23 2005, 11:42 AM![]() ![]() |
|
Lo-Fi Version | Time is now: 27th October 2025 - 09:05 PM |