get NAME BASENAME
log MEMORY_FILE 0 0
put NAME string MEMORY_FILE
get size asize MEMORY_FILE
math size - 4
goto size MEMORY_FILE
getdstring EXT2 4 MEMORY_FILE
if EXT2 == "360"
set EXT "x360"
else
set EXT ps3
endif
comtype unzip_dynamic
for
findloc START string \x78\xDA
goto START
findloc END string \x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00
set SIZE end
math SIZE - START
goto END
if SIZE > 0x40
clog MEMORY_FILE START SIZE SIZE
getdstring SEDB 8 MEMORY_FILE
if SEDB == "SEDBRES "
goto 0x30 MEMORY_FILE
get COUNT long MEMORY_FILE
math COUNT * 16
math COUNT + 0x40
goto COUNT MEMORY_FILE
getdstring TRB 7 MEMORY_FILE
if TRB == "SEDBtxb"
string START + .
string START + EXT
get SIZE asize MEMORY_FILE
set NAME START
string NAME + .trb
log NAME 0 SIZE MEMORY_FILE
set NAME START
string NAME + .imgb
clog NAME OFFSET ZSIZE2 SIZE2
endif
endif
if SEDB != "SEDBRES "
set OFFSET START
set ZSIZE2 SIZE
get SIZE2 asize MEMORY_FILE
endif
endif
next
I have no idea if this will solve your problem 652845095 and I take no credit for this script it is all chrrox's work all I did was move the line "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" to be in line with "findloc END string" which then allowed me to get past the error 652845095 was experiencing although when I ran it on the sample files provided by rexil it found nothing to extract.
those are the only models on the disk. its the shaders they use.
you need to set up the textures correctly.
if you want i looked and dint see anything but this script will extract everything from the game but it wont match anything to its textures and it will name some files trb that contain no mesh data.
I looked and dint see anything the first script missed but ill throw this out there for those that think something might be missing.
get NAME BASENAME
log MEMORY_FILE 0 0
put NAME string MEMORY_FILE
get size asize MEMORY_FILE
math size - 4
goto size MEMORY_FILE
getdstring EXT2 4 MEMORY_FILE
if EXT2 == "360"
set EXT "x360"
else
set EXT ps3
endif
comtype unzip_dynamic
for
findloc START string \x78\xDA
goto START
findloc END string \x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00
set SIZE end
math SIZE - START
goto END
if SIZE > 0x40
clog MEMORY_FILE START SIZE SIZE
getdstring SEDB 8 MEMORY_FILE
string START + .
string START + EXT
if SEDB == "SEDBRES "
set NAME START
string NAME + .trb
else
set NAME START
string NAME + .imgb
endif
get size asize MEMORY_FILE
log NAME 0 SIZE MEMORY_FILE
endif
next
chrrox wrote:those are the only models on the disk. its the shaders they use.
you need to set up the textures correctly.
if you want i looked and dint see anything but this script will extract everything from the game but it wont match anything to its textures and it will name some files trb that contain no mesh data.
I looked and dint see anything the first script missed but ill throw this out there for those that think something might be missing.
how did you do that?
use itself shader?
it so cool!
I'm not sure you understand the problem I'm having. That or I misunderstand what you're asking me to do here. The IMGB file was manually matched the the 7kb TRB, which is the only TRB it will export the textures with. When matched to either of the other two Noel models, the textures don't export at all and his UV's come out as spaghetti. It's like the 7kb TRB is suppose to be apart of his model file, but for whatever reason it's not? I'm not even sure I'd say it's a problem with your script, so much as it's an oddity with the game.. But uh, yeah. I don't know what to do here to get his UV's exported intact.