Motorcycle Engine

Forum for general requests for support for players. Both staff members and veteran players can help new players with problems they encounter. No chatting in this forum, please.

Moderators: Public Relations Department, Players Department, Programming Department

User avatar
Bowser
Posts: 1201
Joined: Thu Dec 04, 2003 8:55 pm
Location: Washington, D.C.

Motorcycle Engine

Postby Bowser » Sun Jul 11, 2004 5:30 pm

I built the Bike Frame, Built the two wheels, then assembled the bike. I hopped on to take it for a test drive, but there was no engine.

I selected the "Build or Manufacture Something" button.
I clicked the Engine button.
I selected Motorcycle Engine.
I read the building information.

I then clicked the "select this object to build" arrow button and got this message:

Fatal error: Call to undefined function: eplode() in /home/cantr/public_html/action.build.inc.php on line 145

I backed out of it and checked activities and my request was not processed.
User avatar
creepyguyinblack
Posts: 680
Joined: Mon Jul 14, 2003 9:05 pm
Location: Seattle, WA
Contact:

Postby creepyguyinblack » Sun Jul 11, 2004 5:57 pm

Myself and Anthony have taken a look at all the entries and can find no problems with them so we will have to wait and see if Thomas or Jos can find the problem.
User avatar
Junesun
Administrator Emeritus
Posts: 807
Joined: Sat Feb 07, 2004 9:24 am
Location: Berlin, Germany
Contact:

Postby Junesun » Sun Jul 11, 2004 6:21 pm

Would this be a typo of "explode"?
Context in that script: $rules = eplode (';', $loc_objecttype_info->rules);
User avatar
Bowser
Posts: 1201
Joined: Thu Dec 04, 2003 8:55 pm
Location: Washington, D.C.

Postby Bowser » Sun Jul 11, 2004 9:06 pm

I copy/pasted the error, so the message in my post is exactly as it appeared on the screen.
User avatar
Anthony Roberts
Posts: 2578
Joined: Mon Feb 02, 2004 11:45 pm
Location: Chatham, Ontario, Canada

Postby Anthony Roberts » Sun Jul 11, 2004 9:19 pm

I think June was commenting that it was spelt wrong in the code itself, not what your post said.

$rules = eplode (';', $loc_objecttype_info->rules);

But I don't think it is. Because, there are three other engines. Do they use the same code? So then, why don't they cause an error?
-- Anthony Roberts
User avatar
Thomas Pickert
Programmer Emeritus
Posts: 1770
Joined: Mon Jul 14, 2003 9:44 pm

Postby Thomas Pickert » Sun Jul 11, 2004 9:54 pm

Junesun's analysis pointed right to the problem. I have fixed it now.

The explanation for Anthony's objection is, that it is a relatively recent change to use explode instead of preg_split, because it's a little less expensive. The other 3 engines have probably been built before that.

Anyway, it should be possible to build that engine now.
User avatar
Bowser
Posts: 1201
Joined: Thu Dec 04, 2003 8:55 pm
Location: Washington, D.C.

Postby Bowser » Mon Jul 12, 2004 12:05 am

All is good now and soon the first biker gang will be roaming Cantr.
west
Posts: 4649
Joined: Mon Aug 25, 2003 5:23 pm

Postby west » Mon Jul 12, 2004 4:22 am

Olip's Angels
I'm not dead; I'm dormant.

Return to “General Support”

Who is online

Users browsing this forum: No registered users and 1 guest