It is currently Wed Nov 19, 2008 3:52 am

All times are UTC - 8 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Change to the combat hook?
PostPosted: Thu Feb 08, 2007 12:37 pm 
Offline

Joined: Wed Apr 12, 2006 5:42 pm
Posts: 18
I'm trying to run 097 on linux, and I can't seem to get the combat hook to work properly. The same code runs fine on Windows, but it never seems to run on linux. I figured it was something to do with case-sensitivity, but the cases seem to match up okay. Here's the syshook.cfg:

Code:
SystemHookScript newcombat.ecl
{
   Attack AttackScript

}


This is in the same directory as newcombat.src/ecl, which is simply:

Code:
exported function AttackScript( mobAttacker, mobDefender )
print( mobAttacker.name + " attacking " + mobDefender.name );
   return 1;
endfunction



(there actually is custom combat code, but I just commented it out for now and only have that print statement there)

As far as I can tell everything seems correct, but that print statement never get called. However, if I run the same files on Windows it does call the print statement...


Top
 Profile  
 
 Post subject:
PostPosted: Sat Apr 14, 2007 6:41 am 
Offline
POL Developer
User avatar

Joined: Sun Feb 12, 2006 9:50 pm
Posts: 836
Location: Indiana, USA
Have you made sure there was no Case Sensitive issue here? (aka, all lower case for the actual file's name, like in your cfg ? )

_________________
POL Developer - The Penguin Scripter


Top
 Profile  
 
 Post subject:
PostPosted: Sat Apr 14, 2007 9:08 am 
Offline
Distro Developer
User avatar

Joined: Thu Apr 06, 2006 5:11 pm
Posts: 350
Location: Nederland, Texas
Is it print or Print ?


Top
 Profile  
 
 Post subject:
PostPosted: Sat Apr 14, 2007 11:09 am 
Offline
Certified POL Expert
User avatar

Joined: Sat Feb 04, 2006 5:49 pm
Posts: 794
Location: Chicago, IL USA
I think hes talking about the file name tek... I never had a problem with case sensitivity of the function names themselves...


Top
 Profile  
 
 Post subject:
PostPosted: Sat Apr 14, 2007 1:26 pm 
Offline
Packet Maintainer

Joined: Thu Feb 02, 2006 8:33 am
Posts: 319
I bet it's something like MuadDib mentioned. The newcombat.ecl/src is often spelled as newCombat.ecl/src in older distro versions or by other people. That's always a problem if you use windows and linux versions. I personally changed all filenames to lower case a few years ago and of course do the same in scripting. I think it is perhaps the capital C in combat.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Apr 14, 2007 4:45 pm 
Offline
Distro Developer
User avatar

Joined: Thu Apr 06, 2006 5:11 pm
Posts: 350
Location: Nederland, Texas
CWO:
Thanks. I haven't used POL on Linux since... 094. :(


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Style based on FI Subice by phpBBservice.nl