BeBot - An Anarchy Online and Age Of Conan chat automaton
Archive => Anarchy Online Archive => 0.5.x Custom/Unofficial Modules => Topic started by: Temar on January 19, 2008, 07:59:55 am
-
This is a Clean Copy of SVN as it is today - 1 April 2008
Please be warned that this is not a stable release codebase. If you are not familiar with MySQL and know how to edit your database DO NOT USE THIS RELEASE.
The codebase works for me without issues (unless otherwise stated in the changelog), but that doesnt mean it will work just fine for you.
Changes (right click and Save as, the Attachment Already Includes these changes)
- 26/03/08 - Older Change Logs Removed
- 26/03/08 - Too Many Changes to List, Nearly Every Module Changed.
- 27/03/08 - modules/Colors.inc (Deleted)
- 27/03/08 - modules/IRC.php (http://svn.shadow-realm.org/index.py/BeBot/trunk/modules/IRC.php?view=co)
- 27/03/08 - Sources/Bot.php (http://svn.shadow-realm.org/index.py/BeBot/trunk/Sources/Bot.php?view=co)
- 27/03/08 - main/01_BasePassiveModule.php (http://svn.shadow-realm.org/index.py/BeBot/trunk/main/01_BasePassiveModule.php?view=co)
- 27/03/08 - modules/IRC.php (http://svn.shadow-realm.org/index.py/BeBot/trunk/modules/IRC.php?view=co)
- 27/03/08 - Sources/Bot.php (http://svn.shadow-realm.org/index.py/BeBot/trunk/Sources/Bot.php?view=co)
- 27/03/08 - main/01_BasePassiveModule.php (http://svn.shadow-realm.org/index.py/BeBot/trunk/main/01_BasePassiveModule.php?view=co)
- 28/03/08 - modules/TowerAttack.php (http://svn.shadow-realm.org/index.py/BeBot/trunk/modules/TowerAttack.php?view=co)
- 28/03/08 - Sources/Bot.php (http://svn.shadow-realm.org/index.py/BeBot/trunk/Sources/Bot.php?view=co)
- 28/03/08 - modules/TimerGUI.php (http://svn.shadow-realm.org/index.py/BeBot/trunk/modules/TimerGUI.php?view=co)
- 28/03/08 - main/15_Timer_Core.php (http://svn.shadow-realm.org/index.py/BeBot/trunk/main/15_Timer_Core.php?view=co)
- 29/03/08 - modules/News.php (http://svn.shadow-realm.org/index.py/BeBot/trunk/modules/News.php?view=co)
- 29/03/08 - modules/ModulesControlGUI.php (http://svn.shadow-realm.org/index.py/BeBot/trunk/modules/ModulesControlGUI.php?view=co)
- 29/03/08 - main/09_AccessControl.php (http://svn.shadow-realm.org/index.py/BeBot/trunk/main/09_AccessControl.php?view=co)
- 29/03/08 - modules/Roster.php (http://svn.shadow-realm.org/index.py/BeBot/trunk/modules/Roster.php?view=co)
- 30/03/08 - modules/Mail.php (http://svn.shadow-realm.org/index.py/BeBot/trunk/modules/Mail.php?view=co)
- 30/03/08 - modules/IRC.php (http://svn.shadow-realm.org/index.py/BeBot/trunk/modules/IRC.php?view=co)
- 30/03/08 - main/12_ConfigMagik.php (http://svn.shadow-realm.org/index.py/BeBot/trunk/main/12_ConfigMagik.php?view=co)
- 30/03/08 - Sources/Bot.php (http://svn.shadow-realm.org/index.py/BeBot/trunk/Sources/Bot.php?view=co)
- 30/03/08 - Sources/MySQL.php (http://svn.shadow-realm.org/index.py/BeBot/trunk/Sources/MySQL.php?view=co)
- 30/03/08 - main/15_Timer_Core.php (http://svn.shadow-realm.org/index.py/BeBot/trunk/main/15_Timer_Core.php?view=co)
- 30/03/08 - core/Time.php (http://svn.shadow-realm.org/index.py/BeBot/trunk/core/Time.php?view=co)
- 30/03/08 - modules/TimerGUI.php (http://svn.shadow-realm.org/index.py/BeBot/trunk/modules/TimerGUI.php?view=co)
- 31/03/08 - modules/Countdown.php (http://svn.shadow-realm.org/index.py/BeBot/trunk/modules/Countdown.php?view=co)
- 31/03/08 - modules/Countdown.php (http://svn.shadow-realm.org/index.py/BeBot/trunk/modules/Preferences.php?view=co)
- 31/03/08 - core/Countdown.php (http://svn.shadow-realm.org/index.py/BeBot/trunk/core/Preferences.php?view=co)
- 31/03/08 - modules/Raid.php (http://svn.shadow-realm.org/index.py/BeBot/trunk/modules/Raid.php?view=co)
* 0.5 Released!
-
I updated my bots with current SVN today (1326) and everything is working fine atm except news_on_log_on.
I tried to change default to on or reset but looks like it doesn't work with alts, gonna try with main when I'll be back home.
To [Aotn]: !preferences set default News 5 On
[Angels of the Night] Aotn: [2008-03-19 15:34:31] [PREFS] [SECURITY] Mygoal attempted to change default value with out required authoroty!
Aotn: You have insufficient authoroty to reset this preference!
To [Aotn]: !preferences reset 5
[Angels of the Night] Aotn: [2008-03-19 15:57:04] [PREFS] [SECURITY] Mygoal attempted to reset preferences with out required authoroty!
Aotn: You have insufficient authoroty to reset this preference!
Also mail blob crash aorc. Some ' are missing to close href. Lines 206, 210, 231, 232, ...
-
Thanks, added the missing ' and corrected those typos.
Didn't look into the preferences myself yet though.
-
Bump for Big Update
-
just out of curiosity, what sort of changes to the db are required to update 4.3 to 5? I take it , it is not as simple as extracting 5 and setting it up to use the same db as 4.3?
-
Migration from 0.4.3 to 0.5 will be seamless DB wise if you use the same config file. All tables get updated to the newest versions.
Moving back to 0.4.3 will be impossible without direct changes to some tables then though. And 0.5 brings a couple more tables I think.
If you want to run a testbot besides your existing 0.4.3 bot(s) it shouldn't cause any problem, I can't remember any of the global tables being touched. This is without any guarantees though, there were a couple of hundred changes to trunk :)
-
upgraded our test 4.x bot to 5.0 without incident this morning.
Very! Nice!
-
Well then you've been damned lucky. Because 0.5 has been broken much lately. :p
-
Well then you've been damned lucky. Because 0.5 has been broken much lately. :p
didn't try the IRC mod yet (which I need to before moving the org bot to 5, but zero brokeness (as far as I can tell) with the 26/3 zip.
-
a few things I've been seeing and not sure if it's an issue or not really
bot [2008-03-29 16:07:53] [SETTINGS] [LOAD] Loaded settings from database.
bot [2008-03-29 16:07:53] [MAIN] [LOAD] 06_Settings.php
MySQL error (# 0) on query: CREATE TABLE IF NOT EXISTS access_control_saves (
name varchar(50) NOT NULL default '',
description varchar(150) NULL,
commands TEXT NOT NULL default '',
PRIMARY KEY (name)
)
BLOB/TEXT column 'commands' can't have a default value
bot [2008-03-29 16:07:53] [SETTINGS] [SAVED] schemaversion for module accesscontrol set to 3 as datatype int
bot [2008-03-29 16:07:56] [SETTINGS] [SAVED] schemaversion for module timer set to 3 as datatype int
bot [2008-03-29 16:07:57] [MAIN] [LOAD] 15_Timer_Core.php
bot [2008-03-29 16:07:57] [CORE] [ERROR] Module 'ini' does not exist or is not loaded.
bot [2008-03-29 16:07:57] [CORE] [ERROR] Module 'ini' does not exist or is not loaded.
bot [2008-03-29 16:08:05] [MOD] [LOAD] ModulesControlGUI.php
// bot [2008-03-29 16:08:05] [MOD] [LOAD] News.php
bot [2008-03-29 16:08:05] [MOD] [LOAD] Notify.php
-
buddylist in a raidbot
bot [2008-03-29 16:30:28] [TELL] [INC] Dracutza: buddylist
Warning: asort() expects parameter 1 to be array, null given in P:\bot\modules\Roster.php on line 282
Warning: Invalid argument supplied for foreach() in P:\bot\modules\Roster.php on line 284
bot [2008-03-29 16:30:28] [TELL] [OUT] -> Dracutza: 0 buddies in bot's buddylist :: [link]click to view[/link]
-
bot [2008-03-29 16:07:53] [SETTINGS] [LOAD] Loaded settings from database.
bot [2008-03-29 16:07:53] [MAIN] [LOAD] 06_Settings.php
MySQL error (# 0) on query: CREATE TABLE IF NOT EXISTS access_control_saves (
name varchar(50) NOT NULL default '',
description varchar(150) NULL,
commands TEXT NOT NULL default '',
PRIMARY KEY (name)
)
BLOB/TEXT column 'commands' can't have a default value
bot [2008-03-29 16:07:53] [SETTINGS] [SAVED] schemaversion for module accesscontrol set to 3 as datatype int
Fixed in SVN.
bot [2008-03-29 16:07:56] [SETTINGS] [SAVED] schemaversion for module timer set to 3 as datatype int
bot [2008-03-29 16:07:57] [MAIN] [LOAD] 15_Timer_Core.php
bot [2008-03-29 16:07:57] [CORE] [ERROR] Module 'ini' does not exist or is not loaded.
bot [2008-03-29 16:07:57] [CORE] [ERROR] Module 'ini' does not exist or is not loaded.
This one is strange, I just checked, and there is no call to core("ini") before it's created.
bot [2008-03-29 16:08:05] [MOD] [LOAD] ModulesControlGUI.php
// bot [2008-03-29 16:08:05] [MOD] [LOAD] News.php
bot [2008-03-29 16:08:05] [MOD] [LOAD] Notify.php
Fixed the output in SVN, it's just visual though.
bot [2008-03-29 16:30:28] [TELL] [INC] Dracutza: buddylist
Warning: asort() expects parameter 1 to be array, null given in P:\bot\modules\Roster.php on line 282
Warning: Invalid argument supplied for foreach() in P:\bot\modules\Roster.php on line 284
bot [2008-03-29 16:30:28] [TELL] [OUT] -> Dracutza: 0 buddies in bot's buddylist :: [link]click to view[/link]
Added a check for an empty buddylist.
Thanks for posting all those!
-
i tried the latest 0.5 zip and i get this error
Fatal error: Cannot redeclare class AccessControl_Core in C:\Program Files\PHP\c
ore\AccessControl.php on line 62
-
delete the 1 in core folder. Its now in main folder
-
i tried the latest 0.5 zip and i get this error
Fatal error: Cannot redeclare class AccessControl_Core in C:\Program Files\PHP\core\AccessControl.php on line 62
Best use the zip as base for any custom modules, don't just copy it over any existing directory. Several files have different directories or slightly changed names.
-
other than the ini thing, all load issues I've seen seem to be fixed now.
New thing though that I've seen A LOT in 5 as opposed to 4...
Warning: mysql_connect(): Can't connect to MySQL server on 'localhost' (10048) in P:\bot\Sources\MySQL.php on line 96
MySQL error (# 0) on query: Cannot connect to the database server!
There is no rhyme or reason to this happening. It seems to happen regularly when launching a new bot instance before an old one is 100% done loading, but that is not always the case. Sometimes I can get several bots to launch at "the same time" with no error, and sometimes I get it even when it's the first instance getting loaded.
Eventually it works itself out and everything appears to load fine, but I never saw this happen on 4 in the quantity is does in 5.
-
delete the 1 in core folder. Its now in main folder
thx, works fine now
-
Warning: mysql_connect(): Can't connect to MySQL server on 'localhost' (10048) in P:\bot\Sources\MySQL.php on line 96
MySQL error (# 0) on query: Cannot connect to the database server!
I don't know what the problem with mysql itself it, maybe there is some connection per time limit.
The real reason this may happen is a change in the MySQL layer. The bot now calls mysql_connect() first, reestablishing any connection closed since the last SQL query. If the connection is still open it returns just the already existing connection, so no harm done then. As a result there may be a couple more mysql_connect() calls then before, the 0.4 version doesn't try to reconnect.
-
In the !mail module
bot: Message sendt to
sent
-
Fixed in SVN
Post Updated to 29th