Stickybagelz Posted July 22, 2014 Share Posted July 22, 2014 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 More sharing options...
orian34 Posted July 22, 2014 Share Posted July 22, 2014 MakeGhostPhysics(inst, 75, .5) what is that? Link to comment Share on other sites More sharing options...
Rincevvind Posted July 22, 2014 Share Posted July 22, 2014 post whole mod or at least prefab, post logor probably nobody are able to help you. Link to comment Share on other sites More sharing options...
Mobbstar Posted July 22, 2014 Share Posted July 22, 2014 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 More sharing options...
Monty_Droppings Posted July 22, 2014 Share Posted July 22, 2014 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 More sharing options...
Stickybagelz Posted July 23, 2014 Author Share Posted July 23, 2014 nvm. i fixed it. thanks guys. Link to comment Share on other sites More sharing options...
Recommended Posts
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.