Page 1 of 1

Error in the latest uo.em file

Posted: Fri Dec 07, 2012 10:18 pm
by Yukiko
In corechanges,txt two new flags were added:
12-05-2012 Tomi:
...
Changed: UO:ListMobilesNearLocationEx added 2 new flags LISTEX_FLAG_PLAYERS_ONLY and LISTEX_FLAG_NPC_ONLY
However there's a syntax error in the LISTEX_FLAG_NPC_ONLY declaration.
It currently reads:

Code: Select all

cosnt LISTEX_FLAG_NPC_ONLY := 0x20;
It should read:

Code: Select all

const LISTEX_FLAG_NPC_ONLY := 0x20;
I'll take this opportunity to thank the devs who commit to the repo for keeping the corechanges.txt file updated. I would have had a bear of a time finding this if you folks weren't so diligent in documenting changes. All eCompile gave me as an error was:
Compiling: C:/pol_Latest/scripts/ai/animal.src
Error reading function declaration in module uo
Compilation failed.
Execution aborted due to: Error compiling file

Re: Error in the latest uo.em file

Posted: Sat Dec 08, 2012 7:11 am
by Tomi
Thanks for this information, fixed in last rev

Re: Error in the latest uo.em file

Posted: Sun Dec 09, 2012 7:38 am
by gundamwing84
This error was wriggling my brain. thankyou so much :)

(downloaded latest rev 3 days ago before the typo was fixed and didnt realize it was up to 612 already from 609!)

Re: Error in the latest uo.em file

Posted: Mon Dec 10, 2012 5:08 am
by Yukiko
Yeah. eCompile's error report was vague at best. So after manually looking at uo.em for about 15 minutes I decided to look at the corechanges.txt file to see if there had been any changes to uo.em since the last revision (or whenever I had last updated and compiled). When I saw the new const declarations listed in corechanges I took a look at those and found the typo. As I mentioned above if those hadn't been documented it would have been a bear to find. I would have had to read every line in uo.em looking for the problem. Using a code highlighting editor helps too but corechanges certainly pinpointed where to look.

So again, thanks to the commiters for keeping corechanges.txt updated.

Re: Error in the latest uo.em file

Posted: Fri Dec 14, 2012 6:41 am
by gundamwing84
Indeed :) thankyou

Re: Error in the latest uo.em file

Posted: Wed Jan 08, 2014 8:32 am
by Harley
Today I downloaded latest core from 2013-09-03 for win & linux system (ubuntu).
After recompile, I have too many errors with
Error reading function declaration in module uo
Yukiko, how u fixed this problem?

With best regards!

Re: Error in the latest uo.em file

Posted: Sun Jan 12, 2014 2:47 am
by Harley
Have been fixed.
Problem was in my function PlaySound
I didn't find at uo.em this function, but when I added "_" = Play_Sound - the problem disappeared!