《存档修改大法》之——《更改发型(甚至改成其他种族的发型),
刚刚写完。。。现在太晚了,好累。。。改天再翻译。。。各位大大就将就将就看看吧。原文:
http://darkmatters.org/forums/index.php?showtopic=14148
For readers:
Before continue reading the rest of the thread, please know that the method described in this thread requires:
1) basic knowledge/experience of using a HEX editor and messing with files in hex/binary mode.
2) know how to use command prompt, or the Start>Run of Windows.
and
3) this thread is not meant to be a tutorial that teaches you how to do everything from A to Z step-by-step...I am just sharing some info (the pattern, the address) that will be helpful for those who are already familiar with hex-editing game files.
4) I am working on PC Windows, I don't have a console nor Mac.
...just so that I won't waste someone's time reading everything only to find out they are unwilling/uncomfortable of doing so.
For forum moderator:
I am not sure this thread is in the appropriate section of this forum...saved-game editing is not really modding.
If you deem this is sitting in the wrong section, I apologize, and please move it as you see fit.
Otherwise, feel free to remove this quoted section of unneccessary texts.
Thanks.
After reading through this thread, you will be able to change your character's
- hair color
- skin color
- hair style (even get the hair style from other races)
- imp color
by ONLY editing the saved game file. Nothing else.
Now, onto the topic:
Preface
I was bothered with my initial selection of skin/hair color and models, saw a lot of methods of changing them, but never satisfied. Why?
The currently available methods are such as:
A) Using Console Commands
Type "SYS HAIRCOLOR RRGGBB" for hair color (works in Ice and Blood)
Type "SYS HAIRSTYLE #" for hair style (doesn't work anymore as in patch 2.65.1)
Pros:
- Easy and straightforward.
- Not messing with original game files.
Cons:
- Messed up skin color and lightning after effect applies.
- Won't be saved, so you have to type those commands again everytime you load.
- As in 2.65.1 latest patch, you can only change hair color.
B) Messing with those files in PAK folder
As a lot of other threads pointed out in this forum, you can change files in those graphicXX.zip and etc to change your skin, hair, even armors' color and models.
However,
- I wish to keep all the game content original.
- This method will affect all characters that are using the same files, not just the one you wish to change.
But of course, for serious modding, you MUST change those files or you won't get anywhere...nevertheless, as far as I concern, I only wish to change skin/hair color and model the "soft" way.
The benefits of using this method of modification:
1) The ONLY file you will be changing, is your saved game file. Nothing else.
2) Every change you made, will only affect the particular character represented by the save-file.
3) The modification is saved, you don't have to re-do it after every loading.
4) You can get hairstyles of other races with ONLY changing your saved game file, without messing with any other files.
Without further ado, here's the main dishes:
A) Tools you will need:
A.1) A hex editor, to edit your saved game files which is located at:
C:UsersSaved GamesAscaron EntertainmentSacred 2
For each character, there's 2 files:
- hero##.sacred2save (the actual saved file)
- hero##.sacred2stats (plain text file with character basic info)
Read hero##.sacred2stats with any text editor. It's in plain text, with information such as the name of the hero and etc. Use this file to identify which ## corresponding to which character.
A.2) S2SDEC.exe
Sacred 2 saved files are encoded. You need this S2SDEC.exe to decode the saved file.
Just google for "s2sdec" and grab a download. I got mine from depositfiles.com.
Run it under command prompt console if you need a description on how to use it, as well as all the parameters you can feed it.
Type "s2sdec hero##.sacred2save" and you will get a "hero##.sacred2save.decoded" -> the file you will then edit with hex editor.
After you made your modifications,
type "s2sdec hero##.sacred2save.decoded", and you will get a "hero##.sacred2save" -> the encoded file which can then be loaded and played.
***ALWAYS MAKE BACKUPS***
B) What you can do with "hero##.sacred2save.decoded"
Actually, you can change virtually everything...money, skills, experience, name...I mean, everything saved for a character...BUT, cheating is not what I wish to discuss here. Here, I'll only point you to the address/pattern of the values pertaining to the physical appearance of your character.
The Pattern
For ALL classes/races, the hex pattern is always like this:
?
Meaning:
= 2 bytes representing Hair Style
? = I haven't figured out what this 1 byte means
= 1 byte representing Imp Color
= each of these bytes representing the RGB values of your hair color.
= 1 byte representing your Skin Color.
Now, the rules for each of these values:
Hair Style
Each hairstyle is represented by a number, which has no relation to race/class.
Example,
- the 1st hairstyle of seraphim is numbered as 49h (or 73 in decimal), 2nd hairstyle = 220h, 3rd = 2E71h, the last one is numbered 32BEh.
- the 1st hairstyle of high elf is numbered as F80h
- the 1st hairstyle of dryad is numbered as 10CEh
So,
- if I want my seraphim to have high elf's 1st hairstyle, I'll fill in the with .
- if I want my seraphim to have seraphim's last hairstyle, I'll fill in the with .
and so on.
The result? Here's some proving images: My level 76 Seraphim named Sylvia with black-colored High-Elf default/first hairstyle.
(yea I know the wing doesn't belong to the set...but otherwise I couldn't get a better view of the hair.)
http://img195.imageshack.us/img195/1982/clearr.jpg
http://img22.imageshack.us/img22/1972/leftbo.jpg
http://img641.imageshack.us/img641/1741/downb.jpg
Yup, that's without changing any file, except the save.
Theorectically, it is possible to fit every hairstyle on every character (especially among the same gender), but I myself only tried, like, 5 attempts of inter-race-hair-implantation among seraphim<->high elf<->dyrad. There's no error, the game runs fine, but there's some minor distortion, which can be remedied by wearing less-revealing headgears.
(Updated: Please refer to the bottom of this thread for a list of complete hairstyles of all female heroes)
Sounds good? But here's the catch: I don't have the codes for every hairstyles.
That means, you will have to ask someone who know, or you will have to find out by yourself.
How? By creating a new character which uses the desired hairstyle -> save it -> decode the save file -> look at the decoded file to find out that code.
Or, for those who are kind enough, you can post in this thread any code you find out, or you can send me a PM as reminder (I might not check forum as often as I used to).
Imp Color
This one is pretty straight forward.
If you can recall, you change the skin color of your imp by pressing the -/+ button of Imp Color during character creation.
The color at the left-most side of the bar, is .
The color at the right-most side of the bar, is .
So, the color of the imp goes from 00 -> 01 -> 02 -> ... -> 1E -> 1F. As simple as that.
To know which code corresponding to which color, you will have to figure it out from the character creation screen, starting from the left-most side of the bar, enumerating each color as you press the + button.
For example, if I wish to change the color of my imp to goldish-yellow color, the 9th imp skin color, I'll fill as .
Hair Color
Well, this is even more straight-forward...just replace with the RGB values you desire, and viola, your character haircolor will become exactly like you wanted.
For your extra information:
If you change your character's hair color by pressing (NOT dragging) -/+ button at the Hair Color bars, every time you press the + button, the color value increase by 10h. Everytime you press the - button, the color value decrease by 10h, too.
So, for example, starting at the left-most side of the bar, if I press + button for 5 times, the color value will be 50h. If I then press the - button once, it will become 40h.
I can't predict the color values if you drag on the bar with mouse (except on the extremes, duh).
Skin Color
It is quite similiar to imp color. It starts with as the first skin, and end with as the last skin choice.
The difference?
Well, it actually goes like this: 00h -> 08h -> 10h -> 18h -> 20h -> ... -> F0h -> F8h. Unlike the increments of Imp Color, Skin color has an increment of 08h.
However, I actually tried 04h, 07h, B1h...no error, game runs fine, but I can't really distinguish if there's any significant change in color. Since the difference is insignificant, I might as well just follow the 08h increment.
Also, the same applies to Skin Color:
If you want to know which code correspond to which skin color, you will need to figure out from the character creation interface. Starting from the left-most side of the bar, the 1st skin color is coded 00h.
Everytime you press the + button, you add 08h to your skin color, and so on until the last color, which is F8h.
So, now we know how to fill-up the hex values...next comes the biggest trouble: where to find/put/change it?
C) The Address/Location of Hex String
This, my friend, is the most tricky part. Why? Because it is not located at a fixed address. As you progress, whenever you learn new skill, get new quests, and etc, that address will be pushed further below.
Example,
For freshly created seraphims, the address will be at somewhere 440h.
For freshly created high elves and dryads, the address will be at somewhere 3D0h.
But for my lv76 seraphim who is near the end of Silver, the address is at somewhere 9430h...yup, big difference.
But fear not! There's a good and reliable trick to find the address.
For better illustration, please refer to this image:
http://img11.imageshack.us/img11/1294/samplepc.jpg
This image shows part of the decoded saved-game of my level 76 seraphim in hex values.
My seraphim is using the first High Elf hairstyle, as shown in the earlier images. The code for this hairstyle is F80h.
Her hair color is near-black, with values of .
Her skin color is the 2nd type, which has a code of 08h.
Her name is "Sylvia".
The RED-framed bytes => the hex pattern we are trying to find, it will determine the physical appearance of your character.
It reads
80 0F 00 08 10 10 10 08
As I pointed out earlier, this is how you read this hex pattern:
= Hair Style code = F80h
? = 00 in this case (I haven't figured out what this value is for).
IM = 08 (9th imp color, goldish-yellow)
RR GG BB = 10 10 10 (near total blackness)
SC = Skin Color = 08 (I have chosen the 2nd skin color of seraphim).
It is very easy to modify once you find the location...provided that you found the location first!
For an easy way to find the location of hex pattern, look at the YELLOW-framed values.
The one at top (address 943Bh) reads ACh in the hex mode.
The one at bottom reads "@S y l v i a" in the text mode.
First, look at the bottom one. The one reads
@S y l v i a NOT @Sylvia
Now if you look at the hex values, you will notice that each alphabet of "Sylvia" is just ASCII code, fit into 2 bytes instead of 1.
As such, it is "@S y l v i a", NOT "@Sylvia".
Also notice that, there's a "@" infront of the S. This makes finding "@S" a lot more simpler than finding a bunch of 2-byted ASCII codes.
So, example, if your character name is "David", just search for "@D" within the file. You should be able to locate "@D a v i d" very soon.
Once you found "@Y o u r n a m e", just read backward for about 150-300 bytes, you should find the other YELLOW-framed byte: ACh...and Viola! The next 8 bytes following ACh is the hex pattern we are looking for! Just to be safe and sure, you should try to compare that 8 bytes with the rules I listed, so that you are not changing the wrong bytes -> the result could be disasterous if you didn't have a back-up...
If you are able to locate the hex pattern, then you will be able to change your character's appearance as you please!
After you modified the values, save the file, then type "s2sdec hero##.sacred2save.decoded". Your save file will then be overwritten and encoded.
Oh, and remember to actually LOAD your character to see the changes. Some changes will only reflect on-screen AFTER you successfully loaded your save game.
Everything I said here, is tested with Seraphim, High Elf and Dyrad. I am assuming that it will work with the other class/race too. If it doesn't, let me know and I'll find you the difference/solution.
Enjoy! And please, do not forget to make back-ups...
For those who figured out other codes for hairstyle, feel free to post here, or PM me a reminder (I might not view forum as often as I used to), and I'll add it to this post with proper credits. Thank you.
Codes for Hair Styles
Last Updated: Feb 23, 2010 - Complete codes of all 6 hairstyles available through character creation menu, for Seraphim + High Elf + Dryad.
Seraphim
hair1 = 73 = 49h
hair2 = 544 = 220h
hair3 = 11889 = 2E71h
hair4 = 11890 = 2E72h
hair5 = 12989 = 32BDh
hair6 = 12990 = 32BEh
Dryad
hair1 = 4302 = 10CEh
hair2 = 5734 = 1666h
hair3 = 11885 = 2E6Dh
hair4 = 11886 = 2E6Eh
hair5 = 11892 = 2E74h
hair6 = 12986 = 32BAh
High Elf
hair1 = 3968 = F80h
hair2 = 5735 = 1667h
hair3 = 11887 = 2E6Fh
hair4 = 11888 = 2E70h
hair5 = 12987 = 32BBh
hair6 = 12988 = 32BCh LZ初稿就直接写成了英文吗 怪了。。。用编辑后,怎么多出了一个帖?
版主请删这个帖,谢谢。 更新了:找到所有女性职业全部发型代码了!万岁!!!
不看全文的,至少看看图片就知道效果了。
发型代码-〉见帖尾。
LZ初稿就直接写成了英文吗
davidmouse 发表于 2010-2-23 23:07:00http://3dmgame.chnren.com/bbs/images/common/back.gif
英文游戏,毕竟还是那儿资料多。。。从那儿学得也比较多。。。
小弟写的这篇http://3dmgame.chnren.com/bbs/showtopic-1113048.html也是从那儿得到的资料。
而且键盘打英文比较快,省时间呐。
其实,这个游戏,德语的论坛资料最全,甚至还有提供物品下载。也就是说,你不用一个一个物品打,直接下载文件后就可以得到青/金色物品,还造等级整理了(15,30,45到200),太方便了。
看得懂的,可以去这个网下载:
http://www.sacred2chest.de/
还有一个德文论坛帖,有所有职业,所有的装备外观图片:
编辑:免了,请看中文版:
http://3dmgame.chnren.com/bbs/showtopic-1134715.html
还有一个,是目前最大型的MOD
http://www.cisacred.de/showthread.php?t=2390
该了好多装备和坐骑外观,以及一些游戏内容小调整。
不过,目前实在没时间翻译。。。等周末再说吧。 lz很强大 果然还是原文的网站资料最全,LZ辛苦 LZ辛苦,虽然看不懂 只是那个最后那个网站是德语的,挂上谷歌看吧,多谢LZ整理 楼主辛苦了。。。。。。。。 看着好头疼啊……不过辛苦了 还有一个,是目前最大型的MOD
http://www.cisacred.de/showthread.php?t=2390
该了好多装备和坐骑外观,以及一些游戏内容小调整。
请问是下载里面的SP 还是MP,有什么区别? 大型MOD哪个是原版用的啊? 谁来翻译一下
页:
[1]