Sign in to follow this  
Tesumoto

Please help with the editing of the character

Recommended Posts

. . .    4062

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.....................................................................................................................................................;)

Share this post


Link to post
Share on other sites
. . .    4062

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.

Share this post


Link to post
Share on other sites
Tesumoto    19
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.

Share this post


Link to post
Share on other sites
. . .    4062
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 by SuperDavid

Share this post


Link to post
Share on other sites
Tesumoto    19
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 by Tezumoto

Share this post


Link to post
Share on other sites
. . .    4062
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 by SuperDavid

Share this post


Link to post
Share on other sites
Tesumoto    19
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)

Share this post


Link to post
Share on other sites
Tesumoto    19
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 by Tezumoto

Share this post


Link to post
Share on other sites
. . .    4062
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.

Share this post


Link to post
Share on other sites
Tesumoto    19
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)

 

Share this post


Link to post
Share on other sites
. . .    4062

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 by SuperDavid

Share this post


Link to post
Share on other sites
Tesumoto    19
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 by Tezumoto

Share this post


Link to post
Share on other sites
. . .    4062
3 minutes ago, Tezumoto said:

So I will increase camera shake twice?

ShakeAllCameras(CAMERASHAKE.FULL, 1.38, 0.02, 10, inst, 60)

Share this post


Link to post
Share on other sites
Tesumoto    19
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)

Share this post


Link to post
Share on other sites
. . .    4062
1 minute ago, Tezumoto said:

Something with such values of the camera simply gone mad)

@TezumotoShakeAllCameras(CAMERASHAKE.VERTICAL,.5,.08,.05,inst,.01)

Edited by SuperDavid

Share this post


Link to post
Share on other sites
. . .    4062
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)

 

Share this post


Link to post
Share on other sites
Tesumoto    19

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?

01.png

I have 8 GB DDR3 1600 MHz

Edited by Tezumoto

Share this post


Link to post
Share on other sites
Tesumoto    19
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 by Tezumoto

Share this post


Link to post
Share on other sites
Tesumoto    19

Someone can explain what these parameters are responsible?

    inst.components.eater:SetCanEatRaw()
    inst.components.eater.strongstomach = true

 

Share this post


Link to post
Share on other sites
. . .    4062
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

Share this post


Link to post
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
Sign in to follow this