YouGroove Posted April 13, 2014 Share Posted April 13, 2014 Another great bug. Nothing special, LE3 should run the level. I modified some simple Lua code, than launching i got that problem ?? Better log needed , more precise ? Here is the ouput panel log : Executing "C:\LE3\spaceShooter\SpaceShooter\SpaceShooter.exe"... Initializing Lua... Executing file "C:/LE3/spaceShooter/SpaceShooter/Scripts/Error.lua" Executing file "C:/LE3/spaceShooter/SpaceShooter/Scripts/App.lua" Initializing OpenGL4 graphics driver... OpenGL version 421 GLSL version 420 Device: AMD Radeon HD 7600M Series Loading map "C:/LE3/spaceShooter/SpaceShooter"... Setting breakpad minidump AppID = xxxx Steam_SetMinidumpSteamID: Caching Steam ID: xxxxxxxxx [API loaded no] Process Complete. Quote Stop toying and make games Link to comment Share on other sites More sharing options...
YouGroove Posted April 13, 2014 Author Share Posted April 13, 2014 What i don't understand is that the level map is loaded and read ok. Why should LE3 give that message when running a map ? Quote Stop toying and make games Link to comment Share on other sites More sharing options...
Guppy Posted April 13, 2014 Share Posted April 13, 2014 Going by The other lines, this:Loading map "C:/LE3/spaceShooter/SpaceShooter" Is not a file but a directory Quote System: Linux Mint 17 ( = Ubuntu 14.04 with cinnamon desktop ) Ubuntu 14.04, AMD HD 6850, i5 2500k Link to comment Share on other sites More sharing options...
YouGroove Posted April 13, 2014 Author Share Posted April 13, 2014 Yep, i see the directory and can explore it, LE3 just load the map and assets from that directory. Problem found : it's code problem in App.lua: I wanted to use some callback function to have the list of all entities loaded on the map. --Load a map local mapfile = System:GetProperty("map","Maps/start.map") -- if Map:Load(mapfile)==false then return false end if Map:Load(mapfilename,"Callback")==false then return false end self.level = true I just removde it and put standard code : if Map:Load(mapfile)==false then return false end And it worked fine. I don't know why the Callbakc code i used from wiki havd that problem here ? http://leadwerks.wikidot.com/wiki:entityindexer Whatever i'll find another solution. Thread can be closed. Thread can be closed. Quote Stop toying and make games Link to comment Share on other sites More sharing options...
Einlander Posted April 14, 2014 Share Posted April 14, 2014 We would need to see your callback function to know if Leadwerks is doing something wrong or if you did something wrong. Quote Link to comment Share on other sites More sharing options...
YouGroove Posted April 14, 2014 Author Share Posted April 14, 2014 The callback is exactly the WIKI one : function Callback(entity) App.entities[entity] = entity end Don't know if the code is prooven tested ? or if it is some reading problem for that function ? Quote Stop toying and make games 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.