Skip to content

Latest commit

 

History

History
52 lines (35 loc) · 1.66 KB

README.md

File metadata and controls

52 lines (35 loc) · 1.66 KB

Satisfactory Planner

Applying Satisfactory Updates

read_docs.py in Data folder requires that /Path/To/Satisfactory/CommunityResources/Docs/Docs.json (these will be coded for your locale, e.g. en-GB - pick the matching one) is present in the project directory.

Running that will create the data.json file for this model. (read_docs.py out of date for 1.0, some manual input was needed until an update can be made.)

Setup

  • Install Python 3.8.5 or later. link
  • Install glpk open-source solver onto your computer. link
  • Set the path where GLPK is installed.

On Windows:

  1. Open System Control Panel (Win+X, then select System).
  2. Go to Advanced System Settings.
  3. Click on Environment Variables.
  4. Click New under System variables.
  5. Enter the path to the glpsol.exe: Variable Name: GLPK_PATH Variable Value: (example, E:\Applications\pyomo glpk\glpk-4.65\w64).
  6. Restart your PC after setting the variable.

Install the required packages using pip:

pip install -r requirements.txt
pip install pyinstaller

You may wish to use a Python Virtual Environment to avoid polluting your system Python installation.

Usage

Run gui.py to open the program.

python gui.py

main.py is the translator to the model and runs the solver. model.py creates the model for the solver.

The Saves file contains the saved settings states by the user.

Build a static executable using PyInstaller

pyinstaller --onefile --windowed --icon=icon.ico --collect-all pyomo --name SatisfactoryPlanner --distpath . gui.py