Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
You're right, there's no scripting but some events may not occur according to your track.
In your mod is smaller (12-10)
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
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"
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