Page 1 of 1

[11 Apr 2011] Bug in Hollywood 4.7

Posted: Sat Jun 13, 2020 5:32 pm
by nexus
Note: This is an archived post that was originally sent to the Hollywood mailing list on Mon, 11 Apr 2011 13:15:37 +0200 (CEST)

I think, i mentioned it already some time ago for some previous version .. but just in case, i didn't:

When defining own constants like

Code: Select all

Const #MYCOLOR = $004353
You can't use those constant in TextOut-Objects *IF* you want to compile the script to a machine binary (tested with amigaos3 and amigaos4):

Code: Select all

TextOut(0,0,"[color=#MYCOLOR]bla bla[/color]");
This gives an error about "unknown" constant. When executing the script directly (without compiling it to some machine binary), the line above works.

Predefined constants, like #RED do always work -- only self defined constants don't work.

regards, Tom

[15 Apr 2011] Re: Bug in Hollywood 4.7

Posted: Sat Jun 13, 2020 5:32 pm
by airsoftsoftwair
Note: This is an archived post that was originally sent to the Hollywood mailing list on Fri, 15 Apr 2011 12:28:55 +0200
This gives an error about "unknown" constant. When executing the script directly (without compiling it to some machine binary), the line above works.

Predefined constants, like #RED do always work -- only self defined constants don't work.
Yes, that's a bug. It's already fixed though in my current builds because Allanon reported this bug earlier but in a different context. User-constants also didn't work when using @INCLUDE with applets. But it's the same bug (user constants were not exported correctly to applets/executables).