Tabletop Simulator

Tabletop Simulator

Tabletop Workshop
Create and import your own content, discover new and exciting games, and take your tabletop gaming experience to a whole new level.
Learn More
Crazy_goat 4 11 Jul, 2023 @ 6:41am
Error in script
Hello
I get an error message when I open one of the workshop jobs
The message says: "Error in script (Global) functio <onload>: chunk_:(2, 39-41): attempt to index a nil value"
I have no idea of ​​programming. Does anyone know what's going on and how to fix it?

I also don't know what effects it produces in the game since I really don't appreciate a defect beyond the error message.
< >
Showing 1-7 of 7 comments
Baryonyx 95 11 Jul, 2023 @ 6:55am 
I also have no idea of scripting really, but two things I can recommend:

1. Go to the workshop page of the mod and ask in the comments about the error.
2. Go to the official TTS discord and ask in the scripting section for help.
CSQRB 3 11 Jul, 2023 @ 9:46am 
You should tell that to author of the workshop item.

However I could try to help with fix if you'll give me a link to that item
Crazy_goat 4 11 Jul, 2023 @ 9:53am 
The author of the workshop item is me. The link is this: https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2997563018
CSQRB 3 11 Jul, 2023 @ 10:12am 
Okay, I see.
Method getObjectFromGUID() can't find object with GUID you provided to it ("4a5471") and it's returning nil. Attempting to use shuffle() on it throws an error.

You should provide it a GUID of item that exists.
Crazy_goat 4 11 Jul, 2023 @ 11:00am 
Okay. I don't know what it means but I'll investigate... Thanks!
Baryonyx 95 11 Jul, 2023 @ 4:43pm 
If you don't know scripting but the mod is scripted, then maybe ask the one who made the script for you? But if I read CSQRBs comment correctly, it seems to mean that the GUID (a unique reference to an object existing on the table) has somehow changed and you need to supply a new one in its place. You need to find out what the script is trying to reference to in that faulty line, then find that object on the table, check it's GUID (can be accessed with right click) and then adjust it in the script.
Crazy_goat 4 12 Jul, 2023 @ 1:10am 
Okay.
I think it's a problem with the cards in the deck. From what I have read they give problems, and at some point before the error message appeared, I combined decks, added individual cards...
< >
Showing 1-7 of 7 comments
Per page: 1530 50