From 32c3df7a6f46428aa93e49e91b68ed0e6968ddf5 Mon Sep 17 00:00:00 2001 From: MagicBot <magicbot@magicbane.com> Date: Mon, 2 May 2022 19:24:09 +0000 Subject: [PATCH] Update 'MagicBox : Magicbane in a Box' --- MagicBox-%3A-Magicbane-in-a-Box.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/MagicBox-%3A-Magicbane-in-a-Box.md b/MagicBox-%3A-Magicbane-in-a-Box.md index 2faf3cc..b385dd9 100644 --- a/MagicBox-%3A-Magicbane-in-a-Box.md +++ b/MagicBox-%3A-Magicbane-in-a-Box.md @@ -66,6 +66,8 @@ echo "Starting MagicBox" docker run --name magicbox -p 5000:5000 -p 6000:6000 -p 8000:8000 -v /home/mbbox/mb.conf:/home/magicbox/mb.conf magicbane/magicbox:latest & ``` +### Logging into a fresh MagicBox + When a MagicBox administrator first spins up his server it is assumed they might not have web registration sorted on day one. With this in mind the server is configured to auto register accounts on login. ```MB_LOGIN_AUTOREG="TRUE"``` @@ -75,6 +77,16 @@ When the time comes whether through Discord or Forum registration we have the ba ```CALL singleAccountCreate(?,?);``` ```CALL discordAccountCreate(?,?,?);``` +> Always use a freshly patched client. Client can be obtained from [www.magicbane.com](http://www.magicbane.com) + +In the client edit the Config/ArcaneIP file to reflect your public ip. + +```console +SERVER NAME: MAGICBANE +SERVER= YOUR.PUBLIC.IP.HERE +PORT= 6000 +``` + ### Managing your MagicBox Once MagicBox is running the following will grant you shell access. @@ -97,6 +109,14 @@ Inside the Magicbox you will find the following devops utlities. | mbrestore.sh | restores database from sql file | | sndmsg.sh | sends an in-game flash message | +The two bread and butter scripts in a MagicBox administrator's toolkit are mbbuild.sh and mbrestart.sh. + +Automated backups can be managed by using mbdump.sh in a cron job. + +The vigilant MagicBox administrator will always pay close attention to console_login and console_world. Anything in either log tagged as **ERROR** should be addressed. This applies doubly to bootstrap. + +`grep "ERROR" console_server` + ### Configuration Upon bootstrap MagicBox will first look for a [magicbane.conf](http://repo.magicbane.com/MagicBane/Server/wiki/magicbane.conf) file within the mb.conf host directory we mounted in the run command. If it cannot be found the game will instead use a default copy inside mb.data/ to boot with. This configuration boots using an internal MySQL server with a fresh database.