Skip to content

Commit

Permalink
w3g
Browse files Browse the repository at this point in the history
  • Loading branch information
nazarpunk committed Jul 9, 2024
1 parent e875b15 commit 6602a63
Show file tree
Hide file tree
Showing 9 changed files with 2,921 additions and 5 deletions.
1 change: 1 addition & 0 deletions .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Writerside/cfg/buildprofiles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
<primary-color>ruby</primary-color>
<color-preset>contrast</color-preset>
<noindex-content>false</noindex-content>

<include-after-body>include-after-body.html</include-after-body>
</variables>
</build-profile>

Expand Down
9 changes: 9 additions & 0 deletions Writerside/cfg/include-after-body.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<style>
:root {
--wh-max-width-content : none;
--wh-max-width-l : none;
}
.prompt {
max-width : none;
}
</style>
36 changes: 33 additions & 3 deletions Writerside/topics/file-format.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,38 @@
# Формат файлов

| Назначение | Расширение |
|--------------------------------|------------|
| [Информация о импорте](imp.md) | `imp` |
| Назначение | Файл |
|-------------------------------------------------------------------|----------------------------------------------------|
| [Информация о импорте](imp.md) | `war3map.imp` |
| Скрипт карты JASS2 | `war3map.j` |
| Скрипт карты Lua | `war3map.lua` |
| Информация о ландшафте | `war3map.w3e` |
| Информация о тенях | `war3map.shd` |
| Информация о декорациях на карте | `war3map.doo` |
| Информация о юнитах на карте | `war3mapUnits.doo` |
| [Информация об юнитах](w3abdhqtu.md) | `war3map.w3u` |
| [Информация о предметах](w3abdhqtu.md) | `war3map.w3t` |
| [Информация о разрушаемых объектах](w3abdhqtu.md) | `war3map.w3b` |
| [Информация о декорациях](w3abdhqtu.md) | `war3map.w3d` |
| [Информация о способностях](w3abdhqtu.md) | `war3map.w3a` |
| [Информация о бафах](w3abdhqtu.md) | `war3map.w3h` |
| [Информация об улучшениях](w3abdhqtu.md) | `war3map.w3q` |
| Информация для импорта в редактор объектов | `*.w3o` |
| Информация о звуках | `war3map.w3s` |
| Информация об областях | `war3map.w3r` |
| Информация о камерах | `war3map.w3c` |
| Информация о карте | `war3map.w3i` |
| Информация о триггерах | `war3map.wtg` |
| Информация о текстовых триггерах и нестандартном коде карты | `war3map.wct` |
| Информация о строках | `war3map.wts` |
| Изображение мини-карты | `war3mapMap.blp` `war3mapMap.tga` `war3mapMap.b00` |
| Превью карты | `war3mapPreview.tga` |
| Информация об игровых константах | `war3mapMisc.txt` |
| Информация об игровом интерфейсе | `war3mapSkin.txt` |
| Дополнительная информация о карте | `war3mapExtra.txt` |
| Информация о значках мини-карты на стандартном загрузочном экране | `war3map.mmp` |
| Информация о проходимости | `war3map.wpm` |
| Информация о проходимости (устарела) | `war3mapPath.tga` |
| [Реплей](w3g.md) | `*.w3g` |

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

Expand Down
2 changes: 1 addition & 1 deletion Writerside/topics/imp.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ Item {
<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>
</table>
77 changes: 77 additions & 0 deletions Writerside/topics/slk.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
# slk

- [SLK](https://github.com/stijnherfst/HiveWE/wiki/SLK)
- [sylk4j](https://github.com/ruediste/sylk4j)
- [wc3libs](https://github.com/inwc3/wc3libs/tree/master)
- [sylk_parser](https://github.com/majerteam/sylk_parser/tree/master)

The SYLK format with the extension .slk defines an ASCII representation of a table. The format described hereafter is
not the complete SYLK format, but rather the subset of it used by Blizzard. The full SYLK specification can be
found [here](https://en.wikipedia.org/wiki/SYmbolic_LinK_(SYLK)), but includes things like formatting and styling which
aren't relevant to the Warcraft game data.

## Format

An SLK file is built out of records where there is always only one per line. Every record can have zero or more fields
of which some are mandatory and some aren't. There is no mandatory order in which field should appear within records.
Fields themselves are separated by a semicolon ";". Any line in the file that is not one of the following records should
be skipped.

ID

The ID record should always be the first line. The fields of the ID record can be safely ignored, but I shall explain
them nonetheless.

**Mandatory**

* P

The P field denotes the program that created the SLK file. Common values are MP (Multiplan) or XL (Excel).

**Optional**

* N or E

The N or E field denote the cell protection settings for the table. See the Wikipedia article for more information. This
field is irrelevant to Warcraft game data.

B

This Record defined the size of the table. In the case of Blizzard game data files it seems to always appear before data
records, but doesn't necessarily have to which may complicate loading.

**Mandatory**

* X

The number of columns in the table.

* Y

The number of rows in the table

C

Defines data for a cell.

**Mandatory**

* X

The column which this line applies to. This field is mandatory, but is sometimes missing in the Blizzard SLK files.

**Optional**

* Y

The row which this line applies to. If this field is not present then the row of the last occuring Y field should be
used.

* K

The data for the cell. If the data is enclosed in quotes "data" then the data is a string. Otherwise it is a floating
point number.

E

The end of the file. Reading should stop immediately.
Loading

0 comments on commit 6602a63

Please sign in to comment.