Skip to content

Select engines and themes used in Engine Simulator(https://github.com/ange-yaghi/engine-sim). Don't need to write "main.mr" by yourself!!!

License

Notifications You must be signed in to change notification settings

Golevka2001/Config-Loader-for-Engine-Sim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Config Loader for Engine Sim 🚗

English | 简体中文

👋🙂 In the latest version, the Engine-Simulator has provided a built-in console for switching engines, which is really convenient and beautiful. So this project will not be updated again.

Overview

main_window_1

This is a tool for Engine Sim, with concise interactive interface. You can use it to switch engines, themes used in the simulator, and change between imperia and metric units(units changing will be available soon).

Please hit the “:star:Star” button in the upper right hand corner, if this project helps you. I really appreciate it.

Table of Contents

Background

When using the "Engine Sim", I always find it troublesome to switch engines. I have to modify the content of ./assets/main.mr manually.

In addition, many engine files are written and uploaded by other users, so the format is not completely standardized. For example, some use the set_engine() method, while some use main().

So I wrote this program to make it easier to switch engines and modify the configuration file.

You can find engine files made and uploaded by other users here: The Parts Catalog

---------- Here are some methods provided by the author ----------

How to change engines

Change between imperial and metric units

More

Usage

Download

Visit the release page, find the latest version, click "Assets" and download the file Config_Loader_for_Engine_Sim-vx_x_x.zip.

Unzip

Unzip the the file Config_Loader_for_Engine_Sim-vx_x_x.zip, and you will get a folder(can be renamed). Move the folder to the directory of Engine Sim (in the same path as engine-sim-app.exe).

location

For convenience, you can create a shortcut for Config_Loader_for_Engine_Sim.exe in this folder.

⚠️ But do not change the location of the executable file.

Run

Double click the executable file or the corresponding shortcut to run.

The main window:

main_window_2

① - Engine file directory ② - Theme file directory ③ - Current selected engine and theme files

Select the engine file in ①, select the theme file in ②, and click the "Apply" button to write into ./assets/main.mr.

For some engine files, the program cannot determine the content to be written, and the following dialog box pops up. Users need to manually select:

selection_dialog_1

Click the "OK" button after selection. The modification is successful when the following dialog box pops up, and the old configuration file is backed up to ./assets/main.mr.backup:

success_dialog

Go back to the simulator, press Enter to update the settings.

Example

Take the engine BMW-M52B28 as an example, the file contains several public nodes. So users need to select according to their names(only M52B28 in the figure refers to an engine)

selection_dialog_2

If you are not sure about the names, click the "Open file" button to view the engine file.

engine_file

Stay Up-to-date

There will be more updates to improve functions or fix bugs.You can click the “:eyes:Watch” button in the upper right hand corner to receive notification when the project is updated.

What's to Come

  • Read old main.mr file on every run, and set as default values, so users don't need to change every options;
  • Change between imperial and metric units;
  • Preview of themes;
  • More beautiful;
  • ...

You can put forward the problems encountered and the functions you wish to add on the "Issues" page.

Change Log

[2022-10-31] Version: 2.1.0:

  1. Code refactoring;
  2. Read old file as default config;
  3. Fix errors caused by relative paths.

[2022-10-24] Version: 2.0.1:

  1. Fix the fault of the "Open file" button in the dialog box.

[2022-10-24] Version: 2.0.0:

  1. You can now switch themes;
  2. Fix some bugs about the selection dialog.

[2022-10-23] Version: 1.1.0:

  1. Add checks for files and paths;
  2. Modify the judgment on the contents of engine files;
  3. Modify control layout.

[2022-10-21] Version: 1.0.0:

  1. Display local engine files in tree view. The engine used in the simulator is selected by users, and the program writes into ./assets/main.mr.

License

GNU GENERAL PUBLIC LICENSE v2.0 © Gol3vka.

About

Select engines and themes used in Engine Simulator(https://github.com/ange-yaghi/engine-sim). Don't need to write "main.mr" by yourself!!!

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages