Tabletop Simulator

Tabletop Simulator

54 ratings
Utility Memory Bag
4
2
   
Award
Favorite
Favorited
Unfavorite
Assets: Scripting
Tags: Misc
File Size
Posted
Updated
59.869 KB
11 Apr, 2020 @ 1:40pm
9 Apr, 2021 @ 10:14pm
6 Change Notes ( view )

Subscribe to download
Utility Memory Bag

Description
Fork of Memory Bag 2.0 by MrStump
https://steamproxy.net/sharedfiles/filedetails/?id=953770080

Features:
- Add / Remove
- Copy memory bag
- Move relative to one object
- Set New based on table position
- Dragable selection setup and add (thanks cowgoesmoo33)
- Named groups where only one bag can be placed at a time (thanks Quickle)
- Track color tint when adding/removing objects (thanks RedKrieg)

Delian Tomb map shown in the video can be found here:
https://steamproxy.net/sharedfiles/filedetails/?id=2057440182

Want to contribute? Create an issue or fork the code on GitHub and submit a pull request.
https://github.com/sunflowermans/TTS-UtilityMemoryBag
Popular Discussions View All (2)
4
7 Aug, 2020 @ 8:30pm
Selection Add
ratva
2
20 Sep, 2020 @ 4:21pm
Utility/Memory Bag - It cannot properly recall large objects & is bloating the bag
GrayGeist
56 Comments
Slushy 7 May @ 4:52pm 
Would love for this to be combined with the Relative Memory Bag, so it places stuff in relative location to the bag.
Quickle 23 Feb @ 5:20pm 
@Kyndral22 No problem!

Here's how you can make any object into a memory bag:

Step 1:
Make an object into a regular bag. You can do this one of two ways:
- (A) Use this mod: https://steamproxy.net/sharedfiles/filedetails/?id=2302198936
- (B) Right click on a Custom Model (custom models only, doesn't work on tiles/tokens/etc.) > Custom > (select "Bag" at the bottom)

Step 2:
Make your bag into a 🌟Memory Bag🌟:
- Spawn a Memory Bag into the game.
- Right Click (on your *custom* bag, not the memory bag) > Scripting > Scripting Editor
- Wait a moment for the scripting window to pop up.
- Your custom bag's script will be selected. It should be empty.
- Click on the Memory Bag to switch to its script.
- Copy the whole script.
- Click on your custom bag to switch to its (currently empty) script.
- Paste the whole script.
- Click "Save & Play" (WARNING: You must be inside of a "saved game" for this to work. Otherwise it will complain that it can't save.)
Kyndral22 23 Feb @ 4:20pm 
@Quickle aw heellllll yeaahh, thatll do just fine! now i just need to learn how to turn any object into a memory bag and ill be set, THANK YOU
Quickle 15 Feb @ 1:36am 
Hi @Kyndral22, that's a great feature request! I would love to use that feature too.

As far as I can tell, the Utility Memory Bag isn't able to do it.

Until this feature is added, I found two other bags in the workshop that look like they can do what you're asking:
- https://steamproxy.net/sharedfiles/filedetails/?id=1347434285
- https://steamproxy.net/sharedfiles/filedetails/?id=1966767669
Kyndral22 14 Feb @ 2:40pm 
can i do this but have it place the items just next to the bag? Example, if I have 11 orks I want to spawn, and they are in a bag, is there a way to just get all 11 out of the bag at once instead 1 at a time? My only issue with memory bags is that they remember where to put them, but Im going to be playing in different places, so i dont want to have them spawn in the middle of something else, rather just next to or around the bag itself
BradMang 16 Jun, 2023 @ 12:15am 
Awesome, thanks for your help. I'll give it a shot!
Quickle 15 Jun, 2023 @ 10:23pm 
Hi @BradMang, the only way I know how to do it is to "comment out" a few lines of the bag's script. Specifically, comment out these lines:

(1) https://github.com/sunflowermans/TTS-UtilityMemoryBag/blob/master/UtilityMemoryBag.lua#L309-L313

(2) https://github.com/sunflowermans/TTS-UtilityMemoryBag/blob/master/UtilityMemoryBag.lua#L683-L692

In case you or anyone reading is unfamiliar with scripting, "commenting out" in TTS means to put "--" at the start of each line that you want to "turn off".

You can open up a bag's script by right clicking the bag and clicking "Scripting" > "Scripting Editor". That opens a pop-up window showing the bag's script. I recommend copy-pasting the code into a text editor like Notepad or Notepad++ so you can search for the specific lines that you want to comment out. Then paste it bag into the TTS window and click "Save & Play".

I hope this helps! It sounds like a lot, but it's fast once you've done it the first time.
BradMang 13 Jun, 2023 @ 2:32pm 
Amazing mod this, saves so much time! Is there a way to remove the setup/move buttons once a bag has been configured?
Quickle 31 May, 2023 @ 1:46am 
You sure can!

TLDR: Convert an object into a bag, then copy & paste a Utility Memory Bag's script onto the object.

Steps:
1. Load an existing save. (Or create a new game, save it, then load it).
2. Spawn a Utility Memory Bag.
3. Right click on the custom object (i.e. custom 3d model) that you want to transform into a Utility Memory Bag. Click "Custom" (at the top) > Select "Bag" (at the bottom) > Click "Import".
4. Right click on the same object > Click "Scripting" > Click "Scripting Editor" > Wait a moment for the scripting window to pop up. Note: your custom object's empty script will be selected in the script editor.
5. Copy & Paste all the text from the Utility Memory Bag's script into your custom object's empty script.
6. Click "Save & Play" (top left of the pop up window).
7. Profit!

Note: Check out the "Make Anything a Bag" mod if you want to use a token/tile as the bag instead of a 3d model.
Julio The Colombian 29 May, 2023 @ 11:04am 
is there a way to reskin a memory bag to be something else? like a box? just for looks.