Tabletop Simulator

Tabletop Simulator

Not enough ratings
Pack Up Bag (Tool) [outdated, please use Version 2]
   
Award
Favorite
Favorited
Unfavorite
Type: Utility
Complexity: Medium Complexity
Assets: Scripting
File Size
Posted
Updated
62.751 KB
Nov 26, 2017 @ 1:15am
Jan 9 @ 3:39pm
10 Change Notes ( view )

Subscribe to download
Pack Up Bag (Tool) [outdated, please use Version 2]

Description
This mod is outdated DO NOT USE IT, use version2

Please use version 2 of this mod
(TOOL) - Packup Bag v2 (Designed for running RPG's and Setup Bags)

I only leave this mod up as people have it in older mods.. please use version 2




G'Day Tragic here...

This is a mod I made for a mate that I have turned into a general tool, in case other people would be interested in it. Basically, the mod will look into a script zone and pack everything in it into the bag. Then you can press a button to put everything back where it came from.

Have Fun and ROLL HIGH
-- Tragic

UPDATE: 09 / 02 / 2020

• ADDED: I have added two Custom Boxes to this mod. They are from my "Box Mod" and are just the same PackUp Bag but attached to a Mesh File that looks like a boardgame box. In the NOTES of the mod is link to a GoogleDrive that has the UVMaps so you can quickly edit the maps to make the boxes look like how you want.

Mod Features

Bag remembers LOCKED, NON-INTERACTABLE, TOOLTIP ON or OFF, POSITION, ROTATION and SCALE.

The script is (hopefully) easy to edit and allows ignore lists based on NAME, DESCRIPTION, GUID and TAG.

The script also has a FORCED GUID LIST where you can add GUIDs that will force those objects to be packed up even if they are outside the scriptzone or even if they are in the other ignore lists.

There is a true / false flag called ADDITIVE that when set to FALSE will stop the save function. Allowing modders to make bags that dump out scenarios setups and stuff, but when they pack it up, it will only pack up what the modder wants and also not save any moved positions.

Special Thanks

MrStump is a key figure in the TTS community that I associate with and has helped me in almost every mod I have ever made. So without him and his tolerance for my pesky questions, there would be no Tragic Mods.

Also, this mod is a slightly different "version" of his more advanced, but functionally different mod called "MEMORY BAG" mod.

To Use this mod requires basic Script Editing

I have tried to make this mod user-friendly, but my coding is pretty messy. Please see the youtube video for infomation on how to use this mod.. otherwise just look at the script in ATOM or in TTS itself.

You will see right at the top there is a number of options you can adjust.

packupZone = '1782d0' -- change this to the GUID of your own script packupZone

additive = true -- This will disable the save system, allowing you to setup a bag, and stop future packups from saving new positons or new objects

UseBagNameAsButtonName = false -- If this is set to true the button will dynamically take the name you set for the bag as the text for the "Place" button. If set to ture, it the place button will simply say "Place"

--These are the "ignore lists" put in here anything you do not want to be packed up.
--You can leave these blank... if you do just make them equal '= {}'
--when listing things separate by a comma and put inside single quote marks : ignoreGUID = {'01bb90', '4b8ae3',}

-- Ignore by TAG
ignoreTAG = {}

-- Ignore by NAME
-- Put in "EXACT" names in here. This code will not work with BBcode formatting
ignoreNAME = {}

-- Ignore by DESCRIPTION
-- Put in "EXACT" names in here. This code will not work with BBcode formatting
ignoreDESC = {}

-- Ignore by GUID
ignoreGUID = {}

-- Some Objects you may want to force to be included in a pack up, even if outside the script zone or even if it is in the other ignore lists.. just place the GUID here.
forceGUID = {}
31 Comments
Tragic  [author] Jun 19, 2023 @ 1:16am 
@TheGrantyMan... This is can be a problem with TTS, not the mod. During the frames when the cards "spawn" and is created in the scene, they have no collision objects. The best solution if you are having this issue is... 1) Try the version 2 of this mod, this will probably fix it or make sure the mod is preloaded (no downloading needed)
Tragic  [author] Jun 19, 2023 @ 1:10am 
Please use version 2 of this mod
(TOOL) - Packup Bag v2 (Designed for running RPG's and Setup Bags)

I only leave this mod up as people have it in older mods.. please use version 2
TheGrantyMan Jun 19, 2023 @ 12:10am 
Does anyone know how to solve the issue of making sure things spawn on top of certain things, I've got a game board with cards on top of it, and when I unpack them, the board spawns on top of the cards, instead of vice versa!
gfeather Mar 19, 2021 @ 1:11pm 
Just a quick note. The "Blank" pickup bag isn't blank, Some of his demo objects are now in the script. if you don't delete the forced loadable objects in the script, it won't work.
T-Strap Jan 8, 2021 @ 2:39pm 
I'm having the same "...function <pickypstuff>:chunk_3(65,4-70,53):attempt to index a nil value." error. I've tried all of the below, and even started from the demo game and deleted the components I didn't want and added my own. The pack up function worked just fine when I deleted the demo components in the zone and when I added my own. However, it stopped working and gave me that error when I deleted that giant Ace card. Any idea why this is happening?
Iron Monkey Jul 24, 2020 @ 11:52am 
Gotcha. Pardon my ignorance, I'm learning scripting functionality as I go, here. Thank you!

I've run across something else kind of funky, though. When I "place" the items from the box (granted, there are a lot of items in there), the ones that aren't locked jump around a bit on impact. is there a way to mitigate that?
Tragic  [author] Jul 23, 2020 @ 10:50pm 
Anytime you edit any scripts in TTS you need to reload the entire file. So if you want to use the bag.. you import it into the scene... save, load the save, edit the script... if you are using atom it will save and load.. if you are editing inside TTS it will also save and reload.. BUT you need to be working in a save file to begin with.
Iron Monkey Jul 23, 2020 @ 11:12am 
So I figured out the fix for my previously mentioned issue. For anyone else having the same problem:
Once plugging in the scripting zone’s GUID into the script, I have to save the mod, exit to the main menu, then load the mod again.
Iron Monkey Jul 21, 2020 @ 11:40am 
Alright, I've been trying to get this to work for over an hour, and I JUST keep messing something up. I dont know what, though.

I saved the large box as an object, and placed it into my own mod. Then I created a script zone, copied the zone's name, and placed it into the script for the box. Every time I try to pack up, it just throws an error similar to Thane's: "...function <pickypstuff>:chunk_3(65,4-70,53):attempt to index a nil value."

Can anyone tell me what I'm doing wrong??
Thaner May 23, 2020 @ 5:08pm 
Hey I watched the tutorial and thought i set it all up right but I keep getting "Error in script (packup BAG-ex2006) function <pickypstuff>:chunk_3(65,4-70,53):attempt to index a nil value. Sorry not much of a coder ><