Tabletop Simulator

Tabletop Simulator

Endeavor - Age of Sail (Scripted) [ENG]
57 Comments
MrSkinny 8 May, 2024 @ 10:09am 
@decumanusmaximus OK, now I see it, thanks. Just so you know my process from UI perspective...

I loaded the mod and looked from top to bottom on the placard that appears to select player count and saw nothing to start without tutorial (like a checkbox). Then I read the first tutorial screen up and down for a checkbox or anything to say to end the tutorial. Then I looked in the bottom-left game console area to see if it was in any text instruction. Then I looked in bottom-right where the Notes are and modmakers often put instructions.

It wasn't until I moused-over the button "Next" and noticed a tooltip that says "Left cllick (Next); Right-click (Cancel)" I think it's pretty natural to unconsciously ignore a transparent tool tip on a big button with the single label "Next" and to expect a right-click to do anything on a button. Is there a reason not to include a separate button next to it that says "Exit Tutorial"?
Decumanusmaximus  [author] 7 May, 2024 @ 7:56pm 
@MrSkinny I believe it says right-click to dismiss tutorial ...
MrSkinny 7 May, 2024 @ 5:23pm 
How do you skip the instructional at the beginning? That's a lot of clicking "Next" if you've already played.
Decumanusmaximus  [author] 19 Nov, 2021 @ 11:54am 
@joelfutch I'm often amazed looking back at what I coded. Quite often it looks impossible but understanding basic logic & how the language works, you're able to pull it off by just doing it. I'd say start small & build from there; you'll be amazed at the progress if you make the time investment. I created a scripting template for TTS that I've documented through out (see link below). Check out some of the scripting guides & this template may help as well to get started. Best of luck!
https://drive.google.com/file/d/1dIfjUDvIt999_Q2iP-wNT2qB-z9PgRV-/view?usp=sharing
joelfutch 19 Nov, 2021 @ 10:22am 
Really well done mod. How did you go about learning all of this scripting? I've been trying to educate myself, but am not finding a ton out there as far as tutorials/manuals. Anyways, hat's off to you on a job well done! This mod is a perfect example of the kind of scripting I would love to one day be able to do myself.

Any chance you will add the expansion here?
bhfred 19 Jun, 2021 @ 7:01pm 
How do you get final score? I don't see a button to click when game is over to score Exploit Tiles.
Helm Breaker 14 Mar, 2021 @ 2:49pm 
Hey awesome work on this mod and thanks!
Any plans to implement the new "age of expansion" to the mod ?
Kobal 17 Nov, 2020 @ 1:16pm 
@Decumanusmaximus: Awesome. Deleted and reloaded the mod and Exploits checkmark issue appears to be resolved. The MOD looks really awesome! I can't wait to test it out with friends later this week.
Ator61 16 Nov, 2020 @ 10:37am 
An additional implementation issue. The code is is allowing Occupy in non-Europe regions before the shipping lane has been unlocked. For new players this then becomes mechanically challenging as the taken token has to be returned to the board and the player token has to be returned to the player dock-board. Since the shipping lane opening is being detected (governor card), it seems like it should be simple to add in this check vs Occupy.
Ator61 16 Nov, 2020 @ 10:33am 
So auto-save games are reverted to not being safe. Just a heads up.
And we have now had 3 games that have broken and we have had to finish manually with the host being spammed with nil pointer issues. There seems to be some issue with the dynamic button creation for 4-5 player situations. Last night I did a couple of Ctrl-z to undo (since someone randomly lost one of the tier5 buildings somewhere... go figure) and the act of undo got the in memory player table confused and it was unable to function. I will see if I can find time to root out what is going wrong but atm I caution folks:
Do not Undo, and don't have anyone dropout or have your server crash mid game. If you do it is likely you will have to finish out manually.
Decumanusmaximus  [author] 15 Nov, 2020 @ 2:42pm 
@Kobal I've uploaded my original mod with the fix for decks added & it appears to work find now. Thanks for the heads up. For the End Turn, make sure the mod has completely loaded before choosing a player color; hope that helps.
Kobal 15 Nov, 2020 @ 1:55pm 
The "End Turn" appears buggy as well. Was playing a 2 player game with a friend and the "End Turn" button kept appearing for the other player who's turn it was not.
Kobal 15 Nov, 2020 @ 1:53pm 
Getting odd error when starting. When clicking the "Exploits" checkmark at start of game, I get the error: "Error in script(Global) Object reference not set to an instance of an object".
Ator61 13 Nov, 2020 @ 9:19pm 
Whoops! The ping player was in a different incarnation that I went down a rabbit hole with and I guess I forgot to reincorporate it when I simplified my approach!
Hummm... the deck adjust was working for 2 multiplayer, but we all know TTS does not always do the same thing for all clients. A delay is probably a good idea.
Decumanusmaximus  [author] 13 Nov, 2020 @ 2:01pm 
@Ator61 Nice! I've updated the mod on the workshop. Your function to fix the decks didn't work on my end. I ended up using a coroutine & introducing a time delay. Also, removed the Video button as the tablet is dedicated to playing the intro video now. Can you tell me more about the hotkey; didn't see anything in the code ...
Ator61 13 Nov, 2020 @ 6:10am 
Oh yeah, and added a hotkey that allows you to PING the active player.
Ator61 13 Nov, 2020 @ 6:09am 
Here are 3 modifications: https://1drv.ms/u/s!AhsgsaRGBhyZgYFBqhNRcV9pd1eEKw?e=bKU6Ug
1. At conclusion of setup, the asset card decks are all popped up above the board.
2. The onSave only triggers IF the number of players seated = number of players selected on setup. This helps with recovery of crashed games from the automatic save file.
3. I removed the second tablet and put in two PDFs for the rules in that location.
Decumanusmaximus  [author] 9 Nov, 2020 @ 9:26am 
@Ator61 I kinda got burnt out on scripting in TTS but I've noticed your comments & if you have a code fix you'd like to implement, let me know & I can update the mod. The issue with the asset cards is related to an update to TTS & when switching states of the board, it slips the cards underneath. I could lock the cards floating until such time as the board state is determined & then unlock ...
Ator61 9 Nov, 2020 @ 8:14am 
Humm... looking at your script you definitely have state info saved/loaded. And alas I did not save off a copy of my broken saved game. I will see if I can duplicate a save/load failure.
Ator61 8 Nov, 2020 @ 5:55pm 
It appears save game is not implemented. We had a server crash and when reloaded the scripting was totally confused and so the game was a loss.
Ator61 12 Oct, 2020 @ 1:01pm 
Oh another bug we encountered. I had no tokens in Europe, so the automatic click to do combat would not let me Attack anyone in Europe (as I assume it was checking for presence.) Per pg. 8 of the rules, "All players are considered to always have presence in Europe whether they have discs there or not."
Ator61 11 Oct, 2020 @ 8:43pm 
Had a wonderful couple of games tonight, thanks again!

I can confirm what snakebyte reported. We tried a 4 player game on the 4/5 player board side. But when we select that the asset cards seem to stay affixed to the other side, so they are face down under the board.
We also had various times where the scripting denied people from collecting an asset card even though it was a valid situation. The Host was able to draw the card for them so it was not fatal.
Ator61 7 Oct, 2020 @ 10:45am 
This is quite an excellent mod! Well done and thank you so much!
0xZikker 22 Jun, 2020 @ 1:31pm 
Ran into a possible bug. 2 player game. After having 5,6,7 discs in the North America region it wouldn't let me grab the 4 value card. It just kept saying "Should you be drawing a card". Trying to see if it is a bug or am I missing a rule? No matter what I did it wouldn't let me draw a card. Thoughts?
snakebyte 23 May, 2020 @ 9:53pm 
I think the latest TTS update might have caused a minor bug with the 5 player board. The asset cards seem to be spawning under (or inside?) the board. You can grab them and pull them back on top, but it would be nice if it could be fixed. Otherwise the mod seems great!
Fuhs 22 May, 2020 @ 3:45am 
@decumanusmaximus we'll give it a try next chance we get. Thanks!
Decumanusmaximus  [author] 20 May, 2020 @ 4:26pm 
@Fuhs I *believe* I've fixed the problem. :) Give it a try & let me know ...
Decumanusmaximus  [author] 20 May, 2020 @ 2:32pm 
@Fuhs Just loaded the mod & having the issue as well. There was a recent update of TTS which tends to break code from time to time. I'll investigate & thanks for letting me know ...
Fuhs 20 May, 2020 @ 1:45pm 
We must be missing something obvious, but when we draw cards, the script doesn't update our resource tracks properly. It adds the resources and immediately removes them, which breaks our ability to use auto-track. What are we doing wrong?
Decumanusmaximus  [author] 13 May, 2020 @ 6:58pm 
@Knaughx I appreciate you taking the time & effort to recognize mod creators. I can't speak for others but it spurs me on to continue doing the work. All the best to you!
Knaughx 11 May, 2020 @ 7:39pm 
Hi, wanted you know that your mod has been added to my collection: Board Game Geek - BGG - May 2020 - Best Mod for each of the Top 500 Rated Games. Collection here: https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2086043930

The collection used this priority system:

1. Mod's Files Availability: Mod with all/most files still available for download
2. Feature completeness: Mod with greatest inclusion of expansions and/or promos available for the board game title
2. Scripting: Mod with scripting that most reduces work in setup/play for players
3. Component Quality: Mod with the best visuals/usability in terms of component quality
4. Table Setup/Ambiance: Mod with the best immersion with table, background, and other modeling.

Please also note that a mod that makes selection for this list very well could be one in which the mod author borrowed the majority of assets from another workshop listing, so full thanks to all who worked on a mod.

Thanks for your hard work!
Caprica55 9 May, 2020 @ 7:11pm 
Very impressive mod!
Decumanusmaximus  [author] 26 Apr, 2020 @ 3:05pm 
@Guatemelon I've scripted & tested a fix re: next round button when saving. Thanks for the heads up!
Decumanusmaximus  [author] 25 Apr, 2020 @ 10:07pm 
@metalnut4 Sent a friend request, appreciate the help!
Guatermelon 23 Apr, 2020 @ 4:25pm 
Next round button disappears on loading any save file, making the game unplayable
metalnut4 20 Apr, 2020 @ 5:46am 
Came across a bug last night. When loading a 5 player game, the scripting breaks and the host gets spammed with error messages about being unable to index into a nil value. Looks like it will happen when loading any game played on the 4/5 player side. I found a fix, and can send you the diff if you'd like.

Loving all the scripting, by the way! Great work!
Decumanusmaximus  [author] 15 Apr, 2020 @ 9:16pm 
@CoJam Unfortunately, it doesn't support hotseat mode due to limitations of TTS
CoJam 11 Apr, 2020 @ 1:05pm 
Having an issue in hotseat mode, scripting wont advance past player 1. Only will send building, tokens, etc to player 1; not to the active player.

hoping there's a solve here since the depth of scripting you've done is amazing.

best.
-J
Lil Blue Spider 8 Apr, 2020 @ 8:42am 
This mod is such an over-scripted mess. Holy damn! Avoid!!!
JudgeDK 2 Apr, 2020 @ 10:23pm 
The best mod i've played so far. Gratz!!
Thorn 29 Mar, 2020 @ 7:53pm 
I have a question, we cant seem to trigger the turn action properly at the star of the game. Player 1 selects their first building, clicks next turn then player 2 has a scrip which asks if they should be selecting a building, are we getting this out of phase? It seems to stay stuck on player 1 actions so that when player 2 clicks on a token on the map player 1's tokens get sent there, same with claiming cards.
Decumanusmaximus  [author] 30 Dec, 2019 @ 5:25pm 
@calabi Somehow missed this comment! I've made the change, hopefully that resolves the issue & thanks.
calabi 27 Nov, 2019 @ 4:24am 
Next Round button bug: button dont' move after click.
lua script line 3320:
_G["o"..vHostPlayer.."SlaveryBoard"].editButton({index=2, position={tPosX, 0.1, -4.22}})
replace to
_G["o"..vHostPlayer.."SlaveryBoard"].editButton({index=3, position={tPosX, 0.1, -4.22}})
TheNcredibleMrE 16 Apr, 2019 @ 1:10pm 
Absolutely Brilliant, By far the best mod I have ever seen on TTS
Lord_Dracula 15 Apr, 2019 @ 9:08am 
Me encanta!!!!:steamhappy:
SaltyO 14 Apr, 2019 @ 10:39am 
love this game, thank you
Mangaboy70 13 Apr, 2019 @ 2:24pm 
Very impressive mod! Thanks for uploading this :)
paulyd83 13 Apr, 2019 @ 12:33am 
Such a shame that this doesn't have a solo play mode! It's screaming for it.
Decumanusmaximus  [author] 12 Apr, 2019 @ 6:16pm 
@Sir_Charles: I've added your wonderful track markers, thanks a bunch! They look great!
Decumanusmaximus  [author] 12 Apr, 2019 @ 4:55pm 
Also, has anybody noticed if the Exploit Keys on the Governor Cards are too big? They should be small enough that they don't go beyond the borders of the Governor Card. It seemed to be happening for players that were *not* the host. Let me know & thanks.