Jump to content

Recommended Posts

I see, everytime I have to test my code in my mod, I have to create a server with this mod and I have to join it. Is it possible to debug code without joining a game?
 

Spoiler

I think it isn't possible but I want someone to confirm this. At least I've tried

 

When in-game you can open the console by pressing ~ (tilde) and type in c_reset() to reset the world. This will reload your mod and put you right back into the server you were just in after reloading, assuming the changes you made don't crash the game.

 

You can also do this by adding

require "debugkeys"

to your modmain.lua. This will allow you to reset the game by pressing ctrl + R.

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