aiaf Posted May 10, 2019 Share Posted May 10, 2019 There is a new Main.lua.orig which is the unmodified Main.lua you get from a new project. Want to use the editor for testing development, rename/copy the Main.lua.orig over the game Main.lua and use editor as usually. Want to test inside game, copy back the game modified Main.lua. Want to change levels in game: Quote modify gworld file do local _={player={1,{y=1.2809765338897705,x=-2.2399992942810059,z=-1.920012354850769} etc After the player={ insert the level you want to load (1,2,3,4). Quote Alt-F11 to activate debug c key activate the console Esc to exit Example input: loadmap 01 levels so far: 01,02,03,04 Sometimes gworld file might change and you could have older version, delete gworld in case of crash , the file is auto generated correctly at startup. I think this is good enough for our purposes. Quote I made this with Leadwerks/UAK: Structura | Stacky Desktop Edition Website: Binary Station Link to comment Share on other sites More sharing options...
mdgunn Posted May 12, 2019 Share Posted May 12, 2019 @aiaf Can you confirm that loadmap still works. I get crashes. Tried removing gworld to allow it to regenerate but still fails. I'm trying to load 03 so I can look more closely at how to integrate VR with cryo. Seemed to fail on any level though. for me. Could be something I've caused so just wondering if still working for you or if you can see what's up. Most of the time I use the simplified main.lua.orig (or a variant) but in trying to use items in VR room it's complaining of "attempt to index global 'gui' (a nil value), probably because I not entering using the full main.lua. Quote Link to comment Share on other sites More sharing options...
aiaf Posted May 13, 2019 Author Share Posted May 13, 2019 Works, and yes you need the game main lua because it uses the gui system classes. I will try to make this more robust, but i tried with level 2 and 3 after some changes and it works. Quote I made this with Leadwerks/UAK: Structura | Stacky Desktop Edition Website: Binary Station 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.