Skip to content

A program to edit and randomize CIA and 3DS files.

License

Notifications You must be signed in to change notification settings

Ich73/GameEditor

Repository files navigation

Game Editor

Game Editor is a program to edit and randomize CIA and 3DS files.

Screenshot

It supports the following games:

It uses the following tools:

Using Game Editor

You can download the newest version from the Release Page. There are two downloads:

  • GameEditor-Standalone.zip: Extract the archive to a directory of your choice and run GameEditor.exe.
  • GameEditor-Installer.zip: Extract the archive and run GameEditor-Installer.exe in order to install Game Editor on your PC. You can then start it from the start menu.

It supports CIA and 3DS files. The required tools are downloaded automatically.

For Developers

Setup

This program is written using Python 3.10.2. You can install the required packages with the following commands.

python -m pip install pyqt5>=5.15.6

Addionally you need lrelease, a Qt tool for converting .ts translation files to .qm files.

You also need JTools.py found in BinJ Editor as well as GameManager.py and ToolManager.py found in Translation Toolkit.

Compiling Resources

To convert the translation files and pack them with the other resources into a single Resources.py file, you can run the following commands. This is needed whenever you change any resource file.

set "plugins=Plugins\CTR-P-BDMJ.py"

pylupdate5 GameEditor.pyw MessageBoxes.py Plugins\BasePlugin.py %plugins% Resources/Forms/main-window.ui -ts -noobsolete Resources/i18n/de.ts
lrelease Resources/i18n/de.ts

pylupdate5 GameEditor.pyw MessageBoxes.py Plugins\BasePlugin.py %plugins% Resources/Forms/main-window.ui -ts -noobsolete Resources/i18n/en.ts
lrelease Resources/i18n/en.ts

lrelease Resources/i18n/qtbase_de.ts
lrelease Resources/i18n/qtbase_en.ts

pyrcc5 Resources.qrc -o Resources.py

Running

You can run the program by using the command python GameEditor.pyw.

Distributing

To pack the program into a single executable file, pyinstaller is needed.
Run the command pyinstaller GameEditor-OneFile.spec --noconfirm and the executable will be created in the dist folder.
Run the command pyinstaller GameEditor-OneFolder.spec --noconfirm and the program files will be created in the dist/bin folder.