Install Atavism Server Control addon

Using the Start/Stop/Restart features in the Atavism Editor inside Unity have been working on the Virtual Machine only. With this addon you can control the custom Linux Server from the editor as well.

 

  1. Start by downloading the addon here: https://client.northnetworking.com/download/category/1/Atavism-downloads.html
  2. First, we must setup cronjobs on our server. You can enter the crontab by entering the following command:
    Ubuntu: crontab -e
    CentOS: crontab -e
  3. The first time you enter the crontab, you will be asked which editor to use. Unless you have a specific preference, we suggest choosting Nano, as it is the easiest to use.
  4. Once you are inside the crontab, you will be presented by a screen like this:

  5. Here we will enter our cronjobs for the addon to work. Enter this into the crontab:
    * * * * * php -f /root/AtavismRestart.php
    * * * * * sleep 10 && php -f /root/AtavismRestart.php
    * * * * * sleep 20 && php -f /root/AtavismRestart.php
    * * * * * sleep 30 && php -f /root/AtavismRestart.php
    * * * * * sleep 40 && php -f /root/AtavismRestart.php
    * * * * * sleep 50 && php -f /root/AtavismRestart.php
    * * * * * php -f /root/AtavismStatus.php
    * * * * * sleep 10 && php -f /root/AtavismStatus.php
    * * * * * sleep 20 && php -f /root/AtavismStatus.php
    * * * * * sleep 30 && php -f /root/AtavismStatus.php
    * * * * * sleep 40 && php -f /root/AtavismStatus.php
    * * * * * sleep 50 && php -f /root/AtavismStatus.ph
    When we are done, it will look like this:
  6. Hold CTRL and Press O to save, then CTRL and X to exit nano
  7. Upload the content from the zip you just downloaded in to /root folder.
  8. You must open and edit the AtavismRestart.php and AtavismStatus.php and enter your database credentials, save by holding CTRL and pressing O and exit with CTRL and pressing X.
    nano AtavismRestart.php
    then
    nano AtavismStatus.php
    Alternatively you can edit the files before uploading


  9. After we have created our cronjobs and uploaded the files, we must install PHP on our server. This is quick and simple, and is done by following command:
    Ubuntu: apt install php php-mysqli -y
    CentOS: yum install php php-mysqli -y
    You are now back to the main terminal windows and the server is running safely in the background
  10. Now we must give our scripts the permission to be executed:
    chmod +x atavismauthstatus.sh
    chmod +x atavismrestart.sh
    chmod +x atavismstatus.sh
    chmod +x atavismstop.sh
    chmod +x atavismworldstatus.sh
  11. Once this is done, we can check if everything is working by running:
    php AtavismStatus.php
    If nothing shows on screen after running the command above, everything works as it should.
  12. You can now open up Unity and check if the Red status icons turns blue

 

Special thanks to Killersan at Dragonsan Studio for providing information and access to such amazing scripts.


Was this article helpful?

mood_bad Dislike 0
mood Like 4
visibility Views: 11333