Stellaris

Stellaris

Better AI economies
61 Comments
Tempes Skumarck 9 Jul @ 10:12am 
this mod also help when i let AI taking care of my colonies?
Hazardous 25 Jun @ 8:02am 
Desperately need this mod for playing megacorp. I can't even run if my commercial partners refuse to walk.
marchin_81  [author] 18 Jun @ 7:27am 
that's the kind of stuff i'm trying to navigate now. and actually, having tried to add new resources myself the past year, that may well be because of their new resources in part (and overall changes). the files that govern how the ai wants/spends resources are pretty fickle.

partly because the ai does thing based on priority lists, it seems. it can't multitask. it also doesn't seem to like spending resources if a ship is over a certain amount (even if it has more than enough resources) or if any single thing is negative. could have 20k in storage, but -1 income and they'll stop building. this whole mod came out of trying to solve that issue in my larger mod. added new weapons & techs, rebalanced fleets, and... they wouldn't build anything.
B flat 17 Jun @ 10:38pm 
Take all the time you need. They're not gonna fix this anytime soon.
B flat 17 Jun @ 10:37pm 
@marchin_81 Whilt it's true that basic resources are now easier than ever for GA AIs (they're still super bad with resources on lower difficulties), they don't seem to actually use those resources though. I just tested 100 years because I always out-scale even GA in 30 years and what I've seen is incredibly disheartening. Sometimes they build nothing at all, despite being capped at resources. Sometimes they just spam fortresses and hydroponics. Sometimes they don't even colonize (couple empires with 1 planet after 100 years).

A mod that makes the AI actually play the damn game is sorely needed.
Bluetail 17 Jun @ 6:29pm 
No problem.
marchin_81  [author] 17 Jun @ 6:23pm 
biggest reason i put off updating it for the moment is because the new economic model shot things crazy in the other direction. the ai is no better at actually picking buildings or managing their economy, but the way resources come from pops passively now means most test games i tried the ai was flush with resources. they basically made it idiot proof. you can suck at managing your economy (like the ai) and it's near impossible to lose.

so really want to rethink how this is working.
Bluetail 17 Jun @ 1:37pm 
I see that too Booper02, I was like "Why was I able to just overpower economily capable empires with just spamming battleships?"
Norym 12 Jun @ 7:08pm 
I need you AI sucksss pls
booper02 6 Jun @ 2:51pm 
anyone else seeing AI not build alloy zones and just struggle to field a navy or is that just me
Norym 28 May @ 10:23pm 
need update
Dana "Boss" 16 May @ 8:18pm 
Can it work with current version?
marchin_81  [author] 11 May @ 1:08pm 
hmm, that seems an easily fixed thing, a bit short sighted of them to miss that. you can easily include a line in the mega file for arc furnaces restricting them from building if they don't have a certain amount of energy income.
Ahmet 11 May @ 5:07am 
AI arc welders builds nonstop arc furnaces, even when they have energy shortages. by the way my testing done as %50 economic bonus without scaling, and research naval cap unity ship upkeep and cost scaling until lategame :D. my secret and most advenced diffuculty setting :D
marchin_81  [author] 11 May @ 2:13am 
interesting, that's still an issue in 4.0?

I've only run a few trial AI-only games so far, like 15 empires in each, but so far I've only seen one empire actually have a negative in... anything. and when you look at the "rare" resources, they average now like +20-50 income even w/o buildings.

the trades may well help, but the colony management part is what i'm rethinking as i work on other mod updates. at least for now, barring further refining 4.0 updates, they've basically just made buildings not really matter. you could pick most at random and the resource income would be fine. it's basically idiot proof (or in this case, AI proof), and because of that... a little boring.
Ahmet 10 May @ 8:19am 
AI's worst economic problem right now, in my opinion, energy shotages caused by arc furnaces. Especially when they annex a system with them. they lose their energy too much. and arc welder origin AI too has energy issues.
If AI trade feature of this mod works, that would solve the problem most of the time.
marchin_81  [author] 7 May @ 7:36pm 
so i've been playing around with 4.0 and i may well re-evaluate this mod entirely based on that. since jobs come now from zones, the AI rather than constantly being in deficits is just to often flush with resources to the point of absurdity.

it's almost an over-reaction to what the AI was doing previously, reducing it to more of a who can spam ships the fastest competition. so... will take some time to think about it.
marchin_81  [author] 6 May @ 3:12pm 
haven't explicitly checked it out to see if it's working yet, but would imagine some of the planet checking would need to change since those events build or demolish buildings-- at the least.

right now, just trying to get the larger mod to not freaking crash on galaxy generation. so it's, uhh... it's a process lol.
kirb 6 May @ 9:41am 
how's this doing in 4.0?
Janlitschka 28 Apr @ 8:40am 
How good is it?
WAAAAGH!!! 14 Apr @ 5:31pm 
wow! I needed something like this
Fernando Cruz 26 Mar @ 3:28pm 
But I like to destroy their economies.
mccoyco64 25 Mar @ 5:16am 
thanks, i.ll give it try:steamthumbsup:
marchin_81  [author] 24 Mar @ 11:42am 
the events all fire on monthly or yearly/bi-yearly pulses, so wouldn't think so-- but I'd still say suggested, since it's hard to predict these things sometimes.

there's nothing blatant though that wouldn't work in an existing game.
mccoyco64 24 Mar @ 4:54am 
is a new game required?
marchin_81  [author] 21 Mar @ 6:41am 
parts will likely need to be updated with the release of 4.0, but before that should be fine
ENZ29 20 Mar @ 11:53pm 
is this still compatible with current version? im new to setellaris and based on the hoi4 mods i kinda dont wanna run into outdated mods often
marchin_81  [author] 15 Mar @ 11:03am 
? this mod doesn't use inline scripts though
MightyShark 14 Mar @ 11:34pm 
Shouldn't the "inline_scripts" folder be under the "common" folder ?
Sometimes 21 Feb @ 1:22pm 
This mod might make the Federation origin actually good. Gonna give it a try and see how it works.
marchin_81  [author] 19 Feb @ 10:51am 
lol, it's honestly the reason i started pulling these out of my larger mod. getting the big mod to work right has been a giant pain in the ass b/c the AI just sucks. it seems to do things in a very linear fashion, incapable of multitasking. so if it gets stuck on one thing it just stops building ships.

they can be maxed out on every resource, have positive income across the board... just stop doing anything.

there's also a second thing I want to pull out that dictates fleet sizes so they're willing to go over limit esp when at war.
Bluetail 19 Feb @ 10:20am 
Not a hot take, its a known fact if you've been playing this game long enough.
marchin_81  [author] 25 Jan @ 11:10am 
this is actually another part of my larger mod that i wanted to pull out, though it was focused more on ships than armies. still, same basic principle just getting ai to actually build enough ships when humans will happily go 2 or 3x over their fleet limits, AI won't.

now fixing the behaviors themselves would take a bit more, because even if AI has transports you may notice they will still just sit there and bomb.
Nesserino Scissors 25 Jan @ 10:19am 
Any chance you could tweak the AI so that it actually builds armies? The AI seems obsessed with building no more than a single landing army and just bombing planets they want to take until the defense armies are gone, which prolongs wars and prevents the AI from going on rampages where they conquer all their neighbors at once when applicable (such as with the Khan)
Ascension 12 Jan @ 10:17am 
Sounds about right.
marchin_81  [author] 11 Jan @ 4:52am 
oh, god. this has been the bane of my existence with the larger mod. their AI economy does suck, but there are also multiple aspects that go into their lack of ships.

sometimes it's b/c they're not building enough anchorage to start, sometimes it's actually the maintenance costs that slow them down (or lack or rare resources), while sometimes they'll just randomly get stuck on some other economy priority.

most fundamental though is just that human players will happily go 100%, 200%... hell, 500% over their command limit. the ai deprioritizes ships as soon as they reach command limit.

problem is getting them to do it w/o otherwise killing their economy. though often, just trying to get them to build defenses, I'll look and they're just sitting on 10k alloys or some dumb shit.
perl 10 Jan @ 3:07pm 
Is it possible to make the AI prioritize alloys more often? So they can afford more ships and present a challenge
marchin_81  [author] 9 Jan @ 8:32am 
it really shouldn't, no.

the events are all new, and are fired from new triggers.

most AI mods change things like defines file that dictates overall AI behavior, and this mod doesn't touch any of those. so only way it could conflict is if someone used the same event name and numbers as me.
DasShift 8 Jan @ 1:23pm 
Is there a chance this might conflict with other AI mods?
marchin_81  [author] 5 Jan @ 3:22pm 
no, because they'd need to be included as options in the events.

in fact, when i pulled this out of the larger mod I was working on I removed the new resources i'd added myself, just in case.
Albys 5 Jan @ 7:25am 
Dumb question, if I use it along with Giga, will the AI try to buy/sell the modded resources?
marchin_81  [author] 4 Jan @ 9:51am 
it really shouldn't, no.

the export/import trade are done with modifiers, same as when player buys rare resources from an enclave, and only fire every 2-5 years (since they're meant to be long-term). and the one-time trades to prevent deficits, that's why I said "are more likely" to sell before actually reaching deficit. they're not running every day or month, meaning AI can miss the opportunity.

building checks are more frequent, but also random so it's not every planet being checked every month. rather, it's spacing them out that way.
Stwiumfever4 4 Jan @ 7:24am 
Does affect performance in any way?
Diefallman 2 Jan @ 4:22am 
anything that helps making ai a bit better is a good mod in my book cheers !
marchin_81  [author] 1 Jan @ 9:57pm 
so yeah, some of these basically cheat that system.
Dragatus 1 Jan @ 9:55pm 
Monthly trades do affect market price, but only if they exceed a certain limit. IIRC the limit is 40 for basic resources, 20 for CGs, 10 for alloys, 4 for strategic resources and 2 for rare strategic resources like Zro and Dark Matter. If you're selling more than the limit the price will slowly go down and if you're buying more than the limit the price will slowly go up. And you still pay the market fee on the trades in either case.

This is why at the very start of the game it makes more sense to buy minerals with a monthly trade than to employ miners. Technicians produce 50% more baseline energy than miners produce minerals, so even with the 30% market fee it's more efficient to employ technicians and buy minerals than to employ miners until you get to the 40 per month limit.
marchin_81  [author] 1 Jan @ 1:31pm 
do the set monthly trades there not fluctuate cost with the market like one time trades? never used them much, just know the one time trades do. here, even the one time trades and purchases I set up for them don't fluctuate though, which is why i called it a bit of a cheat.

emphasis on "a bit" though. if it were a full on cheat I wouldn't be in favor of it. I hate that whole... "let's just give the AI a bunch of free resources," mentality.
Styr 31 Dec, 2024 @ 6:05pm 
Selling goods at fixed rates for AIs isn't really cheating, everyone has access to that (selling at fixed rates via monthly trades) from the internal market, at least pre-galactic community.
Dragatus 26 Dec, 2024 @ 6:34am 
Also points for the cover image. :steamthumbsup:
Dragatus 26 Dec, 2024 @ 6:34am 
I appreciate the high level of compatibility. Will give it a try in my next game.