BeBot - An Anarchy Online and Age Of Conan chat automaton

Archive => Anarchy Online Archive => BeBot 0.4 support => Topic started by: Snarfblatt on August 15, 2007, 04:33:09 am

Title: Calc Broken?
Post by: Snarfblatt on August 15, 2007, 04:33:09 am
Ok.. I don't think I'm that big of an idiot, but it seems to me that my calc command doesn't work. When the bot starts, there are no errors indicated when the calc.php module loads. But I don't see any calc command in the !help and !calc responds with "/tell bot !help".
Title: Re: Calc Broken?
Post by: Temar on August 15, 2007, 05:29:55 am
check !commands
it should be on that list and see what the access level is
Title: Re: Calc Broken?
Post by: Snarfblatt on August 15, 2007, 06:13:37 am
I know it should be there.. but it isn't. Its as if the module isn't even there.
Title: Re: Calc Broken?
Post by: Temar on August 15, 2007, 06:24:02 am
sounds like it isnt being loaded then
look at console when bot boots up and look at the list to see if it is there
also make sure it is there and doesnt have a _ in front fo filename :D

and what version? 0.4.1?
Title: Re: Calc Broken?
Post by: Snarfblatt on August 15, 2007, 07:03:30 am
I checked the loading of the modules... it is listed for sure. And yes, this is 0.4.1
Title: Re: Calc Broken?
Post by: Snarfblatt on August 15, 2007, 08:00:49 am
I replaced the calc module with the one from 0.2.x and it works now.. go figure.
Title: Re: Calc Broken?
Post by: Temar on August 15, 2007, 02:24:57 pm
well i just downloaded the 0.4.1 and looked at it and there is a problem with it :p

*/ is missing from the top text

if you want to get 0.4.1 again edit it and add */ on line 35 and that will fix it

or get SVN calc.php
 (http://svn.shadow-realm.org/index.py/BeBot/trunk/modules/Calc.php?view=log)
Title: Re: Calc Broken?
Post by: Snarfblatt on August 15, 2007, 03:10:02 pm
Yup.. I see it. This is why I shouldn't look at code that late at night. Always miss those silly syntax errors. :)
Title: Re: Calc Broken?
Post by: Ebag333 on August 15, 2007, 09:53:14 pm
Fixed in 4.1 (already was fixed in trunk).
Title: Re: Calc Broken?
Post by: Aesgaard on August 23, 2007, 06:01:42 am
I'm running 4.1 (just installed today) and mine doesnt work either  ???
Title: Re: Calc Broken?
Post by: Temar on August 23, 2007, 06:07:10 am
well i just downloaded the 0.4.1 and looked at it and there is a problem with it :p

*/ is missing from the top text

if you want to get 0.4.1 again edit it and add */ on line 35 and that will fix it

or get SVN calc.php
 (http://svn.shadow-realm.org/index.py/BeBot/trunk/modules/Calc.php?view=log)

Please read topic as a fix is already in it :p
Title: Re: Calc Broken?
Post by: Aesgaard on August 23, 2007, 04:01:47 pm
No offense, I'm an idiot, but where is line 35? Do I just count down from top as line one and insert directly into line 35 ? :p
Title: Re: Calc Broken?
Post by: Temar on August 23, 2007, 04:15:32 pm
Code: [Select]
* Revision: $Id: Calc.php 818 2007-07-25 19:09:30Z shadowmaster $

change to

Code: [Select]
* Revision: $Id: Calc.php 818 2007-07-25 19:09:30Z shadowmaster $
*/
Title: Re: Calc Broken?
Post by: Aesgaard on August 23, 2007, 04:29:19 pm
ยด??Betacom [2007-08-23 14:29:55]        [MOD]   [LOAD]  Calc.php
Not sure I did this right ? got some weird spam infront, would you mind posting the entire file all text+corrected text to be copy/pasted into calc.php please ?
Title: Re: Calc Broken?
Post by: Temar on August 23, 2007, 04:40:56 pm
This is 0.4.1 Calc.php with the Fix
Title: Re: Calc Broken?
Post by: Alreadythere on August 23, 2007, 04:43:57 pm
SVN (http://svn.shadow-realm.org/index.py/BeBot/branches/0.4/modules/Calc.php?revision=915) version, save as .php into your module directory.
Title: Re: Calc Broken?
Post by: Aesgaard on August 23, 2007, 04:51:54 pm
This is 0.4.1 Calc.php with the Fix

Thank you very much :D
Worked perfectly to the total enjoyment of my org members :D
SimplePortal 2.3.7 © 2008-2025, SimplePortal