Madagascar Icon MAD Script

the RenderWare Stream unpacker 0.1

Attention Gamer! We are one of the oldest mod sites on the Interwebs. Sign up and maximize your browsing experience.

  • Subscribe: Get notified of new submissions like this.
  • Say Thanks: Show your appreciation by sending HARVLAW_ORENGI points.
  • Post: Give HARVLAW_ORENGI your thoughts on this Script.
  • Vote: Help HARVLAW_ORENGI win the Monthly Awards.
  • Rate: Give this Script a rating out of 10.
  • Flag: Alert moderators and warn members of a problem with this Script.
  • Watch: Get notified when this Script is updated.
Mascot

Resistance is futile...

Sign up

Already a Bananite? Login

96 lines | 3 kb | Raw Code
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
# RenderWare 3.6.0.2 binary stream file unpacker v.0.1 (Madagascar: The game)

get sSize asize

for
math I + 1
log memory_file 0 0
get rwType long
set fName string I
string fName + "_"
get sectSize long
get rwVersion long
savepos sectOffset

     if rwType != 1814
        string fName + rwType
        string fName + .UNK
        log fName sectOffset sectSize
     else
        log memory_file sectOffset sectSize
     endif

     if rwType == 1814
        get headerSize long memory_file
        savepos headerStart memory_file
        get nameSize long memory_file
        get rwName string memory_file
        string fName + rwName
        strlen fNameLen rwName
        math nameSize - fNameLen
        math nameSize - 1
        goto nameSize memory_file SEEK_CUR
        goto 16 memory_file SEEK_CUR
        get rwID_Size long memory_file
        get rwID string memory_file

        if rwID == "rwID_TEXDICTIONARY"
           string fName - .txd #subtract extension for debug
           string fName - .TXD
           string fName + .txd
        elif rwID == "rwaID_WAVEDICT"
           string fName - .rws
           string fName - .RWS
           string fName + .rws
        elif rwID == "rwID_WORLD"
           string fName - .bsp
           string fName - .BSP
           string fName + .bsp
        elif rwID == "TextStringDict"
           string fName - .txl
           string fName - .TXL
           string fName + .txl
        elif rwID == "rwID_CLUMP"
           string fName - .dff
           string fName - .DFF
           string fName + .dff
        elif rwID == "rwID_HANIMANIMATION"
           string fName - .anm
           string fName - .ANM
           string fName + .anm
        elif rwID == "SCRIPT"
           string fName - .ai
           string fName - .AI
           string fName + .ai
        elif rwID == "TEXT"
           string fName + .TEXT
        elif rwID == "rwID_2DFONT"
           string fName - .fnt
           string fName - .FNT
           string fName + .fnt
        elif rwID == "KFset"
           string fName - .lpa
           string fName - .LPA
           string fName + .lpa
       #DEBUGELSE
        else
           string fName + "."
           string fName + rwID
        endif
               
        goto headerStart memory_file SEEK_SET
        goto headerSize memory_file SEEK_CUR
        get fSize long memory_file
        savepos fOffset memory_file
        log fName fOffset fSize memory_file
     endif

goto sectSize 0 SEEK_CUR
savepos checkPos

     if checkPos == sSize
        Print "Files Extracted: %i%"
        cleanexit
     endif

     next
so this is a script for quick bms and it extracts the .stream files in the Madagascar game files 

what it extracts:
  • models (DFF format)
  • Textures (TXD format)
  • Animations 
  • Skybox and map (BSP format)

Posts

None found

Share

Shareable Image:
Share banner
HTML embed code:
BB embed code:
Markdown embed code:

More embeddable images

Bookmark and Share

Credits

Authors
StreamThread
made the script
HARVLAW_ORENGI avatar
HARVLAW_ORENGI avatar Offline
Member Joined 3mo
345 points Ranked 11504th
beta tested and uploaded it

Submitter

HARVLAW_ORENGI avatar
HARVLAW_ORENGI avatar sleepin/outside
Member Joined 3mo
345 points Ranked 11504th

HARVLAW_ORENGI avatar
HARVLAW_ORENGI

Redistributor
Are you the owner? Request Ownership
Send a Private Message to the submitter

Category

Stats

Posts
0
Views
163
Date Added
2mo
Date Modified
1mo