Skip to content

Commit

Permalink
w3abdhqtu
Browse files Browse the repository at this point in the history
  • Loading branch information
nazarpunk committed Jun 13, 2024
1 parent dc8e619 commit de0065c
Show file tree
Hide file tree
Showing 4 changed files with 75 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Writerside/topics/file-format.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@

- [Формат карт Warcraft 3](https://xgm.guru/p/wc3/w3-file-format)
- [MDX Specifications](https://www.hiveworkshop.com/threads/mdx-specifications.240487)
- [BLP Specifications](https://www.hiveworkshop.com/threads/blp-specifications-wc3.279306)
- [BLP Specifications](https://www.hiveworkshop.com/threads/blp-specifications-wc3.279306)
8 changes: 4 additions & 4 deletions Writerside/topics/imp.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
```C++
Imports {
uint32LE format // 0 - ROC
uint32le format // 0 - ROC
// 1 - TFT
uint32LE count
uint32le count
Item[count]
}

Item {
#if (format == 1) {
byte flags
if (format == 1) {
uint8BE flags
}
string path
}
Expand Down
69 changes: 69 additions & 0 deletions Writerside/topics/w3abdhqtu.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
# w3abdhqtu

- [war3map(skin).w3* Modifications](https://github.com/stijnherfst/HiveWE/wiki/war3map(skin).w3%2A-Modifications)

| Расширение | Тип | Данные | Типы данных | OPTIONAL |
|------------|---------------|----------------------------|--------------------------------------------|----------|
| .w3a | Abilities | Units\AbilityData.slk | Units\AbilityMetaData.slk ||
| .w3b | Destructables | Units\DestructableData.slk | Units\DestructableMetaData.slk | |
| .w3d | Doodads | Doodads\Doodads.slk | Doodads\DoodadMetaData.slk ||
| .w3h | Buffs | Units\AbilityBuffData.slk | Units\AbilityBuffMetaData.slk | |
| .w3q | Upgrades | Units\UpgradeData.slk | Units\UpgradeMetaData.slk ||
| .w3t | Items | Units\ItemData.slk | Units\UnitMetaData.slk (where useItem = 1) | |
| .w3u | Units | Units\UnitData.slk | Units\UnitMetaData.slk | |

```C++
Items {
uint32le version
uint32le defaultCount
Item[defaultCount]
uint32le modifiedCount
Item[modifiedCount]
}

Item {
uint32be original
uint32be modified

if (version >= 3) {
uint32le count
} else {
count = 1
}

Set[count]
}

Set {
if (version >= 3) {
uint32be flag
}
uint32le count
Mod[count]
}

Mod {
uint32be modification
uint32le type

if (OPTIONAL) {
uint32le level
uint32le data
}

if (type == 0) {
uint32 value
}

if (type == 1 || type == 2) {
float value
}

if (type == 3) {
string value
}

uint32be end
}

```
1 change: 1 addition & 0 deletions Writerside/war3mpq.tree
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@

<toc-element topic="file-format.md">
<toc-element topic="imp.md"/>
<toc-element topic="w3abdhqtu.md"/>
</toc-element>
</instance-profile>

0 comments on commit de0065c

Please sign in to comment.