Changing paperdolls colors and making it part of a weidu installer
#1
Posted 30 October 2005 - 08:27 PM
Quite simply, how do I do it?
- The transitioned former modder once known as MTS.
#2
Posted 31 October 2005 - 03:11 AM
In any case, this is what I did:
COPY_EXISTING ~aerie.cre~ ~override~ PATCH_IF (SOURCE_SIZE > 0x71) THEN BEGIN WRITE_BYTE 0x2c 0x1b // Metal colour WRITE_BYTE 0x2d 0x2e // Minor colour WRITE_BYTE 0x2e 0x15 // Major colour WRITE_BYTE 0x2f 0x69 // Skin colour WRITE_BYTE 0x30 0x16 // Leather colour WRITE_BYTE 0x31 0x1d // Armor colour WRITE_BYTE 0x32 0x42 // Hair colour END BUT_ONLY_IF_IT_CHANGESBasically, I copy the creature-file, and then I individually patch the different colours with WRITE_BYTE. To see which specific bit of the creature file you want to edit, you can look it up in NI if you have "Show hex offsets" turned on in the options.
There, I can see that the colour listed as "Metal colour" is at 2c, which means that we want to tell WeiDU to patch that specific byte - so we write it like this:
WRITE_BYTE 0x2c
The 0x before 2c simply tells WeiDU that we're dealing with hex offsets instead of anything else.
Then, we need to figure out how to write the new colour. Since we want Colour index 27, we'll need to figure out the hex code for that specific colour is. To do that, simply right-click on that row and choose "Edit at hex". We'll see that the hex is 1b, which gives us the code 0x1b.
Simply put, to change the "Metal colour" to Colour index 27, this is the code to use:
WRITE_BYTE 0x2c 0x1b
And then you can continue with the other colours in the same manner.
- Seb.
Khadion NPC mod - Team leader, head designer
Hubelpot NPC mod - Team leader, coder
NPC Damage - Coder
PC Soundsets - Coder, voice actor
Brythe NPC mod - Designer
DragonLance TC - Glory of Istar - Designer
The NPC Interaction Expansion Project - Writer for Cernd, Sarevok
The Jerry Zinger Show - Producer
Iron Modder 5 - Winner
#3
Posted 31 October 2005 - 04:10 AM
Or you can just useThen, we need to figure out how to write the new colour. Since we want Colour index 27, we'll need to figure out the hex code for that specific colour is. To do that, simply right-click on that row and choose "Edit at hex". We'll see that the hex is 1b, which gives us the code 0x1b.
Simply put, to change the "Metal colour" to Colour index 27, this is the code to use:
WRITE_BYTE 0x2c 0x1b
WRITE_BYTE 0x2c 27
since WeiDU doesn't require hex values.
Why is this Hypnotoad video so popu... ALL GLORY TO THE HYPNOTOAD.
____
The Gibberlings Three - Home of IE Mods
The BG2 Fixpack - All the fixes of Baldurdash, plus a few hundred more. Now available, with more fixes being added in every release.
#4
Posted 31 October 2005 - 04:18 AM
- The transitioned former modder once known as MTS.
#5
Posted 31 October 2005 - 04:23 AM
Khadion NPC mod - Team leader, head designer
Hubelpot NPC mod - Team leader, coder
NPC Damage - Coder
PC Soundsets - Coder, voice actor
Brythe NPC mod - Designer
DragonLance TC - Glory of Istar - Designer
The NPC Interaction Expansion Project - Writer for Cernd, Sarevok
The Jerry Zinger Show - Producer
Iron Modder 5 - Winner
#6
Posted 31 October 2005 - 07:28 AM
#7
Posted 31 October 2005 - 02:47 PM
I assume I need to do it for each of a character's .cre files? The Bioware ones have more then one dependant on you level.
Sorry for so many n00bish questions.
- The transitioned former modder once known as MTS.
#8
Posted 31 October 2005 - 10:34 PM
Khadion NPC mod - Team leader, head designer
Hubelpot NPC mod - Team leader, coder
NPC Damage - Coder
PC Soundsets - Coder, voice actor
Brythe NPC mod - Designer
DragonLance TC - Glory of Istar - Designer
The NPC Interaction Expansion Project - Writer for Cernd, Sarevok
The Jerry Zinger Show - Producer
Iron Modder 5 - Winner
#9
Posted 31 October 2005 - 11:52 PM
Last question. In SConrad's first post he listed two sets of colors for each category. I was using shadowkeeper to figure out the colors (yes I tested them in game first), but it only lists one color. Who do I get both, and which order do I list them in?
- The transitioned former modder once known as MTS.
#10
Posted 01 November 2005 - 12:34 AM
I had thought so, but I wanted to check.
Last question. In SConrad's first post he listed two sets of colors for each category. I was using shadowkeeper to figure out the colors (yes I tested them in game first), but it only lists one color. Who do I get both, and which order do I list them in?
I'm not exactly sure what you mean. SConrad listed one colour/per catagory on that post. The first hex offset is the location to write too. The second hex (or use decimal as Cam mentioned) is the actual colour. The only things else on the lines are comments. In the code, anything after a // will be ignored. Eg)
WRITE_BYTE 0x2c 0x1b // Metal colour preferably something shiny or maybe glossy.This comment is ignored.
The great wolf Fenrir gapes ever at the dwelling of the gods.
#12
Posted 01 November 2005 - 01:16 AM
The first number SConrad listed is the offset in the .cre file.
I already said that.
The great wolf Fenrir gapes ever at the dwelling of the gods.