Search the Community
Showing results for tags 'Save'.
-
Hello, I'll get straight to the point, looking to create UI that incorporates Save/Load functionality. I did see Piller's download for save load and saying it should be attached to Pivot, however wish to further extend that whole thing by creating custom UI with Save Load and options... Any advice on how to accomplish this? Thank you,
-
Hello, Because I made myself some thoughts about a saving mechanic for my current project, I searched the web and especially the Leadwerks site for how to save simple game data, like the players health or position. The only kind of useful thing I found which works for LUA was this: http://www.leadwerks.com/werkspace/topic/2103-save-data-to-lua-syntax-as-textcompressed/page__hl__save+data and this: http://www.leadwerks.com/werkspace/topic/1853-howto-using-lua-script-as-data-file/ I actually was able to create a data file and read it into my code with "dofile". However I didnt find out how to create/save a file with lua yet. I searched the Leadwerks API and found the Stream and FileSystem Class. So I tried the following code: function Script:Start() local gamedata = FileSystem:WriteFile("Test.txt") end It didnt work, and I also dont know how it works. Where has the file been created? I searched my PC and the Projectsfolder but couldnt find such a file and I also dont get any kind of error message. I guess this is completely wrong, but I was just playing around, because I don't have that much experience with Lua and Leadwerks. The file you can download in the first thread I posted ("TStoreData.lua") doesnt work anymore and I cant find where he saves data. That you clearly undersand what I want. I would like to do something like this: function Script:Start() local gamedata = {} gamedata.playerHealth = 100 gamedata.playerWeapon = "Sword" gamedata.playerPos = Vec3(10, 100, 53) FileSystem:WriteFile("gamedata.lua", gamedata) end This is just some code that you know what I mean. I know this doesnt work xD. So could you please help me out a little bit . PS.: I kind of understood what AndyGFX wrote in his post, I just couldnt find anything how to save a file.
-
I wish for Leadwerks some functions for saving 3D model stuff. Not inside the editor, I wish to export a model in .fbx format and .mdl as a prefab it would also be nice.
-
just ideas/thoughts at auto save option its not clear if it wrote only a backup file or just save the map. at run the map is saved. the * from filename disappear, so i think the maps is overwritten. what if i do some tests in my map? i lost the original file? in my view the autosave save .autosave.map at run save as .beforerun.map or .temp.map at save .map > .backup1...5.map then save .map
-
This is a bug that happens a lot to me. After placing objects and working on terrain my map won't save and then all my work will be deleted. I believe this is caused by the same bug that was pointed out in my last post - http://www.leadwerks.com/werkspace/topic/10631-directional-light-and-model-editor-bug/ I really can't do any more work like this. I have lost to many hours of my time to this specific issue. Looks like the Hunt for Food is on hold. Video - https://www.youtube.com/watch?v=mjyjNBnFnTM&feature=youtu.be I can provide my project if needed, just let me know. Edit-- I looked into my backup maps and all the backups are named temp.map and when I try to open them I get Exception Access Violation.