安装 Steam
登录
|
语言
繁體中文(繁体中文)
日本語(日语)
한국어(韩语)
ไทย(泰语)
български(保加利亚语)
Čeština(捷克语)
Dansk(丹麦语)
Deutsch(德语)
English(英语)
Español-España(西班牙语 - 西班牙)
Español - Latinoamérica(西班牙语 - 拉丁美洲)
Ελληνικά(希腊语)
Français(法语)
Italiano(意大利语)
Bahasa Indonesia(印度尼西亚语)
Magyar(匈牙利语)
Nederlands(荷兰语)
Norsk(挪威语)
Polski(波兰语)
Português(葡萄牙语 - 葡萄牙)
Português-Brasil(葡萄牙语 - 巴西)
Română(罗马尼亚语)
Русский(俄语)
Suomi(芬兰语)
Svenska(瑞典语)
Türkçe(土耳其语)
Tiếng Việt(越南语)
Українська(乌克兰语)
报告翻译问题






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