Tabletop Simulator

Tabletop Simulator

Cleanup Bag
23 Comments
MadCake 23 Dec, 2024 @ 5:05am 
Regarding @SinfulPetGirlRD issue: there is one tick of physics happening after the items are placed but before they get locked. If the items are colliding, the positions and rotations get messed up. This can be prevented by re-applying position and rotation in the callback after the item is spawned, right after locking.
Slushy 16 Jun, 2024 @ 9:56am 
Man, wish this had a 'Relative' version, so it places it relative to the bag's location. Like, if you tracked a bunch of objects above the bag, it'd always place them above the bag wherever it is.
SinfulPetGirlRD 3 Jul, 2021 @ 6:44pm 
GBee, its a map I made my self, and not yet on workshop as its apart of a on going campaign I am running (do plan on making the entire thing a mod when we are done). I'm pretty sure I'm not using the auto roll or randomize bag.

Short of adding you as a friend and inviting you, not sure how else to show whats going on lol
GBee  [author] 2 Jul, 2021 @ 1:17pm 
@SinfulPetGirlRD That sounds pretty bad! I haven't seen that yet. Is this a map that is available on the workshop? Is it possible you are using the Auto-Roll Bag or the Randomize Bag?

If it's a map you made yourself, you can get in contact with me directly and I can look at it.
SinfulPetGirlRD 2 Jul, 2021 @ 12:05pm 
having a small problem. its not super MAJOR but its a nuisance because i have to keep fixing items.. I'll explain best i can(will try to keep it shortish).

after the second or third "place/collect" items start to get lower/risen/rotated from where they og were(all items are locked. and not inside of each other, just like, food on a table or a chair pushed in under the table) the item that is getting messed with the most is the model of the interior its self.

Example my Inn. All rotation is set to zero and its hovering a bit above the board because there is a basement that you can use states to hide/show it. After clicking "place" on the inn's bag. the inn its self is rotated widly (like x40, y 3, z 249) and its either really high from where it should be or really low some where it should be. the furniture/decorations that go inside the inn are also messed up. some have been unlocked, most are rotated, some are above/below where they should be.
GBee  [author] 4 Mar, 2021 @ 12:19pm 
@ary4sp0ck I tried to recreate the issues you had but couldn't find any problems. My guess is that somehow your items are inside another item. When the piece gets placed back into position, the intersecting object get pushed out of the way.

Are you using locked pieces or are they all unlocked?
GBee  [author] 1 Mar, 2021 @ 6:20pm 
@ary4sp0ck Sorry for the trouble! I will look into this and see what the deal is. Maybe a recent update to TTS has affected the mod.
ary4sp0ck 1 Mar, 2021 @ 5:19pm 
for some reason whenever i use it, my shit flies everywhere? as it's trying to put stuff back it doesn't just slightly set them down right where they were, they keep going. how do i stop this
andbruu 25 Jun, 2020 @ 11:04am 
Using your bag to set up my game is great, but I another features request that you might consider.
Move return points with the bag (perhaps with a toggle on/off), and rotate the "formation" with the bags rotation. So if the bag is at 0,0 and an item is tracked from 1,1 - then the bag moved to -1,-1, then the tracked item would be spawned at 0,0.

Regard if you think its worth doing, I think this mod is great, and will make setup much better.

Oh one/two more. A button to flip, and a button to lock/unlock all tracked objects. The lock would be very useful for setups.
andbruu 25 Jun, 2020 @ 7:02am 
@GBee
I can report: the random feature is great, and works perfectly for my current needs.

I you do the other mod, could you please drop a line here, to let me know?
andbruu 23 Jun, 2020 @ 2:44pm 
lovely - hopefully I have some time to work on my game this weekend, and ill check it out. Thank you.
GBee  [author] 23 Jun, 2020 @ 9:24am 
@andbruu Thank you for the suggestion! This was a tricky one but I think I have it working in the new version. It's not perfect, but I think in 99% of cases it will work just fine. Check it out and let me know what you think.

I'm considering now making a different item completely which can do random placements for games and allow for empty spaces (which this one doesn't do very well unfortunately.)
andbruu 18 Jun, 2020 @ 9:50pm 
@GBee Thank you very much for this. It speeds up my game so much. If you would consider it, perhaps a bag that shuffles the possitions when returning items - as I need an easy way to place one random token on each of 37 spaces - and my scripting mojo is no-go, unlike yours.
Quizzelbuck 18 Apr, 2020 @ 5:06pm 
@GBee devs who respond have a special place in my heart. Thanks for validating, and not dismissing.
Unreal Ed 16 Apr, 2020 @ 6:17pm 
I recommend putting the version number in the mod name, and just to put the changelog in the steam changelog
GBee  [author] 16 Apr, 2020 @ 8:42am 
@Unreal Ed @Quizzelbuck I added in your suggestions into a new version. Check out the new bag in the latest update!
GBee  [author] 16 Apr, 2020 @ 7:50am 
@Unreal Ed @Quizzelbuck I will definitely take this into consideration. My thought is to include two bags in the pack, one which auto-rolls and one which doesn't.

@H&S Fearless, The best way I can think of doing it would be to copy the script over to the new bag.
1) Spawn the new bag.
2) Go into the scripting editor (Right-Click -> Scripting -> Scripting Editor) for the Cleanup Bag and copy the code.
3) Go into the scripting for the new bag and paste the code.
4) Press "Save and Play" and then the new bag should have the same ability.

You can then just save it as a custom object. Based on the scaling and orientation of the custom bag, I can't guarantee the buttons will be where you want, but it should work.
™H&S ♕Fearless♕ 16 Apr, 2020 @ 1:56am 
Hey, is there a way to make the bag look like a custom 3d object that is a type of a bag?
Unreal Ed 13 Apr, 2020 @ 1:42pm 
"Shuffle/Roll on placement" does seem like an interesting feature, I think it could be cool to add it
Quizzelbuck 12 Apr, 2020 @ 1:17pm 
You should add a roll dice function.

Imagine this having the 3 dice you need for a specific attack. You place, Roll, and cleanup.

You should make this thing roll the dice it places.
GBee  [author] 6 Apr, 2020 @ 8:28am 
@Unreal Ed

I was able to find some time and the copy-paste issues have been resolved. Should be good to go!
GBee  [author] 6 Apr, 2020 @ 6:22am 
@Unreal Ed

Thanks for the great suggestion! I put this project together pretty quickly and ran out of time to fix the details like Copy-Paste. Tabletop Simulator has some strange rules surrounding unique object ID's that I ran into and couldn't find much information on. I'm confident with a little more experimentation and another days work that this problem could be solved altogether. If I get stuck again, then I will definitely add in your error message suggestion!
Unreal Ed 5 Apr, 2020 @ 3:56pm 
This sounds amazing, but those copy/paste issues sound like a serious problem so far. Until it's fixed, could you put an error warning in place for when we paste one?

I picture its implementation like this: You assign a unique ID on onDrop() whenever the bag is empty but keep the previous one when not empty. If a bag is dropped because it's copy/pasted then it checks every bag's unique ID and if they have the same one then you know it's a copied one and you send out an error message