Tabletop Simulator

Tabletop Simulator

Gloomhaven - Fantasy Setup (Scripted UI)
Maccers May 22, 2020 @ 2:28am
Monster Stat tile wrong.
Hiya I think read somewhere that this is a user bug.

I mucked around with manually rotating the monster tile once as I thought it was the wrong level (It wasn't) I hit alt and it showed the default 0 even though it was on the right way and actaully was on lvl 1 when i rotated it.

Now everytime a monster is made the figures are the right level and stats but the card tile isn't. So we have to manually rotate them around. Is there a way to revert it back to the way it should without starting a clean game? :)
< >
Showing 1-10 of 10 comments
Kijan  [developer] May 22, 2020 @ 6:06am 
alt zoom does not check the real rotation, it is independed from that. it always show one rotation.
you can rotate it via Q and E but that would mean all altzooms are rotated.
the stats card should match the level on the party sheet. i am not sure what you mean that it is not. maybe send a screenshot and check if the party sheet level is the same as the monster sheet rotation
Maccers May 22, 2020 @ 7:57am 
https://streamable.com/e2xvij

I've made a short video to hopefully explain what is wrong.

For some reason doesn't have my commentary. But basically as you can see. When the monsters are added in the monsters are spawned as level 2 as they should be but the moster tile is set and locked at level 3.
Last edited by Maccers; May 22, 2020 @ 7:59am
Kijan  [developer] May 22, 2020 @ 8:41am 
i think i know what could be wrong with your save. i had tested something at somepoint and forgot to remove it so it slippped in with one update. this seems to be the time you created the save. we quickly fixed it but probably you have it still in ;) so yeah i would know where to look for it ^^ do you know how to edit scripts?
there is probably a line on the scripts object like this
sl = sl + 1
this you can delete then it should be good
Last edited by Kijan; May 22, 2020 @ 8:49am
Maccers May 22, 2020 @ 9:39am 
I don't know how to edit scripts. I sound the script in game but can't find the line of code where I need to delete. Any chance you could point me in it's direction or I can give you my save file to alter?
Kijan  [developer] May 22, 2020 @ 1:41pm 
if you are in the editor choose Scripts on the left. then scroll down until you found the line ;)
Maccers May 22, 2020 @ 2:09pm 
found it

if partySheet ~= nil then
sl = tonumber(partySheet.UI.getAttribute("scenarioLevel", "Text"))
sl = sl + 1
local stats = getObjectFromGUID("6c1b20").getTable("stats")[params.monsterName][sl + 1]
if stats.normal == nil then boss = true end
end

if monster ~= nil then
if not figureBag and pos ~= nil then
local statSheetHeight = 0.1
getObjectFromGUID("f01091").takeObject({
position = pos,
rotation = {0.00, 180.00, 0.00},
smooth = true
}).lock()
local brownBag = monster.takeObject({
position = {pos[1], pos[2], - 27},
smooth = true
})
for _, obj in pairs(brownBag.getObjects()) do
if obj.name == "Boss" then
boss = true
end
end
local rotationStatSheet = {monsters[params.monsterName].rotationStatSheet[1], monsters[params.monsterName].rotationStatSheet[2], monsters[params.monsterName].rotationStatSheet[3]}
if sl ~= nil then
if not boss then
if sl > 3 then
if rotationStatSheet[2] > 180 then statSheetHeight = 0.23 end
if rotationStatSheet[3] > 90 then
rotationStatSheet[3] = 0
statSheetHeight = 0.23
else
rotationStatSheet[3] = 180
end
else
if rotationStatSheet[2] < 181 then statSheetHeight = 0.23 end
if rotationStatSheet[3] > 90 then
statSheetHeight = 0.1
end
end
rotationStatSheet[2] = rotationStatSheet[2] - (sl % 4) * 90
if params.monsterName == "Living Corpse" and rotationStatSheet[3] > 90 then
rotationStatSheet[2] = 270 - (sl % 4) * 90
end
else
rotationStatSheet[2] = rotationStatSheet[2] - (sl % 4) * 90
if sl > 3 then
statSheetHeight = 0.23
rotationStatSheet[3] = 180
end
end
if params.monsterName == "City Archer" or params.monsterName == "Living Corpse" or params.monsterName:find("Commander") then
if statSheetHeight == 0.23 then
statSheetHeight = 0.1
else
statSheetHeight = 0.23
end
end
end


however deleting it doesn't do anything is there another line of code I need to edit perhaps?
Maccers May 22, 2020 @ 2:31pm 
never mind didn't hit "save and play" seems to work now.

Legend!
Kijan  [developer] May 22, 2020 @ 10:46pm 
but you should check the change notes and consider updating to the newest version ;)
Maccers May 23, 2020 @ 1:08am 
how do you update to the latest version?
Kijan  [developer] May 23, 2020 @ 11:25pm 
the best way would be recreating your progress by hand with screenshots and stuff ;)
you can copy the decks that are changed, for example road, city and treasure deck and delete them in the new file and paste them.
if you copy an item and load a fresh save without going to the menu you can paste it in the new one.
for easy copy more then one object you can put them in a bag if you want. bags can be spawned with the build in TTS options at the top
< >
Showing 1-10 of 10 comments
Per page: 1530 50