DL2 Save Editor
Overview

Prerequisites for Programming

What are the prerequisites to make changes to the editor yourself

prerequisites-for-programming

Installations

  • Rust:

    Installation: Before working with TAURI, ensure that Rust is installed on your system. You can install Rust by following the instructions on the official Rust website.

  • Node.js and npm (Node Package Manager):

    Installation: TAURI projects typically require Node.js and npm for managing frontend dependencies and building the project. Install Node.js here

  • TAURI CLI:

    Installation: The TAURI Command Line Interface (CLI) is essential for creating, building, and managing TAURI projects. Install it globally using npm:

    Terminal window
    npm install -g @tauri-apps/cli

To run application

After all prerequisites are fulfilled it is possible to start the application with the following command:

Terminal window
npm run tauri dev

To build application

If you made changes and want to create an executable it is possible by using the following command:

Terminal window
npm run tauri build

Change Tauri Settings

The application contains a settings file the base information for the executable are stored. The file is called tauri.conf.json and is found inside the src-tauri directory of the editor code (Click here if you want to browse the file).

Example (Tauri Settings Example)

For example, if you would like to change the default setting of the fullscreen mode, the size of the window or the title, you just have to change the following parameters inside the config file to your desired values:

7 collapsed lines
{
...
"productName": "Dying Light 2 Save Editor",
"mainBinaryName": "Dying Light 2 Save Editor",
"version": "1.0.8",
"identifier": "com.dyinglight.save.editor",
"plugins": {},
"app": {
"withGlobalTauri": false,
"windows": [
{
"fullscreen": false,
"fullscreen": true,
"resizable": true,
"maximized": true,
"title": "Dying Light 2 Save Editor",
"width": 1080,
"height": 800,
"useHttpsScheme": true
}
],
"security": {
"csp": null
}
}
}