ecompile bug?

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
xeon
Forum Regular
Posts: 338
Joined: Fri Oct 31, 2008 3:18 am

ecompile bug?

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

Re: ecompile bug?

Post by Harley »

xeon, how did u solve this problem??
xeon
Forum Regular
Posts: 338
Joined: Fri Oct 31, 2008 3:18 am

Re: ecompile bug?

Post by xeon »

I think I changed the function name, because in 099 it was duplicate.
Harley
Forum Regular
Posts: 360
Joined: Sat Mar 18, 2006 1:41 am

Re: ecompile bug?

Post by Harley »

Can u tell what was the function?
Harley
Forum Regular
Posts: 360
Joined: Sat Mar 18, 2006 1:41 am

Re: ecompile bug?

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