Skip to content

Commit 42752b5

Browse files
committed
1 parent ba1d4d1 commit 42752b5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+302
-7980
lines changed

.github/ISSUE_TEMPLATE/ошибка-в-переводе.md

Lines changed: 0 additions & 22 deletions
This file was deleted.

.gitignore

Lines changed: 4 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,4 @@
1-
/.vscode
2-
/copies
3-
/backups
4-
/cli/Cargo.lock
5-
/cli/target
6-
/cli/translation
7-
/cli/output
8-
/cli/.cargo
9-
/cli/ruby-writer/backups
10-
/cli/ruby-writer/output
11-
/cli/ruby-writer/original
12-
/cli/ruby-writer/translation
13-
/cli/ruby-writer/node_modules
14-
/cli/ruby-writer/bun.lockb
15-
/gui/node_modules
16-
/gui/bun.lockb
17-
/gui/input.css
18-
/gui/tailwind.config.js
19-
/gui/src/dist
20-
/gui/src-tauri/Cargo.lock
21-
/gui/src-tauri/target
22-
/img
23-
/*.zip
24-
/data
25-
/js
1+
/Cargo.lock
2+
/target
3+
/.cargo
4+
/.vscode

cli/Cargo.toml renamed to Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "json-writer"
2+
name = "rvpacker-json-txt"
33
version = "1.0.0"
44
edition = "2021"
55

LICENSE-ru.md

Lines changed: 0 additions & 14 deletions
This file was deleted.

README-ru.md

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
## Основная информация
2+
3+
Этот инструмент предназначен для чтения файлов RPG Maker игр в .txt файлы и записывания их обратно в .json.
4+
5+
Своё имя этот инструмент наследует от оригинального инструмента rvpacker, который был создан ещё для тех версий RPG Maker, что не использовали .json файлы.
6+
7+
Этот инструмент для движков RPG Maker XP, VX и VX Ace которые не используют .json файлы можно найти в [этом репозитории](https://github.com/savannstm/rvpacker-txt).
8+
9+
[Графический интерфейс](https://github.com/savannstm/rpgm-translation-gui), позволяющий удобно редактировать обработанные файлы (а также автоматически парсящий нераспарсенные игры, когда вы выбираете их папку) (и вы также можете легко записывать файлы обратно в формат .json одним нажатием кнопки) (и он также поддерживает RPG Maker XP, VX и VX Ace!)
10+
11+
## Установка
12+
13+
Скачать бинарные файлы можно в разделе Releases.
14+
15+
Файлы с расширением .exe предназначены для Windows любой битности, в то время как файлы без расширения предназначены для Linux x64.
16+
17+
## Использование
18+
19+
Получить справку по использованию можно, вызвав `json-writer -h`.
20+
21+
```
22+
Инструмент, позволяющий парсить текст .json файлов RPG Maker MV/MZ игр в .txt файлы, а затем записывать их обратно.
23+
24+
Использование: rvpacker-json-txt.exe [OPTIONS] [COMMAND]
25+
26+
Команды:
27+
read Парсит файлы из папки "original" или "data" входной директории в папку "translation" выходной директории.
28+
write Записывает переведенные файлы, используя исходные файлы из папки "original" или "data" входной директории,
29+
заменяя текст файлами из папки "translation" и выводя результаты в папку "output".
30+
31+
Опции:
32+
-i, --input-dir <ВХОДНОЙ_ПУТЬ> Входная директория, содержащая папки "original" или "data" и "translation", с
33+
оригинальным текстом игры и .txt файлами с переводом соответственно.
34+
-o, --output-dir <ВЫХОДНОЙ_ПУТЬ> Выходная директория, в которой будут создана директория "output" с папками "data" и
35+
"js", содержащими скомпилированные файлы с переводом.
36+
-l, --language <ЯЗЫК> Устанавливает локализацию инструмента на выбранный язык.
37+
Пример: --language en.
38+
[Разрешённые значения: ru, en]
39+
--log Включает логирование.
40+
--disable-custom-parsing Отключает использование индивидуальных способов парсинга файлов для некоторых игр.
41+
-h, --help Выводит справочную информацию по программе либо по введёной команде.
42+
```
43+
44+
Например:
45+
46+
`rvpacker-json-txt read --input-dir "E:/Documents/RPGMakerGame"` распарсит текст игры в папку `translation` указанной директории.
47+
48+
`rvpacker-json-txt write --input-dir E:/Documents/RPGMakerGame"` запишет перевод из \_trans файлов папки `translation` в .json файлы в папке `output`.
49+
50+
Инструмент не парсит текст из файла plugins.js, так как является очень затруднительным вычленить отображаемый в игре текст из плагинов.
51+
52+
## Лицензия
53+
54+
Репозиторий лицензирован под [WTFPL](http://www.wtfpl.net/).
55+
Это означает, что вы можете безнаказанно использовать и модифицировать программу в каком угодно виде. Вы можете делать всё, что захотите.

README.md

Lines changed: 35 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -1,91 +1,57 @@
1-
# RU
1+
# rvpacker-json-txt
22

3-
# Строение репозитория и использование программы
3+
[README на русском](https://github.com/savannstm/rpg-maker-translation-tools/blob/main/README-ru.md)
44

5-
## Директория cli
5+
## General
66

7-
В данной директории хранится бинарный файл `json-writer`, позволяющий парсить текст игр на движках RPG Maker MV/MZ,
8-
а затем записывать его обратно в рабочие игровые .json файлы.
7+
This tool is designed to read RPG Maker game files into .txt files and write them back to .json.
98

10-
Получить справку по его использованию можно с помощью `json-writer -h`.
9+
This tool inherits its name from the original rvpacker tool, which was created for those versions of RPG Maker that did not use .json files.
1110

12-
В директории `ruby-writer` хранятся TypeScript файлы утилиты `ruby-writer`, позволяющей парсить текст игр на движках RPG Maker XP/VX/VX Ace, а затем записывать его обратно в рабочие игровые .rxdata, .rvdata или .rvdata2 файлы.
11+
This tool for RPG Maker XP, VX and VX Ace engines that don't use .json files can be found in [this repository](https://github.com/savannstm/rvpacker-txt).
1312

14-
Тип движка игры, текст которой парсится и записывается, утилита определяет автоматически.
13+
[A GUI](https://github.com/savannstm/rpgm-translation-gui) that allows comfortably edit parsed files (and it also automatically parses unparsed games when you select their folder) (and you also can easily write files back to .json with a single button click) (and it also supports RPG Maker XP, VX and VX Ace!)
1514

16-
Для использования, вам необходим [Bun](https://bun.sh/). После его установки, вам необходимо выполнить команду `bun i` для установки зависимостей утилиты, а затем вы можете получить справку по ней, используя `bun run ruby-writer.ts -h`.
15+
## Installation
1716

18-
## Директория gui
17+
You can download binary files in the Releases section.
1918

20-
В этой директории хранится исходный код новой версии программы, написанной на Tauri.
19+
Files with the .exe extension are designed for Windows of any architecture, while files without an extension are designed for Linux x64.
2120

22-
Сообщения об ошибках и коммиты приветствуются.
21+
## Usage
2322

24-
**Скачать последнюю версию можно из вкладки Releases.**
23+
You can get help on usage by calling `json-writer -h.`
2524

26-
### Билдинг приложения
25+
```
26+
A tool that parses .json files of RPG Maker MV/MZ games into .txt files and vice versa.
2727
28-
Клонируйте репозиторий с помощью\
29-
`git clone https://github.com/savannstm/rpg-maker-translation-tools.git`.
28+
Usage: rvpacker-json-txt.exe [OPTIONS] [COMMAND]
3029
31-
Перейдите в директорию `gui` и установите все необходимые Node.js библиотеки с помощью\
32-
`npm install`.
30+
Commands:
31+
read Parses files from "original" or "data" folders of input directory to "translation" folder of output
32+
directory.
33+
write Writes translated files using original files from "original" or "data" folders of input directory and
34+
writes results to "output" folder of output directory.
3335
34-
Запустите\
35-
`npm run tauri dev`,\
36-
чтобы запустить приложение в девелопер режиме, либо\
37-
`npm run tauri build`,\
38-
чтобы забилдить приложение под вашу текущую ОС.
36+
Options:
37+
-i, --input-dir <INPUT_PATH> Input directory, containing folders "original" or "data" and "translation", with
38+
original game text and .txt files with translation respectively.
39+
-o, --output-dir <OUTPUT_PATH> Output directory, containing an "output" folder with folders "data" and "js",
40+
containing compiled .txt files with translation.
41+
-l, --language <LANGUAGE> Sets the localization of the tool to the selected language. Example: --language en.
42+
[Allowed values: ru, en]
43+
--log Enables logging.
44+
--disable-custom-parsing Disables built-in custom parsing for some games.
45+
-h, --help Prints the program's help message or for the entered subcommand.
46+
```
3947

40-
Если вы хотите внести какие-то изменения в код проекта - вносите его в фронтенд файлы из директории `src`, либо бэкенд файлы из директории `src-tauri/src`.
48+
Examples:
4149

42-
После билдинга в директории `gui/src-tauri` появится директория `target`, содержащая бинарный файл с билдом программы и распространяемые пакеты в директории `target/bundle`.
50+
`rvpacker-json-txt read --input-dir "E:/Documents/RPGMakerGame"` parses the text of the game into the `translation` folder of the specified directory.
4351

44-
## Лицензия
52+
`rvpacker-json-txt write --input-dir E:/Documents/RPGMakerGame"` will write the translation from the \_trans files of the `translation` folder to .the json files to the `output` folder.
4553

46-
Репозиторий лицензирован под [WTFPL](http://www.wtfpl.net/).
47-
Это означает, что вы можете безнаказанно использовать и модифицировать программу в каком угодно виде. Вы можете делать всё, что захотите.
48-
49-
# EN
50-
51-
# Repository order and program usage
52-
53-
## cli Directory
54-
55-
This directory contains a binary file `json-writer`, which allows you to parse the text of games on the RPG Maker MV/MZ engine,
56-
and then write it back to the working game.json files.
57-
58-
You can get help using it using `json-writer -h'.
59-
60-
The `ruby-writer` directory stores TypeScript files of the `ruby-writer` utility, which allows you to parse the text of games on RPG Maker XP/VX/VX Ace engines, and then write it back to working game .rxdata, .rvdata or .rvdata2 files.
61-
62-
The utility automatically determines the type of the game engine, the text of which is parsed and written.
63-
64-
To use it, you need [Bun](https://bun.sh/). After installing it, you need to run the `bun i` command to install the utility's dependencies, and then you can get help on it using `bun run ruby-writer.ts -h`.
65-
66-
## gui Directory
67-
68-
This directory contains the source code of new program version, written with Tauri.
69-
70-
Issues and commits are welcome.
71-
72-
### Program manual building
73-
74-
Clone the repository with\
75-
`git clone https://github.com/savannstm/rpg-maker-translation-tools.git`.
76-
77-
cd to the `gui` directory and install all needed node.js dependencies with\
78-
`npm install`.
79-
80-
Run\
81-
`npm run tauri dev`,\
82-
to run the program in dev mode, or\
83-
`npm run tauri build`,\
84-
to build the program for your current OS.
85-
86-
If you want to make some edits to the source code - edit frontend files in `src` directory, or backend files in `src-tauri/src` directory.
87-
88-
After the build, `target` directory will be created in the `gui/src-tauri` path, containing binary file with program build and distributable bundled packages in the `target/bundle` directory.
54+
The tool does not parse text from a plugins.js file since it is very difficult to isolate the text displayed in the game from the plugins.
8955

9056
## License
9157

cli/json-writer

-4.66 MB
Binary file not shown.

cli/json-writer.exe

-2.69 MB
Binary file not shown.

cli/ruby-writer/global.d.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

cli/ruby-writer/package.json

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)