Tinker with strategic range

A place for discussion of making game modifications.
Noyyau
Posts: 45
Joined: Mon Nov 25, 2019 9:07 pm

Tinker with strategic range

Postby Noyyau » Mon Jun 22, 2020 5:15 pm

I'd like to experiment with different values for the strategic range, especially in the early game.
I've attempted to look into the lua files though honestly I've no idea what I'm seeing.
Is there a file where I can simply change a "2" into a "3" (or whatever the actual numbers are) and see how a game goes with different range values?

P.s. yes I'm aware there's the option at game setup to have denser or sparser stars, but that isn't what I'm looking for. I've been quite pleased with the balance of travel times with the sparse stars, I'd just like to see if/how the AI manages to better expand with more reachable systems in the early game.

User avatar
siyoa
Posts: 182
Joined: Fri Apr 21, 2017 3:19 pm

Re: Tinker with strategic range

Postby siyoa » Thu Jun 25, 2020 5:21 am

I think you can start here, file @tech_properties.lua

Code: Select all

EmpireProperty.bonus_drive_speed =  empire_inc_function('bonus_drive_speed',0)
EmpireProperty.bonus_drive_range =  empire_inc_function('bonus_drive_range',0)
EmpireProperty.base_drive_speed =  empire_set_function('base_drive_speed',0)
EmpireProperty.base_drive_range =  empire_set_function('base_drive_range',0)

EmpireProperty.drive_speed = function(empire)
   return empire.base_drive_speed + empire.bonus_drive_speed
end

EmpireProperty.drive_range = function(empire)
   return empire.base_drive_range + empire.bonus_drive_range
end


try change that last section to this (or +2, +3)

Code: Select all

EmpireProperty.drive_range = function(empire)
   return empire.base_drive_range + empire.bonus_drive_range +1
end
How did YOU get a key? All right, go in.

Noyyau
Posts: 45
Joined: Mon Nov 25, 2019 9:07 pm

Re: Tinker with strategic range

Postby Noyyau » Thu Jun 25, 2020 5:28 pm

Thank you siyoa, that is exactly what I was looking for and that +1 works.

Kornstalx
Posts: 6
Joined: Fri Apr 24, 2020 7:43 am

Re: Tinker with strategic range

Postby Kornstalx » Thu Sep 10, 2020 12:12 pm

I also enjoy Sparse galaxy settings for the more strategic pacing, but have noticed the AI can become closed in and doesn't seem to handle it well early. This is especially true on Box/Sparse galaxies. The universe is more Moo2-like when Boxed, however it's discouraging to play for hours and find the last AI on a huge map only to discover he's turtled in some corner the whole game with no outside contact due to one bad jump. I tinkered with giving all ships a base increase (as proposed above) but at that point you're just essentially playing on a non-sparse galaxy, with slower movement.

A better solution IMHO is to increase the range bonus from Warp Lane Amplifiers. This way the key expansions ships (Outposts, Colonies, Scouts) can reach through these RNG map bottlenecks if needed, without throwing off vanilla fleet movement balance. This also creates "frontier" situations where you and your neighbor can both reach systems with Scouts and Outposts, then fight over them, without allowing your main fleet to get involved until the frontier is actually secure.

I doubled Warp Lane Amps (+1 -> +2 parsecs) and have had great results on Box/Sparse galaxies with the AI. It creates some real Star Trek frontier situations, until someone can actually get an outpost up long enough to get a real fleet there to defend it. Scouts fighting Scouts, and lots of strategic maneuvering. As the game goes on, the effect of this settles down since Amps give a flat bonus instead of a %% range increase. Early on +2 is a 66% bonus (as opposed to vanilla +1, 33%) but as each tech with a base fleet range increase is discovered, this bonus begins to diminish.

I honestly think +1.5 for Amps would be perfect since that's a +50% bonus from the start of the game (just like Moo2), but in my test games I just felt like it didn't help the AI enough on Sparse/Box galaxies. I most definitely would NOT use this mod with anything but Sparse galaxies, and I honestly would not recommended it even with Sparse/Elliptical ones. Ellipse galaxies look nice, but even when Sparse it's just too crowded. There are no real "frontiers", and every civilization will discover each other by mid-game.

I'll attach the mod to this post if anyone wants to mess with it. In addition to the Warp Lane Amplifier change, I also reversed functionality of the "Show Range Circles" game option, if it's enabled. Now the maximum empire range is always displayed (e.g. with Amplifiers). If you select to move a ship without a Lane Amplifier it will display that ship's range as a smaller, inner circle. This change lets you see at a glance if there's any frontier you can reach but are not aware of. In vanilla I found I was often paranoid-cycling through my scouts, just to see if there was a reachable star I wasn't unaware of.

There's a readme included with the names of vanilla files modified for each of the effects listed above. You can easily change the +2 bonus to +1.5 if you'd like, or simply delete/remove the Range Circle changes if you don't want to use them.
Attachments
RangeMod.zip
(22.47 KiB) Downloaded 892 times

Noyyau
Posts: 45
Joined: Mon Nov 25, 2019 9:07 pm

Re: Tinker with strategic range

Postby Noyyau » Mon Sep 14, 2020 6:33 am

Thank you Kornstalx , that's a much more elegant little mod. I think it will make Range Amplifiers quite important, and adding a R.A. or a shield to main fleet ships will become an important decision to make.
I'll try it out.

TerryTigre
Posts: 3
Joined: Tue Mar 26, 2024 9:25 pm

Re: Tinker with strategic range

Postby TerryTigre » Thu Apr 11, 2024 11:16 pm

A tiny bit late, but thanks for this post.

I had set the galaxy to sparse, with rare habitable worlds, and as a result the AIs were not expanding at all.

I used this to set the range higher, and all of a sudden they were expanding properly (but not as fast as I expected).


Return to “Modding”

Who is online

Users browsing this forum: No registered users and 9 guests