Page 1 of 1

Raider Z

Posted: Wed Aug 11, 2010 11:29 pm
by pixellegolas
The contents of this post was deleted because of possible forum rules violation.

Re: Raider Z

Posted: Mon Aug 16, 2010 9:37 pm
by WRS
The contents of this post was deleted because of possible forum rules violation.

Re: Raider Z

Posted: Tue Aug 17, 2010 12:46 am
by chrrox
Can you post the specs of the archive if you know them is it some kind of xor?

Re: Raider Z

Posted: Tue Aug 17, 2010 8:09 am
by pixellegolas
nice, will try this later. hoping we can get models moving soon :)

Re: Raider Z

Posted: Tue Aug 17, 2010 10:49 am
by iaw
thx,I download the 1.45 version, Extract all files.

Re: Raider Z

Posted: Tue Aug 17, 2010 2:43 pm
by WRS
pixellegolas wrote:nice, will try this later. hoping we can get models moving soon :)
the elu files are models, ani files are animations.
the elus differ from gunz in that their texture information is in a seperate xml file but the format looks quite similar. i couldnt spend much time on this, but when comparing the versions, i was able to extract the vertex information, which hasn't changed from the other versions. hope to work on this soon, as the realspace engine will be used in gunz 2.


the mrs archive is a zip format with the headers with some byte shifting (see bottom function curtosy of aluigi).

Code: Select all

get SIZE asize
log MEMORY_FILE 0 SIZE

comtype deflate

for

	savepos POS MEMORY_FILE
	
	math EOH = POS
	math EOH += 30

	for i = POS < EOH

		callfunction decbytei

	next i

	idstring "PK\x03\x04" MEMORY_FILE
	
	get VERSION 	short MEMORY_FILE
	get BITFLAG 	short MEMORY_FILE
	get COMPVER 	short MEMORY_FILE
	
	get FILEMOD	long MEMORY_FILE
	get CRC32 	long MEMORY_FILE
	get CSIZE 	long MEMORY_FILE
	get USIZE 	long MEMORY_FILE
	
	get FNAMELEN 	short MEMORY_FILE
	get EXTRALEN 	short MEMORY_FILE
	
	math EOFN = EOH
	math EOFN += FNAMELEN
	
	for i = EOH < EOFN

		callfunction decbytei

	next i
	
	getdstring FNAME FNAMELEN MEMORY_FILE
	getdstring EXTRA EXTRALEN MEMORY_FILE
	
	savepos POS MEMORY_FILE
	
	math POS2 = POS
	math POS2 += CSIZE
	
	if COMPVER == 0
	
		log FNAME POS USIZE MEMORY_FILE
		
	elif COMPVER == 8
	
		clog FNAME POS CSIZE USIZE MEMORY_FILE
		
	endif

	goto POS2 MEMORY_FILE

next

startfunction decbytei

	getvarchr BYTE MEMORY_FILE i
	math TMP = BYTE
	math TMP >>= 3
	math BYTE <<= 5
	math BYTE |= TMP
	math BYTE ^= 0xff
	putvarchr MEMORY_FILE i BYTE

endfunction
the data is either deflate or raw, and offzip can extract the files.

Code: Select all

offzip -a -z -15 file.mrs . 0


edit:

can you upload and texture mrs files? or the client.exe? i cant download the beta.
also are there and .pdb files with the client :mrgreen: ?

Re: Raider Z

Posted: Tue Aug 17, 2010 9:34 pm
by chrrox
ah cool thanks for posting the code i found this formula o another site for gunz but i dint know how to make it into bms.
i got bones loading the rest should not be hard.

Re: Raider Z

Posted: Tue Aug 17, 2010 10:09 pm
by WRS
chrrox wrote:i got bones loading the rest should not be hard.
from what file?

also, still looking for cbt client download links. the official one no longer works (http://file.nowcdn.co.kr/down/NeowizGam ... 081113.exe)

Re: Raider Z

Posted: Mon Aug 30, 2010 12:03 pm
by WRS
gotten any further with those bones?

i cant make much sense of the face information - there are vertex and uv indexes (both tables are easy to read), and some seem to repeat themselves. its also fustrating to see maiet updating their elu format without changing the version with 0x5007 elu files.