Skip to content

Repository files navigation

Types Editor

License: MIT

Editor for DayZ cfgeconomycore.xml type files. Built with Python and Flet.


Редактор Types

Редактор файлов types для cfgeconomycore.xml в DayZ. Написан на Python с использованием Flet.

Features

  • Open economy directory (mpmissions/<map_name>/) — cfgeconomycore.xml is found automatically inside
  • Optional profiles directory — for future use
  • Edit type files in a table UI with inline editing (nominal, lifetime, restock, min, quantmin, quantmax, cost, flags, category, usage, value)
  • Create new type files — auto-registers in the CE block
  • Delete type files — removes from config and disk
  • Batch update — edit multiple types in one file at once
  • Pagination & search for large type lists (supports | for OR queries, e.g. AK101|AK74)
  • Remote projects over SSH or FTP — downloads server files for editing and automatically uploads saved changes
  • Cross-platform — native desktop builds for Windows and Linux

Возможности

  • Открытие папки economy (mpmissions/<map_name>/) — cfgeconomycore.xml находится автоматически
  • Опциональная папка profiles — для использования в будущем
  • Редактирование типов в таблице с inline-редактированием (nominal, lifetime, restock, min, quantmin, quantmax, cost, flags, category, usage, value)
  • Создание новых файлов — авторегистрация в CE блоке
  • Удаление файлов — удаление из конфига и с диска
  • Пакетное обновление — редактирование нескольких типов в одном файле сразу
  • Пагинация и поиск по большим спискам типов (поддержка | для OR запросов, например AK101|AK74)
  • Удалённые проекты по SSH или FTP — скачивание файлов сервера для редактирования и автоматическая загрузка сохранённых изменений
  • Кроссплатформенность — нативные сборки для Windows и Linux

Use Cases / Сценарии использования

Vanilla cfgeconomycore.xml (без CE блока)

Ванильный cfgeconomycore.xml не содержит CE блока. Редактор создаст его автоматически.

  1. Скачайте папку mpmissions/<map_name>/ с сервера себе на компьютер
  2. Откройте приложение
  3. Выберите папку mpmissions/<map_name>/ как economy directory (приложение само найдёт cfgeconomycore.xml внутри)
  4. В выпадающем списке файлов напишите types.xml — он будет создан и подключён к CE блоку

Директория CE файлов — mpmissions/<map_name>/db/.

Vanilla cfgeconomycore.xml (no CE block)

Vanilla cfgeconomycore.xml does not contain a CE block. The editor will create it automatically.

  1. Download mpmissions/<map_name>/ from your server
  2. Open the app
  3. Select mpmissions/<map_name>/ folder as the economy directory (the app will find cfgeconomycore.xml inside)
  4. Type types.xml in the file dropdown — it will be created and registered in the CE block

The CE files directory is mpmissions/<map_name>/db/.

Custom type file (mod_name.xml)

You can create a new file with any name (e.g. my_mod_types.xml). If the file doesn't exist yet — it will be created with the standard XML template and automatically registered in the CE block. If the file already exists in the db/ folder — it will be connected to the config.

Можно создать новый файл с любым именем (например, my_mod_types.xml). Если файла нет — он создастся с стандартным XML-шаблоном и автоматически пропишется в CE блок. Если файл уже существует в папке db/ — он подключится в конфиг.

Existing types.xml in db/

Point the editor to the economy directory (mpmissions/<map_name>/). The editor finds cfgeconomycore.xml inside, reads the CE block, finds types.xml (or any other registered files), and loads them for editing.

Укажите economy директорию (mpmissions/<map_name>/). Редактор найдёт внутри cfgeconomycore.xml, прочитает CE блок, найдёт types.xml (или другие зарегистрированные файлы) и загрузит их для редактирования.

Installation

From Releases (Recommended)

Download the latest binary for your OS from the Releases page:

  • Linux: types_editor_linux
  • Windows: types_editor_windows.exe

Make executable and run (Linux):

chmod +x types_editor_linux
./types_editor_linux

From Source

pip install uv
uv sync --group dev
uv run flet run

Установка

Из релизов (Рекомендуется)

Скачайте готовый бинарник для вашей ОС со страницы Releases:

  • Linux: types_editor_linux
  • Windows: types_editor_windows.exe

Сделайте исполняемым и запустите (Linux):

chmod +x types_editor_linux
./types_editor_linux

Из исходников

pip install uv
uv sync --group dev
uv run flet run

Usage / Использование

  1. Launch the app (double-click binary or uv run flet run)
  2. Click "Select economy directory" (or create a New Project)
  3. Pick your mpmissions/<map_name>/ folder — cfgeconomycore.xml is found automatically
  4. (Optional) Select a profiles directory
  5. Edit type files in the table — all changes are inline
  6. Click Save to persist changes
  7. Upload the modified files back to your server

  1. Запустите приложение (двойной клик по бинарнику или uv run flet run)
  2. Нажмите "Select economy directory" (или создайте новый проект)
  3. Выберите папку mpmissions/<map_name>/cfgeconomycore.xml найдётся автоматически
  4. (Опционально) Укажите папку profiles
  5. Редактируйте типы в таблице — изменения применяются сразу
  6. Нажмите Save для сохранения
  7. Загрузите изменённые файлы обратно на сервер

Architecture / Диаграммы

Architecture diagrams (dependencies, data flow, ER-model, class diagrams, sequences) live in docs/diagrams/ — Mermaid (.md) renders on GitHub, PlantUML (.puml) is for IDE/viewer plugins. Class diagrams can be regenerated from the code:

uv run python scripts/generate_diagrams.py

Диаграммы архитектуры (зависимости, поток данных, ER-модель, class-диаграммы, sequence) находятся в docs/diagrams/ — Mermaid (.md) рендерится на GitHub, PlantUML (.puml) — через плагины в IDE. Class-диаграммы можно перегенерировать из кода:

uv run python scripts/generate_diagrams.py

Testing / Тестирование

uv run pytest tests/ -v

Project Structure / Структура проекта

types_editor/
├── src/
│   ├── main.py              # Flet GUI application
│   ├── file_display.py       # Type file table UI with inline editing
│   └── etree.py              # XML parsing utilities
├── tests/
│   └── test_main.py          # Tests
├── .github/workflows/
│   └── build.yml             # CI: test, build, release
├── pyproject.toml
└── README.md

License / Лицензия

Licensed under the MIT License.

Contributors

Thanks goes to these wonderful people: Благодарность этим замечательным людям:


breezeFur

📖

William Jiang

💻

Harshit Chaturvedi

💻

Shawn

💻

Rohit Jacobs

💻 📖

About

Yet anothEr Types Editing Environment

Topics

Resources

Stars

5 stars

Watchers

0 watching

Forks

Releases

Used by

Contributors

Languages