Inthezone Posted August 3, 2013 Share Posted August 3, 2013 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? Quote Link to comment Share on other sites More sharing options...
YouGroove Posted August 3, 2013 Share Posted August 3, 2013 Create your own project and just follow the video. You'll learn lot more doing all yourself instead of downloading the lesson Quote Stop toying and make games Link to comment Share on other sites More sharing options...
Inthezone Posted August 3, 2013 Author Share Posted August 3, 2013 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. Quote Link to comment Share on other sites More sharing options...
YouGroove Posted August 3, 2013 Share Posted August 3, 2013 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. Quote Stop toying and make games Link to comment Share on other sites More sharing options...
Rick Posted August 3, 2013 Share Posted August 3, 2013 Does the Darkness Awaits project run for you? Quote Link to comment Share on other sites More sharing options...
Inthezone Posted August 3, 2013 Author Share Posted August 3, 2013 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. Quote Link to comment Share on other sites More sharing options...
Trigger Posted August 3, 2013 Share Posted August 3, 2013 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. Quote Link to comment Share on other sites More sharing options...
AggrorJorn Posted August 3, 2013 Share Posted August 3, 2013 Have you compiled for both Debug and Release? Quote Link to comment Share on other sites More sharing options...
Inthezone Posted August 3, 2013 Author Share Posted August 3, 2013 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. Quote Link to comment Share on other sites More sharing options...
AggrorJorn Posted August 3, 2013 Share Posted August 3, 2013 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 Quote Link to comment Share on other sites More sharing options...
Trigger Posted August 3, 2013 Share Posted August 3, 2013 Do you have a camera in your scene ? Quote Link to comment Share on other sites More sharing options...
Inthezone Posted August 3, 2013 Author Share Posted August 3, 2013 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. Quote Link to comment Share on other sites More sharing options...
Inthezone Posted August 3, 2013 Author Share Posted August 3, 2013 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.