program to simulate the random game mode's randomized node distribution introduced in 1.2
You can try it HERE
Look in Releases to use the tool locally
NOTE: if you created your world on build 480321 (first 1.2 exp build), this program's output will not match your world
(because that version was missing a limestone node, which was fixed in the following release)
if you notice that the output of this program does not match what you see in game, open an issue containing the following:
- game version: version code (
vx.x.x.x), branch (main/experimental), build number (e.g.481836, should be visible somewhere in game, maybe title screen? if you dont know, at least provide the release date of the patch) - version of this tool you used (git commit hash / git tag / version number / release date / download date)
- randomization settings (seed, mode, purity mode)
- a save file created with these parameters
- description of the mismatch between game and this tool (if not obvious)
- (preferrably) a screenshot of the generated node distribution
- Clone this repo
- You need to provide
src/resources/default-world.json, which describes the resources present in the default world and can be generated from the game assets usingscripts/ - You need to provide
src/resources/world-outline.json, which describes the outline of the map and is used as a background graphic. This was created manually by masking + redrawing and then tracing the in-game map image. Just put an empty array. - You need to provide
src/resources/textures/, which contains some png icons for the different resource types and can be generated usingscripts/ - If you want link sharing to work, set the
PUBLIC_URLenvironment variable to the url where you are going to host the web app. - Run
cargo runto start the tool
The implementation of the randomization algorithm itself (src/*.rs) as well as the scripts used for extracting game resources (scripts/) are licensed under the MIT license,
and the source code of the viewer app (src/app/*.rs) is licensed under GPL v3.