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: 0.5.0_Support.php (so 0.5.0 modules work)  (Read 12761 times)

0 Members and 1 Guest are viewing this topic.

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
0.5.0_Support.php (so 0.5.0 modules work)
« on: February 02, 2008, 12:56:57 am »
This Module will Load the 0.5.0 Modules Making the Apropiate Changes,
Should work with all modules made for Current SVN

This module can be Placed were you want

The 0.5.0 Modules Must be placed in /custom/050/ Folder

What this Module will do is:
  • Change all $this -> bot -> core(...) calls to Correct 0.4 calls
  • Remove the prefix as 0.5 module dont get the prefix inside the message

Change Log
  • 23/06/08 [0.4] - Now Replaces core("time")
  • 23/06/08 [0.4] - Now Supports the function get_timer from timer module
  • 23/06/08 [0.4] - Return Function of Extended Modules Fixed
  • 23/06/08 [0.4] - Register Modules Added
  • 23/06/08 [0.4] - Error Class Added
  • 24/06/08 [0.5] - Now Supports the function list_timed_events which was added to 0.4 just after 0.4.3 release
  • 25/06/08 [0.6] - Added Support for New DB Functions
  • 15/07/08 [0.7] - Fixed Issue with Stopping other normal Modules loading
  • 25/09/08 [0.8] -
  • 20/10/08 [0.9] - Fixed Register_event function

« Last Edit: October 20, 2008, 02:23:58 am by Temar »

Offline Dracutza

  • BeBot Apprentice
  • ***
  • Posts: 126
  • Karma: +0/-0
Re: 0.5.0_Support.php (so 0.5.0 modules work)
« Reply #1 on: March 11, 2008, 03:31:58 pm »
heh

thanks

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: 0.5.0_Support.php (so 0.5.0 modules work)
« Reply #2 on: April 23, 2008, 05:36:54 am »
Updated to Support Latest SVN modules

Offline Slacklin

  • BeBot User
  • **
  • Posts: 52
  • Karma: +0/-0
  • My spoon is too big!
    • United Org Site
Re: 0.5.0_Support.php (so 0.5.0 modules work)
« Reply #3 on: April 23, 2008, 11:44:27 pm »
Interesting error with the latest version of this module.

Fatal error: Call to a member function in_chat() on a non-object in C:\ucom2\core\Security.php on line 1447

Still trying to track this one down but it is right now eluding my limited knowledge.

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: 0.5.0_Support.php (so 0.5.0 modules work)
« Reply #4 on: April 24, 2008, 12:45:15 am »
i dont see how this module an cause that prob,
altho the old version did a Chat redirect

im asuming you got a 0.4 bot and useing 0.5 Seurity.php ?

if you read it says you need to put the 0.5 modules in a certain folder, since security.php is a core you can make sure it load with core files by putting this support module in a core folder

Offline Slacklin

  • BeBot User
  • **
  • Posts: 52
  • Karma: +0/-0
  • My spoon is too big!
    • United Org Site
Re: 0.5.0_Support.php (so 0.5.0 modules work)
« Reply #5 on: April 24, 2008, 12:50:24 am »
I havent replace the security module, but I will see if that is the culprit. I did at one time try and use the AccessControlGUI from version 5 but that was deleted (I did have it in the 050 folder). Not sure if that would have modified anything.

The problem ended up being the OnlineDB.php file not being in the right spot.
« Last Edit: April 24, 2008, 07:02:02 am by jakethegamer »

Offline Slacklin

  • BeBot User
  • **
  • Posts: 52
  • Karma: +0/-0
  • My spoon is too big!
    • United Org Site
Re: 0.5.0_Support.php (so 0.5.0 modules work)
« Reply #6 on: April 24, 2008, 07:06:42 am »
Another bug I thought I would mention is once the module is activated all other modules in the same file location are no longer loaded. I have tested this in both the ./modules folder and ./custom/modules folder.

Any other info I can provide to help this get resolved?

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: 0.5.0_Support.php (so 0.5.0 modules work)
« Reply #7 on: April 24, 2008, 04:28:13 pm »
since this module has to load the files it self, it cannot load from offical directories as those get loaded

put the 0.5 modules in custom/050/

Offline Slacklin

  • BeBot User
  • **
  • Posts: 52
  • Karma: +0/-0
  • My spoon is too big!
    • United Org Site
Re: 0.5.0_Support.php (so 0.5.0 modules work)
« Reply #8 on: April 24, 2008, 04:47:49 pm »
I think that I may have mislead you, all the version 5 modules load properly. It is the older custom 4 modules that are now refusing to load. For example I have the new twitter module loaded in the custom module folder yet when I have the 0.5.0 support module in the same folder it will not load.

c:\mybot\custom\modules\0.5.0_Support.php    <- Loads
c:\mybot\custom\modules\twitter.php     <- Does not load
c:\mybot\custom\modules\homer.php      <- Does not load
c:\mybot\custom\050\onlineorg.php        <- Loads

If I disable the module for 0.5.0 support the other modules in the same folder will load

c:\mybot\custom\modules\_0.5.0_Support.php    <- Disabled
c:\mybot\custom\modules\twitter.php     <- Loads
c:\mybot\custom\modules\homer.php      <- Loads
c:\mybot\custom\050\onlineorg.php        <- Does not load (for obvious reasons)

Now this is where it gets funky. If I move the twitter.php and homer.php plugin to the main module folder they will load

c:\mybot\custom\modules\0.5.0_Support.php    <- Loads
c:\mybot\modules\twitter.php     <- Loads
c:\mybot\modules\homer.php      <- Loads
c:\mybot\custom\050\onlineorg.php        <- Loads

To double back and test completely, I placed the 0.5.0 support module in the main module folder to see what happens.

c:\mybot\modules\0.5.0_Support.php      <- Loads
c:\mybot\custom\modules\twitter.php     <- Loads
c:\mybot\custom\modules\homer.php      <- Loads
c:\mybot\custom\050\onlineorg.php        <- Loads
c:\mybot\modules\About.php                 <- Does not load

So the module is loading all 0.5.0 modules properly it is the other 0.4.0 modules that are now not loading when the support module is in use.

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: 0.5.0_Support.php (so 0.5.0 modules work)
« Reply #9 on: April 24, 2008, 05:00:15 pm »
ah i realised why,
when support module loads and loads its 050 modules and i used same values as wat loaded support modules
problem is they are still in use as other modules in same folder as support module still need to be loaded

Posted a fix :D

Offline Slacklin

  • BeBot User
  • **
  • Posts: 52
  • Karma: +0/-0
  • My spoon is too big!
    • United Org Site
Re: 0.5.0_Support.php (so 0.5.0 modules work)
« Reply #10 on: April 24, 2008, 06:51:55 pm »
Seems to still be doing the same thing. To bypass it I have moved all the other modules back to the main module folder and they load great as long as they dont share the same folder as the 050 support module.

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: 0.5.0_Support.php (so 0.5.0 modules work)
« Reply #11 on: June 23, 2008, 04:24:31 am »
Updating with Lots of Aditional Support for 0.5 modules (see Change Log on 1st post)

Offline Slacklin

  • BeBot User
  • **
  • Posts: 52
  • Karma: +0/-0
  • My spoon is too big!
    • United Org Site
Re: 0.5.0_Support.php (so 0.5.0 modules work)
« Reply #12 on: June 23, 2008, 06:00:48 pm »
Ok, with the latest updates I am still encountering a problem with the SWStimer.php module. The message below is the error that is last sent before the crash.

Fatal error: Call to undefined method Timer_Core::list_timed_events() in C:\<mybot>\custom\modules\0.5.0_Support.php(60) : eval()'d code on line 124

Let me know if you need any more logs.

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: 0.5.0_Support.php (so 0.5.0 modules work)
« Reply #13 on: June 25, 2008, 12:15:44 am »
the function list_timed_events was added to timer core just after 0.4.3 was released, i hd the SVN version of 0.4 so didnt notice
i have Added the function to support module as its a simple function simply get latest version of this

Offline Zweiblum

  • BeBot Apprentice
  • ***
  • Posts: 135
  • Karma: +0/-0
Re: 0.5.0_Support.php (so 0.5.0 modules work)
« Reply #14 on: July 23, 2008, 12:56:36 pm »
I havent replace the security module, but I will see if that is the culprit. I did at one time try and use the AccessControlGUI from version 5 but that was deleted (I did have it in the 050 folder). Not sure if that would have modified anything.

The problem ended up being the OnlineDB.php file not being in the right spot.

omg many thx for that help :)

 

* 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: 448
  • 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