Jump to content

Recommended Posts

Posted

Hello.

I am on a Mac. I am trying to follow the Flowgraph Editor tutorial made by Aggror. I get the following error when I create a box and press run:

Failed to launch "/Applications/Leadwerks/Projects/Lesson/Lesson1.app"

 

I built the project in Xcode but still get the error. Any suggestions how to fix this?

Posted

Yes I tried that. I'm using the demo version. I tried to create primitives (spheres etc) and attach scripts and then press run but I get the same error every time. At this point I'm just trying to get the software to show something when I press run inside the Leadwerks window and I am having no luck.

Posted

Why Lesson.App ?

All tutorial is Lua only , you don't need Visual C++.

 

You will only need to compile an empty project a first time to be able to run it.

But no need of Visual C++ for that turorial.

Stop toying and make games

Posted

Yes Darkness Awaits runs for me; it ran out of the box and I did not have to compile it. I'm following Aggror's tutorial but I am on a MAC so the first time I tried to start my own project(s) I compiled using XCode since I only see XCode files in the Projects folder.

Posted

Hi, that error means that you dont have a release build of your proyect and i believe that Xcode 4 just build for Debug by default, so my recomendations are Configure Xcode to Build for release or press the debug arrow in the leadwerks editor, hope this make sense and sorry for my bad english.

Posted

Trigger and Aggror:

 

I googled and found that in Xcode I can go to Project > Scheme > Edit Scheme and change the Run to Debug or Release. I ran the file in Debug and then as a Release. Now when I click Run in LeadWerks I see a rapidly flickering screen with a white color and other colors.

Posted

Hmm weird. What happens when you try the first tutorial (no flowgraph):

 

local pos
--This function will be called once when the program starts
function App:Start()

 --Set the application title
 self.title="_1_GettingStarted"

 --Create a window
 self.window=Window:Create(self.title)
 self.window:HideMouse()

 --Create the graphics context
 self.context=Context:Create(self.window,0)
 if self.context==nil then return false end

 --Create a world
 self.world=World:Create()

 pos = Vec3(2, 2)

 return true
end
--This is our main program loop and will be called continuously until the program ends
function App:Loop()

 --If window has been closed, end the program
 if self.window:Closed() or self.window:KeyDown(Key.Escape) then return false end

 --Update the x position of the pos vector
 pos.x = pos.x + (1 * Time:GetSpeed())
 --Update the app timing
 Time:Update()

 --Update the world
 self.world:Update()

 --Render the world
 self.world:Render()
 self.context:Clear();
 --Draw yellow rectangle
 self.context:SetColor(120,120,0)
 self.context:DrawRect(0, 0, 100, 60)
 -- Draw red text
 self.context:SetColor(255,0,0)
 self.context:SetBlendMode(Blend.Alpha)
 self.context:DrawText("Hello world!",pos.x, 500 )
 self.context:SetBlendMode(Blend.Solid)
 -- Set background color to black
 self.context:SetColor(0,0,0)

 --Refresh the screen
 self.context:Sync()

 --Returning true tells the main program to keep looping
 return true
end

Posted

I haven't gotten to the FlowGraph part yet. I see what I described when I press Run in the Editor or when I set up a primitive and press Run. I installed and uninstalled the software several times and get the same thing.

Posted

I added a camera to the scene and now I get a solid black screen that says "trial version" at the bottom. Although there is a directional light in the scene and a sphere is in the scene I just see a black screen now when I press Run or Debug.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...