Bully-Board

Bully Modding Section => Modding Questions/Help => Modding Questions/Help Archives => Topic started by: Jordanator599 on January 04, 2013, 03:39:33 PM

Title: .cat files in Act.img
Post by: Jordanator599 on January 04, 2013, 03:39:33 PM
I am curious to whether it's possible to extract the contents of a .Cat file or something. I noticed the player's strafe on Bully (if you have an AI's fighting style) looks like the player is cheering, much like the "strafe" when other characters are watching a fight. I want to try and open Block.cat so I can modify it + see if I can get the normal Preppie strafe. Does anyone know if it's possible? (Yet)
Title: Re: .cat files in Act.img
Post by: Red Blaster on January 04, 2013, 03:46:21 PM
Well, through the catalog file method, you'd work on locomotion.cat.

But there is a lua method.
Title: Re: .cat files in Act.img
Post by: Jordanator599 on January 04, 2013, 03:54:53 PM
I don't know how to script - at all. :/ Could you tell me how I could change the strafe step-by-step please?
Title: Re: .cat files in Act.img
Post by: SWEGTA on January 04, 2013, 04:02:44 PM
I don't know how to script - at all. :/ Could you tell me how I could change the strafe step-by-step please?


I'm probably going to be making a tutorial later on this once I get more of a grip on it.
Feel free to check out my Youtube channel
http://www.youtube.com/SWEGTA (http://www.youtube.com/SWEGTA)
Title: Re: .cat files in Act.img
Post by: Jordanator599 on January 04, 2013, 04:04:13 PM
Thanks, mate. :) I've seen your channel, I'll stay tuned.
Title: Re: .cat files in Act.img
Post by: Al Arlington on January 04, 2013, 04:28:16 PM
I've been needing help withthis.

The anims are .cat, right?

Windows 7 automatically sees every .cat file as a security catalog.
Anyway to bypass this?
Or any software?

I've tried opening the .cat file with
Autodesk 3DS Max 2009
NifSkope


None was sucessful.
Title: Re: .cat files in Act.img
Post by: Jordanator599 on January 04, 2013, 04:36:33 PM
That's what I want to know... There must be some way to open the .cat files, then maybe we would have a chance to change the stupid strafe. XD

SWEGTA is working on a tutorial.
Title: Re: .cat files in Act.img
Post by: deadpoolXYZ on January 04, 2013, 04:39:58 PM
Derby with his boss fighting style and AI as a bodyguard has the "cheering" strafe.
Title: Re: .cat files in Act.img
Post by: Jordanator599 on January 04, 2013, 04:42:27 PM
What are you trying to say? Could it be a solution?
Title: Re: .cat files in Act.img
Post by: Al Arlington on January 04, 2013, 04:43:44 PM
That's what I want to know... There must be some way to open the .cat files, then maybe we would have a chance to change the stupid strafe. XD

SWEGTA is working on a tutorial.
I only need it for my GTA SA Bully mod. :P

Bully San Andreas. :D
Title: Re: .cat files in Act.img
Post by: deadpoolXYZ on January 04, 2013, 04:58:46 PM
Greenomnitrix got the P_Striker_A strafe Swapping Block.cat with Strafe_Preppie.cat.
The only problem was that everyone started strafing like that and Jimmy was uncontrolable.
Title: Re: .cat files in Act.img
Post by: Jordanator599 on January 04, 2013, 05:06:23 PM
I know, I've seen. MinimoBarba (MilkerBarba on YouTube) made a video on the fixed strafe, but it hasn't been released yet because of bugs.
Title: Re: .cat files in Act.img
Post by: Red Blaster on January 04, 2013, 05:41:13 PM
Trust me, nobody has fixed the strafe.

Right now, we can't work with the catalog files since they're compiled.

But as for the lua scripting method, I know what controls the strafe, but I haven't fully pinpointed how to enable it.
Title: Re: .cat files in Act.img
Post by: xXxNarumi on January 04, 2013, 07:25:07 PM
Mikerbarba never said it was fixed Jordan
It was half done but still buggy.
And for the .cat file its isn't easy to work on manually.
Messing with a single code in .cat for amateurs = massive horror
Title: Re: .cat files in Act.img
Post by: Jordanator599 on January 05, 2013, 04:06:50 AM
Many people misuse the words "amateur" and "professional". Being a professional doesn't make you good, it just means you are paid for what you do. As for amateurs, you can be good OR bad, but it means you aren't paid. ;) Oops, going a little off topic. xD Sorry.
Title: Re: .cat files in Act.img
Post by: xXxNarumi on January 05, 2013, 04:46:22 AM
Nope
Amateur means new, noob, low lv, getting started, etc
Pro means good, expert, highly skilled, etc
Title: Re: .cat files in Act.img
Post by: Evolution on January 05, 2013, 08:31:31 AM
Nope
Amateur means new, noob, low lv, getting started, etc
Pro means good, expert, highly skilled, etc

What you said is true, but you can still be an awesome Amateur.

Like 4 example, in Porn there can be an amateur pornstar who is awesome at her job. :P
Title: Re: .cat files in Act.img
Post by: xXxNarumi on January 05, 2013, 09:48:34 AM
If were gonna bring up porn we can bring that back the
[SICK/18+] RapeLay thread
Title: Re: .cat files in Act.img
Post by: MadmaN on January 05, 2013, 11:06:33 AM
Nope
Amateur means new, noob, low lv, getting started, etc
Pro means good, expert, highly skilled, etc

What you said is true, but you can still be an awesome Amateur.

Like 4 example, in Porn there can be an amateur pornstar who is awesome at her job. :p

Amateur is usually used as a insult to some people and personally it doesn't bother me.

It simply means that  the person is not formally trained and does not get paid as a professional to do the work. I have seen professionals that actually suck balls at the chosen profession they do ....like graphics professionals that use photoshop for example....I have been told by many people that I would far outstrip most so called professionals with my own skill and knowledge alone with just that program even tho I have NEVER been formally trained in its use...I am entirely all self taught....am self taught in almost everything I do know...including programming. That technically makes ME a amateur and not a professional.

xNarumi......what I would do is reword what you said to say that it is simply a nightmare for those that are not experienced enough...and just leave it that way since it could be taken in the wrong context  8)
Title: Re: .cat files in Act.img
Post by: Scoff on January 05, 2013, 11:09:50 AM
I found a program on google.It says that he can open .cat files.He is called ''FileViewPro''.I will check it out.

Edit:Forget it.That crap doesn't work.I will look another methods.
Title: Re: .cat files in Act.img
Post by: xXxNarumi on January 05, 2013, 11:43:57 AM
Yea ik i dont call people amateurs at all
when someone a beginner I just simply say new, newjack, freshblood, newbie ,etc
Title: Re: .cat files in Act.img
Post by: Red Blaster on January 05, 2013, 01:16:53 PM
I found a program on google.It says that he can open .cat files.He is called ''FileViewPro''.I will check it out.

Edit:Forget it.That crap doesn't work.I will look another methods.

The .cat files are compiled. There's no decompiler for these things unless we write it ourselves.
Title: Re: .cat files in Act.img
Post by: Jordanator599 on January 05, 2013, 05:10:02 PM
Can changing the strafe be done in HxD Hex Editor? I've opened the Locomotion.cat file and found a strafe line, but I'm not sure what to do with it.
Title: Re: .cat files in Act.img
Post by: Red Blaster on January 05, 2013, 06:58:31 PM
Not unless you want to risk fucking up the .cat file.
Title: Re: .cat files in Act.img
Post by: Evolution on January 05, 2013, 10:09:26 PM
^ I'm guessing reinstalling isn't an option to fix it if you were to fuck up on the .cat files?... Or am I wrong?
Title: Re: .cat files in Act.img
Post by: MadmaN on January 06, 2013, 12:41:58 AM
Just to let everyone in here know...Red knows this btw.

The .cat files are actually archives similar to the .img files. Only they use a small layer of encryption and rather then compress the contents...the .cat files act like simple container files.

Their contents are simple:

folders listing, and config files in each folder sharing the same name. The folder and config files are for each move or moves for the fighting style or animations in question. There is also a index file that references all the rest of the files in that .cat archive...loads all of them and also references from a master .cat file. There is a binary file that deals with the strafe animation and maybe one or two more binary files....not fully sure there since I am going off what my contact told me and what I was able to find out by brute forcing the file to see what is really inside.

I was able to partially extract one file but what I got was not usable so I know they can be extracted....but even I am not skilled enough at reverse engineering a file format like this...its a tough one.

One of my modding team-mates asked for help regarding this format over at the xenetax forums but it was ignored totally so.....its gonna be hard finding someone that can really help with cracking this.

Title: Re: .cat files in Act.img
Post by: Nixon on March 25, 2013, 07:07:15 PM
Only they use a small layer of encryption and rather then compress the contents...the .cat files act like simple container files.
What are the possibilities of getting the key from the .exe as it triggers an animation? Using a debugger like Ollydbg
Title: Re: .cat files in Act.img
Post by: MadmaN on March 29, 2013, 04:26:58 PM
I don't know.

The encryption actually is more like a encoding rather then a true cypher....They are just basicly container files but using a debugger like Ollydbg might shed some light on the format of the file in question and give clues to coming up with a extraction method...as well as a method to build new .cat archives. This is the main reason why fighting styles are so limited......once we can figure out how to extract those files....we can customize the fighting styles to a degree that will make it possible to make brand new styles just by combining parts of the already existing styles....including redoing jimmy's style totally....

If enough people posted requests about this over at xenetax forums......I would imagine the coders there will look into it....since they only seem to tackle popular games rather then games hardly anyone plays.
Title: Re: .cat files in Act.img
Post by: Nixon on April 03, 2013, 01:18:48 PM
...

I opened some .cat files in a hex editor and converted the hexadecimal to word sized unsigned numbers. This example is from "Act.img>Ambient.cat", which is one of the larger files in the folder, 50KB, most are about 2KB. I believe that is because it defines alot of generic animations, as you can see at the end of the file, where, as always, there is a list that names the separate animations from the mess above.
I am not sure of the format, but the pattern goes something like this: A, 0, B, 0, 1 or 2, A+n, 0, B+-?,
not sure. Unsigned words may not be the correct format, it could be signed bytes or even signed words. Whatever makes the pattern look most sensible.

At line A470, the pattern goes away as the file turns to text strings.
The number of three consecutive 0's is closely related to the number of names in the file. It either marks the beginning of an animation. X,Y,Z at default. Or acts as a separator between animations, because it does not occur before the first coord or after the last one.

I decided to attach the example as .txt
"numbers.txt" is in unsigned, word sized numbers.
"strings.txt" is in strings.
Both are the same file.
Title: Re: .cat files in Act.img
Post by: MadmaN on April 07, 2013, 05:05:10 PM
Glad to see someone else also helping out with this.

I came to the exact same conclusions myself about a month back but like I just mentioned to Red via xfire....I decided to keep that part very quiet just incase I was completely wrong...but seeing someone else come up with the same conclusions as I have.....that means that we just might be able to crack this since this will really open up a lot of doors for modding bully.

I will check the files you posted and get back to you on some things since we may be onto something here.

btw.....good work!  :biggrin: