HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

W3U Spec (check it out zepir)

07-05-2002, 10:37 PM#1
BlacKDicK
W3U File spec by BlacKDicK

w3u files have a initial long and then comes two tables. Both look the same.
First table is original units table (Original Blizzard Units)
Second table is user-created units table (Units created by the map designer)


[W3U Version]
[Original Units table] ALWAYS IS THE FIRST TABLE, THIS IS IMPORTANT
[User-created units table]


long 0100 0000 W3U Version

[A Table]
long Count of units on this table.
* If =0 on original table, then skip default unit table. This is the number of following units
* Even if we don't have any changes on original table, this value must be there.

loop till got all units

each unit:
string*4 base unitcode
string*4 this unitcode. If it is on original table, this is 0, since it isn't used.
long mod count (this is the count of mods following this)
loop till got all mods
each mod:
string*4 modcode (it is the 1st col of unitmetadata.slk)
long variant type (0=int,1=real,2=ureal,3=null term string)
value (depends on the variant type)
long end of unit (usually 0)

I still don't know if we can have a variant type > 3, meaning some other type, like uint...

BTW, how can i use CODE tags on vbull?
07-05-2002, 11:42 PM#2
zepir
Nice job BlackDick! :) I'm happy now! ;)

-=Zépir oo