Editing Installation
From Bebot Wiki 2
Jump to navigationJump to searchWarning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 7: | Line 7: | ||
To install and run BeBot you need the following: | To install and run BeBot you need the following: | ||
− | * | + | * Anarchy Online (free or paid) or Age of Conan |
− | * PHP version from 5.4 ( | + | * PHP version from 5.4 (minimal requirement) upto 8.0 (max tested so far) |
− | * database server of either Mysql (from 4.1 upto 8.0 | + | * database server of either Mysql (from 4.1 upto 8.0) or MariaDB (10.0 upto 10.4) |
* either "Official" files at https://github.com/J-Soft/BeBot/archive/master.zip (stable) or "Beta" files from https://github.com/bitnykk/BeBot/archive/master.zip (sandbox) NB : if you know how to use git, you also can clone/pull from any of these urls. | * either "Official" files at https://github.com/J-Soft/BeBot/archive/master.zip (stable) or "Beta" files from https://github.com/bitnykk/BeBot/archive/master.zip (sandbox) NB : if you know how to use git, you also can clone/pull from any of these urls. | ||
Line 17: | Line 17: | ||
'''Notes for guild-style bot''' | '''Notes for guild-style bot''' | ||
− | |||
A guild bot needs to be a member of the guild it is to be a bot for. | A guild bot needs to be a member of the guild it is to be a bot for. | ||
Line 29: | Line 28: | ||
Download the latest release version from the BeBot homepage and unzip/git the files to a directory maintaining the directory structure. | Download the latest release version from the BeBot homepage and unzip/git the files to a directory maintaining the directory structure. | ||
− | |||
− | |||
− | |||
− | |||
'''Database''' | '''Database''' | ||
Line 57: | Line 52: | ||
Note that you can use forward slashes (recommended) or double backslashes (not recommended) on windows systems. Using single backslashes WILL NOT WORK as php interprets \ as a special escape character. | Note that you can use forward slashes (recommended) or double backslashes (not recommended) on windows systems. Using single backslashes WILL NOT WORK as php interprets \ as a special escape character. | ||
− | |||
− | |||
− | |||
On windows, according to the PHP version you'd want Bebot to run into, you may need to copy a php.exe file right into bot's root folder (where StartBot.bat is). Unless windows PATH and/or php.ini are well set so the exe can locate required libraries alone, you may have to copy correct .dll files for this specific PHP. | On windows, according to the PHP version you'd want Bebot to run into, you may need to copy a php.exe file right into bot's root folder (where StartBot.bat is). Unless windows PATH and/or php.ini are well set so the exe can locate required libraries alone, you may have to copy correct .dll files for this specific PHP. | ||
− | + | For 5.4/5.6 : libeay32, libmysql, php5ts and ssleay32, php_mysqli & php_sockets. | |
− | + | For 7.x : libcrypt, libssl, libssh2, sockets, nghttp2, curl & php7(ts). | |
Bot will tell you what misses to run during startup, so check all lines ! | Bot will tell you what misses to run during startup, so check all lines ! | ||
− | + | You may need to install some modules (e.g. curl) and activate them in php.ini | |
− | So | + | So be sure of what php.ini file is loaded by the PHP client Bebot uses. |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | ' | + | Set $main_php to the location of the "Main.php" file. Once again you can |
+ | just enter "Main.php" if you're starting the bot from the directory its in. | ||
− | + | If StartBot.php is in another directory than the bot itself (not | |
+ | recommended) you must specify the complete path to Main.php. | ||
Open the file Bot.conf, which is in the conf directory where you installed the bot, in a text editor. Here you will have to enter the Anarchy-Online username, password and the name of the bot along with the dimension number you would like to run it on. | Open the file Bot.conf, which is in the conf directory where you installed the bot, in a text editor. Here you will have to enter the Anarchy-Online username, password and the name of the bot along with the dimension number you would like to run it on. | ||
Line 113: | Line 80: | ||
The last 4 values are probably best left at default. | The last 4 values are probably best left at default. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
'''Guild bot ONLY''' | '''Guild bot ONLY''' | ||
Line 141: | Line 100: | ||
The console should now state that the bot is loading the modules, authenticating and connecting. Once this is done (it should only take a few seconds) You can log onto an character ingame which you have configured as “superadmin”. You should now be able to talk to the bot. | The console should now state that the bot is loading the modules, authenticating and connecting. Once this is done (it should only take a few seconds) You can log onto an character ingame which you have configured as “superadmin”. You should now be able to talk to the bot. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
'''In-game setup''' | '''In-game setup''' |