Pootis23421 Posted January 19, 2024 Share Posted January 19, 2024 Hi, I'm trying to make my first mod that forces pigs to be tamed forever, (I haven't written code before) I wrote the following code require("pigman") TUNING.PIG_LOYALTY_MAXTIME = 999999 TUNING.PIG_LOYALTY_POLITENESS_MAXTIME_BONUS = 999999 TUNING.PIG_LOYALTY_PER_HUNGER = 999999 inst.components.follower.maxfollowtime = 999999 if ( TUNING.PIG_LOYALTY_MAXTIME == 999999 ) then print("TUNING.PIG_LOYALTY_MAXTIME realy == 999999") else print("ERROR TUNING.PIG_LOYALTY_MAXTIME isn't == 999999") however, when I try to create a game with this mod (it's server-based), the game just gets stuck on the inscription "generating a world" generates a world, and I don’t understand why, I found nothing useful in client.log, but just in case I’ll attach it, please tell me what I did wrong modinfo.lua modmain.lua Here is client_logclient_log.txt Link to comment https://forums.kleientertainment.com/forums/topic/153914-mod-error/ Share on other sites More sharing options...
Mr.CrazyPotato Posted November 28, 2024 Share Posted November 28, 2024 Hello. I can see the error in client_log.txt [00:00:35]: FrontendLoadMod PigForever [00:00:35]: Could not load mod_config_data/modconfiguration_PigForever [00:00:35]: Fontend-Loading mod: PigForever Version:1.0 [00:00:35]: Mod: PigForever Loading modservercreationmain.lua [00:00:35]: Mod: PigForever Mod had no modservercreationmain.lua. Skipping. [00:00:35]: Mod: PigForever Loading modworldgenmain.lua [00:00:35]: Mod: PigForever Mod had no modworldgenmain.lua. Skipping. [00:00:38]: Could not load mod_config_data/modconfiguration_PigForever Well, the problem is not in the modmain.lua for this problem, rather modinfo.lua, you simply forgot to put this line of code to tell game if your mod is client or server. I can't say if it will work now, but at least there won't be such error. Just put in your modinfo.lua this line under forumthread. Also if you're going to test your mods consider using less mods so game runs faster. all_clients_require_mod = true Link to comment https://forums.kleientertainment.com/forums/topic/153914-mod-error/#findComment-1763790 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