if anyone is interested in a workaround, here it is (I don't have enough time to try to put together permanent fix, and this current solution involves editing one file occasionally during gameplay, takes less than a minute)
first, let me say I was wrong again
siyoa wrote:there is no current support in the code for this (you cannot have two different ship designs named "battleship", etc)
you can have more than one design with the same name, there is a drawback though
now the workaround
"Lua state\
~ShipTechPrereqs.lua", add this code (after definition of
local shared_placeholders, but it can be anywhere, really)
Code: Select all
local captured_designs_yoral = join( all_drawer_configs {} )
local captured_designs_teros = join( all_drawer_configs {} )
local captured_designs_haduir = join( all_drawer_configs {} )
local captured_designs_phidi = join( all_drawer_configs {} )
local captured_designs_orthin = join( all_drawer_configs {} )
local captured_designs_gremak = join( all_drawer_configs {} )
local captured_designs_human = join( all_drawer_configs {} )
in the same file change
local base_configs (it should be right after the code you just added) to this
Code: Select all
local base_configs = {
yoral = join( all_theme_configs 'Box', shared_placeholders,captured_designs_yoral),
teros = join(all_theme_configs ('Hawk'),global_configs,captured_designs_teros),
haduir = join(all_theme_configs ('Hawk'),global_configs,captured_designs_haduir),
phidi = join( all_theme_configs 'Star', shared_placeholders,captured_designs_phidi),
orthin = join( all_theme_configs 'Manta', shared_placeholders,captured_designs_orthin),
gremak = join( all_theme_configs 'Blade', shared_placeholders,captured_designs_gremak),
human = join( all_theme_configs 'Hammer', shared_placeholders,captured_designs_human),
}
now everytime you capture a ship, you can add it to the pool of
captured_designs_...... for the particular race you are playing
so if you capture "Battlecruiser" from Teros/Haduir with Phidi and the game unlocks "Battlecruisers" for you, you change it to this
Code: Select all
local captured_designs_phidi = join( all_drawer_configs {'HawkBC'} )
if later in the game you capture "Dreadnought" from Orthin and game unlocks "Dreadnoughts" for you, you can modify it to this
Code: Select all
local captured_designs_phidi = join( all_drawer_configs {'HawkBC','MantaBB1'} )
before starting a new game, make sure you empty the pool of captured ship designs
ship names are located in "Lua state\Drawers\Ships"
this is nowhere close to elegant solution, but it's quick, and (to my best knowledge) it works, feel free to let me know if something goes funny
a quick example of finished code in my current plays, I have two games ongoing, one Phidi (captured Battlecruiser from Haduir) and one Haduir (captured Dreadnought from Orthin)
Code: Select all
local shared_placeholders = join(global_configs,all_drawer_configs {
'HawkLargeStation','HawkSmallBase','HawkMP','HawkYard'} )
local captured_designs_yoral = join( all_drawer_configs {} )
local captured_designs_teros = join( all_drawer_configs {} )
local captured_designs_haduir = join( all_drawer_configs {'MantaBB1'} )
local captured_designs_phidi = join( all_drawer_configs {'HawkBC'} )
local captured_designs_orthin = join( all_drawer_configs {} )
local captured_designs_gremak = join( all_drawer_configs {} )
local captured_designs_human = join( all_drawer_configs {} )
local base_configs = {
yoral = join( all_theme_configs 'Box', shared_placeholders,captured_designs_yoral),
teros = join(all_theme_configs ('Hawk'),global_configs,captured_designs_teros),
haduir = join(all_theme_configs ('Hawk'),global_configs,captured_designs_haduir),
phidi = join( all_theme_configs 'Star', shared_placeholders,captured_designs_phidi),
orthin = join( all_theme_configs 'Manta', shared_placeholders,captured_designs_orthin),
gremak = join( all_theme_configs 'Blade', shared_placeholders,captured_designs_gremak),
human = join( all_theme_configs 'Hammer', shared_placeholders,captured_designs_human),
}