State-Royale
Pixer415, with some help from ThatOneCalculator
Made byThis project needs your contributions. New modes/new features/typo fixes/suggestions/maintenance, etc. are welcomed. All contributors are listed here.
Please credit this repository when you use this program! If you like it, consider leaving a star on this repo!
Examples of program video output are linked here.
Explanation
State-Royale is an interactive nation-conquering simulator.
The program aims to automatically generate entertainment simulation videos based on the "Battle Royale" series of short videos created by the YouTube channel GeoFacts(LINK TO CHANNEL) Examples of these videos are provided here.(link to playlist of the shorts series)
The purpose of this program is to create a simulation in which all of the regions in a geographic area (for example, the 50 states of the United States) go head to head in an elimination battle. Each region is eliminated at random (or at the behest of a user), one by one. Eliminating a region is accomplished by geographically partitioning it amongst the regions that surround it. This process continues until a single region rules the entire area.
Prerequisites:
- Java Runtime Environment 16
- All downloads
- Also works with OpenJDK
- FFmpeg
- Windows: instructions
- macOS:
brew install ffmpeg
(needs Homebrew) - Linux: use package manager.
HOW TO USE
In the repo, there are base "mode" files that can be used. (ex: USA.zip) Grab one you like and place it in the same directory as the jar. With a little bit of know-how, you can also create your own modes using mem2.txt.
Use the jar as follows:
java -jar State-Royale-1.0.jar <args>
COMMANDS (args)
"-rm" (main command)
To remove all remaining regions in a save file:
startsave.zip -rm video.mp4
.mov also works.
To remove a set number of random regions:
startsave.zip endsave.zip video.mp4 -rm [number]
To remove specific regions in a randomized order:
startsave.zip endsave.zip video.mp4 -rm [region1] [region2] [and] [so] [on]
To remove specific regions in that order:
startsave.zip endsave.zip video.mp4 -rm! [region1] [region2] [and] [so] [on]
"-pl"
Same as -rm! above, but with the pedestal/medal animation instead of the slot machine one. Ideal for polling, hence the name.
startsave.zip endsave.zip video.mp4 -pl [region1] [region2] [and] [so] [on]
"-ls"
Prints out a list of regions remaining in a save file to a .txt.
startsave.zip -ls list.txt
Ending arguments
"-oo"
Skips all rewrite prompts, and overwrites any conflicting files.
startsave.zip endsave.zip video.mp4 -rm 4 -oo
"-no"
Skips all rewrite prompts, and does NOT overwrite any conflicting files.
startsave.zip endsave.zip video.mp4 -rm 4 -no
"-[w]x[h]"
Overrides the default video resolution of 720x720. Always place this at the very end of your command.
startsave.zip endsave.zip video.mp4 -rm 4 -1920x1080
With another ending arg: startsave.zip endsave.zip video.mp4 -rm 4 -oo -1920x1080
CREDITS
Political map data is provided by the GADM project, version 2.8.
Global Administrative Areas (boundaries). University of Berkeley, Museum of Vertebrate Zoology and the International Rice Research Institute (2012).
Elevation data is provided by the Wolfram Knowledge base with data from © OpenStreetMap contributors.
Wolfram Research, Inc., Wolfram|Alpha Knowledgebase, Champaign, IL (2021). Map data from Wolfram Knowledgebase with data from © OpenStreetMap contributors: http://www.openstreetmap.org/copyright
Real-ESRGAN was used to upscale the image.
Satellite imagery is provided by NASA's "Blue Marble Next Generation" Visible Earth project. The world image from August 2004 is used.
The Pixeled font was made by OmegaPC777 on Dafont.com.
The KdTree implementation was created by Jilocasin on GitHub.