+  RHDN Forum Archive
|-+  Romhacking
| |-+  ROM Hacking Discussion
| | |-+  Help with ps2 game
Pages: [1]
Author Topic: Help with ps2 game  (Read 2 times)
Angel333119
Guest
« on: January 20, 2010, 01:50:14 pm »

I'm are translating Castlevania L.O.I. PS2 and I don't know find the TIM2 or the graphics used in game...

Need somebody to help me find the images...

And I need also find pointers of text...

Please somebody help me...

Sorry for bad english I'm Brasilian...
Rolen47
Guest
« Reply #1 on: January 22, 2010, 04:25:16 pm »

Try using TextER or Game Graphic Studio to search for and extract TIM2s.
Penance
Guest
« Reply #2 on: January 24, 2010, 07:10:48 am »

For pointers, I always find IDA Pro the most effective method of finding them.
Pointers in PS2 games are often more complicated than ones in more simpler systems.
cclh12
Guest
« Reply #3 on: January 24, 2010, 04:53:15 pm »

Why would you use IDA for pointers?  :huh:
Only reason you should use IDA is for reversing code.
(Unless your game stored them in the code, but i've looked at alot of PS2 games and have never seen that happen)

PS2 pointers can be as simple as any system, its all a matter of the game rather the system.

Quote from: Angel333119 on January 20, 2010, 01:50:14 pm
I'm are translating Castlevania L.O.I. PS2 and I don't know find the TIM2 or the graphics used in game...
If you dont know the format, use Tile Molester and open a RAM dump of your game.
Play with the settings till you see what looks to be a texture.
Tile Molester shows you the offset that image is at.
Open the ram dump in a hex editor and go to that offset and look at the header of the image.

Also, you should extract the content from the entire game.
« Last Edit: January 24, 2010, 04:58:34 pm by cclh12 »
Penance
Guest
« Reply #4 on: January 24, 2010, 05:28:28 pm »

Quote from: cclh12 on January 24, 2010, 04:53:15 pm
Why would you use IDA for pointers?  :huh:
Only reason you should use IDA is for reversing code.
(Unless your game stored them in the code, but i've looked at alot of PS2 games and have never seen that happen)
I just found IDA pro to be very quick at finding them in executable files. When text is in an executable file it complicates things a little, so I just load it up in IDA Pro, go to the string and look at the data reference which takes me directly to the pointer.
I then do a little bit of hex math to work out the "magic number" that the game adds to the string offset to get the pointer value.
I only use IDA pro to work out that magic number and then let Atlas take care of the rest when it comes to inserting (though I'm having problems with that at the moment...)

About that Texture Extracting tool linked above, does anyone know how to get the reinserting to work? The folder with the extracted textures to be reinserted needs to be the same name as the file they were extracted from and in the same directory but I can't have the folder and file name the same...
cclh12
Guest
« Reply #5 on: January 24, 2010, 05:37:46 pm »

Well, I don't know about the folder issue.
(I would think he would have coded it to look into the folder he named when dumping the file >.>)
But for reinserting with tools not made specifically for a format/game you generally can't increase the size at all.
That may be your problem since keeping images the same size can be frustrating.
Penance
Guest
« Reply #6 on: January 24, 2010, 06:03:27 pm »

Yeah, it's hell because I'm trying to replace the games font. I've replaced the font with one of the same size and format but I just can't reinsert the files. I know it's nothing to do with the size of the folder/file because the error messages given state "file cannot be found" errors and that's down to the fact I can't have the same name.
The guy who coded this tool made a little bit of a slip up there.
Vash
Guest
« Reply #7 on: January 25, 2010, 04:21:23 am »

I made this tool 6 months ago (and I don't know who upload it here  Shocked ). You have a problem because my tool creates a directory 'TIM2', 'TIM3'  or 'GIM' and THEN it creates a subdir with the filename

Code:
printf("Founded %d TIM2 and %d TIM3 in %s.\\n\\nExtraction in progress\\n\\n",f,g,nuovoargv2);             
}else{
mkdir("TIM2");
chdir("TIM2");
mkdir(nuovoargv2);
chdir(nuovoargv2);
lolg=fopen("spec.log", "w+b");
fprintf(lolg,"%d\\n",f);
Penance
Guest
« Reply #8 on: January 25, 2010, 03:23:49 pm »

So... is it not possible to reinsert images?
Vash
Guest
« Reply #9 on: January 25, 2010, 07:14:27 pm »

It's possible and it works flawlessly to me and to the other people that tried it  Smiley
Penance
Guest
« Reply #10 on: January 26, 2010, 01:29:07 pm »

Well could you explain how to do it, please? =)

I did a little test and made a new folder. In that folder I put...
-TextER,
-the .bat(s) files--one with the extract command, one with the insert.
-The file to be extracted.

Once it extracted, I got a folder called TIM2 with a subfolder inside of that with the same name as the file.
Without editing any of the images I then ran the reinsert.bat with the command:
TextER -c root.bin -tm

...but it didn't reinsert the TIM2 folder, and I can't have the subfolder full of the extracted images and the actual file in the same folder because they need to be the same name.

Could you explain what I'm doing wrong?
Rolen47
Guest
« Reply #11 on: January 26, 2010, 02:15:52 pm »

It's a very easy program, I can't imagine what you're doing wrong. You aren't renaming the folders or moving anything are you? Just keep it as is, then you should only edit the TIM you want. As long as your edited TIM is the exact same size as it originally was then it should be able to insert all the files back into the bigfile just fine.
Penance
Guest
« Reply #12 on: January 26, 2010, 07:02:01 pm »

Nope, I'm not renaming anything.
I just get the error "filename has been renamed, moved or not been extracted."
I did another test to see if it was the size of the image so I just extracted it and then ran the insert.bat straight after but that still didn't work...
I feel very stupid at not being able to get this to work.
Angel333119
Guest
« Reply #13 on: March 05, 2010, 08:09:48 am »

I try use TextER and Game Graphic Studio...
The TextER don't run in my PC... only shows a black screen like a MS-DOS and disappears... without run the program... and the Game Graphic Studio don't find any graphic image... Somebody have more any idea?

And the pointers I don't know any programing language...
Somebody know any tutorial of IDA Pro?
Pages: [1]  


Powered by SMF 1.1.4 | SMF © 2006-2007, Simple Machines LLC