Jump to content

Changing levels for development purpose


aiaf
 Share

Recommended Posts

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.

I made this with Leadwerks/UAK:

Structura Stacky Desktop Edition

Website:

Binary Station

Link to comment
Share on other sites

@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.

 

 

Link to comment
Share on other sites

  • Josh unpinned this topic

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...