collapse collapse
* User Info
 
 
Welcome, Guest. Please login or register.
* Search

* Board Stats
  • stats Total Members: 989
  • stats Total Posts: 18366
  • stats Total Topics: 2501
  • stats Total Categories: 7
  • stats Total Boards: 35
  • stats Most Online: 1144

Author Topic: 0.4_Support for latest 0.5  (Read 44385 times)

0 Members and 1 Guest are viewing this topic.

Offline Dracutza

  • BeBot Apprentice
  • ***
  • Posts: 126
  • Karma: +0/-0
Re: 0.4_Support for latest 0.5.1
« Reply #15 on: May 11, 2008, 04:06:05 am »
Close for quote...

[2008-05-11 02:06:33]    [TELL]  [INC]   Dracutza: !quote add hi hi hi

Warning: mysql_insert_id(): supplied argument is not a valid MySQL-Link resource
 in P:\botsys\custom\core\0.4_Support.php(31) : eval()'d code on line 260
[2008-05-11 02:06:33]    [TELL]  [OUT]   -> Dracutza: Thank you, your quo
te has been added as id #


Apf seems to work!  ;D  ;D

To [Pobot3]: !apf
Pobot3: The Outzone gates will open in 0 hours, 52 minutes, and 54 seconds.
To [Pobot3]: !apf set now
Pobot3: APF Timestamp Updated.
Automatic web updates are Disabled.
The Outzone gates will open in 0 hours, 0 minutes, and 0 seconds.

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: 0.4_Support for latest 0.5.1
« Reply #16 on: May 15, 2008, 07:08:23 am »
Fixed Problem with gmsg commands not being registered correctly

Offline shadowdamon

  • BeBot Rookie
  • *
  • Posts: 10
  • Karma: +0/-0
Re: 0.4_Support for latest 0.5.1
« Reply #17 on: June 10, 2008, 09:23:45 pm »
Im getting this error, no clue how or why.

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in C:\BeBot\custom\modules\0.4_Support.php(31) : eval()'d code on line 344

Any help would be appretiated.

Offline Blueeagle

  • Omnipotent
  • BeBot Hero
  • ******
  • Posts: 323
  • Karma: +0/-0
Re: 0.4_Support for latest 0.5.1
« Reply #18 on: June 11, 2008, 02:35:57 am »
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in C:\BeBot\custom\modules\0.4_Support.php(31) : eval()'d code on line 344
A T_CONSTANT_ENCAPSED_STRING is a string constant that's encapsed with single or double quotes like 'hello' or "hello".
The error is occuring on line 31 of the support module where it (the support module) is evaluating code with eval(). In the code being evalueated apperantly there is such a string on line 344 that the PHP parser did not expect. What it did expect, however, was a closing parenthesis. ')'.

Now, the $48'000 question is which module the support-module is attempting to load and what lines 340-345 look like. Without knowing that it's impossible to debug the issue.
The only problem that can't be solved by adding another wrapper is having too many wrappers.

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: 0.4_Support for latest 0.5.1
« Reply #19 on: June 11, 2008, 03:42:40 am »
above that line should be the module it is loading
i told my module to say its loading the module before for this exact reason

Offline Trancillion

  • BeBot User
  • **
  • Posts: 20
  • Karma: +0/-0
Re: 0.4_Support for latest 0.5.1
« Reply #20 on: July 05, 2008, 08:33:56 pm »
having this problem aswell:

Noctrish [2008-07-05 18:04:56]  [GROUP] [MSG]   [Nocturnal Fear] Dayshade: !quote add [Nocturnal Fear] Trancillion: !cheetos [Nocturnal Fear] Noctrish: /me cast
s Materialize Greater Cheetos in Trancillion's mouth.

Warning: mysql_insert_id(): supplied argument is not a valid MySQL-Link resource in D:\0.5.2\custom\core\0.4_Support.php(31) : eval()'d code on line 260

in 0.4_support.php:

255:   $contents = str_replace('function gc($', 'function gc($name, $msg)
256:   {
257:      if($msg[0] != $this -> bot -> commpre && !$this -> dontuseprefix)
258:      {
259:         $msg = $this -> bot -> commpre.$msg;
260:      }
261:      $this -> gc_support($name, $msg);
262:   }
263:
264:   function gc_support($', $contents);

in Quotes.php

275:            $reply = "Unable to delete quote with ID of " . $qnum . ". You must be an admin or the contributor of the quote to delete it.";
258:         }
259:      }
260:      else
261:      {
262:         $sql = "SELECT id FROM #___quotes ORDER BY id DESC LIMIT 1";
263:         $num = $this -> bot -> db -> select($sql);
264:         $reply = "Quote with id of " . $qnum . " not found. (Highest quote ID is " . $num[0][0] . ".)";
265:      }
266:      return $reply;
267:   } // End function del_quote()

no ide if this is any help at all, but so far only this Quotes.php that has created any problems. and i'v added 1 by 1. tested them all after adding.
(well xp.php has a smal problem of listing alien lvls on just !xp, but thats just a smal problem. works when you put a level behind).

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: 0.4_Support for latest 0.5.1
« Reply #21 on: July 06, 2008, 03:23:27 pm »
the module should not affect that query, my guess is its somit todo with the quotes module or mysql

Offline clashbot

  • BeBot Expert
  • ****
  • Posts: 295
  • Karma: +0/-0
    • Ascension's Home
Re: 0.4_Support for latest 0.5.1
« Reply #22 on: July 18, 2008, 06:02:05 pm »
ok, this seems to be the section I need. The nano, by temar, is not working with the current svn. It has to do with the arguments being passed on. Nano currently is not accepting any arguments so constantly displays the help page. I have the latest 0.4 support mod, I have the latest everything...but since upgrading to the 5.2 I have been unable to use nano at all.

Offline Zweiblum

  • BeBot Apprentice
  • ***
  • Posts: 135
  • Karma: +0/-0
Re: 0.4_Support for latest 0.5.1
« Reply #23 on: July 23, 2008, 04:50:54 pm »
hmm.. i dont understand that:
im using 0.5.2 now.
the 0.5 modules r in c:\bot\custom\modules
the 0.4 modules are in c:\bot\custom\modules\04

i got aiboss.php and swstimer.php in the .\modules dir and its working fine
even the 0.4_support.php is inside .\modules sire
i got trickle.php and apf.php (from glara) in .\modules\04
trickle.php is working fine, but apf.php isnt.. and i realy dont see why :/
the bot just doesnt know the command !apf ... maybe i just dont see the problem :/

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: 0.4_Support for latest 0.5.1
« Reply #24 on: July 23, 2008, 05:40:56 pm »
0.4 modules: c:\bot\custom\04\

Offline Zweiblum

  • BeBot Apprentice
  • ***
  • Posts: 135
  • Karma: +0/-0
Re: 0.4_Support for latest 0.5.1
« Reply #25 on: July 23, 2008, 05:52:36 pm »
thx for the reply!
ok for the apf.php costum\modules works fine but the strange thing is, that the tickle.php must be in bot\custom\modules\04 else the bot wont start... thats strange, but now everything works fine.

many thx for helping a noob like me ;)

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: 0.4_Support for latest 0.5.1
« Reply #26 on: July 23, 2008, 07:09:15 pm »
anything in modules\04 isnt loaded

Offline Zweiblum

  • BeBot Apprentice
  • ***
  • Posts: 135
  • Karma: +0/-0
Re: 0.4_Support for latest 0.5.1
« Reply #27 on: July 23, 2008, 07:11:39 pm »
actually m trickle.php is at C:\0.5.2\custom\modules\04 and its only working when its in that dir, else it wont.

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: 0.4_Support for latest 0.5.1
« Reply #28 on: July 24, 2008, 05:29:24 am »
like i said anythin in custom/modules/04 isnt loaded, Bebot doesnt load them, my Support module doesnt load them unless u changed it

what is the error you are getting?

Offline Zweiblum

  • BeBot Apprentice
  • ***
  • Posts: 135
  • Karma: +0/-0
Re: 0.4_Support for latest 0.5.1
« Reply #29 on: July 24, 2008, 08:18:17 am »
im a lil bit confused... when u say "anythin in custom/modules/04 isnt loaded" its sounds like that it shouldnt work in game, but it is.
when the module (tickle.php) is NOT in that dir (custom/module/04) the bot istn loading with any error msg, hes just in a logon loop trying to logon again and again and again..

 

* Recent Posts
Com bot module by bitnykk
[November 25, 2024, 05:36:11 pm ]


0.8.x updates for AO by bitnykk
[June 23, 2024, 03:19:47 pm ]


0.8.x updates for AoC by bitnykk
[June 23, 2024, 03:19:44 pm ]


[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 pm ]


BeBot still alive & kicking ! by bitnykk
[December 17, 2023, 12:58:44 am ]

* Who's Online
  • Dot Guests: 136
  • 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