![]() |
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
|
|
Forum Member Posts: 70 Joined: 7-September 04 From: Hampshire, UK ![]() |
In certain circumstances, coding is a heck of a lot faster than using an editor; the most obvious time this applies is if you want to make the same change to a large number of files. For example, if you wanted to let cleric/thieves use any item a single class thief can use, you would have to either manually edit >90% of the .itm files, or simply use this code:
CODE COPY_EXISTING_REGEXP GLOB ~^.+\.itm$~ ~override~
READ_BYTE 0x1f "useoneb" READ_BYTE 0x20 "useonec" PATCH_IF ("%useonec%" BAND 0b01000000) = 0x01000000) BEGIN // if usable by thieves WRITE_BYTE 0x1f ("%useoneb%" BAND 0b11111101) // make usable by cleric/thieves END BUT_ONLY_IF_IT_CHANGES This post has been edited by NiGHTMARE: Dec 22 2005, 11:49 PM |
|
|
![]() ![]() |
![]() |
Lo-Fi Version | Time is now: 11th April 2025 - 04:49 AM |