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: Clump inc LE types  (Read 7896 times)

0 Members and 2 Guests are viewing this topic.

Offline Malosar

  • BeBot Expert
  • ****
  • Posts: 259
  • Karma: +0/-0
    • http://www.lowerdimension.com
Clump inc LE types
« on: December 19, 2006, 02:09:45 am »
Modifed Wolfbiters clump module to include support for the new LE types including weapons and armor. All the same commands as the original:

!clump
!bio
!id
!type

Shows ql300 mk6 refs for each type and makes a blob with links to items search for each armor type. Could probably use a detailed rewrite for some more comprehensive weapon and armor generation but it's good enough for now.
« Last Edit: December 27, 2006, 04:30:26 pm by Malosar »
Eternalist
General of The Syndicate

Offline Naturalistic

  • Contributor
  • *******
  • Posts: 221
  • Karma: +0/-0
Re: Clump inc LE types
« Reply #1 on: December 19, 2006, 10:10:27 am »
Haven't had a chance to run it yet, but looks good from the code. Will check it out later, maybe worth adding ;)
220/25 Eternalist Doctor
-----------------------------
Campalot Coding Co-ordinator and Super Admin
http://www.campalot.info/index.php

Offline Malosar

  • BeBot Expert
  • ****
  • Posts: 259
  • Karma: +0/-0
    • http://www.lowerdimension.com
Re: Clump inc LE types
« Reply #2 on: December 22, 2006, 02:11:46 pm »
Fixed a typo so type 812 works now.
Eternalist
General of The Syndicate

Offline Bart

  • BeBot User
  • **
  • Posts: 39
  • Karma: +0/-0
Re: Clump inc LE types
« Reply #3 on: December 23, 2006, 08:21:14 am »
after installing this the bot crashes..... works with 2.x right?

Offline Malosar

  • BeBot Expert
  • ****
  • Posts: 259
  • Karma: +0/-0
    • http://www.lowerdimension.com
Re: Clump inc LE types
« Reply #4 on: December 23, 2006, 07:08:57 pm »
Yes I run 0.2.x. Check the console and post any errors you get so we can help solve the issue.
Eternalist
General of The Syndicate

Offline pusikas

  • BeBot Apprentice
  • ***
  • Posts: 161
  • Karma: +0/-0
Re: Clump inc LE types
« Reply #5 on: December 25, 2006, 02:01:32 am »
Doesn't really work for me, either:
Code: [Select]
[2006-12-25 00:58:24]   [GROUP] [MSG]   [Vengeance] Luuv: !bio [link]Solid Clump of Kyr'Ozch Bio-Material[/link]
[2006-12-25 00:58:24]   [GROUP] [MSG]   [Vengeance] Vbot: QL 153 of Kyr'Ozch Bio-Material - Type 2 / Aimed Shot<br> -> <a href='itemref://254607/254608/170'>Kyr'Ozch Crossbow Type 2[/link] QL 170<br> -> <a href='itemref://254474/254475/170'>Kyr'Ozch Rifle Type 2[/link] QL 170
[2006-12-25 00:58:36]   [GROUP] [MSG]   [Vengeance] Luuv: !bio [link]Kyr'Ozch Bio-Material - Type 295[/link]

Fatal error: Cannot use string offset as an array in /usr/local/vbot/modules/Clump.php on line 627

As you can see, it works for a type 2 clump, but crashed on a type 295...
Luuv  Bot-Keeper of Vengeance ^^*

Offline nebhyper

  • BeBot User
  • **
  • Posts: 62
  • Karma: +0/-0
Re: Clump inc LE types
« Reply #6 on: December 25, 2006, 02:15:32 am »
Fatal error: Cannot use string offset as an array in /usr/local/vbot/modules/Clump.php on line 627


I get the same error
Siocuffin (Squad Commander of United Notum Federation)
alts: Nebhyper, Nebalmighty.

Offline Malosar

  • BeBot Expert
  • ****
  • Posts: 259
  • Karma: +0/-0
    • http://www.lowerdimension.com
Re: Clump inc LE types
« Reply #7 on: December 25, 2006, 02:23:21 pm »
PHP5 doesn't like [ 0 ] as offsets in a foreach.
« Last Edit: December 26, 2006, 02:26:29 pm by Malosar »
Eternalist
General of The Syndicate

Offline pusikas

  • BeBot Apprentice
  • ***
  • Posts: 161
  • Karma: +0/-0
Re: Clump inc LE types
« Reply #8 on: December 25, 2006, 05:16:43 pm »
Soooo... can you give a hint on how to fix this? :) I did not have large amounts of unidentified bio, so I could not test it with anything else than type 2 and 295. If it helps, I can scrounge for other clumps and see if I can test it for all types. :)
Luuv  Bot-Keeper of Vengeance ^^*

Offline Malosar

  • BeBot Expert
  • ****
  • Posts: 259
  • Karma: +0/-0
    • http://www.lowerdimension.com
Re: Clump inc LE types
« Reply #9 on: December 26, 2006, 02:26:14 pm »
Soooo... can you give a hint on how to fix this? :) I did not have large amounts of unidentified bio, so I could not test it with anything else than type 2 and 295. If it helps, I can scrounge for other clumps and see if I can test it for all types. :)

I don't know a way around it sorry. it's one of the reasons I use php4 only. Maybe someone whom runs php5 and these reference structures work could explain how or post version numbers.
Eternalist
General of The Syndicate

Offline nebhyper

  • BeBot User
  • **
  • Posts: 62
  • Karma: +0/-0
Re: Clump inc LE types
« Reply #10 on: December 26, 2006, 07:51:30 pm »
I do not think it is
  • in foreach that is causing this.


if you do !bio for a type 2  it works, yet a !bio on a type 295 crashes it.   

Same code is proccessed for each type and it handles the
  • in a foreach for the type 2 so why would it crash for the type 295?
Siocuffin (Squad Commander of United Notum Federation)
alts: Nebhyper, Nebalmighty.

Offline pusikas

  • BeBot Apprentice
  • ***
  • Posts: 161
  • Karma: +0/-0
Re: Clump inc LE types
« Reply #11 on: December 27, 2006, 04:54:01 am »
OK, tested with various clumps. All AI clumps I could find worked, and all LE upgrades for weapons worked as well. What does not work for me is the upgrades for Ofab armor. Also, while the LE weapon types work, they produce strange output:
Code: [Select]
To [Vbot]: !bio Kyr'Ozch Bio-Material - Type 812
[Vbot]: QL 196 of Kyr'Ozch Bio-Material - Type 812 / Ofab Peregrine, Hawk, Tiger
 -> Kyr'Ozch Peregrine Type 812 QL 217
 -> Kyr'Ozch Hawk Type 812 QL 217
 -> Kyr'Ozch Tiger Type 812 QL 217
From what I read in the code, it should not be "Kyr'Ozch Peregrine Type 812", but rather "Ofab Peregrine Mk 6", and ql300, not ql217. Well, actually, I think the code has a typo there, it should be "Mk 6", code reads "Mk6", but that shouldn't matter, should it?
So, from what I can see, it runs into the routine that handles the AI weapons, no matter what I post to him. As to why, I have no idea yet. :)
« Last Edit: December 27, 2006, 05:07:07 am by pusikas »
Luuv  Bot-Keeper of Vengeance ^^*

Offline Malosar

  • BeBot Expert
  • ****
  • Posts: 259
  • Karma: +0/-0
    • http://www.lowerdimension.com
Re: Clump inc LE types
« Reply #12 on: December 27, 2006, 01:01:03 pm »
It looks to be because I modifed the !types section only, but not the section that handles id's. I will look at it today and update it.
Eternalist
General of The Syndicate

Offline pusikas

  • BeBot Apprentice
  • ***
  • Posts: 161
  • Karma: +0/-0
Re: Clump inc LE types
« Reply #13 on: December 27, 2006, 02:23:57 pm »
I know I'm a PITA, but... mabe it's just me, but for some reason the php file has tons of blank lines in it. Except for some part in the beginning, every second line is blank for me, which is the reason for the awfully high line numbers. If it's not just me that managed to insert the blank lines somehow, perhaps you could remove them to improve readability. I ran sed over it to do that, but then the line numbers where errors occur are not the same as yours anymore, which isn't too cool, either. :)
Luuv  Bot-Keeper of Vengeance ^^*

Offline Malosar

  • BeBot Expert
  • ****
  • Posts: 259
  • Karma: +0/-0
    • http://www.lowerdimension.com
Re: Clump inc LE types
« Reply #14 on: December 27, 2006, 02:46:36 pm »
The original had much more blank lines, there was actually 2 blank lines between every line. It's either the way some people code or a translation between text editors. I usually cramp mine together a bit more and I did clean this one up to my liking some. To a lot of people the extra spaces give them better readability, to others it's worse, it's a personal coding preference.
Eternalist
General of The Syndicate

 

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