Jump to content

The best image PZ lua modders will see today.


lemmy101

Recommended Posts

debugccc1.png

 

1) Can look at the entire map (both streamed in and meta), with drag pan, mouse wheel zoom. Clicking anything will show it in the list to the lest. In case of grid squares will list everything on it.

 

debug2.png

 

Then you can double click any of those to open them up in the object viewer (in this case Bob Smith's IsoPlayer object), to nose at all their properties (java or lua, that is. Any java object is fully browsable in the object viewer)

 

debugaaa.png

 

2) You can put a data breakpoint on any entry of a lua table, so it can either break when the value in it is read, or break when the value is overwritten. It will break at the exact line of lua code that's affecting that table entry, allowing you to see why a certain table has a specific value in it shouldn't.

 

you can also add any table element into the watch window, to keep an eye on it.

 

3) You can now reload any lua file while in the game. Warning: This may have weird side-effects in some cases due to the way tables / functions stored in other parts of lua or java may still point to the old code.

Link to comment
Share on other sites

  • 4 months later...

With that you can look as the code being called / executed step by step, see what's going wrong etc. (I personally never managed to boot the game with SHIFT)

 

If i'm not wrong, lua is also a "plug and play" language (forgive the probably innacurate term); as long as you don't need to load textures on game boot, you can write code and execute it in game, without a restart, kinda like xml scripts. Which the debugger allows you to do ?

Link to comment
Share on other sites

  • 4 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...