Search the Community
Showing results for tags 'containers'.
Found 2 results
I made a custom backpack, with it's own custom widget. It works, you can store items in it and everything, the only problem is items don't automatically go into it. Like if my inventory is full, and the bag is empty and you try to pick something up, its supposed to go into the backpack, but it doesn't in my case. I might have missed a line while making the widget in modmain. Or something. I don't know. Here's the code I used to create the widget And just in case, I'll attach the entire mod to this thread. (It's kinda big, because it's an entire character mod ) But I'll expect this will be an easy fix, if there is one. Wisniowski.zip
Hello everyone! I'm trying to port a DS mod to DST, figured out how to solve a lot of different problems, but a lot more remain, and I don't know exactly how I should treat them. The mod's called Craft Pot, and what it does is basically I. Find all crock pot prefabs 1. Iterate all prefabs ingame (AddPrefabPostInitAny) 2. Find those that have stewer component II. Adding custom crock pot event handlers 3. Save the following original events: open, close, give item, take item, finish cooking 4. Change binded handlers for those events to custom ones (injecting modded code) + calling the original ones as the first line III. Processing current inventory content 5. Track down crock pot inventory content 6. Pass it down to mod components 7. Redrawing the crock pot food scroll And now the yet unsolved issues, that I could really use some help or a direction with: I. CrockPots only have stewer and container components on the mastersim side, so I've lost a way to track down crock pots on a client II. Even if i somehow managed to get crockpot prefabs, I don't see a way I could modify container/stewer components (locally) in order to pass custom event handlers (as they simply do not exist??) on the client. III. Client is drawing container, all of the local icons, does that mean there should be some sort of a dirty replica for container on a client somwhere? I'm a decent programmer, just point me in the right direction, or onto some other client mod that could help me find a solution to those problems. The way I see it, if it comes to the worst, I would have to rewrite crock pot prefabs adding dirty stewer, dirty container, and somehow sync raw data with the 'real' stewer/container on the server. Hope it doesn't go that far thou.