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
if UICity then
MapForEach("map", "DroneHub", BalanceDepotsInHub)
end
You can also do
local ModName = CurrentModDef.title
instead of
local ModName = "[Tidy Depots Official]"
C:\Steam\steamapps\common\Surviving Mars\CommonLua\Realm.lua(6): global MapForEach
(191): global BalanceDepots
BalanceDepots() has a couple MapForEach which needs a map loaded.
You're calling BalanceDepots() from OnMsg.ApplyModOptions/ModsReloaded. modsreloaded is too early, and apply can be called from main menu (also too early).
also:
--can't be local for OnMsg to call it
function BalanceDepots()
it can be local, but it needs to be declared above the onmsgs, not below them (or it'll be nil to them). local "cascades" down.
New version is here: https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=2596833811