So I have a question. If through a plugin I move an item out of a container but keep it in a list.. Will it despawn like stuff dropped on the ground? Will the game eventually remove it because it is not in a container or on the ground?
I'm working on a plugin to temporarily save inventory and then reload it. I want to be sure the stuff won't be picked up by the game as invalid.
Remove item from container
Discussion in 'Rust Development' started by Deicide666ra, Oct 30, 2015.
-
Calytic Community Admin Community Mod
I might be missing something but I checked Item and Decay and do not see any checks for "invalid" items or items without some kind of world binding (parent/worldentity). This would not be that difficult to test. The main problem here is that your buffer would not be saved so if the server crashes/restarts before the inventory is reloaded, it is lost forever (and you might have invalid items floating around in your world file).
-
Umm thanks yeah I didn't think about these object being an issue. Lets turn the question around then.. Did anyone manage to find a way to properly save and load inventory yet?
EventManager does this but there are several issues. Each time I hold events I end up with so many complaints of lost stuff that I just stopped hosting them.
Issues (some might have been fixed since I last looked):
- does not save skin ids (this was fixed I think)
- does not save maps (the items are destroyed and recreated so the image data is lost)
- does not save conditions (players know this and enter the events full of broken tools and guns for free fixes!)
- does not save ammo count or type in guns (full of explo ammo? Sry bro enjoy those 24 standard rounds - empty gun? Enjoy these 24 free bullets)
- mining helmet and candle helmet come back with default fuel
I'm sure there are other similar issues but ultimately, it does not do a good enough job. I happen to need this functionality for other plugin ideas I have, so having a proper way to do this without all these issues would be nice. -
I did.
