Page 1 of 1

ecompile bug?

Posted: Thu Jun 20, 2013 12:32 pm
by xeon
I created a test.src with this content:

Code: Select all

use uo;

function PlaySound( a )
endfunction

and when compiling it I get:
C:\games\pol099\scripts>ecompile.exe -C ecompile.cfg.windows -u -a -b
EScript Compiler v1.12
Copyright (C) 1993-2013 Eric N. Swanson

Compiling: C:/games/pol099/scripts/test.src
Error reading function declaration in module uo
Error compiling statement at C:\games\pol099\scripts\test.src, Line 1
Compilation Error:
Near: use uo;
File: C:\games\pol099\scripts\test.src, Line 1
Compilation Summary:
Compiled 1 script in 1719 ms.
1 of those script had errors.

Re: ecompile bug?

Posted: Wed Jan 08, 2014 1:15 pm
by Harley
xeon, how did u solve this problem??

Re: ecompile bug?

Posted: Fri Jan 10, 2014 2:30 am
by xeon
I think I changed the function name, because in 099 it was duplicate.

Re: ecompile bug?

Posted: Fri Jan 10, 2014 4:54 am
by Harley
Can u tell what was the function?

Re: ecompile bug?

Posted: Sun Jan 12, 2014 2:46 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!