Menu

#2 The Worm Hunter Demo on linux

open
nobody
None
5
2009-01-09
2009-01-09
No

There seem to be some problems with the Worm Hunter demo under linux. I thought I'd better tell you about the errors I get when trying to build it.

1. GetKeyState
main.pas(280,21) Error: Identifier not found "GetKeyState"
main.pas(280,29) Error: Identifier not found "VK_LEFT"

These are defined in the windows unit. Maybe there are similar linux versions somewhere?

2. If I comment out the lines with GetKeyState everything compiles and runs, but I get an exception when the Particle system is created:

Main.pas, 186: AdSplatterEffect := TAdParticleSystem.Create(AdDraw);

Discussion

  • Mattias Nyrell

    Mattias Nyrell - 2009-01-09

    Answering part of this problem myself... :-)

    Adding the units LCLIntf and Interfaces makes GetKeyState work.

    Changing the key definitions from VK_LEFT to AVK_LEFT, and adding AdEvents makes the keyhandling work completely.

    If I use the above fix and uncomment everything about the particle system the demo works and you can walk around the landscape. If you step on a work there is an exception though: RunError 232

     
  • Mattias Nyrell

    Mattias Nyrell - 2009-01-09

    > If you step on a work there is an exception though: RunError 232

    Which can probably be ignored since it was related to the particle system, which I commented out to get the project to compile.