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: Calc Broken?  (Read 3602 times)

0 Members and 1 Guest are viewing this topic.

Offline Snarfblatt

  • BeBot User
  • **
  • Posts: 63
  • Karma: +0/-0
Calc Broken?
« 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".

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: Calc Broken?
« Reply #1 on: August 15, 2007, 05:29:55 am »
check !commands
it should be on that list and see what the access level is

Offline Snarfblatt

  • BeBot User
  • **
  • Posts: 63
  • Karma: +0/-0
Re: Calc Broken?
« Reply #2 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.

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: Calc Broken?
« Reply #3 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?
« Last Edit: August 15, 2007, 06:25:44 am by Temar »

Offline Snarfblatt

  • BeBot User
  • **
  • Posts: 63
  • Karma: +0/-0
Re: Calc Broken?
« Reply #4 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

Offline Snarfblatt

  • BeBot User
  • **
  • Posts: 63
  • Karma: +0/-0
Re: Calc Broken?
« Reply #5 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.

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: Calc Broken?
« Reply #6 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
« Last Edit: August 23, 2007, 06:07:29 am by Temar »

Offline Snarfblatt

  • BeBot User
  • **
  • Posts: 63
  • Karma: +0/-0
Re: Calc Broken?
« Reply #7 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. :)

Offline Ebag333

  • Contributor
  • *******
  • Posts: 134
  • Karma: +0/-0
Re: Calc Broken?
« Reply #8 on: August 15, 2007, 09:53:14 pm »
Fixed in 4.1 (already was fixed in trunk).

Offline Aesgaard

  • BeBot Apprentice
  • ***
  • Posts: 82
  • Karma: +0/-0
  • .:.Alpha.:.
Re: Calc Broken?
« Reply #9 on: August 23, 2007, 06:01:42 am »
I'm running 4.1 (just installed today) and mine doesnt work either  ???
-*tinkers*-

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: Calc Broken?
« Reply #10 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


Please read topic as a fix is already in it :p

Offline Aesgaard

  • BeBot Apprentice
  • ***
  • Posts: 82
  • Karma: +0/-0
  • .:.Alpha.:.
Re: Calc Broken?
« Reply #11 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
-*tinkers*-

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: Calc Broken?
« Reply #12 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 $
*/

Offline Aesgaard

  • BeBot Apprentice
  • ***
  • Posts: 82
  • Karma: +0/-0
  • .:.Alpha.:.
Re: Calc Broken?
« Reply #13 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 ?
-*tinkers*-

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: Calc Broken?
« Reply #14 on: August 23, 2007, 04:40:56 pm »
This is 0.4.1 Calc.php with the Fix

 

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