Jump to content

Ive made a huge mistake. #modtroubles


Recommended Posts

ok. maybe not that huge. but i was tooling around with some hunger and sanity and now ive done goofed.

the game crashes. and the mod wont even load. have a look

 

local fn = function(inst)
    inst.components.health.maxhealth = 100
    inst.components.hunger.maxhunger = 125
    inst.components.sanity.max = 250
    inst.components.sanity.current = 250
    inst.components.sanity.night_drain_mult = 2
    inst.components.locomotor.walkspeed = (TUNING.WILSON_WALK_SPEED * 1.2)
    inst.components.locomotor.runspeed = (TUNING.WILSON_RUN_SPEED * 1.3)
    inst.components.hunger:SetMax(TUNING.WILSON_HUNGER * 1.0)
    inst.components.combat.damagemultiplier = 1.0
 
MakeGhostPhysics(inst, 75, .5)
inst.MiniMapEntity:SetIcon( "visited.png" )
inst.soundsname = "wilson"
 
end
 
im not done. this is basically just a template of what i planned on doing.

 

Link to comment
Share on other sites

 

ok. maybe not that huge. but i was tooling around with some hunger and sanity and now ive done goofed.

the game crashes. and the mod wont even load. have a look

 

local fn = function(inst)
    inst.components.health.maxhealth = 100
    inst.components.hunger.maxhunger = 125
    inst.components.sanity.max = 250
    inst.components.sanity.current = 250
    inst.components.sanity.night_drain_mult = 2
    inst.components.locomotor.walkspeed = (TUNING.WILSON_WALK_SPEED * 1.2)
    inst.components.locomotor.runspeed = (TUNING.WILSON_RUN_SPEED * 1.3)
    inst.components.hunger:SetMax(TUNING.WILSON_HUNGER * 1.0)
    inst.components.combat.damagemultiplier = 1.0
 
MakeGhostPhysics(inst, 75, .5)
inst.MiniMapEntity:SetIcon( "visited.png" )
inst.soundsname = "wilson"
 
end
 
im not done. this is basically just a template of what i planned on doing.

 

 

You're setting max hunger twice?

Other than that, I can't help you either

 

Link to comment
Share on other sites

 

ok. maybe not that huge. but i was tooling around with some hunger and sanity and now ive done goofed.

the game crashes. and the mod wont even load. have a look

 

local fn = function(inst)
    inst.components.health.maxhealth = 100
    inst.components.hunger.maxhunger = 125
    inst.components.sanity.max = 250
    inst.components.sanity.current = 250
    inst.components.sanity.night_drain_mult = 2
    inst.components.locomotor.walkspeed = (TUNING.WILSON_WALK_SPEED * 1.2)
    inst.components.locomotor.runspeed = (TUNING.WILSON_RUN_SPEED * 1.3)
    inst.components.hunger:SetMax(TUNING.WILSON_HUNGER * 1.0)
    inst.components.combat.damagemultiplier = 1.0
 
MakeGhostPhysics(inst, 75, .5)
inst.MiniMapEntity:SetIcon( "visited.png" )
inst.soundsname = "wilson"
 
end
 
im not done. this is basically just a template of what i planned on doing.

 

If you were going for hunger rate on the second one, it should've been:

inst.components.hunger:SetRate(TUNING.WILSON_HUNGER_RATE* YOUR_NUMBER_HERE)
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

×
  • Create New...