Author Topic: kernel.bin decompile?  (Read 15570 times)

Ragna

  • *
  • Posts: 266
    • View Profile
kernel.bin decompile?
« on: 2007-04-13 16:10:46 »
Hey, I wonder how can I decompile the kernel.bin file,
I have Gzip, but I dont know how to decompile the kernel.bin^^U

Can you help me?
Thank you in advance^^

TTK_86

  • *
  • Posts: 28
    • View Profile
Re: kernel.bin decompile?
« Reply #1 on: 2007-04-15 10:07:40 »
there is a thread about this already http://forums.qhimm.com/index.php?topic=6216.0  you should've used the search :-D

Ragna

  • *
  • Posts: 266
    • View Profile
Re: kernel.bin decompile?
« Reply #2 on: 2007-04-15 15:27:12 »
Thank you, but as I said I already have that Gzip, but just dont know what must I do with that to decompile the kernel.bin file^^U

TTK_86

  • *
  • Posts: 28
    • View Profile
Re: kernel.bin decompile?
« Reply #3 on: 2007-04-16 11:48:01 »
Hmm...first backup your original kernel.bin, then
1. Open command console and go to directory where your kernel.bin and ff7dec.exe exisist(of course you have to extract kernel from the cd first  :-))
2. Type "ff7dec d kernel.bin", without quotes of course(or kernel2.bin if you want to extract texts)
3. When finished editing, just repeat step 1 and type "ff7dec e kernel.bin"

that should cover it :-D

and sorry about my bad english...

Ragna

  • *
  • Posts: 266
    • View Profile
Re: kernel.bin decompile?
« Reply #4 on: 2007-04-16 13:43:19 »
Thank you, but can you tell me why cant I do that?
It says ff7dec.exe is not a valid win32 app when I write ff7dec d kernel.bin on the command prompt..

Please, tell me the meaning of that thing..^^U


Now my problem is fixed and i can decompile and compile the file^^
« Last Edit: 2007-04-17 14:03:21 by Sephiroth Crescent »

RED X

  • *
  • Posts: 27
    • View Profile
Re: kernel.bin decompile?
« Reply #5 on: 2007-09-15 17:03:49 »
Still I don't understand. I got the ff7gzip already but I don't know how to decompile the kernel.bin file. Could you please teach me how with some help from print screen image? Please..........

Prince Lex

  • *
  • Posts: 882
  • Opinionfact is Redundancy
    • View Profile
Re: kernel.bin decompile?
« Reply #6 on: 2007-09-15 21:57:37 »
*sigh* I'm baffled too although its probably really simple.

Scorpicus

  • *
  • Posts: 57
    • View Profile
    • Scorpicus' Most Amazing Orange Website
Re: kernel.bin decompile?
« Reply #7 on: 2007-09-16 08:24:35 »
1.  Copy and paste all the files from the gzip folder into: C:/documents and settings/admin

2.  Copy and paste your kernel.bin file into:  C:/documents and settings/admin

3.  Click on Start, All Programs, Accessories, Command Promt.

4.  In command promt type in: ff7dec d kernel.bin

5.  Press enter.

The kernel bin will then be decompressed into several seperate files.  Look in Qhimms wiki to find out what data each file holds.  You can edit each file using a hex editor.  If you don't have one, there are several free ones available on the net, just google search it.

Once you've done the editing, you need to compress all the files back into a single kernel.bin file.

6.  Open up command promt.  Type in:  ff7dec e kernel.bin

7.  Press enter and your new kernel.bin will be created!
 
EDIT:  Got rid of the typo - Hes editor - lol!
« Last Edit: 2007-09-17 16:19:51 by Scorpicus »

gjoerulv

  • *
  • Posts: 1225
  • me
    • View Profile
    • My Youtube
Re: kernel.bin decompile?
« Reply #8 on: 2007-09-16 16:56:39 »
...

3.  Click on Start, All Programs, Accessories, Command Promt.

...
Regarding point 1 - 3 (which is totally ok btw) you could also just click the Windows buttom+R to open the Run program. Then just drag ff7dec.exe into the text input field. You'll now have something like this in the same field: C:\YOURFOLDER\ff7_gzip\ff7dec.exe (where YOURFOLDER is the folder you extracted it in).

After ff7dec.exe type "d kernel.bin" to decompile. The whole line being: C:\YOURFOLDER\ff7_gzip\ff7dec.exe d kernel.bin

And so on...

5.  Press enter.

The kernel bin will then be decompressed into several seperate files.  Look in Qhimms wiki to find out what data each file holds.  You can edit each file using a hes editor.  If you don't have one, there are several free ones available on the net, just google search it.

....

That was probably a type-O byr it's not hes editor but HEX editor.

Prince Lex

  • *
  • Posts: 882
  • Opinionfact is Redundancy
    • View Profile
Re: kernel.bin decompile?
« Reply #9 on: 2007-09-20 14:15:22 »
Thanks for that, I successfully managed to split kernel.bin into the 26 kernel.binX files I need. What is the next step from there?

I am specifically looking to change the weapon data, which I know is stored in kernel.bin6. I've been searching for the past few days on the forums but can't find specific instructions on how to ungzip kernel.bin6. I know the exact values I need to change (using a hex editor (I'm using Cygnus Hex Editor)) but when I open kernel.bin6 it doesn't look as it should.

How exactly would I use gunzip.exe to decompress kernel.bin6 so that I could edit it?

TTK_86

  • *
  • Posts: 28
    • View Profile
Re: kernel.bin decompile?
« Reply #10 on: 2007-09-20 19:27:04 »
Quote
How exactly would I use gunzip.exe to decompress kernel.bin6 so that I could edit it?
you don't need to decompress that, just open kernel.bin6 with your hex editor and thats it.
when done editing, just type ff7dec e kernel.bin in command console(remember:if there is a kernel.bin file in the directory already, compression will fail)
happy editing  :-D

Prince Lex

  • *
  • Posts: 882
  • Opinionfact is Redundancy
    • View Profile
Re: kernel.bin decompile?
« Reply #11 on: 2007-09-21 00:05:34 »
Thats what I've been doing, but the values don't match with anything I've seen before. I'm going to take the original kernel.bin from the game disc instead of the game data folder and see if that makes a difference. I can only hope.

TTK_86

  • *
  • Posts: 28
    • View Profile
Re: kernel.bin decompile?
« Reply #12 on: 2007-09-21 11:32:27 »
thats probably because the kernel file count starts at 0 and in the wiki http://wiki.qhimm.com/FF7/Kernel/Kernel.bin the file count starts at 1...so if you want to edit weapon data(witch is section 6 in qhimmwiki), the file needed to edit is kernel.bin5.

Prince Lex

  • *
  • Posts: 882
  • Opinionfact is Redundancy
    • View Profile
Re: kernel.bin decompile?
« Reply #13 on: 2007-09-21 17:06:54 »
Well for future dummies like me that should be edited ^_^

RED X

  • *
  • Posts: 27
    • View Profile
Re: kernel.bin decompile?
« Reply #14 on: 2007-09-22 13:19:31 »
Scorpicus.....

THANKS A LOT for your explaination regarding to my question. Now I can try doing some editing to the files. Thanks again  :-D

UltimaYoshi

  • *
  • Posts: 99
    • View Profile
Re: kernel.bin decompile?
« Reply #15 on: 2007-09-24 20:57:08 »
1.  Copy and paste all the files from the gzip folder into: C:/documents and settings/admin

2.  Copy and paste your kernel.bin file into:  C:/documents and settings/admin

3.  Click on Start, All Programs, Accessories, Command Promt.

4.  In command promt type in: ff7dec d kernel.bin

5.  Press enter.

The kernel bin will then be decompressed into several seperate files.  Look in Qhimms wiki to find out what data each file holds.  You can edit each file using a hex editor.  If you don't have one, there are several free ones available on the net, just google search it.

Once you've done the editing, you need to compress all the files back into a single kernel.bin file.

6.  Open up command promt.  Type in:  ff7dec e kernel.bin

7.  Press enter and your new kernel.bin will be created!
 
EDIT:  Got rid of the typo - Hes editor - lol!
Sorry, but I have a problem:

Prince Lex

  • *
  • Posts: 882
  • Opinionfact is Redundancy
    • View Profile
Re: kernel.bin decompile?
« Reply #16 on: 2007-09-24 22:26:24 »
its not for kernel2.bin its only for kernel.bin. Theres an editor you can get called Teioh (check the wiki) that edits all the text in kernel2.

UltimaYoshi

  • *
  • Posts: 99
    • View Profile
Re: kernel.bin decompile?
« Reply #17 on: 2007-09-24 23:18:31 »
its not for kernel2.bin its only for kernel.bin. Theres an editor you can get called Teioh (check the wiki) that edits all the text in kernel2.
I´m sorry, but no results found when I search for Teioh. :|

Prince Lex

  • *
  • Posts: 882
  • Opinionfact is Redundancy
    • View Profile
Re: kernel.bin decompile?
« Reply #18 on: 2007-09-25 06:43:19 »
Its right here!

http://forums.qhimm.com/index.php?topic=6385.0

All I did was type Teioh into search  :-)

kruci

  • *
  • Posts: 105
    • View Profile
Re: kernel.bin decompile?
« Reply #19 on: 2007-09-26 20:12:33 »
Heh, I have question, this decompresion works???
I downloaded ff7dec from link in second message.
I musted hexedit ff7dec to get it work.

ff7dec use gunzip, but its gzip, not gunzip(yeah are same).... . It dont use gunzip -d, so I musted write it there.

Unmodified version create nothing, but during docompresion there are some file, but deleted on the end.
ffdec says
Creating file Kernel.bin0!
gunzip says
GUNZIP: Kernel.bin0.gz already has .gz suffix -- unchanged
« Last Edit: 2007-09-26 20:16:54 by kruci »