Anno 1800
0 of 0

File information

Last updated

Original upload

Created by

ChrisAnd1998

Uploaded by

ChrisAnd1998

Virus scan

Safe to use

About this mod

Send python code to Anno 1800 using PyRun_SimpleString.

Permissions and credits
Send python code to Anno 1800 using PyRun_SimpleString.

Usage:
Just extract AnnoPythonAPITool.exe and AnnoPythonInject.dll anywhere you like and run AnnoPythonAPITool.exe.
Works with or without mod loader.

If Anno is in windowed fullscreen mode you can use F8
to show this window.

How it Works:
The GUI application writes the desired code/command to script.lua (this can also be programmed as script.py). After that it injects the AnnoPythonInject.dll into Anno 1800. The injected dll looks for python35.dll and initializes the thread with PyGILState_Ensure. Then sends a command to run our script.lua file using PyRun_SimpleString and after that finalizes the thread with PyGILState_Release. When the dll is finished sending the command it fully unloads itself from Anno 1800.

Source Code:
ChrisAnd1998/Anno1800PythonAPI: Send python code to Anno 1800 using PyRun_SimpleString. (github.com)

Screenshot: