Tabletop Simulator

Tabletop Simulator

Not enough ratings
Cleanup Bag
   
Award
Favorite
Favorited
Unfavorite
Number of Players: 1, 2, 3, 4
Tags: Misc, 4+
File Size
Posted
Updated
59.271 KB
3 Apr, 2020 @ 1:34pm
23 Jun, 2020 @ 9:19am
5 Change Notes ( view )

Subscribe to download
Cleanup Bag

Description
Cleanup Bag is a bag which can remember the location of objects on the table, clean them up, and place them back where they were. To track certain items, select the items and press 'Track'. To collect the items from the table and remember their previous state, press 'Collect'. To place the items back onto the table where they were, press 'Place'. To clear all tracked items, press 'Reset'.

This is different from Memory Bag because it remembers the last location the item was collected from. Memory Bag will only remember where it was first located. This means that you can move the items around and it will put them back wherever they last were.

Attributes which are tracked are: Position, Rotation, and Lock. Most other attributes seem to save on their own.

There is a "Auto-Roll" bag included which will auto-roll any coins or dice which it places onto the table. This is great for games where you have to roll the same combination of dice over and over.

There is a "Randomize" bag included which will randomize the positions of the items when they are placed. This is useful for games where you need to rotate around pieces or place them randomly every time.

All the code is commented and MIT licensed, so feel free to make copies and modify.
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?