Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better Naval AI #21018

Merged
merged 1 commit into from
Sep 7, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
38 changes: 25 additions & 13 deletions mods/ra/rules/ai.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ Player:
BaseBuilderBotModule@naval:
RequiresCondition: enable-naval-ai
MinimumExcessPower: 60
MaximumExcessPower: 200
MaximumExcessPower: 400
ExcessPowerIncrement: 40
ExcessPowerIncreaseThreshold: 4
ConstructionYardTypes: fact
Expand All @@ -247,7 +247,7 @@ Player:
SiloTypes: silo
DefenseTypes: hbox,pbox,gun,ftur,tsla,agun,sam
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the AI should still build them, just perhaps reduce the frequency

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can do that - except for tsla - I found that really impacted the performance of the Ai due to power management issues.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if it's an issue then this is not the correct way of solving it. Instead AI's power management needs to be fixed directly

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's also a cost thing, for whatever reason I've never seen the AI build a flametower that early only a tsla coil which is a very bad strategy. Even if I put a massive delay on the tesla coil it still comes first..

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

try puttin a delay on tesla then

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess I was wrong, a massive delay does work. SAM sites get created first.

Updated PR with that, thanks!

BuildingLimits:
proc: 4
proc: 3
dome: 1
barr: 1
tent: 1
Expand All @@ -261,26 +261,28 @@ Player:
stek: 1
fix: 1
BuildingFractions:
proc: 30
proc: 25
dome: 1
weap: 1
hpad: 20
afld: 20
afld.ukraine: 20
hpad: 15
afld: 15
afld.ukraine: 15
atek: 1
stek: 1
spen: 1
syrd: 1
fix: 1
pbox: 12
gun: 12
ftur: 12
tsla: 12
pbox: 2
gun: 2
ftur: 2
tsla: 1
agun: 5
sam: 5
mslo: 1
BuildingDelays:
dome: 3000
fix: 20000
tsla: 21000
BuildingRepairBotModule:
RequiresCondition: enable-rush-ai || enable-normal-ai || enable-turtle-ai || enable-naval-ai
SquadManagerBotModule@rush:
Expand Down Expand Up @@ -435,14 +437,24 @@ Player:
RequiresCondition: enable-naval-ai
UnitsToBuild:
harv: 1
ftrk: 40
arty: 40
v2rl: 40
jeep: 40
heli: 30
mh60: 30
mig: 30
yak: 30
mig: 15
yak: 60
ss: 10
msub: 30
dd: 30
ca: 20
pt: 10
UnitLimits:
harv: 8
harv: 4
ftrk: 3
arty: 1
v2rl: 1
jeep: 1
UnitDelays:
harv: 10000