Page 1 of 1

Labs for minor countries

Posted: Sat Aug 01, 2015 6:45 pm
by Kossatx
Hi, someone knows how to allow artillery or naval labs for countries that haven't as Spain or Sweden?

Re: Labs for minor countries

Posted: Mon Nov 02, 2015 9:51 pm
by DanielHerr
This will be in my mod at viewtopic.php?f=218&t=55355

Haven't tested much yet, but adding this to the end of the files should work:

factions.lua:

Code: Select all

for a, nation in pairs(data.factions) do
 if nation.research.ground then
  nation.research = { ground = 1, artillery = 1, naval = 1, air = 1, armour = 1 }
 end
end
units.lua:

Code: Select all

for a, unit in pairs(data.units) do
 if table.getn(unit.factions) > 1 then
  unit.factions = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 22)
 end
end

Re: Labs for minor countries

Posted: Wed Dec 07, 2016 12:31 pm
by Kossatx
One year later, thanks DanielHerr :D