Tabletop Simulator

Tabletop Simulator

Imperial Assault 3D
Conkroller 5 Jun, 2023 @ 8:58am
Scripts Broken Upon Reload
Hi all,

Hoping that someone is able to assist with an issue we are having.

The scripts for everything function correctly but when the game is saved and then reloaded (even if no time has passed) the scripts don't seem to work anymore e.g. none of the buttons for the heroes exist.

Is this a known issue, and if so, is there a solution to this?

Appreciate any help.

Thanks.
< >
Showing 1-7 of 7 comments
Worldcleaver 29 Aug, 2023 @ 5:08pm 
Stick the relevant cards in a bag and pull them back out; the buttons will reappear (ditto for weird health bar placement and too-bright lightsabers)
vaetortanner 7 Dec, 2023 @ 11:48am 
I'm having the same issue with all the scripts breaking including the dice roller and putting things in bags isn't fixing it.

The error code I'm getting when I load is this: Error in Script (Global) function <onload>:chunk_3:(484,4-485,0): attempt to index a nil value

I don't know much about coding but I hope that helps
Last edited by vaetortanner; 7 Dec, 2023 @ 12:02pm
bogfish 7 Dec, 2023 @ 4:50pm 
Did a little bit of testing myself, looks like line 484 is indeed the culprit. You can comment out that line to get the scripts to work. Copied it into notepad++ myself, since that was easier than trying to do it in game. I also changed all instances of != into ~=, though I'm not sure that change was necessary.
Last edited by bogfish; 7 Dec, 2023 @ 5:57pm
cmsouza729 31 Dec, 2023 @ 12:15pm 
Originally posted by bogfish:
Did a little bit of testing myself, looks like line 484 is indeed the culprit. You can comment out that line to get the scripts to work. Copied it into notepad++ myself, since that was easier than trying to do it in game. I also changed all instances of != into ~=, though I'm not sure that change was necessary.
I tried this and it didn't work. Can you reference the actual line that needs to be commented out?
Ace Azzameen 3 Jan, 2024 @ 7:07pm 
I followed the instructions of @bogfish below and fixed the script error.
1.) Download Notepad++ if you don't already have it.
2.) Right click on a Mission Card in game and click the "scripting" menu option to pop-up the scripting screen.
3.) On the "global" section, copy the entire script and then paste it into a blank notepad++ doc.
4.) Delete line 484 and find / replace all != into ~=
5.) Return to your game in TTS and paste the new script from your notepad++ doc into the global script section in the game.
6.) Save and re-load your game. The repeating errors should stop. Drop Mission cards into GM bags and pull them back out to reset their scripts.

This is the process that worked for me.
cmsouza729 5 Jan, 2024 @ 4:25pm 
Originally posted by Ace Azzameen:
I followed the instructions of @bogfish below and fixed the script error.
1.) Download Notepad++ if you don't already have it.
2.) Right click on a Mission Card in game and click the "scripting" menu option to pop-up the scripting screen.
3.) On the "global" section, copy the entire script and then paste it into a blank notepad++ doc.
4.) Delete line 484 and find / replace all != into ~=
5.) Return to your game in TTS and paste the new script from your notepad++ doc into the global script section in the game.
6.) Save and re-load your game. The repeating errors should stop. Drop Mission cards into GM bags and pull them back out to reset their scripts.

This is the process that worked for me.

Thank you Ace! Got it working!
Been having problems with this fix, line 484 is
getObjectFromGUID('82f9d9').interactable = false -- dice tower
right?
Cut that line, replaced 99 "!=" with "~="
Copied back, saved, loaded, and comes up with
Error in script (global) function <onload>: chunk_4:(5681,4-5682,0) attempt to index a nil value on start up, and when drawing cards off the imperial units deck to try and load them the same message but with (7124,4-120):
< >
Showing 1-7 of 7 comments
Per page: 1530 50