安装 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(越南语)
Українська(乌克兰语)
报告翻译问题









When the outcome is 0 then it's the first day of spring, 7 wiil be summer, 14 = autumn and 21 is the start of winter.
currentDay = math.ceil(World.TimeIndex/1440)
NextSpringStartsOnDay = (currentDay + (28 - math.mod(currentDay,28)))
daysUntilNextSpring = NextSpringStartsOnDay - currentDay
https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=1465161615
Looking sweet :)
I've included a demo on how that works into the TimeWarpFactor mod, link below.
When you make a script which needs to follow very strict time rules, then follow these tips:
if Get(this,"TimeWarp") > 0 then
if this.TimeWarp == 0.75 then -- medium map
-- timePerUpdate = 6.666666 -- 5 minutes in game needs 5/0.75 = 6.6
-- timePerUpdate = 10 -- 7.5 minutes needs 7.5/0.75 = 10
-- timePerUpdate = 13.333333 -- 10 minutes in game needs 10/0.75 = 13.3
timePerUpdate = 20 -- 15 minutes needs 15/0.75 = 20
-- timePerUpdate = 40 -- 30 minutes needs 30/0.75 = 40
elseif this.TimeWarp == 0.5 then -- large map
-- timePerUpdate = 10 -- 5 minutes needs 5/0.5 = 10
-- timePerUpdate = 15 -- 7.5 minutes needs 7.5/0.5 = 15
-- timePerUpdate = 20 -- 10 minutes needs 10/0.5 = 20
timePerUpdate = 30 -- 15 minutes needs 15/0.5 = 30
-- timePerUpdate = 60 -- 30 minutes needs 30/0.5 = 60
end
else -- small map
-- timePerUpdate = 5 -- game time runs at same speed
-- timePerUpdate = 7.5
-- timePerUpdate = 10
timePerUpdate = 15
-- timePerUpdate = 30
end