Trouble inserting files into PSP iso

DumbDuck

New Member
OP
Newbie
Joined
Jun 10, 2022
Messages
2
Trophies
0
Location
Tallinn
XP
33
Country
Estonia
I am trying my hand at translating menus in SRW OE (yes, this is already done by someone else). Anyway, what I did:
1) Unpacked iso with winrar equivalent
2) Unpacked game files with cripaktools
3) Detected and extracted SJIS-formatted text
4) Injected some gibberish for testing purposes
5) Inserted my modified file with isomaster (default setup) back into the game
6) Got the blackscreen after booting (PPSSPP 1.12.3)

My guess is that I messed up somewhere at step 3 or 4 (the only steps done with my own tools), so here are my questions:
- How do work PSP pointers: do they point at a file and then at an adress within a file? In other words, if I modified an EBOOT file, for example, can it have a size unequal to that of the original?
- If original text is 4 bytes, and I want to replace it with a 6 byte word, do I have to modify something that goes after it within a file? (again, pointers)
 
Last edited by DumbDuck,

master801

Well-Known Member
Member
Joined
Feb 24, 2011
Messages
1,167
Trophies
1
XP
2,518
Country
United States
If I had to guess, the lock up is caused by the SHIFT-JIS text not being in the right encoding (most Japanese games refuse to have text in any other encoding besides SHIFT-JIS) or improperly repacking the CRIPAK file.

Extract the files, don't modify them, insert them back into the ISO file and go from there. If it doesn't lock up, your issue lies either in the SHIFT-JIS or CRIPAK repacking. It's pretty easy to figure which is which.
 
  • Like
Reactions: DumbDuck

FAST6191

Techromancer
Editorial Team
Joined
Nov 21, 2005
Messages
36,798
Trophies
3
XP
28,375
Country
United Kingdom
Why those tools and not umdgen for the iso aspect.

Equally assuming it is not compressed (possible but rare for the PSP -- only reason to compress stuff really is to avoid bandwidth bottlenecks rather than save space) then see about finding the text in the straight iso and modifying it in place there.
After that then as above break down each step to see where the problem lies.
 

DumbDuck

New Member
OP
Newbie
Joined
Jun 10, 2022
Messages
2
Trophies
0
Location
Tallinn
XP
33
Country
Estonia
UPDATE
After througtfull testing and several rewrites of my program I came to the definite conclusion: CriPakTools sucks at reinserting files back to archive. It messes up the ordering, also endresult is bigger than the original.

Too bad all(?) the links describing the algo are dead.



I am using a Linux (and custom at that) hence only tools which are os and can be compiled.
 

master801

Well-Known Member
Member
Joined
Feb 24, 2011
Messages
1,167
Trophies
1
XP
2,518
Country
United States
UPDATE
After througtfull testing and several rewrites of my program I came to the definite conclusion: CriPakTools sucks at reinserting files back to archive. It messes up the ordering, also endresult is bigger than the original.

Too bad all(?) the links describing the algo are dead.



I am using a Linux (and custom at that) hence only tools which are os and can be compiled.

Try "Repacker CPK" (some random video on YouTube has a link to it) and experimenting with its settings.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • Quincy @ Quincy:
    Usually when such a big title leaks the Temp will be the first to report about it (going off of historical reports here, Pokemon SV being the latest one I can recall seeing pop up here)
  • K3Nv2 @ K3Nv2:
    I still like how a freaking mp3 file hacks webos all that security defeated by text yet again
  • BigOnYa @ BigOnYa:
    They have simulators for everything nowdays, cray cray. How about a sim that shows you playing the Switch.
  • K3Nv2 @ K3Nv2:
    That's called yuzu
    +1
  • BigOnYa @ BigOnYa:
    I want a 120hz 4k tv but crazy how more expensive the 120hz over the 60hz are. Or even more crazy is the price of 8k's.
  • K3Nv2 @ K3Nv2:
    No real point since movies are 30fps
  • BigOnYa @ BigOnYa:
    Not a big movie buff, more of a gamer tbh. And Series X is 120hz 8k ready, but yea only 120hz 4k games out right now, but thinking of in the future.
  • K3Nv2 @ K3Nv2:
    Mostly why you never see TV manufacturers going post 60hz
  • BigOnYa @ BigOnYa:
    I only watch tv when i goto bed, it puts me to sleep, and I have a nas drive filled w my fav shows so i can watch them in order, commercial free. I usually watch Married w Children, or South Park
  • K3Nv2 @ K3Nv2:
    Stremio ruined my need for nas
  • BigOnYa @ BigOnYa:
    I stream from Nas to firestick, one on every tv, and use Kodi. I'm happy w it, plays everything. (I pirate/torrent shows/movies on pc, and put on nas)
  • K3Nv2 @ K3Nv2:
    Kodi repost are still pretty popular
  • BigOnYa @ BigOnYa:
    What the hell is Kodi reposts? what do you mean, or "Wut?" -xdqwerty
  • K3Nv2 @ K3Nv2:
    Google them basically web crawlers to movie sites
  • BigOnYa @ BigOnYa:
    oh you mean the 3rd party apps on Kodi, yea i know what you mean, yea there are still a few cool ones, in fact watched the new planet of the apes movie other night w wifey thru one, was good pic surprisingly, not a cam
  • BigOnYa @ BigOnYa:
    Damn, only $2.06 and free shipping. Gotta cost more for them to ship than $2.06
    +1
  • BigOnYa @ BigOnYa:
    I got my Dad a firestick for Xmas and showed him those 3rd party sites on Kodi, he loves it, all he watches anymore. He said he has got 3 letters from AT&T already about pirating, but he says f them, let them shut my internet off (He wants out of his AT&T contract anyways)
  • K3Nv2 @ K3Nv2:
    That's where stremio comes to play never got a letter about it
  • BigOnYa @ BigOnYa:
    I just use a VPN, even give him my login and password so can use it also, and he refuses, he's funny.
  • BigOnYa @ BigOnYa:
    I had to find and get him an old style flip phone even without text, cause thats what he wanted. No text, no internet, only phone calls. Old, old school.
  • Psionic Roshambo @ Psionic Roshambo:
    @BigOnYa, Lol I bought a new USB card reader thing on AliExpress last month for I think like 87 cents. Free shipping from China... It arrived it works and honestly I don't understand how it was so cheap.
    +1
    Psionic Roshambo @ Psionic Roshambo: @BigOnYa, Lol I bought a new USB card reader thing on AliExpress last month for I think like 87... +1