dinhkarate Posted June 27, 2022 Share Posted June 27, 2022 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 Link to comment https://forums.kleientertainment.com/forums/topic/141255-is-it-possible-to-debug-code-without-create-a-server-and-join/ Share on other sites More sharing options...
-LukaS- Posted June 27, 2022 Share Posted June 27, 2022 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. Link to comment https://forums.kleientertainment.com/forums/topic/141255-is-it-possible-to-debug-code-without-create-a-server-and-join/#findComment-1580022 Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now