Skip to content
This repository has been archived by the owner on Nov 21, 2023. It is now read-only.

[Discontinued] Server side app that automates https://overviewer.org renders using cron and shelljs npm dependencies.

License

Notifications You must be signed in to change notification settings

migtarx/minecraft-auto-overviewer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minecraft Auto Overviewer [Discontinued]

Minecraft Auto Overviewer is a server side app that automates Overviewer renders using cron and shelljs npm dependencies. Minecraft Auto Overviewer will allow you to execute a Overviewer render when ever you want. Can be multiple times in a day, onces everyday, onces a week, onces a month...

Installation

  1. Clone the repo
    git clone https://github.com/migtarx/minecraft-auto-overviewer.git
  2. Install npm dependencies
    npm install

Usage

First of all you will need to set up the config file.

This is a config.json file example.

This render will be using python3.9 for the rendering process and it will be executed everyday at 5:55 am Europe/Madrid time. It will execute the render picking up the overviewer.py from /home/migtarx/minecraft-overviewer/ and rendered out to /home/migtarx/web-server/map/ where also assets will be copied out too.

This render will be also picking the config file required for custom render paramethers from /home/migtarx/minecraft-overviewer/render_config.txt. A config file is required for at least tell overviewer where to pick the world and where to render it.

{
    "python_ver": "3.9",
    "time_zone": "Europe/Madrid",
    "min": "55",
    "hour": "5",
    "dayom": "*",
    "month": "*",
    "dayow": "*",
    "minecraft_overviewer_loc": "/home/migtarx/minecraft-overviewer/",
    "minecraft_overviewer_configfile_loc": "/home/migtarx/minecraft-overviewer/render_config.txt",
    "render_out_dir": "/home/migtarx/web-server/map/",
    "assets": ["compass_upper-left.png", "index.html", "favicon.png"]
}
  • python_ver stands for selecting your system python version. As minimum you will requiere python 3 for running Overviewer.
  • time_zone is required to lend cron check in what time zone locate the schedules. Check in this json file all available time zones.
  • min hour dayom month dayow are one of the key parts of the program it self. With this variables you will be able to set up your rendering schedules (Check more about cron tab schedules for a better understanding of how cron works). You can also check Cron Guru for testing when your next schedule is gonna be executed by entering the cron pattern (in the example case 5 55 * * *) In case that you are not going to use all the variables, do not leave them empty, just right as the example up bellow a * symbol in each one you do not want to use.
  • minecraft_overviewer_loc path to where the overviewer program is located. You can get it on overviewer.org as well as related documentation to setup it up.
  • minecraft_overviewer_configfile_loc path to where is the overviewer config file located. This is an example of how a config file should be for full world render with all dimensions. Learn more about in Overviewer Official Documentation.
  • render_out_dir path to where the render its gonna be rendered (same as the one you selected in the Minecraft Overviewer config file to render out your world.
  • assets field it's where you just need to place the name with extention of all the files you want Auto Overviewer copy to the render dir (as its shown in the example up bellow). In the example case compass_upper-left.png it's a modified asset from overviewer which was a simple compass but in my case I replaced it with Epsilon SMP logo. index.html it's a modified index which already has the top title already changed and with favicon added aswell, and thats why the next asset in the list it's called favicon.png which will be the icon place next to the title in your browser tabs.

With the config.json already configured now it's time to launch the program. There are two ways of executing MInecraft Auto Overviewer. One with the index.js (will execute the schedules selected in the config file) or with the exec_render.js (will execute an instant render as it will with a schedule).

For launching the Minecraft Auto Overviewer with your pre configured schedules

node index.js

For a extraordinary render executing (instant render)

node exec_render.js

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

About

[Discontinued] Server side app that automates https://overviewer.org renders using cron and shelljs npm dependencies.

Resources

License

Stars

Watchers

Forks

Packages

No packages published