Tabletop Simulator

Tabletop Simulator

Gloomhaven - Fantasy Setup (Scripted UI)
GGeer3 Apr 13, 2020 @ 8:15am
Incorporating Extra Battle Goal Cards
I've added Satire's extended battle goals to the game but when I hit the "get new deck button" for battle goals it only adds the standard deck. Looking through the scripts and the setup itself, there is a "backup" GUID that I can't seem to find/unlock to reset. Can anyone help me with locating this?
< >
Showing 1-12 of 12 comments
Rauhk Apr 13, 2020 @ 8:18am 
You may find it easier just to save the battlegoals as a Saved Object and just drag out a copy from your saved objects instead. Maybe 3 extra clicks when spawning a new deck! You can shuffle in the new ones and save the whole 70+ card deck as an object.
Last edited by Rauhk; Apr 13, 2020 @ 8:19am
GGeer3 Apr 13, 2020 @ 8:24am 
This is precisely what I did already, but I was hoping to figure out how to do it through the script while also learning more about scripting and game setup in TTS.
Rauhk Apr 13, 2020 @ 8:35am 
Ah, if it's educational, most of the bags containing the set up objects are now hidden under the green "tile" that is the new board in V2, sometimes off to the corners and sides. If you remove the tile from the megafreeze scripting, you can more easily start messing with the stuff in those bags. You may also be able to find the battlegoals deck in the json file and add cards to it so those cards become associated with the baseline deck's GUID.

A very quick glance looks like the bag with the battlegoals is GUID 0fcaf1.

Actually, you can find the deck pretty quickly searching inside the json object of the mod for "Battle Goals".
Last edited by Rauhk; Apr 13, 2020 @ 8:42am
GGeer3 Apr 13, 2020 @ 8:52am 
I already found the objects under the tile, but none of them contained battle goal cards. I had already tried removing the megafreeze script in order to find that stuff :)
I did NOT know there was a .json file. After looking through that it looks like maybe there isn't an actual object of battlegoal cards in the game, and that when you press the "get battle goals" button, it's creating a deck purely through scripting and not actually pulling it from an object. Does that sounds accurate?
Rauhk Apr 13, 2020 @ 9:03am 
I think you're right, I've never tried to find it physically in the game before.

I'd suggest poking around your Workshop folder using an IDE (Atom is recommended for this game by Berserk, but not necessary). You should see any mods you have as strings of numbers with paired json and png files. I'd make a copy of this mod's json file and rename it so you don't have to unsub and resub or verify your game files to fix any tinkering you do.

Open up the json file copy you made with your program of choice.

The GUID 0fcaf1 is a bag containing a custom deck named "Battle Goals" (GUID 6aa524). You can see the cards inside that deck in the code. One of the elements of the deck is called "DeckIDs", listing out all the CardIDs found in the deck. These are the same "CardID"s you see as elements on the individual cards. The cards of course also have their own GUIDs and descriptive elements. You can likewise open the saved object of your combined battlegoals deck under the "Saves" and "Saved Objects" folders on your pc and use that chunk of code describing the deck. If you replace the deck in the main mod with that one, you'll change what actually spawns inside this bag.
Last edited by Rauhk; Apr 13, 2020 @ 9:21am
GGeer3 Apr 13, 2020 @ 11:45am 
Well, I ended up editing the .json for my saved game with Notepad++ (I've never used an IDE before, but a quick search looked like it text editorish...). I basically copied the "Battle Goal" deck data that is physically there to the "Battle Goal" deck data that spawns in the "Infinite Bag" and that did the trick! Now I'll probably go update my saved game to the latest version of the mod, which will blow away all those changes, but at least I learned something. Thanks for the help Rauhk!!!
Rauhk Apr 13, 2020 @ 11:50am 
Hahahaha yeah, sometimes it is a lot to perpetually insert your tweaks into the mod updates, but the quality of life these devs put in each time is pretty amazing. Have fun tinkering!
Kijan  [developer] Apr 13, 2020 @ 1:33pm 
you cant find the bag because it is invisible and inaccessable ;)
GGeer3 Apr 13, 2020 @ 5:29pm 
I agree Rauhk, the devs put a lot of time and effort into this mod and it is awesome.
Kijan, are you saying it IS an actual item? Can you tell me how to make it accessable?
Kijan  [developer] Apr 14, 2020 @ 7:00am 
there is a bag that you cant access where the actual deck is. it has a ivisible texture so you can click and see it to enhance the load time it is not that easy for you to get it accessable without the tool GabrielM uses. i am not sure where he has it from.
Seferan Apr 15, 2020 @ 7:48am 
Able to post a link to your JSON or how you added the Extended Battle Goals? I'm using that in my campaign, but doing it manually with paper
Rauhk Apr 15, 2020 @ 9:35am 
https://steamcommunity.com/sharedfiles/filedetails/?id=1709870064&searchtext=Gloomhaven+battle+goals

There's a Workshop mod that let's you get these already, no need to do anything special like was done in this thread. You just subscribe to the mod, open it like any other Workshop mod, and select and Save Object the deck. Then you can spawn the deck anytime you want.

This thread is mostly how to change the base mod's invisible bag to have these battle goals built in, which you don't really need to do. You would also have to do this change every single time the mod updates, so I recommend sticking to using Saved Objects.
< >
Showing 1-12 of 12 comments
Per page: 1530 50