Extracting JPEG image from a SIM file (Agon)

Textures, recreate headers, conversions, algorithms and parsing of image files
ghylard
Posts: 77
Joined: Wed Oct 08, 2014 1:03 pm

Extracting JPEG image from a SIM file (Agon)

Post by ghylard »

I have a file "arrival_big_corridor_01.sim" (Agon game). I opened it with Ravioli Game Tools but after extracting I have 25 jpeg files instead of a single image.
  Is there a program capable of extracting correctly the jpeg image contained in this SIM file (SIM10 header)?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Extracting JPEG image from a SIM file (Agon)

Post by aluigi »

Ravioli is correct, there are 25 separate jpeg images:

Code: Select all

idstring "SIM10"
get SIM_SIZE asize
for OFFSET = 0xe != SIM_SIZE
    goto OFFSET
    get SIZE long
    savepos OFFSET
    log "" OFFSET SIZE
next OFFSET + SIZE
What you want to do is manual graphics editing with the extracted files to merge them correctly at correct positions.
ghylard
Posts: 77
Joined: Wed Oct 08, 2014 1:03 pm

Re: Extracting JPEG image from a SIM file (Agon)

Post by ghylard »

What you want to do is manual graphics editing with the extracted files to merge them correctly at correct positions.

Thank you aluigi to be interested in my problem.
Ravioli also allows to insert the jpeg images into the original file.
The problem is that it is very difficult when the image is complex to modify it if it is in several pieces. :roll:
What I would like to do is to group these different pieces of images correctly into a single jpeg in order to modify it. Then redivide in several images to insert them again in the original file with Ravioli.