Tabletop Simulator

Tabletop Simulator

[Tool][Asset] XML Projector
CalciumKid 17 Nov, 2022 @ 5:07pm
Non-admin chat messages not showing up
Once a projector object has been spawned in chat messages from non-admin players no longer show up for anyone.
To fix this, the host will need to edit all projector object scripts.

Change this:
function onChat(msg, player) if not player.admin then return false end -- THIS LINE BLOCKS NON-ADMIN CHAT if msg == "!projector reload" then log("Resetting projector. Removing all custom assets") proj.assets = resetCustomAssets() Global.UI.setCustomAssets(proj.assets) end end

To this:
function onChat(msg, player) if msg == "!projector reload" then if not player.admin then return false end -- MOVE THAT LINE HERE INSTEAD log("Resetting projector. Removing all custom assets") proj.assets = resetCustomAssets() Global.UI.setCustomAssets(proj.assets) end end

Hope this helps.
Last edited by CalciumKid; 17 Nov, 2022 @ 5:12pm
< >
Showing 1-1 of 1 comments
ScarletDuke 22 Jan, 2023 @ 11:48am 
I think the mod designer was trying to get it to ignore all commands by non-admins. But instead it blocks all messages by non-admins.

This mod was included in another mod, and my friend spent I think around an hour trying to fix this problem not knowing which widget was causing it.
< >
Showing 1-1 of 1 comments
Per page: 1530 50