Mathematical Functions & Optimization Calculations for OSRS
Project description
Old School Runescape Math (osrsmath)
This project houses python code that implements various equations used in the game, primarily focused on combat mechanics. Built upon this are some applications that attempt to optimize game play or otherwise apply these equations. Having these models in a powerful programming language like Python allows novel problems to be solved. The applications are currently unpolished and not very user friendly, but here is a list of apps:
Application | File | Description |
---|---|---|
Path | apps/path.py |
For a given set of equipment: What is the most efficient way to train from a given attack and strength level to a desired level in nmz? |
Optimize | apps/optimize.py |
Use a genetic algorithm to find a near optimal equipment setup and/or opponent(s) for maximum experience rates. (In progress) |
Nightmare Zone (nmz) | apps/nmz.py |
How much experience per hour should you expect from various setups? |
Single Opponent | apps/single_opponent.py |
Straight forward combat analysis versus a single opponent. |
At this point in time, they don't currently provide interfaces, so you would have to edit the files, then run those scripts to use them. This will change in the future.
Installing
To get the code, simply run
pip install osrsmath
To check that everything is working, in the command line run
python -m osrsmath.apps.path
If your environment supports graphical displays, you should get an image like: otherwise you should at least get the saved image in the current directory.
Alternatively, since at the moment there is not interface to access the apps, you may wish instead to download the code files, run the setup script, and explore from there:
git clone https://github.com/Palfore/OSRS-Combat
cd OSRS-Combat/osrsmath
python setup.py -e .
Then edit /apps/path.py
(for example), and run python /apps/path.py
.
Running the tests
Coming soon!
Built With
Authors
- Nawar Ismail - Initial work - Palfore
License
This project is licensed under the MIT License - see the LICENSE.md file for details
Acknowledgments
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.