GameSir's Archiver

talenzz 发表于 2008-4-22 11:17

[教程]关于修改首饰的性别和让一种首饰与其他并存(底下有讲解。。)

转自MTS

修改首饰的性别
It depends on the accessory. Males and females have differently-shaped heads and if it's a head accessory, it very well might need to be remeshed to fit the other head. If fit doesn't matter, you can open up the mesh overlay XML in the file in SimPE and change the gender line to 0x03 for both genders.



==============
Making an Accessory Wearable With Another Accessory
As you are aware, a sim can only wear one pair of glasses at a time. When you clone glasses to make a new accessory, it will behave in the same way. This obviously isn't necessary if the accessory is, say, earrings - at that point you'd like your sim to be able to wear earrings *and* glasses, for instance.

The key is the the bin number in the Mesh Overlay XML.

Glasses use 0x0000000F

That's 0x (for Hex) followed by 8 digits.

Some of the other Maxis makeup uses other low numbers, but you can use any larger HEX number - you should try to make it unique to avoid conflicts with other accessory makers, although if you happen to have say, a 'hat' or 'earrings' made by other person in your game, you might code yours to use the same code - so that the game will automatically do the right thing.

You must be sure to change the bin number of all the ages you are using, but you only need to do it to your original BodyShop .package in your Saved Sims folder. Then if you later make recolors from it, BodyShop will include the new bin number in your recolors.

----
What is a Hex number?

Hex numbers use 0-9 and A-F as their digits. They're written in SimPE as
0x followed by 8 digits.
So, the glasses value 0x0000000F has the numeric value of 15

What you need to do is create some random 8 digit long number in hex (using any combination of 0-9 A-F) and put that value in instead, after the 0x part.

Here's the math about Hex numbers, if you want to understand a bit more about why we're writing numbers with letters and numbers.
[url]http://www.the-eggman.com/seminars/about_hex.html[/url]

(Thank you Dr Pixel and SnowStorm for these additional details)

[[i] 本帖最后由 sunair 于 2008-6-4 09:47 编辑 [/i]]

talenzz 发表于 2008-4-22 11:20

hiahia,转了方便自己看的[img]smilies/tuski/etsk002.gif[/img]

[[i] 本帖最后由 talenzz 于 2008-4-22 11:22 编辑 [/i]]

晨の舞 发表于 2008-4-22 11:20

.恩,关于这个属性叠加,就是用SIMPE打开改色文件. 在XML目录下,改变BIN的数值,
用十六进制的,把F变成1或者2.3切记不能和别的重复,不然就不能叠加了~
8位以上变ABCD...

关于改变性别,和头发衣服是一样的,呵呵

雪霁散人 发表于 2008-4-22 14:48

好,正缺这个呢。谢谢楼主。

xiyao 发表于 2008-4-22 15:22

期待中文版[img]smilies/face/face006.gif[/img]

talenzz 发表于 2008-4-22 15:47

我两个都实践过了、

先说第一个吧,就和男发改女发一样。
打开BS创建细节--导出你要修改的饰品---然后再导回游戏中。

用simpe打开savedsims中的刚才导入的饰品改色文件。
左边那栏有个  mesh overlay xml   的项目,点它----然后点右边出现的每一条,依次点,   记得,改完了要点击commit
下边的cpf editor  中,一个个把gender都改了
本来的value是0x00000001     现在把1改成3就OK了。。

其实和改头发的性别几乎一样。
当然如果mesh只是适合女生,那改成男生后方位会有问题的,比如项链嵌到身体里了。。。我上次就是。。还是要自己修改下mesh的

[[i] 本帖最后由 talenzz 于 2008-4-22 16:56 编辑 [/i]]

84093950 发表于 2008-4-22 15:47

[img]smilies/face/face044.gif[/img]收藏 以后学习 [img]smilies/face/face044.gif[/img]

牛头人 发表于 2008-4-22 15:53

收藏,用到时看.[img]smilies/face/face008.gif[/img]

talenzz 发表于 2008-4-22 15:57

第二个,饰品的共存问题。
就直接打开那个饰品的改色文件。
然后点左边那栏的   Mesh Overlay XML
然后右边出来一堆,还是依次改,每一个都要改的。
点右边的,然后点下面的  bin(dtUinteger)  右边的value自己改就行了。

游戏自带的眼镜的value是  0x0000000F
这是16进制的算法,0-9,A-F
所以眼镜的value  是F,也就是15.  
我们要把自己的东西的value尽可能往大了改才好。 因为游戏自带东西的很多value都小于15.


注意,改的话是该0x   后面那8个数字,只改那8个。可以改成比如0x644E1FDC    ,  0x644E1FDE 等等啦。

反正不重合就能随便搭配了。   
表忘了, 那8个数字是在  0-9与A-F中选择的。

每一个改好了别忘了点commit

我说的如果有什么问题,进来的同鞋一定要指正鸟。

[[i] 本帖最后由 talenzz 于 2008-4-22 16:56 编辑 [/i]]

梦儿 发表于 2008-4-22 16:35

[img]smilies/face/face018.gif[/img]

清菊花 发表于 2008-4-23 23:44

[quote]原帖由 [i]talenzz[/i] 于 2008-4-22 15:57 发表 [url=http://bbs.gamesir.com/redirect.php?goto=findpost&pid=565462&ptid=23911][img]http://bbs.gamesir.com/images/common/back.gif[/img][/url]
第二个,饰品的共存问题。
就直接打开那个饰品的改色文件。
然后点左边那栏的   Mesh Overlay XML
然后右边出来一堆,还是依次改,每一个都要改的。
点右边的,然后点下面的  bin(dtUinteger)  右边的value自己改就行了。

游戏自带的眼镜的value是  0x0000000F
这是16进制的算法,0-9,A-F
所以眼镜的value  是F,也就是15.  
我们要把自己的东西的value尽可能往大了改才好。 因为游戏自带东西的很多value都小于15.

... [/quote]
这么说的话眼镜和头饰就能一起用了,是这样吧

talenzz 发表于 2008-4-23 23:45

是这样的。

chin30 发表于 2008-4-23 23:56

收藏了XD
會做MESH的高手越來越多了呢~~~~[img]smilies/face/face044.gif[/img]

xiyao 发表于 2008-4-24 01:23

唉。。。这么重要的技术为什么才出现啊!!!

想当初google翻译+金山词霸看了两天终于通了,那叫郁闷[img]smilies/face/face002.gif[/img]

页: [1]

Powered by Discuz! Archiver 6.1.0  © 2001-2007 Comsenz Inc.