Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Results 1 to 2 of 2
  1. #1
    Join Date
    May 2005
    Location
    /etc/passwd
    Posts
    19,110
    Tokens
    1,139

    Latest Awards:

    Default [Release] Super simple Linux auto Cartographer

    Yo,

    I just moved my private MC server over to Windows and before I lost my Linux VPS I thought I'd chuck this script I wrote up, there are probably better ways of doing this but I don't really care, it was quick and easy and I'm not editing it for anyone right off the bat unless they ask me to and provide the information in this thread

    Basically it will save your map, turn map saving off, copy your world folder as a backup to somewhere, turn saving on, run the C10t cartographer twice with different options and save the Cartographs in a folder somewhere.

    • It assumes the c10t Cartographer binary is in "/root"
    • It assumes your Minecraft server and the Multiplexer Client are in "/root/Minecraft"
    • It saves world backups into "/root/worlds/world-Current Backup Time"
    • It will save the Cartographs in "/var/www/Carts"


    1. This only works on Linux

    2. You MUST be using Multiplexer wrapper for this to work, you can grab it HERE

    3. You need to get the Multiplexer client from HERE

    3. You'll need to download c10t Cartographer from HERE

    4. You'll need to make a "worlds" folder in "/root".

    4. Copy this script into a .sh file:
    Code:
    #!/bin/bash
    time=`date +%d-%m-%Y_%R`
    cd /root/Minecraft
    python multiclient.py say Starting world backup...
    python multiclient.py save-all
    python multiclient.py save-off
    cp -R /root/Minecraft/world /root/worlds/world-$time
    python multiclient.py save-on
    python multiclient.py say World backup complete!
    python multiclient.py say Starting cartographs...
    cd /root
    ./c10t -q -w /root/worlds/world-$time -o /root/public_html/Carts/$time-Carto-Oblique.png
    cd /root/Minecraft
    python multiclient.py say Oblique Cartograph available, sheldon.socialee.me/Carts
    cd /root
    ./c10t -w /root/worlds/world-$time -o /root/public_html/Carts/$time-Carto.png
    cd /root/Minecraft
    python multiclient.py say Normal Cartograph available, sheldon.socialee.me/Carts
    python multiclient.py say Cartographing complete!
    5. Make it executable with "chmod +x NAME.sh"

    6. Set up a Cron job to run the script

    Hope someone finds it useful

  2. #2
    Join Date
    May 2007
    Posts
    10,481
    Tokens
    3,140

    Latest Awards:

    Default

    Awesome script, I'll +rep when my 24 hour limit fixes itself.
    Chippiewill.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •