ROM Hack <Help> open undefined file (without extension)

Februarysn0w

Well-Known Member
OP
Member
Joined
Oct 31, 2014
Messages
1,206
Trophies
0
Age
36
XP
832
Country
Japan
Hello.
Do you know what is the file extension? how can I open or edit this file?
the file come with Monster Hunter 4G (JPN) rom.

sample file
*deleted illegal file*

Please help me.
Thank you.
Best Regard
 

Februarysn0w

Well-Known Member
OP
Member
Joined
Oct 31, 2014
Messages
1,206
Trophies
0
Age
36
XP
832
Country
Japan
It's an image with ETC1 image data inside.

The 2 bytes at 0x07 are the width, the 2 bytes at 0x09 are the height. The image data starts at 0x14. Don't know about the rest of the header.

H93DO5z.png


I can probably code up a quick tool to handle the file based on this spec but I don't know if it'll work all the time.

Thank you so much. I'm waiting for your tool release. Very very thank you.
 

Februarysn0w

Well-Known Member
OP
Member
Joined
Oct 31, 2014
Messages
1,206
Trophies
0
Age
36
XP
832
Country
Japan
Requires Python 2.7. I don't know if it'll work for any of the other files but it works for this particular one.

Here's the code: https://gist.github.com/polaris-/516218c68c4cd4974e10
Download this EXE and put it in the same folder with the .py file when you run it: https://github.com/polaris-/ctpktool/releases/download/v1.1/ctpktool.zip

To use it, type "python tex2ctpk.py (filename).bin" such as "python tex2ctpk.py ui_guild_01_ID.bin".

Just a small note: Change the filename to something with an extension, like ui_guild_01_ID.bin or anything. That way ctpktool can create the folder without erroring because the name is already taken by the file.

Edit: Just for anyone who might read this in the future. It generates a (probably slightly invalid) CTPK file out of the image data so my other program, ctpktool, can do the heavy lifting like decompressing the image data and saving it to PNG.

Thank you so much. I'm very grateful your help.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • Psionic Roshambo @ Psionic Roshambo:
    It could get banned from PSN but you can change your ID I think?
  • Xdqwerty @ Xdqwerty:
    also gonna install twilight menu in my r4 flashcard
  • Psionic Roshambo @ Psionic Roshambo:
    One thing that just occurred to me.... The sound on the 2600 sucked less back then the harsh sound we hear now is from infinitely better speakers we have now, back when the 2600 was new speakers produced a almost muffled sound, like CRTs made old graphics look slightly better.
  • Psionic Roshambo @ Psionic Roshambo:
    I wonder if I could recommend that to some emulation devs that perhaps the sound could use some smoothing out to simulate those old TVs
  • Psionic Roshambo @ Psionic Roshambo:
    I think a few of the early systems could benefit from that, at least up to the 8 bit generation, by the 16 bit generation I think TVs had gotten a lot better in almost every way
  • Xdqwerty @ Xdqwerty:
    i dont have an sd card adapter but I have an usb sd card adapter
  • K3Nv2 @ K3Nv2:
    Old people games
  • Xdqwerty @ Xdqwerty:
    its not the one that comes with the r4
  • Xdqwerty @ Xdqwerty:
    doesnt work (my flashcard is from r4isdhc.com)
  • Xdqwerty @ Xdqwerty:
    might install ysmenu first
  • Psionic Roshambo @ Psionic Roshambo:
    Try Wood firmware
  • Psionic Roshambo @ Psionic Roshambo:
    For your R4
  • Psionic Roshambo @ Psionic Roshambo:
    It's old but it's the best firmware out for DS stuff
  • Xdqwerty @ Xdqwerty:
    it says it only works for the original R4, R4i Gold (r4ids.cn), R4iDSN (r4idsn.com) and Acekard R.P.G.
  • Xdqwerty @ Xdqwerty:
    nvm it does support mine
  • Xdqwerty @ Xdqwerty:
    but why choose it over ysmenu @Psionic Roshambo?
  • Xdqwerty @ Xdqwerty:
    bc im stupid?
  • Xdqwerty @ Xdqwerty:
    yea ik im stupid
  • Xdqwerty @ Xdqwerty:
    good night
  • Psionic Roshambo @ Psionic Roshambo:
    Just give it a try, but honestly if you have a 3DS you can play DS games without a card just off the internal SD card
  • Psionic Roshambo @ Psionic Roshambo:
    Slightly slower loading but a bit more convenient
  • BakerMan @ BakerMan:
    guys, my fuckin headphones have an out of place speaker
  • K3Nv2 @ K3Nv2:
    Did you try wearing them?
    K3Nv2 @ K3Nv2: Did you try wearing them?