Change to the combat hook?

Report core bugs regarding the Ultima Online Emulator Core release (version 097). You can attach your Core Dump. One bug per post.
Locked
elenaran
New User
Posts: 19
Joined: Wed Apr 12, 2006 5:42 pm

Change to the combat hook?

Post by elenaran »

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: Select all

SystemHookScript newcombat.ecl
{
	Attack AttackScript

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

Code: Select all

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...
MuadDib
Former Developer
Posts: 1091
Joined: Sun Feb 12, 2006 9:50 pm

Post by MuadDib »

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 ? )
User avatar
tekproxy
Forum Regular
Posts: 352
Joined: Thu Apr 06, 2006 5:11 pm

Post by tekproxy »

Is it print or Print ?
User avatar
CWO
POL Expert
Posts: 1160
Joined: Sat Feb 04, 2006 5:49 pm

Post by CWO »

I think hes talking about the file name tek... I never had a problem with case sensitivity of the function names themselves...
Pierce
Forum Regular
Posts: 420
Joined: Thu Feb 02, 2006 8:33 am

Post by Pierce »

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.
User avatar
tekproxy
Forum Regular
Posts: 352
Joined: Thu Apr 06, 2006 5:11 pm

Post by tekproxy »

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