Tabletop Simulator

Tabletop Simulator

Bios Megafauna 2nd Edition (Scripted) Official
11 条留言
Samuelw  [作者] 2024 年 2 月 13 日 下午 12:48 
Thanks for the notification. I've updated with the newer version of the Atmosphere board.
Il-Roberto 2024 年 2 月 8 日 上午 1:43 
D10d.
You're right, there's no scripting but some events may not occur according to your track.
Samuelw  [作者] 2024 年 2 月 6 日 上午 9:30 
Thanks for the note. Can you provide details on what section of the rules you are referring and what action in the script is triggered based on cloud cover? I don't recall any cloud cover scripting included in the module. ?
Il-Roberto 2024 年 2 月 4 日 上午 1:19 
Cloud-covered precipitation in living rules (Credits on last page 11 october 2021) is between 12 and 8.
In your mod is smaller (12-10)
Samuelw  [作者] 2023 年 11 月 1 日 上午 6:34 
Darth, I'm not able to replicate the error. Can you turn off ModCaching and try again? Others are not getting errors. If possible posting a screen shot to imgur.com or somewhere may help clarify the issue.
Darth Warez 2023 年 10 月 30 日 上午 9:02 
Module rotten. Lot of red error messages about missing custom models.
Samuelw  [作者] 2023 年 10 月 13 日 上午 3:48 
Thanks for the suggestions!

The purpose of the "notebook" save is so that I could easily see the default values, and easily delete/reset the values by simply deleting a notebook. Noting that the NoteBook structure is sometimes buggy because notebook.edit structure is buggy & inconsistent. But it would let me quickly view the default settings when scripting.

By switching to the save format I'm not sure how to quickly replace the old save data and replace it with an updated setupConfig...

I'll try a value [reset_setupConfig ] in onload that is set to false (except when I'm programing and need to reset the save file.)
function loadGlobalData(state)
if state == "" or reset_setupConfig then
---Default setup
setupConfig = setupConfig
Il-Roberto 2023 年 10 月 2 日 下午 11:36 
I solved it differently. To save I use the onSave() event handler as indicated in the API documentation.
I think there are problems managing the black player's notebook where you save the configuration.
If I can help you, this is the code I implemented:

declaration of onLoad function must be
function onLoad(saved_data) ...

Inside you call loadGlobalData(saved_data) (with saved_data parameter)

This is the even handler you need to add
function onSave()
local state = setupConfig
return JSON.encode(state)
end

function loadGlobalData(state)
if state == "" then
---Default setup
setupConfig = {<config stuff>}
else
setupConfig = JSON.decode(state)
if setupConfig.general.step == "0" then
print("Loading defaults...")
else
print("Loading previous data...")
end
end
end

Also I've deleted code that create/search for Black Notebook.
And finally line 34 should be "setupConfig.general.step"
Il-Roberto 2023 年 10 月 2 日 上午 7:38 
I've a problem when loading a saved game.

To fix I added hardSave() at the end of
setupConfig.general.step = "done"
in Setup1_Time_routine before "return 1" statement.

Now I have 2 HardSaveData Notebook (black).
I must delete the empty one but I don't know why it creates a new one.

Setup for 2
Achterbahn
Volodymyr 2020 年 10 月 21 日 上午 8:32 
I've got an issue with the Event Cards. The deck is narrower than it is supposed to be, and when flipped the cards are white and a "Load image failed unsupported format: UNKNOWN" is displayed.
Ludllow 2020 年 9 月 11 日 上午 9:49 
Thanks for keeping up with the work