PenUltima Online Forum Index Official Core: 096.7
Official Core: 097 2008-02-26
Donate towards the POL web hosting bill!
 POL Home   FAQ   Search    Memberlist   Usergroups    Register    Profile   Log in to check your private messages   Log in
Change to the combat hook?

 
Post new topic   Reply to topic    PenUltima Online Forum Index -> Bug Reports 097
Display posts from previous:   

Author Message
elenaran



Joined: 12 Apr 2006
Posts: 18

PostPosted: Thu Feb 08, 2007 4:37 pm    Post subject: Change to the combat hook? Reply with quote

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...

Author Message
MuadDib
POL Developer


Joined: 13 Feb 2006
Posts: 830
Location: Indiana, USA

PostPosted: Sat Apr 14, 2007 10:41 am    Post subject: Reply with quote

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 ? )

Author Message
tekproxy
Distro Developer


Joined: 06 Apr 2006
Posts: 350
Location: Nederland, Texas

PostPosted: Sat Apr 14, 2007 1:08 pm    Post subject: Reply with quote

Is it print or Print ?

Author Message
CWO



Joined: 04 Feb 2006
Posts: 684
Location: Chicago, IL USA

PostPosted: Sat Apr 14, 2007 3:09 pm    Post subject: Reply with quote

I think hes talking about the file name tek... I never had a problem with case sensitivity of the function names themselves...

Author Message
Pierce



Joined: 02 Feb 2006
Posts: 256

PostPosted: Sat Apr 14, 2007 5:26 pm    Post subject: Reply with quote

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.

Author Message
tekproxy
Distro Developer


Joined: 06 Apr 2006
Posts: 350
Location: Nederland, Texas

PostPosted: Sat Apr 14, 2007 8:45 pm    Post subject: Reply with quote

CWO:
Thanks. I haven't used POL on Linux since... 094. Sad

Post new topic   Reply to topic    PenUltima Online Forum Index -> Bug Reports 097 All times are GMT - 4 Hours
Page 1 of 1

 




Powered by phpBB © 2001, 2005 phpBB Group :: Theme & Graphics by GHS & Scott E. Royalty