Go Back   EQEmulator Home > EQEmulator Forums > Archives > Archive::Support > Archive::Windows Servers

Archive::Windows Servers Archive area for Windows Servers's posts that were moved here after an inactivity period of 90 days.

Reply
 
Thread Tools Display Modes
  #1  
Old 12-03-2003, 03:18 AM
mollymillions's Avatar
mollymillions
Hill Giant
 
Join Date: May 2003
Posts: 176
Default Perl scripting

Has anyone had any luck using the Perl scripting?
Reply With Quote
  #2  
Old 12-03-2003, 03:21 AM
Kroeg's Avatar
Kroeg
Hill Giant
 
Join Date: Oct 2003
Posts: 241
Default

I have had tons of luck (and fun) using the perl scripting for quests. I'll admit it was a bit confusing at first (if you're not used to using C developer environments) but once you get the hang of it, it becomes pretty clear.
Reply With Quote
  #3  
Old 12-03-2003, 03:39 AM
mollymillions's Avatar
mollymillions
Hill Giant
 
Join Date: May 2003
Posts: 176
Default

Which EQEmu version are you using?
Reply With Quote
  #4  
Old 12-03-2003, 06:45 AM
Rogean's Avatar
Rogean
Administrator
 
Join Date: Jul 2003
Location: Massachusetts
Posts: 708
Default

Perl Scripting = teh pwn =)
Reply With Quote
  #5  
Old 12-03-2003, 07:58 AM
Kroeg's Avatar
Kroeg
Hill Giant
 
Join Date: Oct 2003
Posts: 241
Default

I use 0.5.2 DR1 (with embperl.cpp/h and embparser.cpp/h included and EMBPERL,EMBPERL_PLUGIN defined).
Reply With Quote
  #6  
Old 12-03-2003, 02:37 PM
rockocool
Sarnak
 
Join Date: Mar 2003
Location: california
Posts: 63
Default

Hi, Kroeg, where did you get the 0.5.2-DR1 source code? I am looking in sourceforge but could only find 0.5.1.
Reply With Quote
  #7  
Old 12-03-2003, 07:41 PM
mollymillions's Avatar
mollymillions
Hill Giant
 
Join Date: May 2003
Posts: 176
Default

I am unworthy of access to the 5.2 source but i have compiled 5.1 DR2 (with embperl.cpp/h and embparser.cpp/h included and EMBPERL,EMBPERL_PLUGIN defined, and the pearl\lib\CORE directory added to the Include and Library directories, using VS6), but have had no luck with perl scripts (in the Quests\Zonename folder with a .pl extension) or the #peval command.
Can anyone confirm that embedded Perl is functional in 5.1 DR2 dev release (or any version that is publicly available), or alternately, can anyone give me a heads up on what i may be doing incorrectly?
Thanks for the feedback Rogean, but can anyone translate Rogean's comment into Australian for me (i am obviously a dork, i have been coding for 25 years but have no idea what this comment means, I will assume it
Reply With Quote
  #8  
Old 12-03-2003, 08:26 PM
Eglin
Hill Giant
 
Join Date: Nov 2003
Posts: 168
Default

[quote=mollymillions]I am unworthy of access to the 5.2 source but i have compiled 5.1 DR2 (with embperl.cpp/h and embparser.cpp/h included and EMBPERL,EMBPERL_PLUGIN defined, and the pearl\lib\CORE directory added to the Include and Library directories, using VS6), but have had no luck with perl scripts (in the Quests\Zonename folder with a .pl extension) or the #peval command.
Can anyone confirm that embedded Perl is functional in 5.1 DR2 dev release (or any version that is publicly available), or alternately, can anyone give me a heads up on what i may be doing incorrectly?
Thanks for the feedback Rogean, but can anyone translate Rogean's comment into Australian for me (i am obviously a dork, i have been coding for 25 years but have no idea what this comment means, I will assume it
Reply With Quote
  #9  
Old 12-03-2003, 08:57 PM
mollymillions's Avatar
mollymillions
Hill Giant
 
Join Date: May 2003
Posts: 176
Default

Thanks Eglin, i just really wanted confirmation that it doesn't require any code tweaking as i have no c++ skills. If you say it will work out of the box with 5.1 DR2 that's good enough for me. I will work it out. Thanks.
Reply With Quote
  #10  
Old 12-03-2003, 09:04 PM
Eglin
Hill Giant
 
Join Date: Nov 2003
Posts: 168
Default

Quote:
Originally Posted by mollymillions
Thanks Eglin, i just really wanted confirmation that it doesn't require any code tweaking as i have no c++ skills. If you say it will work out of the box with 5.1 DR2 that's good enough for me. I will work it out. Thanks.
Sorry, but I can't really make that promise. In fact, I don't think that there will ever be an "out of the box" version that supports perl scripting. Too many variables, like the fact that you don't really want to require that everyone use the same perl distribution (down to the same version).

Again, if you want to tell us the details of your problems, maybe we can get you fixed up.
Reply With Quote
  #11  
Old 12-05-2003, 03:14 AM
mollymillions's Avatar
mollymillions
Hill Giant
 
Join Date: May 2003
Posts: 176
Default

This isn't a bug report, just info. I hit a problem associated with defining EMBPERL_PLUGIN that causes zones to crash on startup. This occurs with 0.5.1-DR2 and 0.5.2-DR1 (ActivePerl 5.8.1.807). Without defining EMBPERL_PLUGIN quests work well.
Reply With Quote
  #12  
Old 12-05-2003, 03:20 AM
Trumpcard
Demi-God
 
Join Date: Jan 2002
Location: Charlotte, NC
Posts: 2,614
Default

Try this Molly...

__________________
Quitters never win, and winners never quit, but those who never win and never quit are idiots.
Reply With Quote
  #13  
Old 12-05-2003, 07:24 AM
Kroeg's Avatar
Kroeg
Hill Giant
 
Join Date: Oct 2003
Posts: 241
Default

I had to do this same thing, as I was getting a lot of error output in world and crashing all the time. If you have a problem when trying to Install IO:Scalar , then try truncating the directory name to your path of nmake.exe (if using MSVC++) , such as \visual~1\nmake.exe when executing the perl -MACPAN -e shell command.
Reply With Quote
  #14  
Old 12-05-2003, 08:53 AM
Eglin
Hill Giant
 
Join Date: Nov 2003
Posts: 168
Default

Quote:
Originally Posted by Kroeg
I had to do this same thing, as I was getting a lot of error output in world and crashing all the time. If you have a problem when trying to Install IO:Scalar , then try truncating the directory name to your path of nmake.exe (if using MSVC++) , such as \visual~1\nmake.exe when executing the perl -MACPAN -e shell command.
That is an excellent tip, Kroeg! Thank you for pointing that out.

As a general rule, Activestate users should use ppm3 instead of cpan, but for some reason Activestate doesn't have a IO::Scalar ppm. I'm sure it is included with some other mods, but I can't remember which. Had I realized that it wasn't installed with the perl base, I probably would've avoided its use. The way that the perl interpreter crashes out instead of properly reporting the error is a source of concern to me, also. I'm wondering if I the dependency should just be removed. Plugins would have to be changed to stop using the PLUGIN filehandle for I/O, though.

At any rate, good pickup on the error, guys.
Reply With Quote
  #15  
Old 12-05-2003, 02:24 PM
mollymillions's Avatar
mollymillions
Hill Giant
 
Join Date: May 2003
Posts: 176
Default

Quote:
Originally Posted by Kroeg
I had to do this same thing, as I was getting a lot of error output in world and crashing all the time. If you have a problem when trying to Install IO:Scalar , then try truncating the directory name to your path of nmake.exe (if using MSVC++) , such as \visual~1\nmake.exe when executing the perl -MACPAN -e shell command.
-or encase long file names with quotes.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 07:59 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3