Making clothes non-overwriting
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


I've been asked a few times how to make clothes -- and toyz, it works the same really for them -- show up properly in the closet as themselves. You've made your dream item... edited its .CLZ section, given it a heavenly texture bitmap, given it its own filmstrip, given it an ID number that does work, gone through all the steps in various tutorials so it shows up okay... but it still looks like the original (on shelf or off it) or the original now looks like yours.

Okay, don't panic. Here's the basics for you, using the blue and red Tuque as example.

The first part that's important as regards your problem is this:

00007100 0C71 0010 0C71 0010 0000 0011 5844 6F77 .q...q......XDow
00007110 6E6C 6F61 6400 0000 5370 7269 7465 5F43 nload...Sprite_C
00007120 6C6F 745F 4861 744B 6E69 745F 426C 7565 lot_HatKnit_Blue
00007130 5265 6400 5265 666C 6563 7469 7665 0000 Red.Reflective..

You have to rename the sprite from Sprite_Clot_HatKnit_BlueRed to something else -- just change one letter, make it something like Sprite_Clot_HatKnit_BlueRex

And again here, make it the same change:

00007460 682A 0010 0000 0000 2E3F 4156 5370 7269 h*.......?AVSpri
00007470 7465 5F43 6C6F 745F 4861 744B 6E69 745F te_Clot_HatKnit_
00007480 426C 7565 5265 6440 4000 0000 0000 0000 BlueRed@@.......

Right, now you need to scroll down a bit more until you get to the part that looks like this:

00008220 0300 4300 4C00 5A00 1400 4300 4C00 4F00 ..C.L.Z...C.L.O.
00008230 5400 5F00 4800 4100 5400 4B00 4E00 4900 T._.H.A.T.K.N.I.
00008240 5400 5F00 4200 4C00 5500 4500 5200 4500 T._.B.L.U.E.R.E.
00008250 4400 0300 4600 4C00 4800 1900 4300 4C00 D...F.L.H...C.L.
00008260 4F00 5400 5F00 4800 4100 5400 4B00 4E00 O.T._.H.A.T.K.N.
00008270 4900 5400 5F00 4200 4C00 5500 4500 5200 I.T._.B.L.U.E.R.
00008280 4500 4400 5F00 4100 5700 4100 5900 0300 E.D._.A.W.A.Y...
00008290 4600 4C00 4D00 0300 5400 5800 5400 1B00 F.L.M...T.X.T...
000082A0 4200 4500 5600 4500 4E00 5400 5F00 4300 B.E.V.E.N.T._.C.
000082B0 4C00 4F00 5400 5F00 4800 4100 5400 4B00 L.O.T._.H.A.T.K.
000082C0 4E00 4900 5400 5F00 4200 4C00 5500 4500 N.I.T._.B.L.U.E.
000082D0 5200 4500 4400 1B00 5300 4F00 5500 4E00 R.E.D...S.O.U.N.

It's a list of all that's in the file, so that the game can find things, you see, and it's in unicode which is why there is a 00 after each letter.

Each instance of

C.L.O.T._.H.A.T.K.N.I.T._.B.L.U.E.R.E.D

change to

C.L.O.T._.H.A.T.K.N.I.T._.B.L.U.E.R.E.X

Now get to this part -- it'll be directly below that list if you're doing it in a hex editor, but if you've used Resource Hacker or Tinker on the file it'll be down below the Naming Area:

00008310 0100 0000 5370 7269 7465 5F43 6C6F 745F ....Sprite_Clot_
00008320 4861 744B 6E69 745F 426C 7565 5265 6400 HatKnit_BlueRed.
00008330 0000 0000 426C 7565 2061 6E64 2052 6564 ....Blue and Red
00008340 2054 7571 7565 0000 0000 0000 0000 0000 Tuque..........
00008350 0000 0000 B93A 0000 0300 4000 0000 0000 .....:....@.....

As well as changing the ID number here -- it's B93A of course, if you look in the hexadecimal area of this example -- you also need to change that Sprite_Clot_HatKnit_BlueRed to Sprite_Clot_HatKnit_BlueRex

Almost done now. You need to go to the Naming Area, which you can get to in your hex editor by searching for the hex string 50004600 -- and we see this:

0000CC50 0000 0000 0000 0000 1200 4200 6C00 7500 ..........B.l.u.
0000CC60 6500 2000 6100 6E00 6400 2000 5200 6500 e. .a.n.d. .R.e.
0000CC70 6400 2000 5400 7500 7100 7500 6500 1200 d. .T.u.q.u.e...
0000CC80 4200 6C00 7500 6500 2000 6100 6E00 6400 B.l.u.e. .a.n.d.
0000CC90 2000 5200 6500 6400 2000 5400 7500 7100 .R.e.d. .T.u.q.
0000CCA0 7500 6500 1400 4300 6C00 6F00 7400 5F00 u.e...C.l.o.t._.
0000CCB0 4800 6100 7400 4B00 6E00 6900 7400 5F00 H.a.t.K.n.i.t._.
0000CCC0 4200 6C00 7500 6500 5200 6500 6400 0000 B.l.u.e.R.e.d...

Right. You should really rename your file here -- in Petz you _have_ to, in Babyz you really should although the game is very forgiving about that. But what you do have to do for your problem to be fixed is to rename this bit
C.l.o.t._.H.a.t.K.n.i.t._.B.l.u.e.R.e.d
to
C.l.o.t._.H.a.t.K.n.i.t._.B.l.u.e.R.e.x

Save, close and run the game. If all went well, you should now see your hexed item working separately from the original.

Good luck!

Carolyn