BeBot - An Anarchy Online and Age Of Conan chat automaton

Archive => Age of Conan Archive => BeBot Hyborian modules => Topic started by: Vrykolas on July 07, 2008, 09:06:49 pm

Title: Ported Modules
Post by: Vrykolas on July 07, 2008, 09:06:49 pm
I've ported some modules from earlier versions of BeBot and thought they may be useful to some people:

A gratz mod (note that this uses modified core files and should be used with that in mind)

Please note that I am not the original author of these mods and any thanks should be directed at them.
Title: Re: Ported Modules
Post by: Helious on July 07, 2008, 11:46:11 pm
Cant get Ventrilo mod to work :P !set Ventrilo server ip doesnt do anything..after doing that and typing !vent it just shows this message -


[Guild] [XXX]: !set Ventrilo server xxx.xxx.xxx.xxx
[Guild] [XXX]: !set Ventrilo port xxxx
[Guild] [XXX]: !vent
[Guild] [Botbot]: Use !set Ventrilo server HOST to set your Ventrilo server.


I edited my sql directly to get past that - Now my only problem is um, its not seeing the vent lol, I type !vent and all Im getting is + Lobby ? I add'd my info in correctly. and I have ventsrv installed
Title: Re: Ported Modules
Post by: Vrykolas on July 08, 2008, 03:17:40 am
I suppose I should have clarified this (Shamelessly copied from here (http://bebot.link/0-4-x-customunofficial-modules/ventrilo/), originally written by the modules author:

Quote
Pre-Installation:
This module needs The ventrilo_status program to function. The ventrilo_status program for Windows, Linux i386, Solaris SPARC, Solarias x86, FreeBSD x86, NetBSD x86, and Mac OSX PowerPC can be found in the server version of Ventrilo. Download from Ventrilo.com. This module will obviously only work on the platforms supported by the Ventrilo binaries.

Disclaimer: Ventrilo's license does not allow unauthorized redistribution of their binaries, as such they are not included with this module. Also, I do not want the responsibility of ensuring that a binary executable is free from viruses and other security risks. You should only download ventrilo_status from Ventrilo.com

Pre-Installation (Cont.):
Download the Ventrilo server and locate the ventrilo_status (or ventrilo_status.exe for windows users) and place it somewhere on your harddrive. The default location for this module is in your BeBot's extras directory.

Required Configuration
Before you can use the Ventrilo module, you must configure it.

/tell yourbot !settings Ventrilo server <hostname or ip address> (Required!)
/tell yourbot !settings Ventrilo port <port number> (Required!)

Optional Configuration
/tell yourbot !settings Ventrilo password <password> (Only required if your Ventrilo server requires a password to obtain status via ventrilo_status. If your server does not require this, don't set it!!! If your server requires a password, you must set a port!)

/tell yourbot !settings Ventrilo prgpath <path to ventrilo_status> (Only required if you put ventrilo_status somewhere besides your BeBot's extras directory. Default: ./extras/. Example: c:\ventrilo\, /usr/local/bin/)

/tell yourbot !settings Ventrilo showclient <On|Off> (Enables and disables showing client information such as ping and time connected)
/tell yourbot !settings Ventrilo showserver <On|Off> (Enables and disables showing server information)

Usage
Use the !vent command in tell, private group, or guild chat to display the status. Ventrilo admins will be displayed in red. Protected rooms will be highlighted in orange.

Please ensure that the ventrilo_status path is correct (on my install the directory is ./extra/ and not ./extras/)

I have also corrected the server, port and password issue and the new version will correct the problem for those of you who have downloaded and run the older version.

That bug was introduced due to me misunderstanding how BeBots settings system works...
Title: Re: Ported Modules
Post by: Helious on July 08, 2008, 05:28:50 am
Ok, So I updated and now when I type !vent I get the info, just says no one is connected although im 100% sure the info/path is correct lol :(
Title: Re: Ported Modules
Post by: Vrykolas on July 08, 2008, 03:37:46 pm
First off, make sure you're running the latest version of the module (redownload and reinstall the file)

The module caches the results for 1 minute to prevent bombarding the Vent server with status requests.  Check that you're not seeing old results by waiting a minute or 2 after connecting before you check the status again.

Also check that the server address, port and password are correct and that the server you run your bot on has the port opened in the firewall.

Failing that, if you could pm me the details of your Vent server and I'll look into it.
Title: Re: Ported Modules
Post by: Jaycoldriser on July 08, 2008, 04:06:10 pm
hi all

I have the same issue !set command as !set Ventrilo server , !set Ventrilo prgpath and !set Ventrilo port doesn't seem reconized by the bot

any help ?

regards
Title: Re: Ported Modules
Post by: Vrykolas on July 08, 2008, 04:16:01 pm
Thanks for pointing that out - it should be !settings not !set
Title: Re: Ported Modules
Post by: Jaycoldriser on July 08, 2008, 04:26:03 pm
same issue whit !settings and just pointed out that I get an error relative to the loading of the Ventrilo module in the bot consol

Jayina [2008-07-08 14:13:24]    [MOD-CUSTOM]    [DIR]   Loading additional modul
es in directory custom/modules/

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result reso
urce in C:\php5\bebot-hyborian\Sources\MySQL.php on line 186

Warning: mysql_free_result(): supplied argument is not a valid MySQL result reso
urce in C:\php5\bebot-hyborian\Sources\MySQL.php on line 191

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result reso
urce in C:\php5\bebot-hyborian\Sources\MySQL.php on line 186

Warning: mysql_free_result(): supplied argument is not a valid MySQL result reso
urce in C:\php5\bebot-hyborian\Sources\MySQL.php on line 191

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result reso
urce in C:\php5\bebot-hyborian\Sources\MySQL.php on line 186

Warning: mysql_free_result(): supplied argument is not a valid MySQL result reso
urce in C:\php5\bebot-hyborian\Sources\MySQL.php on line 191
Jayina [2008-07-08 14:13:24]    [MOD-CUSTOM]    [LOAD]  ventrilo.php

I didn't get this error if I dont load the Ventrilo module

code from MySQL.php
Code: [Select]
function select ($sql, $result_form=MYSQL_NUM)
{
    $this -> connect();
$data = "";
$sql = $this -> add_prefix($sql);
$result = mysql_query($sql, $this->CONN);

if (!$result)
{
$this -> error($sql);
return false;
}

if (empty($result))
{
return false;
}

while ($row = mysql_fetch_array($result, $result_form)) // line 186
{
$data[] = $row;
}

mysql_free_result($result); // line 191
return $data;
}

code from ventrilo.php
Quote
// Put in to clean up a bug from a previous install - can be removed after 1st run
$this -> bot -> db -> select("UPDATE #__settings SET `value` = '' WHERE module = 'Ventrilo' AND setting IN('server', 'password') AND datatype = 'null';");
$this -> bot -> db -> select("UPDATE #__settings SET `value` = 0 WHERE module = 'Ventrilo' AND setting = 'port' AND datatype = 'null';");
$this -> bot -> db -> select("UPDATE #__settings SET datatype = 'string' WHERE module = 'Ventrilo' AND setting IN('server', 'password', 'port');");
// End of removable code

don't update or create de [bot]_settings ventrilo on my Mysql table

hope that will help you and thanx for your time and efforts
Regards
Title: Re: Ported Modules
Post by: grasfer on July 08, 2008, 04:56:32 pm
Guides
guides.phps (http://www.oasisavengers.com/guides.phps)

Hi there, thanks for converting all those mods! :)

Tried searching forum for info how to setup the guide mod, but i fail :)
I made a guide.lst file with this is in just to test.
Code: [Select]
General Guides:<br><a href='chatcmd:///tell <botname> <pre>guide gems2'>LINK</a> Gem Guide
When i tell my bot guides a info window come up with
Code: [Select]
General Guides:
LINK Gem Guide

All good, but where and how do i link gems to for example open a text file called gems?
Can the mod make a automatic list with guides or? I see there is code for make_list and make_guide but no idea how to use those.

This is the error mess i can see in the bot window when i click the link in the above code.
Code: [Select]
Warning: fopen(guides/.txt): failed to open stream: No such file or directory in D:\bebot\custom\modules\guides.php on line 74
Gegbot [2008-07-08 14:53:06]    [TELL]  [OUT]   -> Shaal: Specified guide not found! - Guide List :: [link]click to view[/link]

Thanks :)
Title: Re: Ported Modules
Post by: Vrykolas on July 08, 2008, 05:01:31 pm
It was a bug in my code, not in the MySQL code which should now be corrected in the version now on the link in the first post.
Title: Re: Ported Modules
Post by: Vrykolas on July 08, 2008, 05:58:16 pm
@grasfer:

it was picking up the guide name incorrectly - it should now be corrected (File linked in 1st post).

To make a guide:
 

The make_guide and make_list functions only open an existing guide and convert it into something the chatserver can display

Hope this helps
Title: Re: Ported Modules
Post by: Helious on July 08, 2008, 07:56:58 pm
Ok :D Got it to work, For some reason though some channels are sorta stacked, like instead of making a new line its all on the same line T_T so it looks like...


Age of Conan + raid
name
name
name
W/eChannel +something + something + something
name
name
name

But :) Ty for the vent mod, lovin it
Title: Re: Ported Modules
Post by: Urme on July 08, 2008, 07:58:22 pm
Still not getting the ventrilo status thing to work, I've added the ventrilo_status.exe to \extra directory, changed the settings in mysql to ./extra/, also tried g:\BebotChat\extra\.

when I typ !vent ingame I get no data at all about the server. If I type "ventrilo_status -c2 -t<ventip>:3794" in command window I get all the status about the server etc.

What's wrong? Don't get any errors when I start the bot either.

EDIT: Silly me, updated the code once more and now it works.
Title: Re: Ported Modules
Post by: kelmino on July 09, 2008, 12:28:14 am
@grasfer:

it was picking up the guide name incorrectly - it should now be corrected (File linked in 1st post).

To make a guide:
 
  • create a dir galled "guides" in the root of the BeBot folder
  • create a text file in that folder with the filename "guide.lst"
  • create a text file in that folder with the filename <guide name>.txt
  • edit the guide file and enter the guide
  • edit "guide.lst" and add "<a href='chatcmd:///tell <botname> <pre>guide <guide name>'><guide title></a>
  • Save and close the files

The make_guide and make_list functions only open an existing guide and convert it into something the chatserver can display

Hope this helps

I'm trying to get the guide plugin to display text in colors and such.  But for some reason I can't even get the guides to show up in the list.

If I type /bot guides I get a blank popup.
If I type /bot guide guidename I get a popup that will not open.  Could it be the way I formatted the guide? does it not like the colors?  The guide was formatted directly over from guild clicky.
Title: Re: Ported Modules
Post by: kelmino on July 09, 2008, 12:49:09 am
nevermind figured it out  :)

I had the link in the front of the
<a href = "text://
in front from how it was previously formatted.
Title: Re: Ported Modules
Post by: meatshield on July 09, 2008, 04:45:24 am
Any get the Grats mod to work ?? I went through the file and it looked like all you had to do was turn it "On". It still isnt' doing anything... so ya :(  I suck.
Title: Re: Ported Modules
Post by: Vrykolas on July 09, 2008, 12:37:05 pm
to turn it on you use the command "!settings autogratz Enabled On" and, if you're using the modified Main.php and Bot.php it will work. 

If you update the bot from SVN you will have to check that these files haven't been overwritten and apply the changes if they have been (as of the time of writing this they are current to SVN version 19 - I need to update to version 21 of Bot.php.)

Title: Re: Ported Modules
Post by: CheRny on July 09, 2008, 12:39:12 pm
Any get the Grats mod to work ?? I went through the file and it looked like all you had to do was turn it "On". It still isnt' doing anything... so ya :(  I suck.
Yes, it works fine for me, but I had to do
!autogratz add <my message>
!autogratz addlevel <my message>

After I am done these it starts working and I am just adding new messages !autogratz add <my message>

BTW did you check Bot.php and Main.php as autofratz needs some changes in these files?
Title: Re: Ported Modules
Post by: Vrykolas on July 09, 2008, 02:40:00 pm
updated autogratz.zip with the latest change to Bot.php. Link is in the first post.
Title: Re: Ported Modules
Post by: Noer on July 09, 2008, 02:47:04 pm
Regarding the grats-module, could you make a diff from the original files for me?

I am currently making some changes in main.php and bot.php and maybe I can put these changes into that aswell.
Title: Re: Ported Modules
Post by: Vrykolas on July 09, 2008, 03:07:24 pm
The diff file for Bot.php is available here (http://www.oasisavengers.com/Bot.diff) and the diff file for Main.php is available here (http://www.oasisavengers.com/Main.diff).  My editor trims whitespace at the end of lines so you'll have some of that in there as well...
Title: Re: Ported Modules
Post by: Noer on July 09, 2008, 03:23:58 pm
Thanks.

Okay, those changes are very specific for that purpose. I don't really think building that into the base code is something I want to do. :-\
Title: Re: Ported Modules
Post by: Vrykolas on July 09, 2008, 03:30:00 pm
No problem, I suspected that might be the case - I'll just carry on maintaining the modified files. :)
Title: Re: Ported Modules
Post by: Vrykolas on July 09, 2008, 07:59:19 pm
New version of the autogratz plugin linked in the first post.
Title: Re: Ported Modules
Post by: CheRny on July 10, 2008, 06:35:05 pm
After the last AoC patch I am not able to add any new gratz messages with name and level tags - <name> and <level> as somehow the client just cuts < and > symbols. As well as &lt; and &gt; don't show anymore in gratz help blob. Any1 has the same problem? If it's not just me, it's better to use something else instead of < and >.
Title: Re: Ported Modules
Post by: Vrykolas on July 10, 2008, 10:33:27 pm
I'm currently looking into this (among other things) but I don't seem to have a problem with it - I'll let you know more if I find something.
Title: Re: Ported Modules
Post by: Noer on July 10, 2008, 11:30:27 pm
They broke something with the chatserver last patch. It doesn't allow < and > in chat or it with truncate all after that.
Title: Re: Ported Modules
Post by: ripchen on July 11, 2008, 10:24:23 am
hi there,

i've got a little Problem with the Teamspeak Module...
it wants to include :
Code: [Select]
include_once("_Colors.php");which does not exist anywhere in my rep! So the Calls the Module makes crashes the Bot.
Am i missing something? Am i plain to stupid?
Please help !
Title: Re: Ported Modules
Post by: Vrykolas on July 11, 2008, 12:09:37 pm
no - I forgot to add the file - it is available here (http://www.oasisavengers.com/_Colors.phps).
Title: Re: Ported Modules
Post by: ripchen on July 11, 2008, 01:36:34 pm
Thanks for the quick Reply. Got the Module loaded now but it does not seem to display anything. Will Test further though !

Thanks again.
Title: Re: Ported Modules
Post by: glintz on July 13, 2008, 07:57:50 pm
I am working on the vent module.  My server seems to allow me to query we use ventrillo.net.  In dos if I query using ventrilo_status.exe and I get the information.  When i run the module I get no errors.  I have changed the location to ./extra/ since that is where my install is although I put it just about every where else as well.  Still no luck.  I do get the pop up in the game but my vent information is not there just the fields.  We do do not use a password and we are using ventilo 3.0 if that matters.

Thanks,

Glintz
Title: Re: Ported Modules
Post by: Vrykolas on July 13, 2008, 08:34:10 pm
Are you running the bot under windows or linux?

There seems to be an issue that means that it doesn't pick up the correct path to the executable that I haven't been able to figure out yet - I've been a bit busy working on converting the AoC bot to the latest release of BeBot, but I'll see if I can figure out what the issue is....

A work around is to edit the file and manually specify the full path to the ventrilo_status around line 320
Code: [Select]
$vent = shell_exec($command);
with
Code: [Select]
$command = 'path/to/ventrilo_status';
$vent = shell_exec($command);
(replace path/to with the full path to ventrilo_status)

Title: Re: Ported Modules
Post by: Dookie on July 13, 2008, 09:33:50 pm
My TS-Server ist Password-protected, but I want to use the TS-Module.
How can i define the passwort?
When I look at the sourcecode, it seems that its not intended to work with PW-protected TS-Servers...
Is there a possibility to use this nice module though?
Title: Re: Ported Modules
Post by: glintz on July 13, 2008, 09:35:22 pm
Thanks quick responses :)  I got it to work by taking the .exe off the file itself and leaving everything else stock lol.  Had no luck with trying to specify the location in the code although seems like that should have worked just as well and i did see some others get it to work that way in some posts.  Anyway amazing work on converting these bots so fast :)

Glintz
Title: Re: Ported Modules
Post by: Vrykolas on July 13, 2008, 09:58:22 pm
if you try the Teamspeak mod as it is you should see it display details of my server (which is password protected) if it doesn't work for you confirm this for me and I'll look into the problem further
Title: Re: Ported Modules
Post by: Dookie on July 15, 2008, 08:53:09 am
No, even if i use your details (with your URL as IP, because localhost won't make sense to test with your TS-server) I get a nearly empty popup ingame, like this:
Code: [Select]
::::: Teamspeak Server Info :::::

Get the client:
nothing more.

The config looks like this now:
Code: [Select]
        var $bot;
        var $ip = "teamspeak.oasisavengers.com"; //Server IP
        var $queryport = "51234";                    //Query Port (51234 by default)
        var $serverport = "8767";                    //Server Port (8767 by default)
        var $servername = "Oasis Avengers";        // Server name
        var $displayhost = "teamspeak.oasisavengers.com"; //Display ip address

I hope you can help me?!
Title: Re: Ported Modules
Post by: kardsen on July 15, 2008, 09:59:29 pm
updated autogratz files

I'm PRETTY sure these are correct.
they haven't crashed my bot :)

Please backup  main.php  and Sources/bot.php just in case.

This will fix the /afk showing player offline  and should make the autogratz mod work again.

Title: Re: Ported Modules
Post by: Vrykolas on July 15, 2008, 11:51:53 pm
As you command Kard :D
Title: Re: Ported Modules
Post by: Vrykolas on July 16, 2008, 01:24:29 am
I hope you can help me?!

I'll do what I can, but I'm also writing an updated version of the TS module atm, so it may be worthwhile waiting for that...
Title: Re: Ported Modules
Post by: kardsen on July 16, 2008, 01:34:27 am
I THINK i did it right.... in 2 posts above...

Just waiting for someone to ding :)
Title: Re: Ported Modules
Post by: elvyne on July 16, 2008, 06:19:19 pm
I have a question regarding the guides module

ive set it up and it is working, however i have a vistrix raid info txt stored. So when i use !guides vistrix it shows up as

Guide :: ">click to view

However, my question is. Is there a way to have "click to view"  say the actuall name of the txt file?
Title: Re: Ported Modules
Post by: Vrykolas on July 16, 2008, 07:00:42 pm
Elvyne: short answer - yes

longer part: here's how

in the function make_guide replace
Code: [Select]
            return "Guide :: " . $this -> bot -> core("tools") -> make_blob("click to view", $content);
with
Code: [Select]
            return "Guide :: " . $this -> bot -> core("tools") -> make_blob($guide, $content);
Title: Re: Ported Modules
Post by: elvyne on July 16, 2008, 07:37:58 pm
aah thank you very much
Title: Re: Ported Modules
Post by: Azrac on July 17, 2008, 01:32:53 pm
In regards to the "Guides" module I hope someone can help me.

I'll admit im a complete noob when it comes to html and coding and have so far managed to get short bits to work simply by using some logic.

I can make the ingame "guide" list display up to 2 guides by editing the guides.lst file and simply adding a new identical line and a <br> to seperate them, but whenever I try to add a 3'rd, things mess up completely.

Could any kind soul please show me how I can make a list of guides, so it will look something like this.

Guide1
Guide2
Guide3
Guide4
Guide5
Guide6 and so on.

I got the part with making individual guide text files to work fine and the click-link works, but I can't add more than 2....

Im sure it's something terribly basic but im at a loss.

Thanks in advance, both for the help and for the nice modules :)
Title: Re: Ported Modules
Post by: Sorekill on July 17, 2008, 04:40:14 pm
in the guide.lst which is in the guide folder with all the guide.txt should look something like this:

Code: [Select]
<font color=#4169e1>General Guides:</font>

<a href='chatcmd:///tell <botname> <pre>guide 1'>LINK</a> 1 - Guild Website Link
<a href='chatcmd:///tell <botname> <pre>guide 2'>LINK</a> 2 - Ventrilo Server Info
<a href='chatcmd:///tell <botname> <pre>guide 3'>LINK</a> 3 - Gem Cutting Guide
<a href='chatcmd:///tell <botname> <pre>guide 4'>LINK</a> 4 - City Building Guide
<a href='chatcmd:///tell <botname> <pre>guide 5'>LINK</a> 5 - Weapon Smithing Guide
<a href='chatcmd:///tell <botname> <pre>guide 6'>LINK</a> 6 - Crafting Items for Alchemy
<a href='chatcmd:///tell <botname> <pre>guide 7'>LINK</a> 7 - A Guide to Harvesting

When a person pulls it up in game they will see:
LINK 1 - Guild Website
LINK 2 - Ventrilo Server Info
and so on...and able to call them up....and the more guides u want to add you just put another line in                                                               
Title: Re: Ported Modules
Post by: Azrac on July 17, 2008, 04:46:29 pm
It works, thanks a ton Sorekill :)
Title: Re: Ported Modules
Post by: Azrac on July 17, 2008, 05:00:32 pm
For some reason it cuts off in the end of nr 4, not showing all the ending text and showing the bottom line as <a href and nothing else

Any clue why ?
Title: Re: Ported Modules
Post by: kardsen on July 17, 2008, 07:34:53 pm
You can't put  <a href links into a blob.....  :(
Title: Re: Ported Modules
Post by: kaeus on July 17, 2008, 07:48:54 pm
You sure about that?

I used <a href= all the time

Try using <a href=' instead of <a href="

Double quotes are probably used to create the blob, so any new links must use '.
Title: Re: Ported Modules
Post by: Vrykolas on July 20, 2008, 09:49:47 pm
I've ported a new module - Glarawyns' Vote Core and Simple Vote - the files are available in the first post of the thread

Also, I've removed the dependancy of _Colours.php from the Teamspeak module
Title: Re: Ported Modules
Post by: Vrykolas on July 20, 2008, 10:57:24 pm
fixed a minor bug in the Vote module - it didn't let you vote no.....
Title: Re: Ported Modules
Post by: Organizer on July 22, 2008, 04:22:31 pm
Does Autogratz work on the latest builds 052 r9-13?
Title: Re: Ported Modules
Post by: Vrykolas on July 22, 2008, 04:33:38 pm
There is a new version of Autogratz at the bottom of the first post (autogratz_0.5.2r9.zip).
That is coded to work with the new version of the bot
Title: Re: Ported Modules
Post by: Organizer on July 22, 2008, 05:40:28 pm
Thanks Vrykolas and team, trying that version out now...
Title: Re: Ported Modules
Post by: Roath on July 24, 2008, 01:43:57 am
does anyone have any guides that work this the guide module? i dont mind writing some myself, but if someone already has and is willing to share, could you please? would be very kind and i think alot will like it aswell.
Title: Re: Ported Modules
Post by: Organizer on August 03, 2008, 04:29:55 pm
Sorry to bug u again, vrykolas, but added r20 today and i think sources/bot.php was changes in r15 or something and now it does not work again :!

Maybe I can learn how to do the change myself, but if you can update again for r20 or latest it would be great...
Title: Re: Ported Modules
Post by: Vrykolas on August 03, 2008, 06:58:21 pm
autogratz_0.5.2r9.zip should work with the current version of the bot - I'm currently trying to sort out the issue with removing users, writing an enhanced raid module and adding your suggestions into the autogratz module, so I do have a fair amount on my plate atm but I will get around to it all ;)
Title: Re: Ported Modules
Post by: Vrykolas on August 03, 2008, 07:03:23 pm
erm, you may need to re-copy the Main.php as, depending on the setup, an svn-update may overwrite it with the standard one....
Title: Re: Ported Modules
Post by: Organizer on August 04, 2008, 12:55:20 am
No luck so far... for a long time I had no first server/world discoveries even if it was "on", after I upgraded to r20 and replaced especially the bot.php that started to work again, however the same time autogratz stopped to work. I tried replacing the main again with the one in r9 and it does not change anything, the error in the bot says...

Aidbot [ERROR]  [autogratz]     Event 'buddy_levelup' is invalid. Not registering.

Additionally after r20 whois.php generated an error, think i replaced it with an old again, have to check on that. Whois also generates User Last Seen on all users as 1970 something... would have to dig up the r20 file and maybe send you the error it gives if this is just me again .)

Thanks for all the hard work!
Title: Re: Ported Modules
Post by: Vrykolas on August 04, 2008, 01:22:51 am
the autogratz file you're using is the wrong version - re-download the file from the first post (the text was a bit confusing, so I've removed the outdated links) and replace both autogratz.php and Main.php with the ones from the archive.

I noticed the 1970 date myself and have just comitted an update that should correct this. If you still get an error with Whois.php could you post a copy to me please?
Title: Re: Ported Modules
Post by: Organizer on August 04, 2008, 09:14:28 am
Hi Vrykolas, I was using the right version of main.php, but not the right autogratz.php for some reason, have no guildies online so can't check if it works again yet though :)

EDIT -> someone leveled and it works again, thanks for help!

Last Seen now works for all members except for me (owner), when checking the WHOIS table the date is 3866 instead of the unix date 1217833337 that is stored in the USER table at the moment, I've tried relogging my character, restarting the bot etc. it still messed up my data only for some reason.

EDIT -> another member logged on and his whois data is now as well corrupted just like mine. No idea what going on atm. trying to understand it but no expert at this...
Title: Re: Ported Modules
Post by: Vrykolas on August 04, 2008, 12:29:44 pm
don't worry about the whois data for 24 hours - due to the database caching it can take a while to resolve itself (or as long as is set for your bot). if you're still having this issue once this period has elapsed let me know.
Title: Re: Ported Modules
Post by: Vrykolas on August 04, 2008, 11:48:38 pm
Bad news Org - I've just updated Autogratz to include the listing and removal commands you asked for, so you've got to update again ;)

Link on the first post.
Title: Re: Ported Modules
Post by: Organizer on August 05, 2008, 03:07:55 pm
Cool, I'll update now and report back on any bugs in case, but I'm sure it works perfect .)

Edit >> So far so good, it make this module much more friendly for any guild/user, it produced 3 pages of gratz (we have 112 or so) and adding/deleting seems to work perfect. Only thing minor thing you can think about is to add "For Level X" heading in pure white color or another heading color to better split them of from the message... not that it's very hard to see today but would look cleaner I guess.
Title: Re: Ported Modules
Post by: Vrykolas on August 06, 2008, 01:11:12 am
Added some minor tweaks to the autogratz code.
Title: Re: Ported Modules
Post by: Organizer on August 07, 2008, 03:41:27 pm
Guess I should start a separate thread on this maybe; the whois data is simply more and more corrupt, everyone who logs on gets a 5 number time stamp string in the whois table of the database and it displays as 1970. The data in the User table seems to be correct so there has to be something wrong when that data is used for the whois!

Is there anything I can provide please let me know! But I would be very surprised if my bot is the only one with this issue... maybe it is, anyone checked last login data on whois lately for users?
Title: Re: Ported Modules
Post by: Vrykolas on August 15, 2008, 12:45:33 am
I spotted that someone requested a !memberlist command converted and I needed a break from other coding, so I've added a converted and tweaked version of the module to the first post.

I believe it should work with both AoC and AO, but I've only tested it for AoC.
Title: Re: Ported Modules
Post by: Organizer on August 15, 2008, 07:22:21 pm
Thanks Vrykolas, added to my guild bot, works fine, only thing it would be great to have is maybe a filter on ALTS, so that it don't count them as members but as alts, maybe two views or something... :D

Pleeeeeeease :)
Title: Re: Ported Modules
Post by: clashbot on August 15, 2008, 09:27:48 pm
autogratz is giving me a bot command line error:

Code: [Select]
Warning: Missing argument 3 for autogratz::buddy(), called in bot.php on line 1086 and defined in autogratz.php on line 101
Title: Re: Ported Modules
Post by: Organizer on August 15, 2008, 10:09:20 pm
Not much help, but I can at least confirm autogratz runs smooth on latest build...
Title: Re: Ported Modules
Post by: clashbot on August 16, 2008, 05:24:55 am
ok, it is a case of auto running on ao...sorry I am running 10 ao bots and one aoc(until AoC starts giving froob accounts) Not getting the error in the AoC bot, just in the AO bot that doesn't use it anyways.
Title: Re: Ported Modules
Post by: krommel on August 28, 2008, 07:01:19 pm
if I have my ventrilo_status in another directory instead of /extra, will I be able to configure it to the proper directory?

I tried the !settings route and pointed it to:  /ventrilo/ventsrv/   (where the ventrilo_status file resides), but when I rebooted the bot, it keeps looking for it in /extras.

If I created an extras folder, could a symbolic link to ventrilo_status file work?


Ubuntu Server 8.10
Title: Re: Ported Modules
Post by: Jiheld on October 08, 2008, 09:54:41 pm
I am using bot 5.4 now for AoC. but the autogratz only gratz an player when he goes offline???
It worked in bot 5.2

Title: Re: Ported Modules
Post by: Elesar1 on October 09, 2008, 05:54:07 pm
if I have my ventrilo_status in another directory instead of /extra, will I be able to configure it to the proper directory?

I tried the !settings route and pointed it to:  /ventrilo/ventsrv/   (where the ventrilo_status file resides), but when I rebooted the bot, it keeps looking for it in /extras.

If I created an extras folder, could a symbolic link to ventrilo_status file work?


Ubuntu Server 8.10

Why not just copy the file into the proper directory? Its not like it is a large file, just 68Kb.

I run the vent module and have zero access to the server that it is communicating with other than the ability to connect via the Ventrilo client.

I simply downloaded the Ventrilo server and installed temporarily to get that program, then uninstalled the server from my system.

The bots don't need any other part of the server installation, and the vent status doesn't need it either, just the log-in information that you supply in setting up the module.
Title: Re: Ported Modules
Post by: Jiheld on October 12, 2008, 02:16:00 pm
I am using bot 5.4 now for AoC. but the autogratz only gratz an player when he goes offline???
It worked in bot 5.2



Somebody got a idea what is wrong?
Title: Re: Ported Modules
Post by: Alreadythere on October 12, 2008, 03:50:43 pm
Just guessing, but try the following. Near the end of Main.php in the root directory of the bot there is the following lines:
Code: [Select]
case 20:
// Silently ignore for now (AOCP_CLIENT_NAME)
break;

Replace them with the following code (basically add the code between the comment and break):
Code: [Select]
case 20:
// Silently ignore for now (AOCP_CLIENT_NAME)
if ($bot -> aoc -> buddy_exists($args[0]))
{
$bot -> aoc -> buddy_remove($args[0]);
$bot -> aoc -> buddy_add($args[0]);
}
break;

Could be that there is no buddy event generated otherwise, which would make it impossible to notice any level change before logoff.
Title: Re: Ported Modules
Post by: Jiheld on October 12, 2008, 04:00:13 pm
Thnx :-) that needed to be done.

Works great now.

Jih.
Title: Re: Ported Modules
Post by: Elesar1 on October 29, 2008, 05:48:29 pm
Made some small changes to the Ventrilo module.

-Channels are now sorted as the appear in Ventrilo, with Lobby first, then alphabetically for all others.

-User names (non-admin) are now yellow to help stand out from the channel names.

These forums will not allow me to upload through the options, so here it is on my server: LINKY (http://lohah.org/EldarAlliance/Downloads/Ventrilo.zip)
Title: Re: Ported Modules
Post by: Glarawyn on October 29, 2008, 07:58:22 pm
I've ported a new module - Glarawyns' Vote Core and Simple Vote - the files are available in the first post of the thread

Way too much time on your hands. :)

Title: Re: Ported Modules
Post by: crazybama on November 14, 2008, 10:24:01 pm
Anyway to get the autogratz mod to work with version 0.5.4 bebot?
Title: Re: Ported Modules
Post by: Temar on November 14, 2008, 11:04:32 pm
whats the problem/error with it?
Title: Re: Ported Modules
Post by: Alreadythere on November 15, 2008, 12:10:07 am
Did you try the change in this post (http://bebot.link/aoc-modules/ported-modules/msg11062/#msg11062)?
SimplePortal 2.3.7 © 2008-2024, SimplePortal