lilpaladin21 Posted March 14, 2016 Share Posted March 14, 2016 How do I make the save feature you used in the video? Quote Link to comment Share on other sites More sharing options...
thehankinator Posted March 17, 2016 Share Posted March 17, 2016 In App.cpp, I think it would be a good idea to create globals in lua for window, world and context. Not having these globals breaks any script that uses them which is very possible since these global variables are available in the stock Main.lua and also in LEX Main.lua when in sandbox mode. A work around is to adding a few lines in the LEX Main.lua but I think the right change is modifying App.cpp. app = App:Create(title, backgroundmap) app:SetStartMap(startmap) world=World:GetCurrent() window=Window:GetCurrent() context=Context:GetCurrent() 1 Quote Link to comment Share on other sites More sharing options...
reepblue Posted March 18, 2016 Author Share Posted March 18, 2016 I did this with the newer build up above, but I'll add it to this version in due time. Thanks for reminding me. 1 Quote Cyclone - Ultra Game System - Component Preprocessor - Tex2TGA - Darkness Awaits Template (Leadwerks) If you like my work, consider supporting me on Patreon! Link to comment Share on other sites More sharing options...
Mattline1 Posted June 12, 2016 Share Posted June 12, 2016 I recently got round to checking this template out, it's so useful! Just little things like the prefab objects(lights, cameras etc..) it makes the process of building levels much smoother. Love the work you've done with this Quote Website Twitter Link to comment Share on other sites More sharing options...
reepblue Posted June 12, 2016 Author Share Posted June 12, 2016 Thanks man, If your interested in the newer project, please take a look at this blog. In the next version, I'll probably not be releasing a lot of scripts and such so the engine can continue to update without conflicts. Glad it helps. Quote Cyclone - Ultra Game System - Component Preprocessor - Tex2TGA - Darkness Awaits Template (Leadwerks) If you like my work, consider supporting me on Patreon! Link to comment Share on other sites More sharing options...
metaldc4life Posted July 22, 2016 Share Posted July 22, 2016 Man this is great! I'm just getting back into Leadwerks and am really enjoying this! Thank You! Quote Link to comment Share on other sites More sharing options...
DooMAGE Posted August 11, 2016 Share Posted August 11, 2016 Hello, I am getting this error: Map file version 42 not supported. Update this project in the project manager to get the latest executable, or recompile your game. Quote My Leadwerks games! https://ragingmages.itch.io/ Link to comment Share on other sites More sharing options...
Jazz Posted August 11, 2016 Share Posted August 11, 2016 I am getting this error: I believe he used the beta to make the map. 1 Quote --- Scott Using Windows 7 Ultimate 64 bit/Core I7-2700K @ 4312mhz/24G RAM/Nvidia GTX 1060 Link to comment Share on other sites More sharing options...
DooMAGE Posted August 11, 2016 Share Posted August 11, 2016 I believe he used the beta to make the map. Hey SGB I was getting the error when creating new maps. Recompiled the solution and now it's working again. The joys of own the Professional Edition 1 Quote My Leadwerks games! https://ragingmages.itch.io/ Link to comment Share on other sites More sharing options...
DooMAGE Posted August 11, 2016 Share Posted August 11, 2016 2) Something is off with the loading of the maps, in the editor I could load a map just fine but if the game is published as soon as the "Changemap" script is called the game crashed without any warnings. I have the same problem here. I created a new project with LEX template and moved my files from the old project to the new one. I have a script to change maps and now I am getting the follow error: Failed to read file "F:/Development/Leadwerks/Projects/LogRiders/start2". I tried with changemapname=self.mapname and the new LoadMap(self.mapname) from LEX I can play the map if a load in the editor. [EDIT] Also, when in no sandbox mode I use: window:KeyDown(Key.N) I get: attempt to index global 'window' (a nil value) Tried to press F11 on an empty project made with the template and nothing shows up. [EDIT2] About the map change, for some reason he is not looking for the maps in the /Maps folder when you try to change maps. I have to put something like "Maps/start3.map" to work. Thanks in advance Quote My Leadwerks games! https://ragingmages.itch.io/ 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.