Archive > AO 0.6.x Custom/Unofficial modules
Slaves
Shelly:
--- Quote from: Kyr on November 20, 2011, 02:07:11 am ---I am going to try using this mod on one of my AoC bots. Anyone have any advice or things to watch out for?
~Kyr
--- End quote ---
Hey Kyr,
Sorry I don't have much experience with AoC bots, but your should be able to modify the AOC lines like I did for AO.
Read the guide Tyrence has for install would be the best answer I could give.
Shelly
Heffalomp:
For this to work in 64bit (*nix atleast) you need to change line 405 from
--- Code: ---if (!$this -> aoc[$num] -> connect($server, $port))
--- End code ---
to
--- Code: ---if (!$this -> aoc[$num] -> connect($server, $port, $this -> bot -> sixtyfourbit))
--- End code ---
so it knows wether it's on a 64bit system or not.
All I had to change in the module to get it to work :-)
Attached fixed 02_Slaves.php
Shelly:
--- Quote from: Heffalomp on May 10, 2012, 01:37:27 am ---For this to work in 64bit (*nix atleast) you need to change line 405 from
--- Code: ---if (!$this -> aoc[$num] -> connect($server, $port))
--- End code ---
to
--- Code: ---if (!$this -> aoc[$num] -> connect($server, $port, $this -> bot -> sixtyfourbit))
--- End code ---
so it knows wether it's on a 64bit system or not.
All I had to change in the module to get it to work :-)
--- End quote ---
Thanks! That works beautifully!
Shelly
Heffalomp:
To make slaves work on the new servers, change function connect2($num) part of main/02_Slaves.php (around line 366) to also contain
--- Code: --- case "5":
$dimension = "Rubi-Ka";
break;
--- End code ---
like this:
--- Code: --- function connect2($num)
{
// Get dimension server
switch($this -> bot -> dimension)
{
case "0":
$dimension = "Testlive";
break;
case "1";
$dimension = "Atlantean";
break;
case "2":
$dimension = "Rimor";
break;
case "3":
$dimension = "Die neue welt";
break;
case "5":
$dimension = "Rubi-Ka";
break;
Default:
$dimension = ucfirst(strtolower($this -> bot -> dimension));
}
--- End code ---
Thom:
I tried to install that module ..... and after I fixed some Errors it seems to work..... but then there was a strange notice in terminal....
--- Quote ---Bot [2014-01-31 06:23:48] [LOGIN] [STATUS] Connecting to ao server chat.d1.funcom.com:7105
Bot [2014-01-31 06:23:48] [LOGIN] [STATUS] Authenticating bot
Bot [2014-01-31 06:23:50] [LOGIN] [STATUS] Logging in Bot
Bot [2014-01-31 06:23:50] [LOGIN] [RESULT] OK
Bot1 [2014-01-31 06:23:50] [LOGIN] [STATUS] Connecting to server chat.d1.funcom.com:7105
Bot1 [2014-01-31 06:23:50] [LOGIN] [STATUS] Authenticating bot1
AOChat: 91a092cb96e553244e728c3ebda0ac03
--- End quote ---
then the bot automatic restarts.....
any1 has an idea how to fix this or an idea what this could be ? Oo
the function which gives the notice is in AOChat.php line 629:
--- Quote --- // If we recieve anything but the character list, something's wrong.
if ($packet->type != AOCP_LOGIN_CHARLIST) {
die("AOChat: {$packet->args[0]}\n");
}
--- End quote ---
please help me :) .....
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version