Log in

View Full Version : 6.2-DR1 Perl Working


jimm0thy
09-23-2005, 07:03 AM
Ive noticed alot of posts about people not being able to get zone.exe to compile with perl and still be able to attack targets.
Well I finally got it to work myself.
I did notice that when I pulled the normal CVS branch I couldnt get zone.exe or world.exe to compile at all , but I then pulled the development branch and that compiled just fine. I then logged into my own server to test it.

I was able to create a character fine , zone fine , cast buffs fine , cast damage spells on mobs fine , melee attack mobs fine , buy/sell fine , hail targets fine , log fine.

The only errors Ive found are :

ZonePerl.exe gives : Unhandeled Incomming Opcode: OP_AnnoyingZoneUnknown

Here is a link to download my compiled version.

(new compile and have tested for over an hour with no errors or crashes)

http://www.savefile.com/files.php?fid=8663812 - Final hopefully
http://hosted.filefront.com/jimm0thy - For individual files

jillmatik
09-23-2005, 08:04 AM
Thanks man! Can't wait to give this a shot when I get home from work today!

J

jimm0thy
09-23-2005, 08:06 AM
np , let me know if it works for you.

Dr Zauis
09-23-2005, 08:57 AM
Blaah..Zoneperl is crashing while trying to enter zone. I will keep trying though..Keeping my fingers crossed..

jimm0thy
09-23-2005, 09:28 AM
Hmm , I havent had any crashing problems. It could be due to the one error message I listed earlier (not really sure). Guess I'll go and try to make it crash and see what output it gives.

tallerin
09-23-2005, 09:40 AM
getting the same issue with the crashing perlzone. can get to character select screen choose character,but when i hit enter world it boots the zone up then throw's a M$ error saying zoneperl has encountered an error and needs to be shut down. After this i can reloggin and the next zone window boots up fine but eventually throws a M$ error and closes out.

WildcardX
09-23-2005, 09:43 AM
Awsome! Thank goodness there are people smarter than me!! I can't wait to get home and try this out!

jimm0thy
09-23-2005, 10:04 AM
Ok I got it to crash for me :) here is the recent output from zoneperl.exe

[Status] Zone Shutdown: lavastorm (27)
Map header: 26977 faces, 207 nodes, 36231 facelists
Loaded map: 80931 vertices, 26977 faces
Map BB: (-562.78 -> 492.81, -805.69 -> 708.72, -131.94 -> 602.94)
Map ./Maps/halas.map loaded.
Path File ./Maps/halas.path not found.
[Status] Weather should change in 4706 seconds
[Status] Loading spawn conditions...
[Status] Loading static zone points...
[Status] Loading spawn groups...
[Status] Loading spawn2 points...
[Status] Loading player corpses...
[Status] Loading traps...
[Status] Loading ground spawns...
[Status] Loading Ground Spawns from DB...
[Status] Loading Objects from DB...
[Status] Loading Objects from DB...
[Status] Loading doors for halas ...
[Status] Done loading doors for halas ...
[Status] Loading AA information...
[Status] Loading Merchant Lists...
[Status] Loading Temporary Merchant Lists...
[Status] Successfully loaded Zone Config.
[Status] Loading timezone data...
[Status] Init Finished: ZoneID = 29, Time Offset = 0
[Status] Zone Bootup: halas (29)
Received Message SyncWorldTime
Time Broadcast Packet: EQTime [06:17 am]
[Status] 1528141 New client from ip:192.168.2.2 port:1949
[Error] Unhandled incoming opcode: OP_AnnoyingZoneUnknown (#299, eq=0x0000), siz
e: 8, Client: Bortal
0: 6F 00 00 00 40 00 00 00 | o...@...
Save took: 0
Save took: 16
Save took: 0

- and then crash.

When I did a debug it came up and hilighted

int32 GetNPCTypeID() { return npctype_id; } // rembrant, Dec. 20, 2001

now Im no programmer , so I'll fiddle around and see what I can find. But I was in game for about half hour until it crashed. (I had 5 zoneperl.exe running , and was randomly zoning around and it crashed while #repop'ing halas)

- hopefully this build will work for someone other than me , otherwise Im just gona feel stupid.

cavedude
09-23-2005, 11:05 AM
OP_BecomeCorpse is missing from ./opcodes.cfg

Use the newest opcodes.cfg from CVS.

As for the crash, that looks like specific mobs are causing it to freak out. What db are you using?

jimm0thy
09-23-2005, 11:38 AM
Im using the PEQ_Velious_RC1 db

tallerin
09-23-2005, 12:15 PM
I know on my end i got this error

[Status] WARNING: error compiling quest file quests/thurgadina/Lorekeeper_Einar.
pl: Perl runtime error: syntax error at (eval 7859) line 67, near ".)"
syntax error at (eval 7859) line 75, near ".)"
(reverting to default questfile)

i attempted to edit it and fixxed a few of the errors for this file but this one i can't. with the Lorekeeper_Einar.pl in the quest folder zone crashed everytime i would enter the game or try to zone. i removed the file and have not had an issue entering the world nor zoning and i bounced all over using #zone and no crashing. So either this crash is seaming to be very random now if not at all.

jimm0thy
09-23-2005, 12:41 PM
That error is with the quest itself.
I have recompiled the sources and played for over an hour with no problems and reuploaded the file. Also the download link is updated to reflect these changes.

WildcardX
09-23-2005, 01:03 PM
Did you forget to zip up your newly compikled EMUShareMem.dll or is the old one still ok? I know a lot of data structures that world and zone use are used in the dll from the "common" source code.

Dr Zauis
09-23-2005, 01:03 PM
OP_BecomeCorpse is missing from ./opcodes.cfg

Use the newest opcodes.cfg from CVS.

As for the crash, that looks like specific mobs are causing it to freak out. What db are you using?

I used my opcodes.cfg with all the errors in it..Came from the original release.. Working like a charm now!! Thanks!

jimm0thy
09-23-2005, 01:13 PM
aw crud i did forget to put in emusharemem.dll , updated again :)

and glad to hear its working - I forgot I messed with opcodes.cfg earlier - so that may have been it.

Dr Zauis
09-23-2005, 01:25 PM
aw crud i did forget to put in emusharemem.dll , updated again :)

and glad to hear its working - I forgot I messed with opcodes.cfg earlier - so that may have been it.

OK I got the update too..Maybe I need it or something later for my new box.
Thanks soo much for this!

WildcardX
09-23-2005, 02:18 PM
Ugghh, my zones are crashing totally when I hail something that has a quest, attack in melee, or attack with spells. Although, I can zone just fine.

What version of perl do you have when you compiled? I have perl 5.8. I hope the problem is something configuration related.

tallerin
09-23-2005, 02:22 PM
heh i should have left well enough alone lol. with the new uploads i can't even get in game with out crashing. when i do get in it crashes when i try to zone. Sadly i can't rember what i did to get it all to work right the first time around whaaaaaa. lol

tallerin
09-23-2005, 03:25 PM
well i figured out on my end what to do. kind of wierd but it works. Using the world.exe out of the non perl release and the perlzone.exe EMuShareMem.dll out of his compile. I have to wait for the first crash then relogin choose character enter game then hit boot5zones again (i only run 2 zone's) then all is fine. i can hail npcs with quest mellee attack and spell attack and zone with no crashes. till i close everything out have to do it all over again.

also using perl 5.8 here and when it crashes in the error window it is saying
app name zone.exe then something else about perl58.dll in the error report.

Dr Zauis
09-23-2005, 03:48 PM
well i figured out on my end what to do. kind of wierd but it works. Using the world.exe out of the non perl release and the perlzone.exe EMuShareMem.dll out of his compile. I have to wait for the first crash then relogin choose character enter game then hit boot5zones again (i only run 2 zone's) then all is fine. i can hail npcs with quest mellee attack and spell attack and zone with no crashes. till i close everything out have to do it all over again.

also using perl 5.8 here and when it crashes in the error window it is saying
app name zone.exe then something else about perl58.dll in the error report.

Wow..I just started mine again and it crashed the first time! Im thinking I didnt fix anything with the opcodes swap but I cant be sure..

jimm0thy
09-23-2005, 04:50 PM
Well Im starting to think its a fluke that it works on my end. Perhaps its because Im using MiniLogin? Guess I'll try using the eqemulator.net login server and check.

Otherwise I cant think of anything. I compiled the source using MS Visual C++ 6.0 and recieved no errors or warnings. Ive played on my personal server for well over an hour with no crashes (including hails , spells , attacking , zoning , #zone , #repop , #level , Create new Character , summon items)
Im using the PEQ-Velious-RC1 DataBase and PEQ Editor , with no other modifications.
... So Ive put up a quick site containing downloads of the stuff in my eqemu folder (along with perl58.dll). Some files are in .zip format to help with size.

http://hosted.filefront.com/jimm0thy

The only thing I can say is try a clean install of everything and see if that helps.

Dr Zauis
09-23-2005, 05:19 PM
OK..I replaced the first zoneperl I DLed with the third one you provided..So far no crashing. I camped/ect.. with 2 toons in different zones..Did a bunch of random stuff. So its lookin good..Knock on wood.

jimm0thy
09-23-2005, 05:20 PM
Bah you just broke it now :)

tallerin
09-23-2005, 05:45 PM
well i just fixed mine here and it was not the files.

i think it was an IO::Scalar issue. i saved an old howto for the 6.0 server and decide to reinstall IO::Scalar the way in that tut instead of the way i initially did it from a newer tut. Well i can now start it select toon enter world and no crashes what so ever starts up alot faster also.

so if any one whats to try if they are still haveing issues can try this

Open a Command Prompt (Start menu -> run -> type cmd -> hit enter

type

Code:
perl -MCPAN -e shell

It will ask you if you want to configure Manually. Say no.

RESTART YOUR COMPUTER BEFORE PROCEEDING.

When that is done type
Code:
install IO::Scalar

jimm0thy
09-23-2005, 05:56 PM
Glad to hear its working for you.

Dr Zauis
09-23-2005, 06:09 PM
Bah you just broke it now :)

Yep! Still broke...I will try the scalar thing maybe..Ill have to DL all the individual files tomarro..Im just gonna quit for the night..

jimm0thy
09-23-2005, 06:16 PM
I have added the file I used to install IO::Scalar to the download site , it is IO-stringy-2.110.zip (which is from one of the tutorials on this site , just cant remember which)

WildcardX
09-23-2005, 06:33 PM
Preliminarly speaking, looks like install io:stringy works for me.. I can attack and hail and not crash so far. I'm gonna test it for a few hours and see if its consistent behavior.

jimm0thy
09-23-2005, 06:35 PM
When everyone (or at least a few others) are able to have a stable server going , Im going to write up an install how to.

WildcardX
09-23-2005, 06:47 PM
nope.. still crashes.. It seems to be random.. I bet if I keep stop and restarting my server, most of the time my zones will crash when i attack something, but sometimes it will work ok until i restart my server. Truly madenning.. hehe

Belfedia
09-23-2005, 08:01 PM
Good work JimmOthy !
I paste yours links in usefull Eqemu links page :
http://www.eqemulator.net/wiki/wikka.php?wakka=Linkit
For guide, don't create any guide on forum, just update excellent tallerin's guide on wikki :)
http://www.eqemulator.net/wiki/wikka.php?wakka=ServerGuide

I become to test now :)

jimm0thy
09-23-2005, 08:21 PM
Thanks , updated wiki how to

tallerin
09-24-2005, 01:21 PM
Well i know i said i fixed my issue of crashing last night and i thought i did till i went to camp and perlzone crashed. So i took it one step farther and took a long shot (wild guess). I noticed reinstalling IO::Scalar a different way changed the crashing so i went with a whole different perl install. I uninstalled perl 5.8.2 and installed ActivePerl-5.8.7.813-MSWin32-x86-148120. As of now for the last 2 1/2 hours logining in and out zoneing hailing attacking trying quest's you name it i tryed it. I am willing to say non the least that it has got to be an issue with perl 5.8.2 cause i am now saying what ever i try i can NOT get a crash now even doing what i did to make it crash before. so if someone that has the crashing issue can also install perl 5.8.7.813 and install IO::Scalar give it a try and respond back.

http://downloads.activestate.com/ActivePerl/Windows/5.8/ActivePerl-5.8.7.813-MSWin32-x86-148120.msi

Dr Zauis
09-25-2005, 07:12 AM
Er..No I havent fixed my crashing problem yet..I do have perl build 813 so I guess I will try the other one that jimm0thy is using..
But the big news for me is...Woot! I got zoneperl to build in C++!
So today I am going to try to learn a little something about C++ as I have only programmed with Delphi and know nothing of C++ at this point.

So I will be back in a few days to try again on this..I want to try to get a separate server going and my parts should be in for it by then..

For now I will keep learning this Krazy thing called C++ and hopefully I can help to fix bugs someday.

tallerin
09-25-2005, 11:06 AM
i dunno i know with 5.8.2.808 with useing IO:string DBD-mysql and DBI i had crashing. removed perl and reinstalled IO::scalar the other way it changed the crashing. By useing a newer version of perl and only installing IO::scalar by the method posted in this thread and not installing DBD-mysql or DBI as one of the tuts here says to do. i have had no crashing so it can't be an issues with his compiled release as it would be still crashing for me and its not.

and good job on getting yours to compile something i tryed and gave up on heh.