L* R*
HOME FORUM DOWNLOADS
Content
  Links
     Browse SVN
     SVN Commit log
     Documentation (Wiki)
  Developers
     Taskmanager
User
Welcome, Guest. Please login or register.
Did you miss your activation email?
November 20, 2008, 07:48:48 PM

Login with username, password and session length
Search



Advanced search
Support GoPHP5.org
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Information > News > Topic: BeBot v0.2.10 released
Pages: [1]   Go Down
« previous next »
Print
Author Topic: BeBot v0.2.10 released  (Read 1146 times)
0 Members and 1 Guest are viewing this topic.
Khalem
BeBot Founder
Administrator
Grandmaster
********
Offline Offline

Gender: Male
Posts: 670



WWW
BeBot v0.2.10 released
« on: November 30, 2006, 03: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
Logged

BeBot Founder and Fixer Kingpin
Madman coder and destroyer of good code
mesa
Freshman
*
Offline Offline

Posts: 14


Re: BeBot v0.2.10 released
« Reply #1 on: December 20, 2006, 12: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. 

Logged
Malosar
Expert
*****
Offline Offline

Posts: 259


WWW
Re: BeBot v0.2.10 released
« Reply #2 on: December 20, 2006, 01: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;
Logged

Eternalist
General of The Syndicate
Pages: [1]   Go Up
Print
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Information > News > Topic: BeBot v0.2.10 released
« previous next »
 
Jump to:  

Recent
Log playtime from buddys ...
by Temar
[Today at 10:33:57 AM]

Vote Core module and Simp...
by Temar
[November 19, 2008, 09:26:52 AM]

Restrict access for one m...
by Organizer
[November 19, 2008, 03:21:19 AM]

Custom / Revised Modules ...
by Elesar1
[November 17, 2008, 03:51:46 PM]

TWC
by Temar
[November 16, 2008, 11:39:12 AM]

Are there any FUN modules...
by Elesar1
[November 15, 2008, 07:39:15 PM]

Call to a member function...
by exxie
[November 15, 2008, 09:29:31 AM]

Ported Modules
by Alreadythere
[November 14, 2008, 06:10:07 PM]

cURL and other non-defaul...
by Temar
[November 14, 2008, 04:11:44 PM]

Delete member from Bot al...
by Alreadythere
[November 14, 2008, 12:17:54 PM]
Stats
Members
Total Members: 1235
Latest: DDDepressionnn
Stats
Total Posts: 11034
Total Topics: 1495
Online Today: 15
Online Ever: 168
(July 01, 2007, 09:30:02 PM)
Users Online
Users: 3
Guests: 17
Total: 20
Temar
Zeephonz
DarkGord

Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC
TinyPortal v0.9.8 © Bloc | NewDef design by Bloc
Page created in 0.359 seconds with 29 queries. (Pretty URLs adds 0.037s, 4q)
Loading...