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

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

Author Topic: BeBot v0.2.10 released  (Read 3404 times)

0 Members and 1 Guest are viewing this topic.

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
BeBot v0.2.10 released
« on: November 30, 2006, 09:40:16 pm »
This is a major maintenance and bugfix release which primarily addresses the character lookup problems due to character id's now being 2^31 and also dealing with the logoff spam that occurs both on first start of a new bot or when the chatserver link is reset.

Changelog
===============================================================================
- Important note for module developers
  Due to character id's now being 2^31 in size and how the bot deals with this, you must remember to use the int_to_string and string_to_int whenever   you want to work with the "real" character id's. Internally the bot will happily churn on using overflowed integers that goes negative.
  Remember also to convert any "real" character id's back to an overflowed integer before passing something back to the bot to handle internally.
  Database entries will be stored with the overflowed integer value, NOT the "real" character id's.
===============================================================================
- Backported buddylist caching from 0.3 to eliminate logoff spam during first roster update
  aswell as when chatserver is having issues.
  The bot will still spam logons when this happens however.
- Added missing IRC module help.
- Replaced start.bat with StartBot.bat and StartDebugBot.bat to make it easier for people running on Windows.
- Fix a long standing typo bug in RaidSingle.
- Fix from Gridfan to allow the bot to handle overflowed integer value userid as a result of userid's now being 2^31 in size and php does not have unsigned integers to deal with it gracefully.
- Added the bot functions int_to_string and string_to_int to convert between int and string and converting overflowed integers to unsigned integer string values and vice versa.

Downloads
http://files.shadow-realm.org/bebot/BeBot_v0.2.10.tar.gz
http://files.shadow-realm.org/bebot/BeBot_v0.2.10.zip

The php bundle:
http://files.shadow-realm.org/bebot/BeBot-php_v5.1.5.zip
BeBot Founder and Fixer Kingpin

Offline mesa

  • BeBot Rookie
  • *
  • Posts: 14
  • Karma: +0/-0
Re: BeBot v0.2.10 released
« Reply #1 on: December 20, 2006, 06:18:57 pm »
Im not sure if it's just me having and old members table, but to implement this (and all the other fixes)  I had to modify Roster_Raid.php to allow for the char lookup to fail as well.

in other words, for all the fields other than nickname and ID i had to put something like

if($level=="")
{
  $level=0;
}

I put this in right before the SQL insert into members so that members with these IDs could be added.

However, im guessing this will be something fixed (at least partially) by having the Whois-cache since you could do

$this -> bot -> whois -> lookup ($name);

but this will only work once the whois cache is updated for that character. 


Offline Malosar

  • BeBot Expert
  • ****
  • Posts: 259
  • Karma: +0/-0
    • http://www.lowerdimension.com
Re: BeBot v0.2.10 released
« Reply #2 on: December 20, 2006, 07:23:15 pm »
It's actually better to make a default value in the mysql database for the level and other details instead of modifying the code.

ALTER TABLE members MODIFY COLUMN level DEFAULT 0;
Eternalist
General of The Syndicate

 

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


0.8.x updates for AoC by bitnykk
[January 30, 2024, 11:16:08 pm]


0.8.x updates for AO by bitnykk
[January 30, 2024, 11:15:37 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: 371
  • 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