pickleplayer Posted September 26, 2015 Share Posted September 26, 2015 I'm really struggling with converting my DS mod to DST, but it's getting there. Right now I' having a strange bug with my character's custom item that he starts with. When first starting a new world, it shows up in your inventory just fine. But when you disconnect and log back in, it's on the ground in front of you, not in your inventory. One of my friends got on to help me test the mod, and when he disconnected, the item just popped out of his inventory and lay on the ground. When he got back on, he didn't have it, and also couldn't see the one that dropped onto the ground from when he had disconnected. (the game also crashed after that when he tried to pick up a weapon, but that may have been from a different bug) I've been comparing my code to many other examples of custom prefabs but I just can't tell whats causing mine to be different. Does anyone know what might be causing it? (also, are there any better ways to test client-side without having to drag a friend onto the server to test it for you?) Link to comment https://forums.kleientertainment.com/forums/topic/58123-custom-item-ejecting-from-inventory-when-disconnecting/ Share on other sites More sharing options...
DrSmugleaf Posted September 26, 2015 Share Posted September 26, 2015 Upload your mod folder or mod files if you can. You can setup a dedicated server and join it to test client-side that way. Link to comment https://forums.kleientertainment.com/forums/topic/58123-custom-item-ejecting-from-inventory-when-disconnecting/#findComment-675980 Share on other sites More sharing options...
pickleplayer Posted September 26, 2015 Author Share Posted September 26, 2015 Upload your mod folder or mod files if you can. You can setup a dedicated server and join it to test client-side that way. oh boy, here it is. It's not pretty. But it was my first mod just mashed into this attempt to make it DST compatible, so btw, the inventory item in question is fearcore.lua (And thanks for the help!)garbage.zip Link to comment https://forums.kleientertainment.com/forums/topic/58123-custom-item-ejecting-from-inventory-when-disconnecting/#findComment-675982 Share on other sites More sharing options...
pickleplayer Posted September 26, 2015 Author Share Posted September 26, 2015 alright, after a LOT of testing, it looks like the tag "irreplaceable" is what's causing it to blip out of the inventory when disconnecting. Which doesn't make sense, because there are plenty of items with this tag that don't do that. I guess it doesn't need the tag if it can't leave the character's inventory, (which is supposed to be one of it's properties). But right now, you can still "give" the item to other players. So I guess if I found a way to prevent the ability to give it to other players (and prevent other players from picking it up off the ground from when you die) then I wouldn't even need the irreplaceable tag Link to comment https://forums.kleientertainment.com/forums/topic/58123-custom-item-ejecting-from-inventory-when-disconnecting/#findComment-676079 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