View Full Version : Quest / Perl Error
kedra
02-16-2008, 05:28 PM
Hey guys:
This is an error that I've encountered in the past, but the fix that I used does not quite solve the problem this time around. Here's the situation:
Fresh Server 2003 installation with textbook installs for Mysql5.0, Perl5.8.8, and the most recent binaries (0.7.0-1091).
Everything runs smoothly except for the quests.
---------------------------------------------
[02.16. - 23:02:24] Starting Log: logs/eqemu_quest_zone_0496.log
[02.16. - 23:02:24] Tying perl output to eqemu logs
[02.16. - 23:02:24] Creating EQEmuIO=HASH(0x3adf0e8)
[02.16. - 23:02:24] Creating EQEmuIO=HASH(0x3adf430)
[02.16. - 23:02:24] Loading perlemb plugins.
[02.16. - 23:02:24] Loading perl commands...
[02.16. - 23:02:26] WARNING: error compiling quest file quests/lakerathe/Guide_Fiffigun.pl: Perl runtime error: Undefined subroutine &main::eval_file called.
(reverting to default questfile)
[02.16. - 23:02:33] Terminating on signal SIGHUP(1)
I've gone over this several times, but I'm not quite sure what is causing it. I've reinstalled Perl several times, verified that my perl58.dll file is available, and done just about everything else I can think of.
I've set up numerous servers in the past, and the only thing that is different here is Mysql5.0 as opposed to 4.1, and the newer binaries. I 'ressurected' an old, preserved eqemu server directory and tried running world and zone from there, but encountered the same problem, so I'm thinking that this is a problem with my Perl installation, but I may be wrong.
Any ideas?
AndMetal
02-16-2008, 09:29 PM
[02.16. - 23:02:26] WARNING: error compiling quest file quests/lakerathe/Guide_Fiffigun.pl: Perl runtime error: Undefined subroutine &main::eval_file called.
(reverting to default questfile)
Since this isn't a quest file from PEQ (http://eqemuquests.cvs.sourceforge.net/eqemuquests/peq_quests/lakerathe/), I assume it's a custom script. Can you paste the content of the script?
kedra
02-17-2008, 04:20 AM
It happens with any quest, even all of the default peq ones. I've deleted every single quest and started with the basics:
sub EVENT_SAY {
if ($text=~/hail/i) {
quest::say("Hello");
}
}
Knightly
02-17-2008, 05:58 AM
If I recall correctly, I had a problem on server 2003 when using notepad to edit quests. Using Notepad++ I set the format to UTF-8 and the line endings to Unix and didn't have a problem.
shaznito
02-17-2008, 06:09 AM
Actually I'm having the same problem, I just re-installed everthing on a newer pc for eqemu and this is the error I get.
[02.16. - 23:36:16] Starting Log: logs/eqemu_quest_zone_2660.log
[02.16. - 23:36:16] Tying perl output to eqemu logs
[02.16. - 23:36:16] Creating EQEmuIO=HASH(0x3e1eaac)
[02.16. - 23:36:16] Creating EQEmuIO=HASH(0x3e1edf4)
[02.16. - 23:36:16] Loading perlemb plugins.
[02.16. - 23:36:16] Loading perl commands...
[02.16. - 23:36:17] WARNING: error compiling quest file quests/qeynos/#Riley_Shplots.pl: Perl runtime error: Undefined subroutine &main::eval_file called.
(reverting to default questfile)
[02.16. - 23:36:17] WARNING: error compiling quest file quests/qeynos/1173.pl: Perl runtime error: Undefined subroutine &main::eval_file called.
(reverting to default questfile)
[02.16. - 23:36:17] WARNING: error compiling quest file quests/templates/Arias2.pl: Perl runtime error: Undefined subroutine &main::eval_file called.
(reverting to default questfile)
[02.16. - 23:36:17] WARNING: error compiling quest file quests/qeynos/Faren.pl: Perl runtime error: Undefined subroutine &main::eval_file called.
(reverting to default questfile)
[02.16. - 23:36:17] WARNING: error compiling quest file quests/qeynos/Anehan_Treol.pl: Perl runtime error: Undefined subroutine &main::eval_file called.
(reverting to default questfile)
[02.16. - 23:36:17] WARNING: error compiling quest file quests/qeynos/Guard_Jerith.pl: Perl runtime error: Undefined subroutine &main::eval_file called.
(reverting to default questfile)
[02.16. - 23:36:17] WARNING: error compiling quest file quests/qeynos/Lanhern_Firepride.pl: Perl runtime error: Undefined subroutine &main::eval_file called.
(reverting to default questfile)
[02.16. - 23:36:17] WARNING: error compiling quest file quests/qeynos/Miltiades_Tal-Azroth.pl: Perl runtime error: Undefined subroutine &main::eval_file called.
(reverting to default questfile)
[02.16. - 23:36:17] WARNING: error compiling quest file quests/qeynos/Exterminator_Rasmon.pl: Perl runtime error: Undefined subroutine &main::eval_file called.
(reverting to default questfile)
[02.16. - 23:36:17] WARNING: error compiling quest file quests/qeynos/Yakem_Oreslinger.pl: Perl runtime error: Undefined subroutine &main::eval_file called.
(reverting to default questfile)
[02.16. - 23:36:17] WARNING: error compiling quest file quests/qeynos/an_investigator.pl: Perl runtime error: Undefined subroutine &main::eval_file called.
(reverting to default questfile)
[02.16. - 23:36:17] WARNING: error compiling quest file quests/qeynos/Soulbinder_Novalu.pl: Perl runtime error: Undefined subroutine &main::eval_file called.
(reverting to default questfile)
[02.16. - 23:36:17] WARNING: error compiling quest file quests/qeynos/Jalorin_Tar-Visgur.pl: Perl runtime error: Undefined subroutine &main::eval_file called.
(reverting to default questfile)
[02.16. - 23:36:17] WARNING: error compiling quest file quests/qeynos/Trumpy_Irontoe.pl: Perl runtime error: Undefined subroutine &main::eval_file called.
(reverting to default questfile)
[02.16. - 23:36:17] WARNING: error compiling quest file quests/qeynos/Wolten_Grafe.pl: Perl runtime error: Undefined subroutine &main::eval_file called.
(reverting to default questfile)
[02.16. - 23:36:17] WARNING: error compiling quest file quests/qeynos/Chesgard_Sydwen.pl: Perl runtime error: Undefined subroutine &main::eval_file called.
(reverting to default questfile)
[02.16. - 23:36:17] WARNING: error compiling quest file quests/qeynos/Kasine_Paegra.pl: Perl runtime error: Undefined subroutine &main::eval_file called.
(reverting to default questfile)
kedra
02-17-2008, 07:25 AM
I've tried this using MySQL4.1 and build 1002. As far as I can tell, this is the exact configuration of a server I had running not long ago but I'm still seeing this problem. Strange.
shaznito
02-18-2008, 08:53 PM
I finally figured out my problem and fixed it :)
Come to find out windows had some serious problem with my user logins, I signed in as "User" but for some reason all files were copied to "Administrator".
So I fdisk the computer since it wouldn't recognize any changes or new user and all works great even better than before.
kedra
02-19-2008, 06:44 AM
Oh my freaking god, Shaz.
That's not my problem, but I think you just clued me in to what's wrong. It's most likely because my server directory is actually on a network drive. Oops.
I'm going to move everything back to a local drive and give that a shot. I'm sure that's the problem (Famous last words?).
Thanks for your follow up post! I'll post my findings... I hope this is it :D It's been driving me craaaazy.... then that stupid computer crashed. Ugh.
kedra
02-19-2008, 11:27 AM
Yaaarg......crap. Don't think that was it. Same issue when running from the local drive. Hrm, I was sure... :\
The administrator account is the only one on this machine, so I don't think it is being caused by the same thing that you had going on.
Guess I'll keep looking. :-?
shaznito
02-19-2008, 12:39 PM
Just a thought but, When setting up mysql did you uncheck "strict mode" ?
for whatever reason that one little feature disabled talking to npc's and plugins for quests to function etc....
kedra
02-19-2008, 02:27 PM
Hrm. Tried messing with that - no luck.
LostZaphod
02-20-2008, 02:51 AM
Did you run the perl program "ppm.exe" ?
and then issue these commands?
Install DBI
Install DBD-mysql
Install IO-stringy
kedra
02-20-2008, 03:32 PM
Yea, I've done that, for what it's worth. I've set up plenty of servers in the past. I think maybe one component was updated and is causing some sort of incompatibility? I've restored my archived server which I know for a fact functioned just fine. I know that db + copy of zone/world are all compatible. I'm thinking the problem is with perl, but who knows...
Xavius
02-20-2008, 10:28 PM
Not sure if this helps any or not, but I recently switched my server to a new machine, downloaded the latest source and compiled without any modifications, when I logged in none of my NPC's responeded to any hail's at all... switched back out and installed with a clean 'pre-compiled' version (think it was v1077) and everything worked fine with hails and all quests... retried with a compile of the latest source and no hails worked... at this point I ran out of available time for checking into this more thoroughly. If i find anything further I'll post back.
Rage
Elysium Server Owner
kedra
02-21-2008, 05:36 AM
Thanks for the info. I'll give 1077 a shot and see if there is any improvement.
kedra
02-21-2008, 05:44 AM
Same issue. I've tried several of the precompiled binaries including the newest as well as some older ones that I know I had working something... Hrm... Wonder what it could be.
kedra
02-23-2008, 08:43 AM
Months and months ago I had this same problem and was trying to troubleshoot it on these forums. My last post in that old thread ended with me moving my entire eqemu directory to my perl/bin folder which seemed to fix the problem. There is something in perl/bin that needs to be copied to my eq directory. As it stands now, I've got it working. Thanks for the help, guys.
dilxar
04-26-2008, 04:01 PM
Has anyone found any resolution to this issue? I'm having the same exact problem I'm just about to throw in the towel after days of working on it. Everything works perfectly except the quests. I get the same error in log files "perl runtime error: Undefined subroutine &main::eval_file called" for every single quest. Perl works fine outside of EqEmu, MySql words fine, the peq database is all up-to-date. Quest just won't work. Please please if anyone has found a fix for this please post it. Thank you!
D
cole89103
04-27-2008, 03:34 PM
again install dbd-mysql and io-stringy via the ppm perl package manager as instructed here
http://www.eqemulator.net/wiki/wikka.php?wakka=ws992mysql5
if you follow that you wont have any problems
cole89103
04-27-2008, 03:39 PM
Perl Problem/Solution
Posted by: Angelox :: 3 Replies :: 0 Views :: View Thread
Seems EQEmu has a bit of a problem. The newest version of Perl breaks EQEmu. We depend on perl58.lib, which is not found in the newest 5.10 release, obviously. Using this version will prevent quests from working, Cavedude has confirmed that 5.8.5 (PEQ) and 5.8.7 work fine, can't see any reason why 5.8.8 won't work, either. He's updating the installer today, and linking to the 5.8.7 binaries to be safe in it: http://downloads.activestate.com/ActivePerl/Windows/5.8/ActivePerl-5.8.7.815-MSWin32-x86-211909.msi
Anyone who has anything over Perl 5.8.7 , needs to downgrade.
dilxar
04-27-2008, 04:39 PM
Yep, I installed the required Perl components during the setup, DBI, DBD-MySql, and IO-Stringy. I also tried doing the entire install over with Perl 5.7 and no matter what I do I still get the failure to compile error with quest scripts. How did you get past this problem?
D
cole89103
04-27-2008, 05:50 PM
well i would suggest downloading the latest source code and compiling it with visual studio or visual c++ express specificly that way its compiled with whatever is running on your machine, another option is deleting everything and downloading the peq server pack installer and installing from that i use it myself and it works quite well i highly recommend trying this method
dilxar
04-27-2008, 05:58 PM
Hi Cole, and thanks for the quick reply. Actually that has been my latest plan of action. I wiped everything off the system and started with the peq server install pack 1104. Still having the same problem. Everything works fine except the quests. I can walk up and smack NPCs but they don't respond to hails, etc. And all quests give the compiling error in the logs. I just don't know what else to do.
cole89103
04-27-2008, 06:07 PM
hrmmm i gotta think about this one for a bit you got me kinda dumbfounded its hard to know whats going on without actually seeing it ya know so gimme a bit to think this one over
dilxar
04-27-2008, 06:12 PM
Thanks Cole, I really appreciate this. If you wanna see any log files or config files just let me know. But I can tell you the log files look exactly like the original post on this thread - every quest has "Perl runtime error: Undefined subroutine &main::eval_file called."
thanks again,
D
cole89103
04-27-2008, 06:17 PM
lemme research this to be honest ive never seen it before but as a perl dev i might just be able to figure it out for ya pm me if ya have any im's so its easier to talk
cole89103
04-27-2008, 06:46 PM
ok did some checking seems to be a common error but havent found a fix for it as of yet
dilxar
04-27-2008, 09:14 PM
thank you cole! If you can solve this last hurdle you will truly be a god among men!
dilxar
04-29-2008, 12:52 PM
Well Cole, I found a fix but not a real solution. It was already posted by someone else and I had tried it before without luck but then I tried again and it worked. I had to copy everything from my eqemu folder and paste it in \perl\bin\ . Don't ask me why, my PATH variable already has that path included. But anyway, pasting everything there including subdirectories fixes the quest compiling. I hope that maybe helps you figure out the bigger problem. Thanks for all of your responses.
D
warsonofrage
08-16-2008, 04:52 PM
hey folks im having the same problem with my server. eq2revelations. i can make the server run fine include new npcs and what not however no quest scripting works at all the only thing that works atm is the banker hello and come again script even merchants dont respond to this stimuli ive reinstalled activeperl 587 and i even put the emulator folder in its entirety under the /perl/bin/ as was suggested. im confused since no one seems to have a fix for this. i cant beleive that no one has found a working fix for this.
is there a fully working quest version of the peq server pack available or a no fail install option that allows for working quests? i dont mind starting over just wanna make sure it works before i go and do fifeteen installs.
Andrew80k
08-16-2008, 05:46 PM
Do you have the plugins in the plugin directory?
warsonofrage
08-17-2008, 10:50 PM
ok i can say honestly that either the other computer i was using to set this up has issues or........mysql and the perl i was using at the time did not install right. i put this whole setup on my main computer. ran the newer version of perl that isnt broken and the newer version of mysql and installed the peq server pack and the update pack....no errors no hiccups no nothing.....ran like a song and quests worked fine. cut n pasted in old database and quests folder and what not....worked fine. problem now is no one but me can log in now :/
as for plugins im either to tired to understand or im drawing a blank but....sure ok :p
Babul
09-13-2008, 10:54 PM
I am having problems to have quest work aswell, i noticed in the log there is something that tell server cannot read the files.. but I have the quest in the quest directory C:\EQSERVER\quests\
---------------------------------------------
[09.13. - 01:10:59] Starting Log: logs/eqemu_quest_zone_2824.log
[09.13. - 01:10:59] Tying perl output to eqemu logs
[09.13. - 01:10:59] Creating EQEmuIO=HASH(0x4086600)
[09.13. - 01:10:59] Creating EQEmuIO=HASH(0x4090ec4)
[09.13. - 01:10:59] Loading perlemb plugins.
[09.13. - 01:10:59] Loading perl commands...
[09.13. - 01:10:59] Subroutine GetSkill redefined at (eval 12) line 1.
[09.13. - 01:26:59] Unable to read perl file 'quests/freportw/player.pl'
[09.13. - 01:26:59] Unable to read perl file 'quests/templates/player.pl'
[09.13. - 01:51:12] Unable to read perl file 'quests/freportn/player.pl'
[09.13. - 01:51:12] Unable to read perl file 'quests/templates/player.pl'
[09.13. - 01:59:48] Unable to read perl file 'quests/nektulos/player.pl'
[09.13. - 01:59:48] Unable to read perl file 'quests/templates/player.pl'
[09.13. - 02:11:44] Unable to read perl file 'quests/innothule/player.pl'
[09.13. - 02:11:44] Unable to read perl file 'quests/templates/player.pl'
[09.13. - 02:44:19] Unable to read perl file 'quests/feerrott/player.pl'
[09.13. - 02:44:19] Unable to read perl file 'quests/templates/player.pl'
[09.13. - 02:48:47] Unable to read perl file 'quests/oggok/player.pl'
[09.13. - 02:48:47] Unable to read perl file 'quests/templates/player.pl'
[09.13. - 02:52:00] Use of uninitialized value in numeric ne (!=) at quests/nexus/player.pl line 15.
[09.13. - 02:52:00] Use of uninitialized value in numeric ne (!=) at quests/nexus/player.pl line 15.
[09.13. - 03:17:56] Use of uninitialized value in numeric ne (!=) at quests/greatdivide/player.pl line 9.
[09.13. - 03:17:56] Use of uninitialized value in numeric ne (!=) at quests/greatdivide/player.pl line 9.
[09.13. - 03:17:56] Use of uninitialized value in numeric ne (!=) at quests/greatdivide/player.pl line 9.
[09.13. - 03:18:06] Use of uninitialized value in numeric ne (!=) at quests/greatdivide/player.pl line 9.
[09.13. - 03:18:06] Use of uninitialized value in numeric ne (!=) at quests/greatdivide/player.pl line 9.
[09.13. - 03:18:06] Use of uninitialized value in numeric ne (!=) at quests/greatdivide/player.pl line 9.
[09.13. - 03:18:06] Use of uninitialized value in numeric ne (!=) at quests/greatdivide/player.pl line 9.
[09.13. - 03:18:06] Use of uninitialized value in numeric ne (!=) at quests/greatdivide/player.pl line 9.
[09.13. - 03:18:06] Use of uninitialized value in numeric ne (!=) at quests/greatdivide/player.pl line 9.
[09.13. - 03:18:16] Use of uninitialized value in numeric ne (!=) at quests/greatdivide/player.pl line 9.
[09.13. - 03:18:16] Use of uninitialized value in numeric ne (!=) at quests/greatdivide/player.pl line 9.
[09.13. - 03:18:16] Use of uninitialized value in numeric ne (!=) at quests/greatdivide/player.pl line 9.
[09.13. - 03:18:16] Use of uninitialized value in numeric ne (!=) at quests/greatdivide/player.pl line 9.
[09.13. - 03:18:16] Use of uninitialized value in numeric ne (!=) at quests/greatdivide/player.pl line 9.
[09.13. - 03:18:16] Use of uninitialized value in numeric ne (!=) at quests/greatdivide/player.pl line 9.
[09.13. - 03:18:26] Use of uninitialized value in numeric ne (!=) at quests/greatdivide/player.pl line 9.
[09.13. - 03:18:26] Use of uninitialized value in numeric ne (!=) at quests/greatdivide/player.pl line 9.
[09.13. - 03:18:26] Use of uninitialized value in numeric ne (!=) at quests/greatdivide/player.pl line 9.
[09.13. - 03:18:26] Use of uninitialized value in numeric ne (!=) at quests/greatdivide/player.pl line 9.
[09.13. - 03:18:26] Use of uninitialized value in numeric ne (!=) at quests/greatdivide/player.pl line 9.
[09.13. - 03:18:26] Use of uninitialized value in numeric ne (!=) at quests/greatdivide/player.pl line 9.
[09.13. - 03:22:17] Unable to read perl file 'quests/thurgadinb/player.pl'
[09.13. - 03:22:17] Unable to read perl file 'quests/templates/player.pl'
[09.13. - 03:26:45] Unable to read perl file 'quests/jaggedpine/player.pl'
[09.13. - 03:26:45] Unable to read perl file 'quests/templates/player.pl'
[09.13. - 03:34:50] Unable to read perl file 'quests/natimbi/player.pl'
[09.13. - 03:34:50] Unable to read perl file 'quests/templates/player.pl'
[09.13. - 03:47:21] Unquoted string "respawn" may clash with future reserved word at quests/warslikswood/Lurking_Hopeful.pl line 26.
[09.13. - 03:47:45] Unable to read perl file 'quests/warslikswood/player.pl'
[09.13. - 03:47:45] Unable to read perl file 'quests/templates/player.pl'
[09.13. - 03:56:25] Unable to read perl file 'quests/cabeast/player.pl'
[09.13. - 03:56:25] Unable to read perl file 'quests/templates/player.pl'
[09.13. - 05:36:18] Terminating on signal SIGHUP(1)
The quest are there but I dont see on any quest directory that player.pl file that the server is looking for?
Is the eqemu_config file file in need to have a full path for the quests directory since i am not using the eqemu default directory for the server?
But still I dont see these player.pl files bu the quest pl files are in the directory.
Any help would be very appreciated thanks
Sylaei
09-16-2008, 10:23 PM
I'm not sure what could be the issue, but that said, it looks like the quests are not in the folder the server is looking in. In the main server folder, you should have a 'quests' folder. All the quests are in subfolders under that one. My only suggestion is to double then triple check your paths. check for 'spaces' before the folder name. You may want to use a dos prompt to do the checking. Windows explorer is hard to use to see spacing and such. Oh and check the paths one more time. :-)
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.