Tabletop Simulator

Tabletop Simulator

Not enough ratings
Cosmic Encounter Official DLC [Scripted Setup]
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
1.060 MB
Jul 30, 2020 @ 3:18am
Oct 27, 2020 @ 4:58am
7 Change Notes ( view )
You need DLC to use this item.

Subscribe to download
Cosmic Encounter Official DLC [Scripted Setup]

Description
UPDATE OCTOBER 27 2020:
- Added Nightmare's missing 10th essence card. The back uses exactly the same back as the other cards in the deck. The front is just a photo of the physical card as I am unable to find the digital artwork.
- Variant modes in game setup now include short descriptions and directions to where their rules can be found.

UPDATE OCTOBER 15 2020:
- Huge thanks to Simple and their fantastic work adding these new features to this mod.
- Alien selection now in a matrix with ability to exclude base game aliens and to select all aliens in one skill level or expansion with a single click.
- Script no longer moves seated players. Seated players are identified and dealt to, while unseated players are assigned colours automatically.

UPDATE SEPTEMBER 23 2020:
- Removed Invader destiny cards from destiny deck and stuck them in the alien bag. They are now drawn in the same way other alien specific tokens are and can be added to the destiny deck manually when Invader is in play.

UPDATE SEPTEMBER 14 2020:
- Added ability to specify which reward decks to include
- Fixed issue in which alien cards were not being dealt to players if selecting only beginner, intermediate, or expert base game aliens

UPDATE AUGUST 31 2020:
- Added greater customisation of alien pool. Able to choose expansions to include as well as skill level.
- Increased amount of time code waits between executing steps to fix bugs with alien pool and flares deck.

Cosmic Encounter is one of my favourite games, but it’s always been a bit of a pig to set up. I was disappointed to find that not only did the official Cosmic Encounter TTS DLC didn’t take advantage of TTS’ scripting, it’s fiddlier than a tiny violin to use.

I decided to clean up the table so that it looks less like a museum exhibit and have automated the initial setup to save you many hours of faffing. This has been scripted with all expansions. I don’t know whether or not it will work if you haven’t purchased these…

Using a series of buttons, the script works out player count, allows you to easily toggle alien skill levels and expansion content, it clears away unused pieces, deals out aliens and relevant tokens, works out flares, and a bunch of other stuff.

I fixed the issue where certain flares and alien cards were showing 'Ace' on the back when dealt to a hand. I also removed the highlight toggle button as it seemed a little pointless to me.

I’ve never done anything like this before so the code for this is probably pretty ugly. It’s my first child so I’ll love it regardless of how much it made me want to bang my head against the wall. I could never work out how to get the discard zones to turn cards face up when dropped on the pile without also rotating cards passing through the zones as they are being dealt to players…

Big shout out to MrStump’s LUA guides (https://steamcommunity.com/sharedfiles/filedetails/?id=714904631) and to Kensuaga’s Nemesis script (https://steamcommunity.com/sharedfiles/filedetails/?id=1265009992). Both really helped me to Frankenstein this together. Also massive high five to Simple for all their feedback and hard work making my original scripts much better.

Eventually I might update with some note cards containing important rules reminders, but I’m happy with the functionality for now. Feel free to fix any issues you find or iterate on this with your own improvements. After spending far too long staring at the code, I’m going to take a break and actually play some boardgames.
32 Comments
ThorAxiun Aug 4, 2024 @ 11:56am 
Just wanted to say this is fantastic and thank you for your work!
jachamberlain  [author] Jan 9, 2021 @ 1:28am 
2/2

Automatic actions are timed by waiting a set number of frames before executing. I've set the timings to be quite generous to avoid issues where actions were overlapping. I've not yet worked out how to get the script to simply wait for an animation to complete. The fact that alien cards are being dealt before being shuffled suggests that you might be coming across a timing issue:
Are you using a particularly fast or slow machine?
Does the frame rate drop a lot when you're using TTS?
Has everything fully loaded on the table before you start setting up?
Are you making sure all card movement animations finish before pressing any more buttons?

Let me know how you get on!
jachamberlain  [author] Jan 9, 2021 @ 1:28am 
1/2

Hi @mandate439, Eons is included with the TTS base game so no need to leave it out when selecting expansions to include.

With regards to the bugs you're encountering, they aren't something I'm able to recreate. I'll try and do some troubleshooting!

The hand zones in TTS can be a little 'grabby'. They sometimes have a habit of catching cards that are moving through them while being moved to another space on the board. The way the cards are originally set up should avoid this, (at least it does when I'm running it). Are you moving any pieces on the table before interacting with the setup buttons? The only time you should need to move anything before starting the game is after alien cards have been dealt to players and you move one from your hand to the space to the right of your ships. If not, it may be connected to a timing issue.
mandate439 Jan 8, 2021 @ 9:40am 
Thanks for putting the effort into this!

I ran into some issues with setup. After selecting what expansions and skill levels to use, all aliens dealt are from the base set, despite my owning all expansions (with the exception of Eons, which I don't believe is available, and which I excluded from setup). In general, the alien cards seem to be dealt out in order -- so if the base set of alien is excluded, it deals out all Incursion aliens first. Moreover, the number of aliens in hand varies from player to player -- some have three to choose from, others have four, others have two.

Any idea what's going on? I am testing all of this on my own without other joined players, both in single-player and on an empty multiplayer game.
jachamberlain  [author] Oct 27, 2020 @ 5:08am 
@Jesentra - Turns out I had a moment to look this morning. I've added in a card that temporarily fixes the Nightmare essence issue until (or if) there's an official fix. I've also added short descriptions of the different add ons you can include during setup as well as directions to which rulebook you need for them. Hope that helps!
jachamberlain  [author] Oct 27, 2020 @ 3:16am 
@Jesentra - Thanks for the suggestions. That's a good shout. I was thinking about adding in some rule reminder cards. Expanding the tooltips when highlighting setup options makes a lot of sense too. I'll add some in when I get a sec.

Good spot with the missing card! Unfortunately it looks like it is a problem with the official DLC. It's not there even in the unedited version. I've got a scanner and a physical copy of the game so I'll see if I can work out how to add it manually!
Jesentra Oct 19, 2020 @ 7:25pm 
Another small thing, I noticed that the Nightmare only has 9 of its 10 Essence cards. Not sure if they're just missing from the DLC, but thought I'd let you know!
Jesentra Oct 19, 2020 @ 6:07pm 
Thanks for the awesome work adding the scripting to the DLC. I was quite irate that this $10 DLC didn't even come with setup scripting!

If I could offer one bit of feedback? If you could add some more highlights to the setup options when choosing what addons to include (like tech, hazards, etc) that give a bit more detail about which expansion they're from, that would be helpful to new players like me. I picked up the game because I've heard such great things about it, and as someone who has zero idea what tech, hazards, space stations, etc include, I was a bit confused during that part of the setup. XD

A massive improvement on the DLC, nonetheless! Thank you for your hard work.
jachamberlain  [author] Oct 15, 2020 @ 1:36am 
@simple - Just uploaded your latest tweaks with the matrix and seat swapping fix. Thanks a lot for this. It works like a dream
simple Oct 7, 2020 @ 11:01am 
@jachamberlain - Since I enjoyed hacking together the last changes, I decided to give another feature I wanted to have a go. I implemented an "alien matrix" which allows you to choose the alien sets individually for each expansion and experience level and also allows the playing without any base set aliens.

In case you're interested, I pasted the script here: https://pastebin.com/ZHaMQsZJ