Page 2 of 5
Re: Street Fighter IV .EMB .EMZ
Posted: Sat Jul 11, 2009 3:32 pm
by chrrox
3dripperdx works fine so you can capture a character and mod the textures in max so you can see the changes in real time.
if you need a t-posed character just look for the bone names in the decompressed files and fill them with 00 in hex and the character will t-pose.
Re: Street Fighter IV .EMB .EMZ
Posted: Wed Jul 15, 2009 3:56 pm
by Endragor
Thanks, I use your bms-script and infusion program to make translation of the game.
But there is a problem: there are "comment_???.emb" files in "Battle\Hud" directory that contain 41 .emz files each. And that .emz-files contain 1 dds inside. It's not so difficult to extract them but is there any way to put them back together so the game will read them?
Here is an archive with 2 emb-files of that kind:
http://www.yourfilelink.com/get.php?fid=501561
Many thanks.
Re: Street Fighter IV .EMB .EMZ
Posted: Thu Jul 16, 2009 7:19 am
by plodtrew
Endragor wrote:Thanks, I use your bms-script and infusion program to make translation of the game.
But there is a problem: there are "comment_???.emb" files in "Battle\Hud" directory that contain 41 .emz files each. And that .emz-files contain 1 dds inside. It's not so difficult to extract them but is there any way to put them back together so the game will read them?
Here is an archive with 2 emb-files of that kind:
http://www.yourfilelink.com/get.php?fid=501561
Many thanks.
Use dragon unpacker to extract the files and use infuser to place modded files inside the emb.
Has anybody figured out how to recompress the modded file bak into an emz. I want to mod the xbox version but in order to replace a file, the new file must be the same size as the original?
Re: Street Fighter IV .EMB .EMZ
Posted: Thu Jul 16, 2009 8:37 am
by Endragor
plodtrew wrote:Use dragon unpacker to extract the files and use infuser to place modded files inside the emb.
Looks like you haven't read my post heedfully. I know how to extract and bring back files from simple emb-s. But that ones contain .emz-files inside. Dragon Unpacker doesn't know emz-format as well as Infuser. And there is no way to put dds-files back to emz (now, at least).
Re: Street Fighter IV .EMB .EMZ
Posted: Thu Jul 16, 2009 8:52 am
by Evin
Yeah, this "emz inside the emb" is very annoying thing.
As I heard, the emz compressed with gzip. I tried to recompress an emb file, but the game always crashed. Although I change the header of the new file from the old one.
Re: Street Fighter IV .EMB .EMZ
Posted: Thu Jul 16, 2009 2:31 pm
by LouNGeR
Hey there, I was following this topic since the beginning, but something went wrong with the activation of my account.
About the EMZ, I'm very close to recreate an EMZ file with the same size.
It seems that I need to move some data (checksum?) from the end of the new file, to the begin of the file.
EDIT:
MD5's
Code: Select all
d5bfeeacff8f7fd7b2888aa228d066ce *AGL.tex.emz
d5bfeeacff8f7fd7b2888aa228d066ce *AGL.tex.emb.NEW.emz
530128879a1ef3dbb8290f394ef83fb4 *CNL_01_01.col.emz
530128879a1ef3dbb8290f394ef83fb4 *CNL_01_01.col.emb.NEW.emz
Here's a modified self-created EMZ file, this one didn't end up being the same size as the original somehow.
Wait, that's obvious right? The texture was changed so the compression will be different.
Oh well, it works in-game though
http://ifile.it/xfaldps
Re: Street Fighter IV .EMB .EMZ
Posted: Fri Jul 17, 2009 4:21 pm
by Endragor
LouNGeR
Superb. And... so did you write a program or something to pack emb-s back?
Re: Street Fighter IV .EMB .EMZ
Posted: Fri Jul 17, 2009 10:36 pm
by LouNGeR
Yes I did, but a personal tool that is not to be released, because:
1) It's not finished and requires manual EMZ inspection for every file.
2) I do most of my own tools in PHP, it may be called [insert_flame_here], but it works for me and it's also easy and versatile.
I'm planning to make some tools in AutoIt, which is also versatile, but IMHO a bit harder to program.
I like AutoIt because:
- Programs usually have very good compatibility with a lot of Windows versions
- Compiling is the easiest ever
- Can compile for x86 and x86-64, without the need to worry about x64 code.
- Very simple and easy to understand documentation
Re: Street Fighter IV .EMB .EMZ
Posted: Sat Jul 18, 2009 3:08 am
by sophist
I tried to make each character to pose t-pose by hex-coding each bonename contained in decompressed files with filling 00. But it gives me crash when I try to select the applied character. I think I might have missed some other parts. Will somebody tell me what that is???
What I did so far is;
changing bonename to look like Rarm. ---> 0000.
Rarm. ---> .....(which is 00 in hex code.)
Rarm ----> 00000
Re: Street Fighter IV .EMB .EMZ
Posted: Sat Jul 18, 2009 3:36 pm
by LouNGeR
Since many ppl were interested, here's the code that I use for EMZ creation.
I'm pretty sure it's not complete nor correct, it works though, on everything I've tried thus far.
Code: Select all
$in = "CNL_01_01.col.emb";
// Hex To Binary
function h2b($h) {
return pack("H*", $h);
}
$emb = file_get_contents($in);
$gz = gzencode($emb, 9);
$checksum = substr($gz, -8); // IS IT the checksum? who knows...
//$head1 = h2b("23454D5A");
$head = "#EMZ" . $checksum . h2b("10000000");
$body = substr($gz, 10, -8);
$foot = "";
//$foot = h2b("000000"); // Some files end with 000...Some don't
$new_emz = $head . $body . $foot;
file_put_contents($in . ".NEW.emz", $new_emz);
Have fun
EDIT: btw, it's PHP code

Re: Street Fighter IV .EMB .EMZ
Posted: Sun Jul 19, 2009 6:20 am
by LouNGeR
Tool for modifying Object States from Stages or Characters
__dev_20090719071201.png
Almost ready for a test release

Re: Street Fighter IV .EMB .EMZ
Posted: Sun Jul 19, 2009 7:46 am
by Itze
nice what does it do?
what i'd like to change is the specular etc of the textures but no matter what i change in the costume file i can't edit it properly

Re: Street Fighter IV .EMB .EMZ
Posted: Sun Jul 19, 2009 1:33 pm
by chrrox
what effect do you want to achieve i can try to help if you give me an example.
Re: Street Fighter IV .EMB .EMZ
Posted: Sun Jul 19, 2009 4:05 pm
by Itze
for example cammys leotard has different specular / ambient light colors than the rest of her skin... so you can't make her arms / legs blend properly with the body cause its always lighter or darker depending on the stage
also sakuras underwear somehow tints the texture you paint on it... even if you paint it white its still slightly red (i mean the underwear under her white blouse, you can remove it with a hexeditor)
Re: Street Fighter IV .EMB .EMZ
Posted: Sun Jul 19, 2009 5:17 pm
by LouNGeR
Itze wrote:nice what does it do?
what i'd like to change is the specular etc of the textures but no matter what i change in the costume file i can't edit it properly

For now it's just for enabling/disabling objects in Character or Stage files, manual or batch.
Some objects have a "spawn flag" of 02 or 03, I dunno what those values do yet, but we can probably find out.
I'll have a look into the specular data to see why it's so hard to remove it
