Hello Luxcerv,
well the error is triggered by 3 BrewLan units without a faction:
- Code: Select all
warning: Error in file /lua/RuleInit.lua : ...faforever\gamedata\lua.nx2\lua\system\blueprints.lua(496): bad argument #1 to `upper' (string expected, got nil)
If we take a closer look into the blueprint.lua file at line 496, we will find this code line:
- Code: Select all
bp.FactionCategory = string.upper(bp.General.FactionName)
If we have a unit without a FactionName inside the blueprint, we get an error, because you cant build a upper case string from an empty string.
I fixed the line with an failsave and added it on the top of the modded blueprint.lua file from BrewLan.
please download this file:
and overwrite the original file inside your BrewLan mod:
- Code: Select all
C:\Users\YOURNAME\Documents\My Games\Gas Powered Games\Supreme Commander Forged Alliance\Mods\BrewLAN\hook\lua\system\Blueprints.lua
Greetings, Uveso.
PS: We will fix this in the next FAF version.
https://github.com/FAForever/fa/pull/2150