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 https://forums.kleientertainment.com/forums/topic/38796-ive-made-a-huge-mistake-modtroubles/ 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 https://forums.kleientertainment.com/forums/topic/38796-ive-made-a-huge-mistake-modtroubles/#findComment-514281 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 https://forums.kleientertainment.com/forums/topic/38796-ive-made-a-huge-mistake-modtroubles/#findComment-514285 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 https://forums.kleientertainment.com/forums/topic/38796-ive-made-a-huge-mistake-modtroubles/#findComment-514305 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 https://forums.kleientertainment.com/forums/topic/38796-ive-made-a-huge-mistake-modtroubles/#findComment-514553 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 https://forums.kleientertainment.com/forums/topic/38796-ive-made-a-huge-mistake-modtroubles/#findComment-514801 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