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
as i say, i like the idea of the mod overall, i just dont get why they are soo restrictive on squads, and why they say 4 headed hydra and offer 2 squads ??
I tried it out and the error is gone.
I wanted to debug it to verify everything is done as expected but I haven't come around to it :(
I did not notice a PM btw...
I suspected that the two lines should be revised, but somehow it all worked.
I've changed it now thanks to you Machara, could only test in a single game at the moment, please give me feedback if something is not ok, also in a private message.
local _, _, range, _, fighterCargoPickup = getBonuses(seed, rarity, false)
local bonusfighterCargoPickup = fighterCargoPickup;
local bonusrange = range;
local squads = getNumSquads(seed, rarity, false)
local bonusSquads = getNumBonusSquads(seed, rarity, true)
We are using your mod and noticed errors in the server log:
Execution Context (inner to outer):
#0: getComparableValues data/scripts/systems/fightersquadsystem.lua
could not execute function 'getComparableValues' in '"data/scripts/systems/fightersquadsystem.lua"':
<path>\workshop\content\445220\2658507510\data/scripts/systems/fightersquadsystem.lua:215: attempt to perform arithmetic on local 'range' (a nil value)
stack traceback:
<path>\workshop\content\445220\2658507510\data/scripts/systems/fightersquadsystem.lua:215: in function <path>\workshop\content\445220\2658507510\data/scripts/systems/fightersquadsystem.lua:207>
I think the issues is that you try to retrieve multiple values from getNumSquads and getNumBonusSquads which however only return one value.
Btw, I'm from Austria, but on the interest of general readability I write in English.