Jump to content

Toadstool from caves doesn't work with my character


Invarkul
  • Pending

I don't know if I should create this topic here or in Mods and Tools but the problem still remains.

Recently I have created a character and everything worked pretty fine. At the day 230 I decided that it's time to fight toad. After couple of days of preperation I was ready.

The cap was chopped. The fight begun. And I lost my connection to the server. I thought it might be my modem or smth, but it happened again. Even after I putted offline mode I lost my connection. One thing that I found is that I'm loosing connection as well as toad performs bubble bomb on my head attack. I checked caves server log and it says that one line of my custon weapon is wrong, but I can't see any connection between bubble attack and no one can pick up my weapon mech.

One pretty curious thing. The fight agains toad at the surface works well even tho I'm playing same custom char with same weapon I used in caves.

Here I attached my character mod and cave's server crush log. I hope you can help me. I will really appreciate that. I love DST.

Bibi.7z

server_log.txt


Steps to Reproduce
1) Fighting toad. 2) He using his head bubble bomb attack. 3) Loosing my connection to server. 4) Have no problems at the surface



User Feedback


this crash is caused by a mod that's not being maintained by klei, so it belongs here: https://forums.kleientertainment.com/forums/forum/79-dont-starve-together-mods-and-tools/

regardless, what's causing the crash is line 96 of prefabs/mrdevil.lua

		inst.components.inventoryitem.onputininventoryfn = function(inst, player)
		if player.prefab ~= "bibi" then   
	inst:DoTaskInTime(0.01, function()       
	player.components.inventory:DropItem(inst)        
    player.components.talker:Say("I don't like its face.") 
end)

	end
end

change it to this:

	inst.components.inventoryitem.onputininventoryfn = function(inst, player)
		if player.prefab == "bibi" then
			return
		end
		inst:DoTaskInTime(0.01, function(inst)
			if inst and player.components.inventory then
				player.components.inventory:DropItem(inst)
			end
			if player.components.talker then
				player.components.talker:Say("I don't like its face.")
			end
		end)
	end

 

  • Like 1

Share this comment


Link to comment
Share on other sites

21 hours ago, Jessie223 said:

this crash is caused by a mod that's not being maintained by klei, so it belongs here: https://forums.kleientertainment.com/forums/forum/79-dont-starve-together-mods-and-tools/

regardless, what's causing the crash is line 96 of prefabs/mrdevil.lua


		inst.components.inventoryitem.onputininventoryfn = function(inst, player)
		if player.prefab ~= "bibi" then   
	inst:DoTaskInTime(0.01, function()       
	player.components.inventory:DropItem(inst)        
    player.components.talker:Say("I don't like its face.") 
end)

	end
end

change it to this:


	inst.components.inventoryitem.onputininventoryfn = function(inst, player)
		if player.prefab == "bibi" then
			return
		end
		inst:DoTaskInTime(0.01, function(inst)
			if inst and player.components.inventory then
				player.components.inventory:DropItem(inst)
			end
			if player.components.talker then
				player.components.talker:Say("I don't like its face.")
			end
		end)
	end

 

Seem to be working with chests. Never thought that all I need is return function. Shoulda practice more. Big thank you :3

Share this comment


Link to comment
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

×
  • Create New...