xboxscene.org forums

OG Xbox Forums => Game Hacking => Xbox Game Forums => Game Hacking - * Everything Else.* => Topic started by: krawhitham on June 16, 2005, 11:08:00 AM

Title: Need A Bmp Swizzle/unswizzle Util
Post by: krawhitham on June 16, 2005, 11:08:00 AM
I need a util the will take a 24 bpp BMP and Swizzle and unswizzle them image with the output format also BMP 24 bpp.

this is for MVP baseball 2005 but should work with any EA games that uses XSH files

I would perfer a command line program but at this point I'm not to picky

here is a image of what needs deswizzled

http://forums.xbox-s...dpost&p=2461431

Title: Need A Bmp Swizzle/unswizzle Util
Post by: UnReAlMaCk on June 16, 2005, 11:35:00 AM
not to mention this would be very useful for modding GTA San Andreas because the shirts and skins are swizzled also...

just wondering if this tool has already been created?

p.s krawhitham

im sure they will be releasing a swizzled/unswizzle tool for GTA SA, so you can check that out to!  tongue.gif
Title: Need A Bmp Swizzle/unswizzle Util
Post by: krawhitham on June 16, 2005, 12:00:00 PM
I searched for like 3 months and could not find anything, the closest I came was some TEX utilities
Title: Need A Bmp Swizzle/unswizzle Util
Post by: yardguy00 on June 16, 2005, 09:22:00 PM
this is a doau trainer.. but it also has a unswizzle proggy in it.. command line...
hope it works for you
http://forums.maxcon...hp?postid=24128

please go to ninjahacker.net for your donation  beerchug.gif
Title: Need A Bmp Swizzle/unswizzle Util
Post by: krawhitham on June 18, 2005, 10:30:00 AM
QUOTE(yardguy00)
please go to ninjahacker.net for your donation  beerchug.gif
Title: Need A Bmp Swizzle/unswizzle Util
Post by: brienj on June 18, 2005, 12:16:00 PM
Search on Google for a program called The Compressonator.  wink.gif
Title: Need A Bmp Swizzle/unswizzle Util
Post by: BILLS on June 18, 2005, 01:52:00 PM
Hey Yardyguy, that Swizzle program that comes with the doau trainer, i think it really is crap, it odesnt work for me, at all. Ask magus about a deswizzling program, he does a lot with screenshot stuff.
Title: Need A Bmp Swizzle/unswizzle Util
Post by: krawhitham on June 29, 2005, 01:23:00 AM
QUOTE(Kazaki @ Jun 29 2005, 01:14 AM)
Must you unswizzle the MVP graphics from the Xbox?
Title: Need A Bmp Swizzle/unswizzle Util
Post by: brienj on June 29, 2005, 11:23:00 AM
Yes, it would be very helpful if we had a sample graphic to work with.  wink.gif
Title: Need A Bmp Swizzle/unswizzle Util
Post by: krawhitham on July 01, 2005, 03:39:00 AM
QUOTE(Instigator @ Jun 29 2005, 06:37 PM)
Is PNG the native image format for MVP, or was it converted from something else?
Title: Need A Bmp Swizzle/unswizzle Util
Post by: Keshire on July 01, 2005, 05:53:00 AM
I was doing some research myself into this for fable.

Came up with this. Haven't messed with it yet.

http://playstation2-...ects/ezswizzle/
Title: Need A Bmp Swizzle/unswizzle Util
Post by: Zdemon29958 on July 01, 2005, 11:46:00 PM
A tool like that would help all game hackers  dry.gif
Title: Need A Bmp Swizzle/unswizzle Util
Post by: cypher35 on July 05, 2005, 12:40:00 PM
After working woth soul calibur for so long, i've come to realize that there are many different types of what people refer to as "swizzled/unswizzled".

Seeing as i'm out of a job and up to my ears in legal fees, i wouldn't mind taking on the challenge...  But if someone here is going to crack this format, the first thing we'll need it a picture of what this image is *supposed* to look like.  (screenshot from the game, etc...)  I'll also need the file itself as opposed to a screenshot of it.
Title: Need A Bmp Swizzle/unswizzle Util
Post by: BILLS on July 11, 2005, 07:58:00 PM
yea guess so, but others havent, it would still be nice to have  sad.gif

Are you gonna jump into cypher? We kinda need a decent de-swizzler at wp's place, maybe i can ask magus....or boss to try to wip up something.....
Title: Need A Bmp Swizzle/unswizzle Util
Post by: cypher35 on July 14, 2005, 01:40:00 AM
perfect.  i'll take a look at them.

also, if you don't mind me being a little picky, is it possible to get an example with a bit more color variation?  when it's only a couple shades of grey/green and white it's hard to tell exactly how it was swizzled...

[EDIT]
these look fairly simple...  i think with a slight modification to my sc2 image unswizzler, i should be able to pull something off.
Title: Need A Bmp Swizzle/unswizzle Util
Post by: cypher35 on July 14, 2005, 08:04:00 PM
well, after my first try i came up with a strange result, but i think i'm on the right track.

check it out:
user posted image

it's not completely unscrambled, but it's getting there...
Title: Need A Bmp Swizzle/unswizzle Util
Post by: Zdemon29958 on July 15, 2005, 02:46:00 AM
Woah, that is good!

Here is one for Grand Theft Auto San Andreas:

What it is supposed to look like on PC:

user posted image

The swizzled image on xbox:

user posted image

I open them with txdworkshop, download it here if you want.
Title: Need A Bmp Swizzle/unswizzle Util
Post by: cypher35 on July 15, 2005, 12:49:00 PM
QUOTE(Zdemon29958 @ Jul 15 2005, 04:57 AM)
Woah, that is good!
Title: Need A Bmp Swizzle/unswizzle Util
Post by: Horscht on July 15, 2005, 12:56:00 PM
well, it probably has to do with the fact that the first pic is from the PC-version therefore having a higher resolution than the xbox one.
Title: Need A Bmp Swizzle/unswizzle Util
Post by: Zdemon29958 on July 15, 2005, 04:59:00 PM
All gta xbox images are compressed. That's how the game uses it.
Title: Need A Bmp Swizzle/unswizzle Util
Post by: BILLS on July 17, 2005, 09:48:00 AM
good job cypher  wink.gif

Up to usual bussiness i see  biggrin.gif
Title: Need A Bmp Swizzle/unswizzle Util
Post by: krawhitham on July 17, 2005, 11:53:00 AM
QUOTE(cypher35 @ Jul 15 2005, 08:57 PM)
Success!  i figured out the only reason that the image unswizzled strangely the first time was because the row order was reversed on the original file...
Title: Need A Bmp Swizzle/unswizzle Util
Post by: cypher35 on July 17, 2005, 05:11:00 PM
Cool, i'll get to work on a swizzling/unswizzling utility...

I need to find some documentation on the bmp file format so that the app can auto-detect 24bpp vs 32bpp as well as the "reverse row order" tag that caused me problems before.  After that's done it's simply a matter of writing an algorythm that does the exact opposite of the one i've already written.

I may be a little busy over the next few days, but i'll see if i can get a command line app with wildcard support and all that fun stuff by the end of the week.
Title: Need A Bmp Swizzle/unswizzle Util
Post by: BILLS on July 17, 2005, 05:26:00 PM
QUOTE(cypher35 @ Jul 17 2005, 08:22 PM)
Cool, i'll get to work on a swizzling/unswizzling utility...
Title: Need A Bmp Swizzle/unswizzle Util
Post by: NAMA on July 18, 2005, 02:30:00 PM
QUOTE(aruaru @ Jul 18 2005, 09:13 PM)
If it helps you or anyone else.... here's some code I wrote for a texture editing util for NFSU... never released the XBOX version though. Sorry for the VB code... wink.gif It will need some modification as CTpkTexture is a class that's used for NFSU textures, but the property names should be enough to explain what data is needed. "Swizzle" and "Unswizzle" are the main functions, "SwizBlock" and "UnswizBlock" are just helpers.
Title: Need A Bmp Swizzle/unswizzle Util
Post by: NAMA on July 18, 2005, 03:03:00 PM
ok, i got some time to modify proge to handle bmp. and here is the result
original:
user posted image
unswizzled:
user posted image
Title: Need A Bmp Swizzle/unswizzle Util
Post by: aruaru on July 18, 2005, 03:14:00 PM
QUOTE(NAMA @ Jul 18 2005, 05:41 PM)
Are you sure the code was written by you or it's not converted from C/C++?
Title: Need A Bmp Swizzle/unswizzle Util
Post by: themewin on July 18, 2005, 03:19:00 PM
QUOTE(cypher35 @ Jul 18 2005, 01:22 AM)
Cool, i'll get to work on a swizzling/unswizzling utility...
Title: Need A Bmp Swizzle/unswizzle Util
Post by: Drilus on July 18, 2005, 07:38:00 PM
there's a big different between visual basic and batch scripting.

that's not the full code anyway. he provided as an example to others on how it swizzling/unswizzling might be done.
Title: Need A Bmp Swizzle/unswizzle Util
Post by: brienj on July 18, 2005, 10:58:00 PM
biggrin.gif

I think it's VERY ironic that such an AWESOME program will be made, because of such a POS game.   beerchug.gif
Title: Need A Bmp Swizzle/unswizzle Util
Post by: guido on July 19, 2005, 08:46:00 AM
smile.gif
Title: Need A Bmp Swizzle/unswizzle Util
Post by: Hardcore Legend on July 19, 2005, 09:06:00 AM
QUOTE(guido @ Jul 19 2005, 04:57 PM)
MVP a POS game? Are you kidding me? Maybe you don't like sports games or something.. but with some datafile mods this is one of the best baseball games out there.
Title: Need A Bmp Swizzle/unswizzle Util
Post by: brienj on July 19, 2005, 09:49:00 AM
wink.gif

But hey, if you love Baseball, I guess you'd prolly like the game.  I always wanted a swizzle/unswizzle app to be made, and finally it looks like there will be one made.  It was such a pain trying to make one myself, and now I don't have to.  So thanks to all the people that put money out there to get others motivated to make the program.  wink.gif
Title: Need A Bmp Swizzle/unswizzle Util
Post by: BILLS on July 19, 2005, 06:37:00 PM
biggrin.gif  too bad, when DOAU was being looked into at the Hiveq we could never really use the swizzled screenshots of skins too effectively, now that part of the scene is out of commision, it doesnt really matter  sad.gif , for now.......
Title: Need A Bmp Swizzle/unswizzle Util
Post by: cypher35 on July 19, 2005, 11:13:00 PM
CODE
swizzle.exe - written by cypher35 on 7-19-05
================================================================
This is a  simple bitmap  swizzling utility that i  have created
in  my  spare time.  This program  was created  for  educational
purposes and what you do with it is your own business.

----------------------------------------------------------------

Useage:
swizzle [filename.ext] -s -u -inplace

Parameters:
-s         swizzles the image(s) selected (default)
-u         unswizzles the image(s) selected
-inplace   swizzles or unswizzles the files in place, deleting
              the original file


if the filename is one or more word, put it in quotes.

wildcards are accepted (ex. *.bmp)

----------------------------------------------------------------

if  -inplace is  not added,  the images  will simply be  renamed
with  a  _uns or  _swi  appended  to  them.  No  files  will  be
overwritten.  If  a file with  the same  name already  exists in
the current directory, a number is appended to the name.



Also, one minor note.  I have not encountered any swizzled images that have either:
1) a width greater than 2x it's height
2) a height greater than it's width

Due to the nature of the method for swizzling images, every swizzled image comes out as a horizontal rectangle or a perfect square.  However, in the event that an oddly sized file comes along, i have had to guess how to handle it.  It should work, but if you find that the program is producing strange results with images meeting the above criteria, let me know and send me an example file so i can fix the problem.
Title: Need A Bmp Swizzle/unswizzle Util
Post by: themewin on July 19, 2005, 11:18:00 PM
biggrin.gif
Title: Need A Bmp Swizzle/unswizzle Util
Post by: Hardcore Legend on July 20, 2005, 12:27:00 PM
Well, I think I've got the hang of it, but it tells me on every BMP that it is unable to open them.
Title: Need A Bmp Swizzle/unswizzle Util
Post by: cypher35 on July 20, 2005, 12:47:00 PM
did you read the readme file?

if you are getting a "file not found error"
the filename needs to be in quotes if it is more than one word.

if it says "unable to open file"
make sure the file is not open in another application.


if it's still unable to open it, send me the bitmap so i can figure out the problem.
Title: Need A Bmp Swizzle/unswizzle Util
Post by: Hardcore Legend on July 20, 2005, 12:50:00 PM
I figured it out.  Well, not really but I put it in a batch file and it worked that time.  Works to perfection.  You've done a bang up job.
Title: Need A Bmp Swizzle/unswizzle Util
Post by: Zdemon29958 on July 21, 2005, 07:50:00 AM
beerchug.gif
Zdemon
Title: Need A Bmp Swizzle/unswizzle Util
Post by: darkblizzard on July 21, 2005, 10:32:00 PM
any update if anyone plans to share the wealth? we can make some very good mods with it..
Title: Need A Bmp Swizzle/unswizzle Util
Post by: Keshire on July 25, 2005, 11:30:00 PM
www.rapidshare.de
Title: Need A Bmp Swizzle/unswizzle Util
Post by: krawhitham on July 26, 2005, 01:23:00 AM
QUOTE(cypher35 @ Jul 26 2005, 07:02 AM)
as i said before, i've given copies to both Kazaki and krawhitham and they can share the app if they feel like it...
Title: Need A Bmp Swizzle/unswizzle Util
Post by: Keshire on July 26, 2005, 02:50:00 AM
QUOTE(krawhitham @ Jul 26 2005, 03:34 AM)
Yeah I have not figured that out yet, I started the thread willing to pay $75 for a program I wanted, someone else comes along and offers $20 and he gets a copy of a program I paid $75 for
Title: Need A Bmp Swizzle/unswizzle Util
Post by: BILLS on July 26, 2005, 11:03:00 AM
QUOTE(cypher35 @ Jul 26 2005, 02:02 AM)
as i said before, i've given copies to both Kazaki and krawhitham and they can share the app if they feel like it...
Title: Need A Bmp Swizzle/unswizzle Util
Post by: themewin on July 26, 2005, 11:27:00 AM
Well, as you can see it's already hosted somewhere...
Title: Need A Bmp Swizzle/unswizzle Util
Post by: BILLS on July 26, 2005, 08:03:00 PM
mmm, ud have to ask cypher bout that..BTW, im hosting it at my site also

http://therockerscab...dex.php?act=idx
Title: Need A Bmp Swizzle/unswizzle Util
Post by: Keshire on July 26, 2005, 10:16:00 PM
QUOTE(cypher35 @ Jul 27 2005, 12:21 AM)
Sorry dude, i'm not trying to cheat you.  I guess i just misunderstood your request.
Title: Need A Bmp Swizzle/unswizzle Util
Post by: BILLS on July 26, 2005, 10:51:00 PM
oh shite...woops  tongue.gif  Now i got a copy of the program also.. and its on my site.."clean up on aisle 12" little bit of a mess no, biggie, ithink  sad.gif
Title: Need A Bmp Swizzle/unswizzle Util
Post by: Vampyr_X on August 05, 2005, 05:05:00 AM
This program looks cool, does it work with grand theft auto san andreas textures?
Title: Need A Bmp Swizzle/unswizzle Util
Post by: Potman on June 22, 2006, 09:12:00 PM
sry for replying this old thread,
but is there a new swizzle/unswizzle tool available with better stuff and easier to work with?
i havent been able to figure out how to make the tool here work.
man, need a stable tool for gta sa.
Title: Need A Bmp Swizzle/unswizzle Util
Post by: BILLS on June 23, 2006, 05:28:00 PM
gta sa? Did you check their forum? There were a few unswizzle apps released at that old GTA site..

Anyway, this unswizzler is for this baseball game not gta.