3DMGAME 3DM首页 新闻中心 前瞻 | 评测 游戏库 热门 | 最新 攻略中心 攻略 | 秘籍 下载中心 游戏 | 汉化 购买正版 论坛

注册 登录

QQ登录

只需一步,快速开始

查看: 16361|回复: 12
打印 上一主题 下一主题

[原创] 《存档修改大法》之——《更改发型(甚至改成其他种族的发型),更改皮肤+头发+背包妖怪的颜色》篇

[复制链接]

2

主题

311

帖子

382

积分

高级玩家

Rank: 4

贡献度
35
金元
2418
积分
382
精华
0
注册时间
2008-9-30
跳转到指定楼层
主题
发表于 2010-2-22 23:54 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
刚刚写完。。。现在太晚了,好累。。。改天再翻译。。。各位大大就将就将就看看吧。
原文:
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:Users[Your User Name]Saved 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:
[HS HS] ? [IM] [RR] [GG] [BB] [SC]

Meaning:
[HS HS] = 2 bytes representing Hair Style
? = I haven't figured out what this 1 byte means
[IM] = 1 byte representing Imp Color
[RR] [GG] [BB] = each of these bytes representing the RGB values of your hair color.
[SC] = 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 [HS HS] with [80 0F].
- if I want my seraphim to have seraphim's last hairstyle, I'll fill in the [HS HS] with [BE 32].
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.)







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 [00].
The color at the right-most side of the bar, is [1F].
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 [IM] as [08].


Hair Color

Well, this is even more straight-forward...just replace [RR GG BB] 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 [00] as the first skin, and end with [F8] 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:


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 [RR GG BB] values of [10 10 10].
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:
[HS HS] = 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. [Thanks to Sankekur!]

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
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

0

主题

1486

帖子

7083

积分

云游仙境

Rank: 12Rank: 12Rank: 12

贡献度
1515
金元
10232
积分
7083
精华
0
注册时间
2007-12-20
舒服的沙发
发表于 2010-2-23 23:07 | 只看该作者
LZ初稿就直接写成了英文吗
回复 支持 反对

使用道具 举报

2

主题

311

帖子

382

积分

高级玩家

Rank: 4

贡献度
35
金元
2418
积分
382
精华
0
注册时间
2008-9-30
硬硬的板凳
 楼主| 发表于 2010-2-24 03:03 | 只看该作者
怪了。。。用编辑后,怎么多出了一个帖?
版主请删这个帖,谢谢。
回复 支持 反对

使用道具 举报

2

主题

311

帖子

382

积分

高级玩家

Rank: 4

贡献度
35
金元
2418
积分
382
精华
0
注册时间
2008-9-30
冰凉的地板
 楼主| 发表于 2010-2-24 03:03 | 只看该作者
更新了:找到所有女性职业全部发型代码了!万岁!!![em09]
不看全文的,至少看看图片就知道效果了。
发型代码-〉见帖尾。
LZ初稿就直接写成了英文吗
davidmouse 发表于 2010-2-23 23:07:00

英文游戏,毕竟还是那儿资料多。。。从那儿学得也比较多。。。
小弟写的这篇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
该了好多装备和坐骑外观,以及一些游戏内容小调整。

不过,目前实在没时间翻译。。。等周末再说吧。
回复 支持 反对

使用道具 举报

2

主题

253

帖子

185

积分

中级玩家

Rank: 3Rank: 3

贡献度
10
金元
2047
积分
185
精华
0
注册时间
2009-4-19
5#
发表于 2010-2-24 15:43 | 只看该作者
lz很强大
回复 支持 反对

使用道具 举报

0

主题

1486

帖子

7083

积分

云游仙境

Rank: 12Rank: 12Rank: 12

贡献度
1515
金元
10232
积分
7083
精华
0
注册时间
2007-12-20
6#
发表于 2010-2-26 23:13 | 只看该作者
果然还是原文的网站资料最全,LZ辛苦
回复 支持 反对

使用道具 举报

0

主题

3413

帖子

4577

积分

游戏精英

Rank: 8Rank: 8

贡献度
600
金元
21768
积分
4577
精华
0
注册时间
2009-6-20
7#
发表于 2010-3-7 20:35 | 只看该作者
LZ辛苦,虽然看不懂
回复 支持 反对

使用道具 举报

0

主题

20

帖子

80

积分

初级玩家

Rank: 2

贡献度
2
金元
720
积分
80
精华
0
注册时间
2010-6-15
8#
发表于 2010-6-15 22:35 | 只看该作者
只是那个最后那个网站是德语的,挂上谷歌看吧,多谢LZ整理
回复 支持 反对

使用道具 举报

0

主题

291

帖子

282

积分

高级玩家

Rank: 4

贡献度
15
金元
2220
积分
282
精华
0
注册时间
2009-2-14
9#
发表于 2010-6-16 08:04 | 只看该作者
楼主辛苦了。。。。。。。。
回复 支持 反对

使用道具 举报

8

主题

358

帖子

325

积分

高级玩家

Rank: 4

贡献度
10
金元
2849
积分
325
精华
0
注册时间
2007-2-13
10#
发表于 2010-6-16 13:29 | 只看该作者
看着好头疼啊……不过辛苦了
回复 支持 反对

使用道具 举报

24

主题

1513

帖子

2023

积分

游戏达人

Rank: 7Rank: 7Rank: 7

贡献度
169
金元
13365
积分
2023
精华
1
注册时间
2009-8-3
QQ
11#
发表于 2010-7-19 17:08 | 只看该作者
[quote]还有一个,是目前最大型的MOD
http://www.cisacred.de/showthread.php?t=2390
该了好多装备和坐骑外观,以及一些游戏内容小调整。[/quote]

请问是下载里面的SP 还是MP,有什么区别?
回复 支持 反对

使用道具 举报

52

主题

2945

帖子

4294

积分

3DM-Sims小组

Rank: 12Rank: 12Rank: 12

贡献度
234
金元
33576
积分
4294
精华
0
注册时间
2008-3-19
12#
发表于 2010-12-4 22:57 | 只看该作者
大型MOD哪个是原版用的啊?
回复 支持 反对

使用道具 举报

0

主题

3

帖子

2

积分

新手玩家

Rank: 1

贡献度
0
金元
615
积分
2
精华
0
注册时间
2011-9-25
13#
发表于 2011-9-27 15:55 | 只看该作者
谁来翻译一下
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|咖绿茵|求知网|3DMGAME ( 京ICP备14006952号-1  沪公网安备 31011202006753号

GMT+8, 2024-10-2 10:27 , Processed in 0.261127 second(s), 17 queries , Memcache On.

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表