ensuring AE is open

Create fast, sprite powered games with Animation Engine, co-developed with DerBrill Software!

Moderators: heatherlaine, robinmiller, kevinmiller, malte

Post Reply
niconiko
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 32
Joined: Mon Jul 17, 2006 2:28 am
Location: Motegi, Japan

ensuring AE is open

Post by niconiko » Thu Nov 12, 2009 2:12 am

This is a very basic problem.

In my preOpenStack handler I have:

Code: Select all

if "animationEngine" is not among the lines of the stacksInUse then
if there is a stack animationEngine then 
      start using "animationengine"
    else
       answer "animationEngine is not open. Please open animationEngine 3 and start using it"
         exit to top
      end if
   end if
But, I get the "AE not open" message.

AE is in the same directory as the stack, and in the Rev engine directory.

I know that I can open AE from within the Rev development environment. But there must be a way of getting a stack or standalone to directly open AE.

Thank you.

Janschenkel
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 977
Joined: Sat Apr 08, 2006 7:47 am
Location: Aalst, Belgium
Contact:

Post by Janschenkel » Thu Nov 12, 2009 8:39 am

The problem is, the engine doens't find the animationEngine stack just because it's in the same directory as your stack; it looks in the defaultFolder and a few odd places.
The easiest way is to add animationEngine to the stackfiles of your project's mainstack. Open the Stack Inspector, switch to the Stack Files panel, and click the 'folder' icon to select the animatinEngine.rev file on the hard disk.
Now your preOpenstack handler will work just fine, and as a bonus, the standalone builder will automatically include a copy of the animationEngine stack along with the built standalone.

Jan Schenkel.
Quartam Reports & PDF Library for LiveCode
www.quartam.com

niconiko
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 32
Joined: Mon Jul 17, 2006 2:28 am
Location: Motegi, Japan

Post by niconiko » Thu Nov 12, 2009 1:43 pm

Thanks Jan. That did the trick.

Post Reply

Return to “Animation Engine”