thpsX

- => General THPS(X) => Topic started by: Challenger on August 31, 2025, 11:07:46 am

Title: THAW CAS Flash Glitching Deep Dive
Post by: Challenger on August 31, 2025, 11:07:46 am
Background:

https://thpsx.com/forums/index.php?topic=288.0

I recommend reading that whole thread but TLDR, yesterday I confirmed the CAS color flashing glitch works in THAW (as well as THUG2 as many people already knew). Now that I have found the CAS clothing/accessory infinite saturation and value Gameshark codes for the colors...

Inf. Saturation Scales:
20D0CD54 00000000
20D0CD68 00000000

Inf. Value Scales:
20D0CD7C 00000000
20D0CD90 00000000

I began testing pieces in THAW in PCSX2 to see which clothing and accessory items flashed well. Unfortunately the color effects do not apply consistently across all items (I think this was the case in THUG2 as well) so the glitch doesn't work with everything. Also, secondary colors do work as well but the main color has to be flashed first.

Here is a list of what works with this glitch (items further down each list seem to not work).

Torso Options

Sleeveless
Ringer T
Long Sleeve T
Long Striped
Baseball 1
Baseball 2
Layered T
Military Coat
Hoody
Zip-Up Hoody
Pully Hoody
Zip Sweater
Leather Vest
Leather Jacket 1
Leather Jacket 2
Denim Jacket
Sleeveless Denim

All Left Accessories
All Right Accessories
Glove 2
All Misc Items
All Backpacks

Here's a list of what doesn't work. Since the selection of pants is much more limited and only a small number don't flash.

Leg Options

Camo Shorts
Hurley Icon Jeans
DVS Jeans
Etnies Jeans
DC Aidan DX Jean

Here is a list of what works:

Knee Pads
All Socks
All Shoes

Hair

Devil Lock
McSqueeb R
Liberty Spikes 1
Liberty Spikes 2
Spiked 2
Long

Hats

Baseball Cap
Cap Backwards
Upturned Bill
Trucker Backwards
Beanie
Brimmed Beanie
Beret Cap
Hat Hair Medium

Unfortunately glasses, facial hair, skin (yes, really) and board wheels are not flashable in-game.
Title: Re: The State of CAS Flash Glitching in THAW
Post by: Challenger on August 31, 2025, 01:41:17 pm
Screenshot photobomb incoming, 56k warning for those old enough to remember what that means:

https://imgur.com/a/YSOTqBl

Or open the spoiler:

(https://i.imgur.com/d8YuySi.jpeg)
(https://i.imgur.com/iAHgI5K.jpeg)
(https://i.imgur.com/zVp3Ohr.jpeg)
(https://i.imgur.com/sj9h5HS.jpeg)
(https://i.imgur.com/xOeUdUR.jpeg)
(https://i.imgur.com/RRRBy16.jpeg)
(https://i.imgur.com/PAii1UW.jpeg)
(https://i.imgur.com/0J0gagD.jpeg)
(https://i.imgur.com/AdH6BNN.jpeg)
(https://i.imgur.com/WFYl3q2.jpeg)
(https://i.imgur.com/qJo9UW2.jpeg)
(https://i.imgur.com/JErEXsf.jpeg)
(https://i.imgur.com/5dTWlYb.jpeg)
(https://i.imgur.com/BsBoURb.jpeg)
(https://i.imgur.com/ekXpxzR.jpeg)
(https://i.imgur.com/daNaaPf.jpeg)
(https://i.imgur.com/tCK53Ue.jpeg)
(https://i.imgur.com/neXRTjc.jpeg)
(https://i.imgur.com/XhJUojf.jpeg)
(https://i.imgur.com/Oa5g8G3.jpeg)
(https://i.imgur.com/ZpQwOd4.jpeg)
(https://i.imgur.com/lII7HXs.jpeg)
(https://i.imgur.com/a266DfK.jpeg)
(https://i.imgur.com/fZVD9ks.jpeg)
(https://i.imgur.com/RdZ9zVZ.jpeg)
(https://i.imgur.com/6SawKl8.jpeg)
(https://i.imgur.com/NZCixOA.jpeg)

Crying rainbows, nuclear skies, and broken parrots, oh my!
Title: Re: The State of CAS Flash Glitching in THAW
Post by: Challenger on August 31, 2025, 06:44:15 pm
I hope my consecutive posting isn't an issue, there's too much to add to a single post and breaking these up hopefully makes things more digestible.

I went back to the hex editor and found the reason some items don't flash when have I hue set to the far left (red), saturation 17 ticks to the right, and value 18 ticks to the right. Some items don't end up with the correct pair of values to trigger the glitch. Injecting 0x65 for sat and 0x56 for val lets you flash literally anything. Just re-calculate the CRC32 checksum and inject the new checksum into the first 4 bytes of the CAS file.

(https://i.imgur.com/I36ZW9y.png)
(https://i.imgur.com/kNKAqPT.png)

The CAS parameters are almost halfway into the file at the top of the next block of data after a block of zeroes. I call this the LUSA zone (Sonic Reducer certainly ain't one).

(https://i.imgur.com/z9Vsv0h.png)

A link for that checksum tool if anyone wants it (I think I got this from thmods.com before it died a few years ago):

https://archive.org/details/thug2-save-file-checksum-utility

A shirt (tanktop) that normally doesn't flash using the in-game adjustments:

(https://i.imgur.com/E7WqgbE.jpeg)

(https://i.imgur.com/dBsAy7p.jpeg)

(https://www.memecreator.org/static/images/memes/5478685.jpg)

For the hue, it's a bit weird. Here's how I found it. 2 bytes back from 0x65 0x90 0x21 0x56, there should be 0x1F before 0x90 0x20. Before that should be a 0x92. So the sequence should appear as follows to edit the hue/sat/val and flash an object on your CAS:

(https://i.imgur.com/6OgrpWL.png)

What I've marked up in red is what I noticed after moving the hue 1 tick to the right from the far left (red) position (hue in the far left position is needed for the glitch to work). The 0x92 at the beginning changed to 0x90 and 0x05 was inserted after the following 0x1F. Can't explain why, maybe it's a least significant byte that otherwise isn't needed. I deleted that 0x05 and changed the 0x90 to 0x92. Then the object was flashed since that set the hue to the correct far left (red) position.

Confused yet?
Title: Re: THAW CAS Flash Glitching Deep Dive
Post by: Challenger on September 01, 2025, 12:04:51 pm
Final update for now. For reasons unknown, the glitch doesn't work with facial hair color and board wheel color using the hex editor method. I also tried to document a table for which parameters go with which objects but the game engine constantly adds and removes parameters from the array in the save file as you make various changes.

And speaking of skin, I present these abominations! All I can say is the guy looks like he has LSD Freddy Krueger hands and the girl looks like a witch fit to be burned at the stake.

(https://i.imgur.com/xx1drB5.jpeg)
(https://i.imgur.com/BA5jF0z.jpeg)
(https://i.imgur.com/6PCGojP.jpeg)
(https://i.imgur.com/mUCDjhe.jpeg)
(https://i.imgur.com/7sgDNQd.jpeg)
(https://i.imgur.com/Mb7Q9J5.jpeg)
(https://i.imgur.com/DHmS8cj.jpeg)
(https://i.imgur.com/ihsfHe3.jpeg)
(https://i.imgur.com/plRcLUh.jpeg)
(https://i.imgur.com/ndr2WlI.jpeg)
(https://i.imgur.com/NbuVSx9.jpeg)
(https://i.imgur.com/etmyVoI.jpeg)
(https://i.imgur.com/oZHOJ2w.jpeg)
(https://i.imgur.com/0nkgVo4.jpeg)
(https://i.imgur.com/i2Kg4XP.jpeg)
(https://i.imgur.com/rZu2SMq.jpeg)
(https://i.imgur.com/dvbyk0E.jpeg)

Also tried flashing a few glasses. The Aviators look like a monocole off to the side and in some cases the frame just disappears, leaving floating lenses that look pretty cool. Glasses that colorize the lenses look even more broken (last screenshot).

(https://i.imgur.com/U58t3sz.jpeg)
(https://i.imgur.com/8Kxllzt.jpeg)
(https://i.imgur.com/wSYafBW.jpeg)
(https://i.imgur.com/WObfCyB.jpeg/img][/spoiler]In other cases, flashed objects will just disappear completely. Here's the Mohawk B hair.[spoiler][img]https://i.imgur.com/BsM5hVb.jpeg)

The Afro turned out well, but he looks like he's literally beside himself. He also gets a wind sail behind him at times.

(https://i.imgur.com/fWCxeIq.jpeg)
(https://i.imgur.com/S0YPpxs.jpeg)
(https://i.imgur.com/DBJFklX.jpeg)

Now testing the goofy hats. The Dunce Hat is another one that completely vanishes. Don't look down or else you skater will stare back into your soul.

(https://i.imgur.com/X96v8Yc.jpeg)
(https://i.imgur.com/6LXeueS.jpeg)
(https://i.imgur.com/QpIXUwA.jpeg)

And there are certain hats that flash particularly well with no blinding spiky polygon side effects. Here are the Headphones. They are perfect except for the invisible piece in the center.

(https://i.imgur.com/zFZNDGP.jpeg)
(https://i.imgur.com/7WLEObl.jpeg)
(https://i.imgur.com/Hurp13b.jpeg)
(https://i.imgur.com/rkOJlGb.jpeg)
(https://i.imgur.com/uxq6I0S.jpeg)

Here's the Pirate Hat as another example.

(https://i.imgur.com/RNnzkMP.jpeg)
(https://i.imgur.com/SOQhz9v.jpeg)
(https://i.imgur.com/BI76bqY.jpeg)

And the Sombrero. I believe this was commonly used in THUG2 because it looks so perfect when flashed.

(https://i.imgur.com/I9Ln5Ne.jpeg)
(https://i.imgur.com/0nBKk9B.jpeg)
(https://i.imgur.com/2RzMV0d.jpeg)

Some more imperfect hats. The Sun Hat...

(https://i.imgur.com/PKubM44.jpeg)
(https://i.imgur.com/dU8osiJ.jpeg)

The Top Hat...

(https://i.imgur.com/X53L3rF.jpeg)
(https://i.imgur.com/BHPSpgy.jpeg)

And the Tall Hat, which looks like a party hat to me...

(https://i.imgur.com/BFZoRWN.jpeg)
(https://i.imgur.com/48SzHJn.jpeg)

Here's the Turban, definitely not perfect.

(https://i.imgur.com/9tWoMyi.jpeg)
(https://i.imgur.com/JRRZFQE.jpeg)

And the best, in my opinion, has to be the Paper Bag. It looks like Spongebob soaked up some rainbow paint. The geometry isn't even broken, just off-center. The eyeballs also flash, and the bag warps and flops all over the place while you run. This one's great fun!

(https://i.imgur.com/a3KKVxm.jpeg)
(https://i.imgur.com/OMTKe18.jpeg)
(https://i.imgur.com/q6sl5ZI.jpeg)
(https://i.imgur.com/AKnbFw8.jpeg)
(https://i.imgur.com/vY6hLWM.jpeg)
(https://i.imgur.com/lRpvoe8.jpeg)
(https://i.imgur.com/aw2EhQZ.jpeg)

Imgur album link if you want it for some reason.

https://imgur.com/a/nkR1D2r

If you bothered to scroll this far, I've attached the male and female flashy skin CAS files if interested for SLUS-21208 version 1.00. You have to have memory cards configured in PCSX2 to use a folder, not a memory card image file. Just unzip the file and paste the 2 folders into the PCSX2 memcards\memorycard.ps2 folder in wherever you have that data stored and they will show up in-game so you can load and experiment with them. I've found swapping around clothes changes their appearance, to make things extra creepy.

Thanks for reading, now go outside and enjoy your Labor Day.