Tabletop Simulator

Tabletop Simulator

54 évaluations
Utility Memory Bag
4
2
   
Récompenser
Ajouter aux favoris
Favoris
Retirer des favoris
Assets: Scripting
Mots-clés : Misc
Taille du fichier
Publié le
Mis à jour le
59.869 KB
11 avr. 2020 à 13h40
9 avr. 2021 à 22h14
6 notes de changement ( voir )

S'abonner pour télécharger
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
Discussions populaires Tout voir (2)
4
7 aout 2020 à 20h30
Selection Add
ratva
2
20 sept. 2020 à 16h21
Utility/Memory Bag - It cannot properly recall large objects & is bloating the bag
GrayGeist
57 commentaires
WUFFA 17 aout à 9h04 
I was having problems with the selection button disappearing in into the object for some single cards on top of a board. To fix this I added + 0.1 to the y position in createButtonsOnAllObjects():

objPos.y = objPos.y * globalScaleFactor + 0.1
Slushy 7 mai à 16h52 
Would love for this to be combined with the Relative Memory Bag, so it places stuff in relative location to the bag.
Quickle 23 févr. à 17h20 
@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 févr. à 16h20 
@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 févr. à 1h36 
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 févr. à 14h40 
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 juin 2023 à 0h15 
Awesome, thanks for your help. I'll give it a shot!
Quickle 15 juin 2023 à 22h23 
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 juin 2023 à 14h32 
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 mai 2023 à 1h46 
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.