Leonardo Cox Posted November 1, 2016 Share Posted November 1, 2016 Just now, Tezumoto said: Here is the code works, a problem with a part which is related to the emptying of the mind. copy.lua Thats deep. Link to comment Share on other sites More sharing options...
. . . Posted November 1, 2016 Share Posted November 1, 2016 I really can't try to help unless you give me the entire character mod then I can see exactly why it's crashing because I have no idea what's even causing the crash..................................................................................................................................................... Link to comment Share on other sites More sharing options...
Tesumoto Posted November 1, 2016 Author Share Posted November 1, 2016 18 minutes ago, SuperDavid said: try removing all inst.component.sanity.dapperness from your character. And when you give a crash can you also please say what line of code caused the crash ? Here, try it at you. https://dropfile.to/Y65sqRj Link to comment Share on other sites More sharing options...
. . . Posted November 1, 2016 Share Posted November 1, 2016 Okay, now we're making progress ! The next thing you can do for me is tell me how does the crash happen because I just entered a world with your character & it didn't crash. Tell me exactly how to do the crash. Link to comment Share on other sites More sharing options...
Tesumoto Posted November 1, 2016 Author Share Posted November 1, 2016 12 minutes ago, SuperDavid said: Okay, now we're making progress ! The next thing you can do for me is tell me how does the crash happen because I just entered a world with your character & it didn't crash. Tell me exactly how to do the crash. I just waited until comes evening. Link to comment Share on other sites More sharing options...
. . . Posted November 1, 2016 Share Posted November 1, 2016 (edited) 6 minutes ago, Tezumoto said: I just waited until comes evening. I did the same & nothing happened. Are you sure you gave me the version of your mod with the crash? Edited November 1, 2016 by SuperDavid Link to comment Share on other sites More sharing options...
Tesumoto Posted November 1, 2016 Author Share Posted November 1, 2016 (edited) 2 minutes ago, SuperDavid said: I did the same & nothing happened. I gave you the file with my code, without adding mind emptying) It was necessary to say at once) Sorry, I'm just a little tired) Edited November 1, 2016 by Tezumoto Link to comment Share on other sites More sharing options...
. . . Posted November 1, 2016 Share Posted November 1, 2016 (edited) 13 minutes ago, Tezumoto said: Sorry, I'm just a little tired) I'm also tired, haha ! That version of your mod you gave me I changed this file reisen.lua And her saniity drains at, heals all that stuff & everything good, it didn't crash & I skipped like 10 days. If it crashes for you I'll have to cry in a corenrer cuz I don't know. Edited November 1, 2016 by SuperDavid Link to comment Share on other sites More sharing options...
Tesumoto Posted November 1, 2016 Author Share Posted November 1, 2016 17 minutes ago, SuperDavid said: I'm also tired, haha ! That version of your mod you gave me I changed this file reisen.lua And her saniity drains at, heals all that stuff & everything good, it didn't crash & I skipped like 10 days. If it crashes for you I'll have to cry in a corenrer cuz I don't know. Now like there is no error) It remains to polish the value and can play this character) Link to comment Share on other sites More sharing options...
. . . Posted November 1, 2016 Share Posted November 1, 2016 Just now, Tezumoto said: no error Those 2 words Healed my mind. Link to comment Share on other sites More sharing options...
Tesumoto Posted November 1, 2016 Author Share Posted November 1, 2016 (edited) 20 minutes ago, SuperDavid said: Those 2 words Healed my mind. And to the full moon did not have a negative effect, I can just copy lines of section of the day? inst.components.sanity.night_drain_mult = 2 inst.components.sanity.dapperness = TUNING.DAPPERNESS_MED The full moon - light) And my character is not afraid of the night) She's afraid of the dark) Rate of decline in the evening and at night normal edited. But the recovery rate of the day, I can not speed up the recovery. The idea was that night she quickly goes mad, and in the morning quickly come to normal. Edited November 1, 2016 by Tezumoto Link to comment Share on other sites More sharing options...
. . . Posted November 1, 2016 Share Posted November 1, 2016 26 minutes ago, Tezumoto said: But the recovery rate of the day, I can not speed up the recovery. You can edit it just do inst.components.sanity.dapperness = 2 * TUNING.DAPPERNESS_MED --replace 2 with any multipler u want instead of whatever is healing sanity for day. Link to comment Share on other sites More sharing options...
Tesumoto Posted November 1, 2016 Author Share Posted November 1, 2016 17 hours ago, SuperDavid said: You can edit it just do inst.components.sanity.dapperness = 2 * TUNING.DAPPERNESS_MED --replace 2 with any multipler u want instead of whatever is healing sanity for day. How can I increase the camera shake on a critical hit? inst:ListenForEvent("onattackother", function(inst, data) local criticalchance = math.random(1,4) -- 1 out of 4 should be like 25% chance if criticalchance == 4 and inst.next_hit_critical == nil then -- The random 25% chance of getting a critical hit has occured, so make next hit a critical hit. inst.next_hit_critical = true inst.components.combat.damagemultiplier = 1.75 -- Boost damage for critical hit. else return end if inst.next_hit_critical == true then inst.next_hit_critical = nil ShakeAllCameras(CAMERASHAKE.VERTICAL,.5, .01, .05, inst, .01) -- Give a tiny camera shake for cooler effect? inst.components.talker:Say("Критический удар!") -- Have a critical hit quote, if u want? inst:DoTaskInTime(0.05, function(inst) inst.components.combat.damagemultiplier = 1 end) -- Reset damage after scoring a critical hit. end end) Link to comment Share on other sites More sharing options...
. . . Posted November 1, 2016 Share Posted November 1, 2016 (edited) Change the numbers inside until you get desired effect ShakeAllCameras(CAMERASHAKE.VERTICAL,.5, .01, .05, inst, .01) EDIT: @Tezumoto The last number is the range of ppl being able to see the shake, so .01 means only you can see it And the first number is how long the shake lasts, the other 2 numbers are how strong the shake will be Edited November 1, 2016 by SuperDavid Link to comment Share on other sites More sharing options...
Tesumoto Posted November 1, 2016 Author Share Posted November 1, 2016 (edited) 11 minutes ago, SuperDavid said: Change the numbers inside until you get desired effect ShakeAllCameras(CAMERASHAKE.VERTICAL,.5, .01, .05, inst, .01) EDIT: @Tezumoto The last number is the range of ppl being able to see the shake, so .01 means only you can see it And the first number is how long the shake lasts, the other 2 numbers are how strong the shake will be So I will increase camera shake twice? ShakeAllCameras(CAMERASHAKE.VERTICAL,.5, .02, .1, inst, .01) Edited November 1, 2016 by Tezumoto Link to comment Share on other sites More sharing options...
. . . Posted November 1, 2016 Share Posted November 1, 2016 3 minutes ago, Tezumoto said: So I will increase camera shake twice? ShakeAllCameras(CAMERASHAKE.FULL, 1.38, 0.02, 10, inst, 60) Link to comment Share on other sites More sharing options...
Tesumoto Posted November 1, 2016 Author Share Posted November 1, 2016 17 minutes ago, SuperDavid said: ShakeAllCameras(CAMERASHAKE.FULL, 1.38, 0.02, 10, inst, 60) Something with such values of the camera simply gone mad) Link to comment Share on other sites More sharing options...
. . . Posted November 1, 2016 Share Posted November 1, 2016 (edited) 1 minute ago, Tezumoto said: Something with such values of the camera simply gone mad) @TezumotoShakeAllCameras(CAMERASHAKE.VERTICAL,.5,.08,.05,inst,.01) Edited November 1, 2016 by SuperDavid Link to comment Share on other sites More sharing options...
Tesumoto Posted November 2, 2016 Author Share Posted November 2, 2016 On 01.11.2016 at 11:37 PM, SuperDavid said: @TezumotoShakeAllCameras(CAMERASHAKE.VERTICAL,.5,.08,.05,inst,.01) I can do for the character of eating carrots bonus twice more than usual? Link to comment Share on other sites More sharing options...
. . . Posted November 2, 2016 Share Posted November 2, 2016 4 minutes ago, Tezumoto said: I can do for the character of eating carrots bonus twice more than usual? Inside YOURCHARCTER.lua inside master_postinit you put & you will get double points of what carrot & cooked carrot give . inst:ListenForEvent("oneat", function(inst, data) if data.food.prefab == "carrot" then inst.components.health:DoDelta(1) inst.components.hunger:DoDelta(12.5) --inst.components.sanity:DoDelta(1) -- if u want to add sanity heal too inst.components.talker:Say("I love carrot!") elseif data.food.prefab == "carrot" then inst.components.health:DoDelta(3) inst.components.hunger:DoDelta(12.5) --inst.components.sanity:DoDelta(1) -- if u want to add sanity heal too inst.components.talker:Say("I love cooked carrot!") end end) Link to comment Share on other sites More sharing options...
Tesumoto Posted November 6, 2016 Author Share Posted November 6, 2016 (edited) When I load the server with new characters this error appears. This error only occurs if the server with caves. How can I fix it? I have 8 GB DDR3 1600 MHz Edited November 6, 2016 by Tezumoto Link to comment Share on other sites More sharing options...
. . . Posted November 6, 2016 Share Posted November 6, 2016 Disable & enable all your mods you had enabled & see what's causing the problem. Link to comment Share on other sites More sharing options...
Tesumoto Posted November 6, 2016 Author Share Posted November 6, 2016 (edited) 3 hours ago, SuperDavid said: Disable & enable all your mods you had enabled & see what's causing the problem. When I create a server with non-standard characters this error appears. But if I turn off the cave on the server, there is no problem. It can somehow fix? What could be the problem? I can play without the caves, but they add more variety to the game. Edited November 6, 2016 by Tezumoto Link to comment Share on other sites More sharing options...
Tesumoto Posted November 17, 2016 Author Share Posted November 17, 2016 Someone can explain what these parameters are responsible? inst.components.eater:SetCanEatRaw() inst.components.eater.strongstomach = true Link to comment Share on other sites More sharing options...
. . . Posted November 17, 2016 Share Posted November 17, 2016 3 hours ago, Tezumoto said: Someone can explain what these parameters are responsible? inst.components.eater:SetCanEatRaw() means your character I think can eat things like raw birchnuts? inst.components.eater.strongstomach = true means your character takes no damage from monster food stuff Link to comment 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