[Linux] Hollywood 8 console mode

Find quick help here to get you started with Hollywood
Post Reply
User avatar
r-tea
Posts: 139
Joined: Tue Feb 16, 2016 11:48 pm
Location: Zdzieszowice, Poland
Contact:

[Linux] Hollywood 8 console mode

Post by r-tea »

I use Puppy Linux BookwormPup.
I copied all the Hollywood files from my CD to /root/my-applications/bin/Hollywood:
Hollywood, Hollywood.key, Hollywood.sys, Interpreter and the directories [Docs], [Examples], [LinkerPlugins], [Plugins] and [projects].
In the console, when I navigate to Hollywood's home directory, and run:

Code: Select all

./Interpreter projects/test.hws
with the followin code:

Code: Select all

@DISPLAY {1, 640, 480, "Test"}

While Not IsKeyDown("esc")
 Flip
Wend

End
I get an error window saying "Tag expected!" pointing to line 1.

However, when I run this official example:

Code: Select all

./Interpreter Examples/Hollywood/FloodFill/FloodFill.hws
everything works fine.

What am I doing wrong?
Flinx
Posts: 342
Joined: Sun Feb 14, 2021 9:54 am
Location: Germany

Re: [Linux] Hollywood 8 console mode

Post by Flinx »

You need not only values in the table but tags as identifier. Look at the examples for @DISPLAY in the manual.

Code: Select all

@DISPLAY {Width=640, Height=480, Title="Test"}

BeginDoubleBuffer()
While Not IsKeyDown("esc")
 Flip
Wend
User avatar
r-tea
Posts: 139
Joined: Tue Feb 16, 2016 11:48 pm
Location: Zdzieszowice, Poland
Contact:

Re: [Linux] Hollywood 8 console mode

Post by r-tea »

Thank you. You were right — I was in a bit of a hurry coming back to Hollywood after a long break.
Now, another issue:
"Double buffering mode is not currently active!" — this error points to the line with the Flip function.
Flinx
Posts: 342
Joined: Sun Feb 14, 2021 9:54 am
Location: Germany

Re: [Linux] Hollywood 8 console mode

Post by Flinx »

I've already added the solution for this, but without mentioning it. Try my complete example :)
User avatar
r-tea
Posts: 139
Joined: Tue Feb 16, 2016 11:48 pm
Location: Zdzieszowice, Poland
Contact:

Re: [Linux] Hollywood 8 console mode

Post by r-tea »

Thank you. It works the way I expected.
Post Reply