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






https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=3242920330
(Still have to test if it works with this Addon)
this is the best result out of three attempts
this doesnt like life when one is nil lmao
Ive had so many check nil problems myself this is just humbling tbh haha
im just going to comment all dlogs cause tbh I wont need them for now for what Im doing lmao
function shopSellCancel(peerid, npc)
clearUI(peerid, "shop")
local player = G_players[getsteam(peerid)]
shopEncounter(player, npc)
end
ontick is always a huge challenge since the for loops actually bog the performance down a bunch since its adding time complexity for every object in the table
which is why I recommend building ArrayLists (table.insert/table.remove) for the stuff specifically to be ran on onTick, so you can have a counter just itterate through the list so only one object gets updated per tick. Ive done this with my gas stations, works well enough, just gotta pick a counter max thats well above object count
if nearship == nil then
S.notify(peerid, npc.name , "There's no ship to unload!", 2)
return
end
in the function
harbourmasterEncounter
after nearship gets initialized, harbormaster breaks if there isnt a ship nearby