Arioch wrote:I'm guessing it's a glitch having to do with the Phidi not normally having a Battlecruiser tech. I'll pass it along.
siyoa wrote:I have few things moded, nothing big, I don't think it should affect anything in that savegame for you to open it (it is mainly some weapon balancing, added slots to PD and bases, ships speed and range increase in late game techs, etc).
zolobolo wrote:siyoa wrote:I have few things moded, nothing big, I don't think it should affect anything in that savegame for you to open it (it is mainly some weapon balancing, added slots to PD and bases, ships speed and range increase in late game techs, etc).
Hi Siyoa, sorry for hijacking the topic, but did you by chance come across the configuration of the Marauder faction during your modding (specifically: their number in the map, how much resource they get, or how they get tech)?
siyoa wrote:hi, I never poked around that one yet, but your question piqued my curiosity it seems quite a lot is going on (in regards to what you are looking for) in "mercenary_empires.lua" in "Lua state\Galaxy" folder
Code: Select all
-- the gremak marauders also get 'associates' with any empire
-- that has good relations with one of the marauder companies.
Code: Select all
local difficulty_to_value_curve = {
brutal= function(pop) return 800+900*pop end,
hard= function(pop) return 400+500*pop end,
normal= function(pop) return 200+400*pop end,
easy= function(pop) return 300*pop end,
}
local difficulty_to_min_psudeo = {
brutal=300,
hard=300,
normal=200,
easy=100,
}
local difficulty_to_cost_mult = {
brutal=3,
hard=5,
normal=10,
easy=18,
}
Code: Select all
local techs = {
[50] = tech_costs.early(.5),
[100] = tech_costs.early(1),
[150] = tech_costs.mid(.2),
[200] = tech_costs.mid(.7),
[250] = tech_costs.mid(.9),
[300] = tech_costs.late(.1),
}
function update_tech(empire)
local thresh = techs[galaxy.year-1100]
if thresh
order.grant_all_techs(empire,thresh)
end
end
siyoa wrote:now, taking a chance, that I point you the wrong direction again, there is a file in "Lua states\Orders\" called "riders.lua" and I think that it is the right one
zolobolo wrote:siyoa wrote:now, taking a chance, that I point you the wrong direction again, there is a file in "Lua states\Orders\" called "riders.lua" and I think that it is the right one
Thanks siyoa, your are my personal summer-santa
I will play around with the file and see if I can get a nice balance out of them.
In hindsight, it seems obvious that this file is the one (raiders=marauders), but was also too lazy to do a full text search on the folder
I honestly thought it will be hidden somewhere deeper, but yeah for us!
siyoa wrote:there is no current support in the code for this (you cannot have two different ship designs named "battleship", etc)
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 {} )
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),
}
Code: Select all
local captured_designs_phidi = join( all_drawer_configs {'HawkBC'} )
Code: Select all
local captured_designs_phidi = join( all_drawer_configs {'HawkBC','MantaBB1'} )
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),
}
Code: Select all
local captured_designs_haduir = join( all_drawer_configs {'MantaBB1'} )
Code: Select all
local captured_designs_haduir = join( all_drawer_configs {'MantaBB1','HammerBB'} )
siyoa wrote: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 againsiyoa 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 thisCode: 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 thisCode: 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 thisCode: 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),
}
Users browsing this forum: dearmad and 61 guests