Mafia II SDS files?

The Original Forum. Game archives, full of resources. How to open them? Get help here.
leoaires
ultra-n00b
Posts: 7
Joined: Mon Aug 06, 2012 2:06 am

Re: Mafia II SDS files?

Post by leoaires » Wed Sep 26, 2012 3:33 pm

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

timartinelli
mega-veteran
mega-veteran
Posts: 177
Joined: Thu Sep 30, 2010 9:52 am
Has thanked: 19 times
Contact:

Re: Mafia II SDS files?

Post by timartinelli » Mon Nov 05, 2012 11:27 am

When someone can see the files on ps3, ja could decrypt .sdat. is now .sds simple ps3.

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

Hugs.

timartinelli
mega-veteran
mega-veteran
Posts: 177
Joined: Thu Sep 30, 2010 9:52 am
Has thanked: 19 times
Contact:

Re: Mafia II SDS files?

Post by timartinelli » Tue Nov 13, 2012 7:15 pm

UP. :D

User avatar
makcar
veteran
Posts: 152
Joined: Mon May 12, 2014 10:41 pm
Has thanked: 22 times
Been thanked: 43 times

Re: Mafia II SDS files?

Post by makcar » Sat Oct 11, 2014 5:29 pm

You do not have the required permissions to view the files attached to this post.

Ekey
M-M-M-Monster veteran
M-M-M-Monster veteran
Posts: 1638
Joined: Wed Mar 31, 2010 6:54 am
Has thanked: 62 times
Been thanked: 817 times

Re: Mafia II SDS files?

Post by Ekey » Sun Oct 12, 2014 11:37 pm

Не актуальный инструмент. > http://svn.gib.me/public/illusion/trunk/

User avatar
makcar
veteran
Posts: 152
Joined: Mon May 12, 2014 10:41 pm
Has thanked: 22 times
Been thanked: 43 times

Re: Mafia II SDS files?

Post by makcar » Mon Oct 13, 2014 9:44 am

Ekey там нет самой тулзы лишь src. Ты можешь собрать и кинуть на паблик?

Ekey
M-M-M-Monster veteran
M-M-M-Monster veteran
Posts: 1638
Joined: Wed Mar 31, 2010 6:54 am
Has thanked: 62 times
Been thanked: 817 times

Re: Mafia II SDS files?

Post by Ekey » Mon Oct 13, 2014 2:28 pm

Here
You do not have the required permissions to view the files attached to this post.

jaqub
ultra-n00b
Posts: 2
Joined: Tue Nov 14, 2017 4:15 pm
Been thanked: 1 time

Re: Mafia II SDS files?

Post by jaqub » Wed Jul 04, 2018 1:30 pm

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!

Puterboy1
veteran
Posts: 86
Joined: Fri Mar 02, 2018 3:05 am
Been thanked: 4 times

Re: Mafia II SDS files?

Post by Puterboy1 » Wed Jul 04, 2018 6:21 pm

Has anyone got SFX and voice files?

Post Reply