Hi, I'm looking for how to unpack the mooh.stg (~16MB) file in the 2008 game "Crazy Chicken Jewel of Darkness". I checked the file in HEX format and found some OGGs and stuff inside it, but I don't know how to extract them.
Here is the link: mega.nz/file/1hRXnDgQ#vWuyqjLZV3--xw1ulGaFyvTPbJvGIYb2kulXUULd01s
Thanks in advance.
Asking how to extract "Crazy Chicken Jewel of Darkness" mooh.stg file
-
- Posts: 1
- Joined: Mon Mar 14, 2022 3:41 pm
-
- Posts: 179
- Joined: Tue Jan 18, 2022 12:21 am
Re: Asking how to extract "Crazy Chicken Jewel of Darkness" mooh.stg file
hithewo123 wrote:Hi, I'm looking for how to unpack the mooh.stg (~16MB) file in the 2008 game "Crazy Chicken Jewel of Darkness". I checked the file in HEX format and found some OGGs and stuff inside it, but I don't know how to extract them.
Here is the link: mega.nz/file/1hRXnDgQ#vWuyqjLZV3--xw1ulGaFyvTPbJvGIYb2kulXUULd01s
Thanks in advance.
Try this.
Code: Select all
#Crazy Chicken Jewel of Darkness.stg
#scriptforQuickBMShttp://quickbms.aluigi.org
idstring "stg2"
getdstring ondinha 0x0e
get end_table long
get entries long
get dummy short
for rip = 1 to entries
get offset_info long
get checkfile long
if checkfile != 0
savepos temp
goto offset_info
for A = 0 < checkfile
get name_size short
get dummy long
get zero byte
get size long
get offset long
getdstring name name_size
log name offset size
for checkbyte = 0 == 0
get checkbyte byte
next
savepos position
math position -= 1
goto position
math rip += 1
next A
goto temp
endif
next
-
- Posts: 179
- Joined: Tue Jan 18, 2022 12:21 am
Re: Asking how to extract "Crazy Chicken Jewel of Darkness" mooh.stg file
You can use this from alugi.
work as same than mine.
but little better.
work as same than mine.
but little better.
Code: Select all
# Intenium games - Beetle Ju 2 / Fairy Jewels (script 0.2)
idstring "stg2"
get VER long
get OFFSET long
set NAME string ""
set PATH string ""
callfunction EXTRACT
startfunction EXTRACT
string PATH + NAME
string PATH + /
savepos BACKUP_OFFSET
goto OFFSET
get DUMMY short
get OFFSET long
get INFO_SIZE long
get FILES long
get ENTRYSZ short
xmath RESTSZ "ENTRYSZ - (2 + 1 + 4 + 4 + 4)"
goto OFFSET
for i = 0 < FILES
get OFFSET long
get SUB_FILES long
savepos BACKUP_OFFSET2
goto OFFSET
for x = 0 < SUB_FILES
get NAMESZ short
get DUMMY byte
get DUMMY long
get SIZE long
get OFFSET long
getdstring NAME RESTSZ
putvarchr NAME NAMESZ 0
if SIZE == 0
callfunction EXTRACT
else
string FNAME p "%s%s" PATH NAME
log FNAME OFFSET SIZE
endif
math x + 1
math i + 1
next
goto BACKUP_OFFSET2
next
goto BACKUP_OFFSET
endfunction