web build problem

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

Moderators: heatherlaine, kevinmiller, robinmiller, 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

web build problem

Post by niconiko » Sun May 01, 2011 11:00 pm

Using LiveCode 4.6 and AE3 for a revlet running on my onrev account.

Before building, in the standalone settings for "Web", I've:

-- (under "General") checked "Select inclusions for standalone"
-- (under "Stacks") used "Add stack files" to add "animation engine"
-- (under "Web") tried both on and off with "Security settings"

Also, in the stack script there's this:

Code: Select all

on preopenstack
   set the loc of this stack to the screenloc
   if the environment is not "browser" then
      put the itemdel into tSavedDel
      set the itemdel to "/"
      put item 1 to -2 of the effective filename \
            of this stack into gDataDirectory
      set the itemdel to tSavedDel
      put "/booboo/" after gDataDirectory
   else
      put "http://somewhere.com/path/to/booboo/" into gDataDirectory
   end if
   
      ## Check if AE is available
   
   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
   
end preopenstack

Having done all that:

-- get a "Could not auto-detect inclusions..." message during the standalone build
-- when the revlet loads, get a ""animationEngine is not open. Please open animationEngine 3 and start using it" message

The revlet itself loads and works -- that is, all non-AE related elements of it.

Please advise.

Thank you.

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: web build problem

Post by Mark » Mon May 02, 2011 12:42 am

Hi Nico,

In RevLets, you need to add additional stacks as substacks rather than stack files.

The password in AE probably prevents the standalone builder from searching. Select the inclusions manually.

More info about building standalones and why it may fail is available here.

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

Post Reply

Return to “Animation Engine”