Optimizer rune builds in Summoners War https://runeoptimizer.inigovalentin.com
|
|
4 жил өмнө | |
|---|---|---|
| RuneOptimizerGUI | 4 жил өмнө | |
| src | 4 жил өмнө | |
| .gitignore | 4 жил өмнө | |
| LICENSE | 4 жил өмнө | |
| README.md | 4 жил өмнө |

Using the command line interface can be a bit overwhelming, but it's very powerfull.
The first thing you need to do is load the data from your json
RuneOptimizer update path-to-your-file.json --six-stars --with-runes
The parameters --six-stars and --with-runes are optional, and they are used to import only monsters at level 40 or with runes equiped.
apt install gcc libsqlite3-dev libjson-c-dev
Just make
Well, this was painfull to get right
Install MinGW for the compiler. You can follow this great tutorial: https://dev.to/gamegods3/how-to-install-gcc-in-windows-10-the-easier-way-422j
Get the sqlite3 libraries. (Credit for this part and many thanks to http://source.online.free.fr/Windows_HowToCompileSQLite) Download https://www.sqlite.org/2022/sqlite-amalgamation-3370200.zip . It contains four files:
They need to be copied to the compiler lib directory C:\MinGW\lib\
Next, download https://www.sqlite.org/2022/sqlite-dll-win64-x64-3370200.zip (or https://www.sqlite.org/2022/sqlite-dll-win32-x86-3370200.zip for 32 bit versions of Windows). Extract the zip, and copy the file to these to directories:
C:\MinGW\lib\C:\Windows\SysWOW64\ (or C:\Windows\System32\ for 32bit versions of Windows)Build json-c.
For this step you need VisualStudio. You can download it from here
https://visualstudio.microsoft.com/downloads/
If VisualStudio is not installed in english by default, once it's done you will also need to install the english language pack.
Once i'ts installed, follow the excelent instructions in:
https://github.com/json-c/json-c#building-on-unix-and-windows-with-vcpkg-
When done, you will end up with a folder named vcpkg\packages\json-c_x86-windows
From there, you need to copy:
lib\json-c.lib to C:\MinGW\libinclude\json-c\ to C:\MinGW\lib\json-c\bin\json-c.dll to C:\Windows\SysWOW64\ (or C:\Windows\System32\ for 32bit versions of Windows)Compile.
Open a console and go to the project directory. From there, go to src/RuneOptimizer
To compile, use the command:
gcc RuneOptimizer.c -o ../../RuneOptmizer.exe -I C:\MinGW\lib -lsqlite3 -ljson-c
Now, you'll have an executable in the project main directory.
(Optional) Install python to use the GUI.
If you want to use the program GUI, download and install Python3 for Windows from here (required minimum version is 3.6):
Download https://bootstrap.pypa.io/get-pip.py and save in the same directory that the Python executable (in my case C:\Python32)
During instalation, make sure to check Install PIP
In a console, run py -m pip install wxPython to install the required packages.