Skip to content

Commit

Permalink
imp
Browse files Browse the repository at this point in the history
  • Loading branch information
nazarpunk committed May 31, 2024
1 parent 024c4b2 commit dc8e619
Show file tree
Hide file tree
Showing 7 changed files with 55 additions and 14 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,7 @@ Extraction order:
- War3x.mpq
- War3xLocal.mpq
- War3Patch.mpq

# Documentation

- [Русский](https://warraft.github.io/war3mpq)
6 changes: 0 additions & 6 deletions Writerside/c.list

This file was deleted.

4 changes: 3 additions & 1 deletion Writerside/cfg/buildprofiles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
<buildprofiles xsi:noNamespaceSchemaLocation="https://resources.jetbrains.com/writerside/1.0/build-profiles.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<variables></variables>
<build-profile instance="war3mpq">
<variables>
<offline-docs>true</offline-docs>
<primary-color>ruby</primary-color>
<color-preset>contrast</color-preset>
<noindex-content>false</noindex-content>
</variables>
</build-profile>
Expand Down
10 changes: 9 additions & 1 deletion Writerside/topics/file-format.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# Формат файлов

Вскоре здесь появится информация.
| Назначение | Расширение |
|--------------------------------|------------|
| [Информация о импорте](imp.md) | `imp` |

## Полезные ссылки

- [Формат карт 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)
36 changes: 36 additions & 0 deletions Writerside/topics/imp.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# imp

Информация о импорте.

> Файл `war3map.imp` необходим только для редактора.
```C++
Imports {
uint32LE format // 0 - ROC
// 1 - TFT
uint32LE count
Item[count]
}

Item {
#if (format == 1) {
byte flags
}
string path
}

```
## Флаги {id="flag"}
<table style="none">
<tr><td rowspan="2"><code>0x01</code></td><td><code>0</code></td><td>Нужно будет из пути извлечь только имя файла и дописать <code>war3mapImported\</code></td></tr>
<tr><td><code>1</code></td><td>Будет отображаться полный путь импортированного файла (т.е нестандартный)</td></tr>
<tr><td rowspan="2"><code>0x02</code></td><td><code>0</code></td><td>Ничего не значит</td></tr>
<tr><td><code>1</code></td><td>Пункт <code>byte</code> и <code>string</code> обнуляются при чтении</td></tr>
<tr><td><code>0x04</code></td><td colspan="2">Неизвестно (можно игнорировать)</td></tr>
<tr><td><code>0x08</code></td><td colspan="2">Неизвестно (можно игнорировать)</td></tr>
<tr><td><code>0x10</code></td><td colspan="2">Неизвестно (можно игнорировать)</td></tr>
</table>
5 changes: 0 additions & 5 deletions Writerside/v.list

This file was deleted.

4 changes: 3 additions & 1 deletion Writerside/war3mpq.tree
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,7 @@
name="war3mpq"
start-page="file-format.md">

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

0 comments on commit dc8e619

Please sign in to comment.