collapse collapse
* User Info
 
 
Welcome, Guest. Please login or register.
* Search

* Board Stats
  • stats Total Members: 989
  • stats Total Posts: 18365
  • stats Total Topics: 2500
  • stats Total Categories: 7
  • stats Total Boards: 35
  • stats Most Online: 1144

Author Topic: Ported Modules  (Read 46587 times)

0 Members and 1 Guest are viewing this topic.

Offline Vrykolas

  • BeBot Apprentice
  • ***
  • Posts: 100
  • Karma: +0/-0
Ported Modules
« 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.
« Last Edit: August 15, 2008, 12:43:52 am by Vrykolas »

Offline Helious

  • BeBot Rookie
  • *
  • Posts: 10
  • Karma: +0/-0
Re: Ported Modules
« Reply #1 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
« Last Edit: July 08, 2008, 12:32:08 am by Helious »

Offline Vrykolas

  • BeBot Apprentice
  • ***
  • Posts: 100
  • Karma: +0/-0
Re: Ported Modules
« Reply #2 on: July 08, 2008, 03:17:40 am »
I suppose I should have clarified this (Shamelessly copied from here, 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...
« Last Edit: July 08, 2008, 04:15:27 pm by Vrykolas »

Offline Helious

  • BeBot Rookie
  • *
  • Posts: 10
  • Karma: +0/-0
Re: Ported Modules
« Reply #3 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 :(

Offline Vrykolas

  • BeBot Apprentice
  • ***
  • Posts: 100
  • Karma: +0/-0
Re: Ported Modules
« Reply #4 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.

Offline Jaycoldriser

  • BeBot Rookie
  • *
  • Posts: 6
  • Karma: +0/-0
Re: Ported Modules
« Reply #5 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

Offline Vrykolas

  • BeBot Apprentice
  • ***
  • Posts: 100
  • Karma: +0/-0
Re: Ported Modules
« Reply #6 on: July 08, 2008, 04:16:01 pm »
Thanks for pointing that out - it should be !settings not !set

Offline Jaycoldriser

  • BeBot Rookie
  • *
  • Posts: 6
  • Karma: +0/-0
Re: Ported Modules
« Reply #7 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
« Last Edit: July 08, 2008, 05:03:15 pm by Jaycoldriser »

Offline grasfer

  • BeBot User
  • **
  • Posts: 22
  • Karma: +0/-0
Re: Ported Modules
« Reply #8 on: July 08, 2008, 04:56:32 pm »
Guides
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 :)
« Last Edit: July 08, 2008, 04:59:17 pm by grasfer »

Offline Vrykolas

  • BeBot Apprentice
  • ***
  • Posts: 100
  • Karma: +0/-0
Re: Ported Modules
« Reply #9 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.

Offline Vrykolas

  • BeBot Apprentice
  • ***
  • Posts: 100
  • Karma: +0/-0
Re: Ported Modules
« Reply #10 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:
 
  • 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

Offline Helious

  • BeBot Rookie
  • *
  • Posts: 10
  • Karma: +0/-0
Re: Ported Modules
« Reply #11 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

Offline Urme

  • BeBot Rookie
  • *
  • Posts: 5
  • Karma: +0/-0
Re: Ported Modules
« Reply #12 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.
« Last Edit: July 08, 2008, 08:23:11 pm by Urme »

Offline kelmino

  • BeBot User
  • **
  • Posts: 50
  • Karma: +0/-0
Re: Ported Modules
« Reply #13 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.

Offline kelmino

  • BeBot User
  • **
  • Posts: 50
  • Karma: +0/-0
Re: Ported Modules
« Reply #14 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.

 

* Recent Posts
0.8.x updates for AO by bitnykk
[June 23, 2024, 03:19:47 pm ]


0.8.x updates for AoC by bitnykk
[June 23, 2024, 03:19:44 pm ]


[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 pm ]


BeBot still alive & kicking ! by bitnykk
[December 17, 2023, 12:58:44 am ]


Bebot and Rasberry by bitnykk
[November 29, 2023, 11:04:14 pm ]

* Who's Online
  • Dot Guests: 110
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.
* Forum Staff
bitnykk admin bitnykk
Administrator
Khalem admin Khalem
Administrator
WeZoN gmod WeZoN
Global Moderator
SimplePortal 2.3.7 © 2008-2024, SimplePortal