Jump to content

Recommended Posts

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
Share on other sites

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
 Share

×
  • Create New...