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,172
Trophies
1
XP
2,529
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,403
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,172
Trophies
1
XP
2,529
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.
  • BigOnYa @ BigOnYa:
    I'd rather spend like $150 more for a surround receiver.
  • K3Nv2 @ K3Nv2:
    I bought the game at launch never fucked with it until recently
  • BigOnYa @ BigOnYa:
    Its fun, I like it, even tho I'm not a big harry potter fan. Like a wizard rpg. Flying around on a broomstick is cool.
  • K3Nv2 @ K3Nv2:
    Flying sucks ass on it
  • BigOnYa @ BigOnYa:
    Nuh just takes a min to get used to. I think you can upgrade or buy new broomstick also that are better.
    +1
  • K3Nv2 @ K3Nv2:
    I weirdly like inverted controls on all flying type games
  • BigOnYa @ BigOnYa:
    Prob can change it, inverted flying controls.
  • K3Nv2 @ K3Nv2:
    Only thing that annoys me is trying to find wtf to do in it
    +1
  • BigOnYa @ BigOnYa:
    Alright off to the store, later gators.
    +1
  • K3Nv2 @ K3Nv2:
    Some places amaze me were not in network with your insurance would you still like an appointment
    +1
  • AncientBoi @ AncientBoi:
    uhhh, I think I'll just stick with my PSP 3001
  • AncientBoi @ AncientBoi:
    lol, Now I gotta go to the store for more Coffee Mate n other stuff.
  • Xdqwerty @ Xdqwerty:
    i downloaded final fantasy vii into my tv stick
  • Xdqwerty @ Xdqwerty:
    i mean, the game was already there but its the japanese version
  • Xdqwerty @ Xdqwerty:
    and i only downloaded disc 1 so far bc of storage stuff
  • Psionic Roshambo @ Psionic Roshambo:
    @BigOnYa, yeah the patty on McDs burger is 1/10th of a pound now and I think that's the pre cooked weight lol
  • Psionic Roshambo @ Psionic Roshambo:
    I use the app for the 20% off coupon and it's still over priced
  • Xdqwerty @ Xdqwerty:
    @Psionic Roshambo, why is mcdonalds overpriced if their food is bad?
  • Xdqwerty @ Xdqwerty:
    i mean why is mcdonalds food overpriced
  • Psionic Roshambo @ Psionic Roshambo:
    Inflation and greed
    +1
  • ZeroT21 @ ZeroT21:
    it's just fries, make 'em at home
    +2
  • Psionic Roshambo @ Psionic Roshambo:
    I make potato wedges at home with spices and stuff lol
    Psionic Roshambo @ Psionic Roshambo: I make potato wedges at home with spices and stuff lol