Old game can't Import & Extractor the jpeg, pls help

Textures, recreate headers, conversions, algorithms and parsing of image files
kazzam
Posts: 8
Joined: Tue Sep 06, 2022 11:03 am

Old game can't Import & Extractor the jpeg, pls help

Post by kazzam »

I love an old game, but it uses .mrg format files, I use NECROTECH FMV-Extractor V1.3 which I found on the net.
This program can extract JPG but cannot import JPEG with my modifications.
(newinfo.mrg can use FMV V1.3 open and see the jpg, but can't open boy01.mrg)
here is .mrg file https://drive.google.com/file/d/1Kj0_gdGonZjECjUBdyMF8z9XFXhbFBJz/view?usp=sharing

thank you all
BloodRaynare
Posts: 367
Joined: Fri Mar 10, 2017 7:23 am

Re: Old game can't Import & Extractor the jpeg, pls help

Post by BloodRaynare »

What's the name of the game?
kazzam
Posts: 8
Joined: Tue Sep 06, 2022 11:03 am

Re: Old game can't Import & Extractor the jpeg, pls help

Post by kazzam »

BloodRaynare wrote:What's the name of the game?

is chinese game "金庸群俠傳ONLINE" the game is start at 2001
kazzam
Posts: 8
Joined: Tue Sep 06, 2022 11:03 am

Re: Old game can't Import & Extractor the jpeg, pls help

Post by kazzam »

any one can help me.....please
kazzam
Posts: 8
Joined: Tue Sep 06, 2022 11:03 am

Re: Old game can't Import & Extractor the jpeg, pls help

Post by kazzam »

please help me....i can Buy a coffee for the helpper....
thank you all
h3x3r
Posts: 165
Joined: Wed Jun 01, 2016 5:53 pm

Re: Old game can't Import & Extractor the jpeg, pls help

Post by h3x3r »

newinfo.mrg include valid JPG's so there's no problem with them but boy01.mrg include some of headerless RAW data which i can't determine. But they are unpacked fine. BTW about reimport: try to use reimport3. Should be able calculate new offsets/sizes.

Code: Select all

####################################
get FNAME basename
get FILES long
get STR_TABEL_SIZE long
savepos TABLE_OFFSET
getdstring DUMMY FILES*13
getdstring DUMMY STR_TABEL_SIZE
savepos BASE_OFFSET
goto TABLE_OFFSET

for i = 0 < FILES
   get SIZE long
   get OFFSET long
   get NULL long
   get NULL byte
   savepos TMP
   math OFFSET + BASE_OFFSET
   goto OFFSET
   get JPEG_SIGN long
   if JPEG_SIGN == 3774863615
      string NAME p= "%s/%u.jpg" FNAME OFFSET
   else
      string NAME p= "%s/%u.dat" FNAME OFFSET
   endif
   log NAME OFFSET SIZE
   goto TMP
next i
kazzam
Posts: 8
Joined: Tue Sep 06, 2022 11:03 am

Re: Old game can't Import & Extractor the jpeg, pls help

Post by kazzam »

h3x3r wrote:newinfo.mrg include valid JPG's so there's no problem with them but boy01.mrg include some of headerless RAW data which i can't determine. But they are unpacked fine. BTW about reimport: try to use reimport3. Should be able calculate new offsets/sizes.

Code: Select all

####################################
get FNAME basename
get FILES long
get STR_TABEL_SIZE long
savepos TABLE_OFFSET
getdstring DUMMY FILES*13
getdstring DUMMY STR_TABEL_SIZE
savepos BASE_OFFSET
goto TABLE_OFFSET

for i = 0 < FILES
   get SIZE long
   get OFFSET long
   get NULL long
   get NULL byte
   savepos TMP
   math OFFSET + BASE_OFFSET
   goto OFFSET
   get JPEG_SIGN long
   if JPEG_SIGN == 3774863615
      string NAME p= "%s/%u.jpg" FNAME OFFSET
   else
      string NAME p= "%s/%u.dat" FNAME OFFSET
   endif
   log NAME OFFSET SIZE
   goto TMP
next i

Thank you Bro is this also can inport right?
kazzam
Posts: 8
Joined: Tue Sep 06, 2022 11:03 am

Re: Old game can't Import & Extractor the jpeg, pls help

Post by kazzam »

kazzam wrote:
h3x3r wrote:newinfo.mrg include valid JPG's so there's no problem with them but boy01.mrg include some of headerless RAW data which i can't determine. But they are unpacked fine. BTW about reimport: try to use reimport3. Should be able calculate new offsets/sizes.

Code: Select all

####################################
get FNAME basename
get FILES long
get STR_TABEL_SIZE long
savepos TABLE_OFFSET
getdstring DUMMY FILES*13
getdstring DUMMY STR_TABEL_SIZE
savepos BASE_OFFSET
goto TABLE_OFFSET

for i = 0 < FILES
   get SIZE long
   get OFFSET long
   get NULL long
   get NULL byte
   savepos TMP
   math OFFSET + BASE_OFFSET
   goto OFFSET
   get JPEG_SIGN long
   if JPEG_SIGN == 3774863615
      string NAME p= "%s/%u.jpg" FNAME OFFSET
   else
      string NAME p= "%s/%u.dat" FNAME OFFSET
   endif
   log NAME OFFSET SIZE
   goto TMP
next i

Thank you Bro is this also can inport right?


Error: incomplete input file 0: C:\Users\Administrator\Desktop\newinfo\696.jpg
Can't read 1828504363 bytes from offset 000141d0.
Anyway don't worry, it's possible that the BMS script has been written
to exit in this way if it's reached the end of the archive so check it
or contact its author or verify that all the files have been extracted.
Please check the following coverage information to know if it's ok.

coverage file 0 100% 82384 82384 . offset 000141d0

Last script line before the error or that produced the error:
6 getdstring DUMMY FILES*13
coverage file 0 100% 82384 82384 . offset 000141d0

Press ENTER or close the window to quit


Bro how to fix it ?????
and i try boy1.mrg but only see the .dat file,why can't open to jpg?
thank you bro very much
h3x3r
Posts: 165
Joined: Wed Jun 01, 2016 5:53 pm

Re: Old game can't Import & Extractor the jpeg, pls help

Post by h3x3r »

Did you use reimport3 as i suggest you before? Also read carefully what i said before: "boy01.mrg include some of headerless RAW data which i can't determine." That's the reason why you got DAT instead of JPG's.
Also if you reimport, reimport only files you modified and don't reimport on already reimported archive. Somtimes can cause unwanted errors.
kazzam
Posts: 8
Joined: Tue Sep 06, 2022 11:03 am

Re: Old game can't Import & Extractor the jpeg, pls help

Post by kazzam »

h3x3r wrote:Did you use reimport3 as i suggest you before? Also read carefully what i said before: "boy01.mrg include some of headerless RAW data which i can't determine." That's the reason why you got DAT instead of JPG's.
Also if you reimport, reimport only files you modified and don't reimport on already reimported archive. Somtimes can cause unwanted errors.

Sorry bro, i try again use reimport, reimport2, reimport3 to import to mrg also error.....
now i just try newinfo , i think first find a way to solve the new import and export problem
Actually, boy01.mrg is the most important import problem I want to solve....
kazzam
Posts: 8
Joined: Tue Sep 06, 2022 11:03 am

Re: Old game can't Import & Extractor the jpeg, pls help

Post by kazzam »

any one can help me.....please