Skip to main content

A series of tools for the game Mindustry, by Anuke.

Project description

Mindustry Tools

Overview

This small package is designed to serve as a helper to Mindustry, a factory/tower defense game made by Anuke.

Features

Feature 1: Factory operations

This package comes with all of the materials, factories, and collectors in the game on Seruplo (need to implement more!). These can be combined with different mathematical operations, resulting in Factory Groups. These operations include:

  • Addition (+): Adding entities combines them into one entity, summing together their inputs and outputs (given in materials / second).

  • Subtraction (-): Subtracting entities removes the inputs and outputs of the second entity from the first.

  • Multiplication (*): This operation is currently only implemented between floats and factories / factory groups. It scales the input and output rates by that amount.

  • Matrix Multiplication (@): This scales the inputs and outputs of the second factory such that it covers all of the inputs of the first. This is useful when calculating how many of one factory are required to supply another.

  • Division (/): This returns a float value representing how many of the second factory are required to supply the inputs of the first.

The function get_upstream() is also provided, which repeats the @ until all inputs are accounted for (by default, still allowing natural materials). Further customizations in the documentation.

Feature 2: To come!

More features may come, if there is interest. The above feature is what was most pressing to me, but recommendations are welcome!

Installation

To install, clone this repository (git clone git@github.com:sdsquire/MindustryTools).

You can also install via the Pypi package: `pip install MindustryTools (Coming soon!)

How to contribute

Suggestions and contributions are welcome. Feel free to create your own branch, then send me a pull request.

Acknowledgements

Obviously, my big acknowledgement goes to Anuke's game Mindustry. I've spent many hours on it, and will probably spend many more. Get it on steam!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mindustrytools-0.1a1.tar.gz (10.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

MindustryTools-0.1a1-py3-none-any.whl (12.5 kB view details)

Uploaded Python 3

File details

Details for the file mindustrytools-0.1a1.tar.gz.

File metadata

  • Download URL: mindustrytools-0.1a1.tar.gz
  • Upload date:
  • Size: 10.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.11.9

File hashes

Hashes for mindustrytools-0.1a1.tar.gz
Algorithm Hash digest
SHA256 0eee3b43281866c9684a3c7ac200d348bfd3546a11f802e33419e00af74fa0a9
MD5 fffc69f3b19415d58c8fc93382d729f4
BLAKE2b-256 692cf0b6e1a12bc500ce69eaa7e9b07d4a27991ac471544c4ecaa7d5db88b448

See more details on using hashes here.

File details

Details for the file MindustryTools-0.1a1-py3-none-any.whl.

File metadata

  • Download URL: MindustryTools-0.1a1-py3-none-any.whl
  • Upload date:
  • Size: 12.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.11.9

File hashes

Hashes for MindustryTools-0.1a1-py3-none-any.whl
Algorithm Hash digest
SHA256 c28571decab0278bcb77ee850a21fd9043d94c8d20ec54a071bf93c7ce18e752
MD5 9dd6e39efe65fab8a05cc662885c19b6
BLAKE2b-256 8dca9bdd2b0166071e90008169eff5b39757e3034a9c1cc8103c4ef5b1396d63

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page