Page 11 of 11

Re: Mafia II SDS files?

Posted: Wed Sep 26, 2012 3:33 pm
by leoaires
WRS wrote:spent a little bit of time reversing some of the headers. the plaintext xml is for the engine to allocate memory (see the first header).

zlib data looks chunked. haven't yet bothered splitting up the files.

edit: haven't read the latest post - will download these new attachments now!

Code: Select all

# -- WRS
#    xentax.com
#    .sds BMS script (wip)

print "WARNING: THIS SCRIPT WILL NOT DUMP ANYTHING YET (WIP)"

idstring "SDS\x00"

goto 16

### Part of the header

get P_RES long
get P_DATA long
get P_XML long
get TOT_RAM long # sum of all ram usage (see xml)
get TOT_VRAM long # sum of all vram usage (see xml)

###

get xmlsize asize
math xmlsize -= P_XML

log "sds_desc.xml" P_XML xmlsize


goto 64

### Res info

get RES_COUNT long
get UNKNOWN long
get RES_TYPES long

for i = 1 to RES_TYPES

  get RES_INDEX long
  get RES_NAME_sIZE long

  math RES_NAME_sIZE += 4 # padded byte
  getdstring RES_NAME RES_NAME_SIZE

  print "%RES_NAME%"

next i

### zlib data

goto P_DATA # will already be here


getdstring UNKNOWN 30 # some sort of header

set chunkcnt long 0

for

  get CHUNK_SIZE long

  if CHUNK_SIZE == 0

    print "Chunks found: %chunkcnt%"
    cleanexit

  endif

  get FLAG byte

  if FLAG == 0

    getdstring UNKNOWN 11

    ## zlib data is here

    savepos DATASTART

    ## todo: clog to memory_file, append result to result
    math DATASTART += CHUNK_SIZE

    goto DATASTART

  else

    get UNKNOWN long
    get SKIP long

    savepos SKIPVAL

    math SKIPVAL += SKIP
    math SKIPVAL -= 8

    goto SKIPVAL

    savepos DATASTART

    ## todo: clog to memor_file, append result to result
    math CHUNK_SIZE -= SKIP
    math DATASTART += CHUNK_SIZE

    goto DATASTART

  endif

  math chunkcnt += 1

next
With this .bms i can extract the files, but i can't reimport the same..
I really need this tool.. plz

Re: Mafia II SDS files?

Posted: Mon Nov 05, 2012 11:27 am
by timartinelli
When someone can see the files on ps3, ja could decrypt .sdat. is now .sds simple ps3.

http://www.mediafire.com/?au2rtaww8fagdp7

Hugs.

Re: Mafia II SDS files?

Posted: Tue Nov 13, 2012 7:15 pm
by timartinelli
UP. :D

Re: Mafia II SDS files?

Posted: Sat Oct 11, 2014 5:29 pm
by makcar

Re: Mafia II SDS files?

Posted: Sun Oct 12, 2014 11:37 pm
by Ekey
Не актуальный инструмент. > http://svn.gib.me/public/illusion/trunk/

Re: Mafia II SDS files?

Posted: Mon Oct 13, 2014 9:44 am
by makcar
Ekey там нет самой тулзы лишь src. Ты можешь собрать и кинуть на паблик?

Re: Mafia II SDS files?

Posted: Mon Oct 13, 2014 2:28 pm
by Ekey
Here

Re: Mafia II SDS files?

Posted: Wed Jul 04, 2018 1:30 pm
by jaqub
Hello again, There has been a big research into the models in the sds files around this year. most likely tools made for 3ds max to edit and create new in-game models. So, m2 map modding is nearly now possible thanks to @Greavesy!
Post (Mafiascene forum): http://mafiascene.com/forum/viewtopic.php?t=10315 GitHub: https://github.com/Greavesy1899/Mafia2Toolkit
my msg here was just to spread this around to find ppl with interrests, thought still ppl wanted to create new tools for Mafia 2.

Map import on 3ds max
Image

collision model
Image

Thanks for seeking this! I hope interrests woke for Mafia 2 modding!

Re: Mafia II SDS files?

Posted: Wed Jul 04, 2018 6:21 pm
by Puterboy1
Has anyone got SFX and voice files?