Flutty_Go Posted April 30 Share Posted April 30 This is my first time coding, and I want to make a mod for my friend. Please help me. modmain.lua Link to comment https://forums.kleientertainment.com/forums/topic/171298-my-code-works-perfectly-in-a-world-without-caves-but-when-i-run-a-world-with-caves-my-game-starts-to-break/ Share on other sites More sharing options...
Haruhi Kawaii Posted May 1 Share Posted May 1 On 4/30/2026 at 7:12 AM, Flutty_Go said: This is my first time coding, and I want to make a mod for my friend. Please help me. modmain.lua 23.7 kB · 5 downloads You should attach your logs so we can pinpoint the exact issue. It looks like the problem in your modmain stems from the client trying to execute server-only code. Link to comment https://forums.kleientertainment.com/forums/topic/171298-my-code-works-perfectly-in-a-world-without-caves-but-when-i-run-a-world-with-caves-my-game-starts-to-break/#findComment-1865598 Share on other sites More sharing options...
Flutty_Go Posted May 2 Author Share Posted May 2 (edited) Thanks, I think that might be the case, but here's what you asked for caves_server_chat_log.txt caves_server_log.txt client_log.txt master_server_chat_log.txt master_server_log.txt Edited May 2 by Flutty_Go Link to comment https://forums.kleientertainment.com/forums/topic/171298-my-code-works-perfectly-in-a-world-without-caves-but-when-i-run-a-world-with-caves-my-game-starts-to-break/#findComment-1865727 Share on other sites More sharing options...
Haruhi Kawaii Posted May 2 Share Posted May 2 2 hours ago, Flutty_Go said: Thanks, I think that might be the case, but here's what you asked for caves_server_chat_log.txt 43 B · 0 downloads caves_server_log.txt 54.17 kB · 0 downloads client_log.txt 35.18 kB · 0 downloads master_server_chat_log.txt 87 B · 0 downloads master_server_log.txt 60.97 kB · 0 downloads Hmm, I've tested it and couldn't find any issues in the modmain. I might have missed something, or the problem could be elsewhere—possibly even a conflict with another mod. Could you upload the complete mod? Link to comment https://forums.kleientertainment.com/forums/topic/171298-my-code-works-perfectly-in-a-world-without-caves-but-when-i-run-a-world-with-caves-my-game-starts-to-break/#findComment-1865759 Share on other sites More sharing options...
Flutty_Go Posted May 2 Author Share Posted May 2 Maybe it's a problem with my custom pickaxe, I've had a lot of problems with it Mod.zip Link to comment https://forums.kleientertainment.com/forums/topic/171298-my-code-works-perfectly-in-a-world-without-caves-but-when-i-run-a-world-with-caves-my-game-starts-to-break/#findComment-1865766 Share on other sites More sharing options...
Haruhi Kawaii Posted May 2 Share Posted May 2 9 hours ago, Flutty_Go said: Maybe it's a problem with my custom pickaxe, I've had a lot of problems with it Mod.zip 11.87 MB · 3 downloads I've done some testing but didn't find anything unusual. It might be a conflict with another mod. Try disabling all other client and server mods to see if the issue persists. Link to comment https://forums.kleientertainment.com/forums/topic/171298-my-code-works-perfectly-in-a-world-without-caves-but-when-i-run-a-world-with-caves-my-game-starts-to-break/#findComment-1865796 Share on other sites More sharing options...
Flutty_Go Posted May 2 Author Share Posted May 2 I disabled all the mods, but I still have this problem... Link to comment https://forums.kleientertainment.com/forums/topic/171298-my-code-works-perfectly-in-a-world-without-caves-but-when-i-run-a-world-with-caves-my-game-starts-to-break/#findComment-1865810 Share on other sites More sharing options...
Haruhi Kawaii Posted May 2 Share Posted May 2 7 hours ago, Flutty_Go said: I disabled all the mods, but I still have this problem... Let's use the process of elimination. Try removing that custom pickaxe first; if the crash persists, go ahead and disable all the AddPrefabPostInit code. It should only take about 15 minutes to pinpoint the root cause this way Link to comment https://forums.kleientertainment.com/forums/topic/171298-my-code-works-perfectly-in-a-world-without-caves-but-when-i-run-a-world-with-caves-my-game-starts-to-break/#findComment-1865857 Share on other sites More sharing options...
Flutty_Go Posted May 3 Author Share Posted May 3 (edited) I think, i've managed to fix it. Thanks a lot Edited May 3 by Flutty_Go Link to comment https://forums.kleientertainment.com/forums/topic/171298-my-code-works-perfectly-in-a-world-without-caves-but-when-i-run-a-world-with-caves-my-game-starts-to-break/#findComment-1865867 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