Error in the latest uo.em file

Bug reports and feature requests. New features can only be added to the current development version. Bug-fixes may be back-ported.

Current release: 099 / Current development: 100
Post Reply
Yukiko
Distro Developer
Posts: 2825
Joined: Thu Feb 02, 2006 1:41 pm

Error in the latest uo.em file

Post 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
Tomi
POL Developer
Posts: 478
Joined: Tue Feb 21, 2006 5:08 pm

Re: Error in the latest uo.em file

Post by Tomi »

Thanks for this information, fixed in last rev
gundamwing84
Grandmaster Poster
Posts: 178
Joined: Tue Sep 08, 2009 1:57 am

Re: Error in the latest uo.em file

Post 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!)
Yukiko
Distro Developer
Posts: 2825
Joined: Thu Feb 02, 2006 1:41 pm

Re: Error in the latest uo.em file

Post 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.
gundamwing84
Grandmaster Poster
Posts: 178
Joined: Tue Sep 08, 2009 1:57 am

Re: Error in the latest uo.em file

Post by gundamwing84 »

Indeed :) thankyou
Harley
Forum Regular
Posts: 360
Joined: Sat Mar 18, 2006 1:41 am

Re: Error in the latest uo.em file

Post 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!
Harley
Forum Regular
Posts: 360
Joined: Sat Mar 18, 2006 1:41 am

Re: Error in the latest uo.em file

Post 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!
Post Reply