This is a simple Python script to resolve the issue where the game Elin cannot save progress on macOS (when running through Wine).
- Monitors specific directories to automatically delete temporary files that may block the saving process in Elin.
- Python 3.9 or higher
- Watchdog Module
To install Python 3.9 via Homebrew, run the following command in your terminal:
brew install python@3.9Next, install the Watchdog module, which is used for directory monitoring:
pip install watchdog-
Modify the
watch_directoryin theelin_watchdog.pyscript to the appropriate directory path where your game saves are located. -
Run the script using Python:
python elin_watchdog.pyThis will start monitoring the specified folder and will automatically delete the Temp folder if conditions are met, allowing the game to save without issues.
- The script continuously monitors the game's save folder for any newly created directories (like
world_01folders) and deletes temporary files when necessary. - If you encounter any issues, make sure that the directory paths are correct and that you have the required permissions to modify the folders.
Use pyinstaller to build your modified python file so you can run it easily
pip install pyinstaller
pyinstaller --onefile elin_watchdog.pyYou can find elin_watchdog under /dist, use chmod +x to let it have premission to run
cd dist
chmod +x elin_watchdog
./elin_watchdog