Northgard

Northgard

Enhanced AI
24 Comments
[NewNet]*Akiyama  [author] 4 Oct, 2024 @ 4:51am 
The AI receives a small economic bonus, but I have also used all the means at my disposal to try and improve its resource management. However, the programming possibilities are very limited in Northgard. I would love to enhance the AI's economy more, but that's not possible with a script. I can't even assign a job to a villager. So yes, the AI continues to cheat. However, I've set the AI to a relatively easy difficulty level, so the amount of cheating is manageable. I don't gift units or anything like that to the AI. Killing a few villagers at the AI definitely has a noticeable impact on its economy, so that he can starve in winter.

But there will never be a mod that controls the AI's economy and completely eliminates AI cheating. Unfortunately, that is simply impossible.
Kadarn 4 Oct, 2024 @ 3:12am 
I wanna ask, by : "No starving in winter" U wanna say they are immune to starving ? or they manage way better their ressource to avoid starving ?

Because if it's just more ressource without farming it's just sad
[NewNet]*Akiyama  [author] 11 Jul, 2024 @ 1:15pm 
Of course:
Singleplayer - Custom Game
or Multiplayer - Custom Lobby
In game settings: Add Mod - Choose "Enhanced AI"
If you want to play another clans, look at mod description
If you want to play your own (or any other moded map) look at mod description
You can´t use my AI with random maps or in conquests (no way, Northgard doesn´t support that)
Hermits 11 Jul, 2024 @ 10:07am 
can you tell me how do we use this ?
Lasariko 23 Jun, 2024 @ 3:51am 
Im new to northgard modding scene, how do we use this exactly?
Mamuro 17 Jun, 2024 @ 11:03am 
I LOVE YOU AUTHOR


Please do not abandon this mod, I will name my son yours
[NewNet]*Akiyama  [author] 28 May, 2024 @ 4:14am 
@yanezz: For questions like these, the modding community on Discord is the best place to get help. I think that will be difficult. You can only check where the units are, but not where they are going. And if they have arrived on the field with neutral faction, they have already started the battle. Additionally, you will quickly run into issues with the 0.5 seconds per code execution not being sufficient if you query all units from all players, and the game will crash. That's why I have given the AI a default relationship of 30% with all neutral factions. This way, they no longer engage in hopeless wars against Yotuhn and others.
yanezz 26 May, 2024 @ 9:49am 
By the way, I am coder too. About neutral factions - could AI bot check certain units type in certain tile, for instance for Yotuhn, and DONT invade there if match?
[NewNet]*Akiyama  [author] 22 May, 2024 @ 8:45am 
Thanks yanezz. I'm glad you like it. With the last update I've simplified the mod to the point where the script can be applied to any number of AIs without crashing. Unfortunately, this has made it a bit less "human-like." However, I will try to write a code that makes all the previous improvements possible for multiple AI-controlled players. But Shiro doesn't make it easy for us mod creators :D
yanezz 22 May, 2024 @ 5:20am 
Awesome mod! So refreshing experience now. Human-like Ai. Author hope you come back soon :)
[NewNet]*Akiyama  [author] 3 May, 2024 @ 2:26am 
@Mijj I unfortunately didn't have internet access for much longer than expected. I'll get to that soon.
[NewNet]*Akiyama  [author] 3 May, 2024 @ 2:25am 
@Tonne
Because Shiro doesn't provide this option. I can only upload a mod with a finished map via the workshop. You can take my script.hx from my mod folder and put it in the folder of any of your own or downloaded maps, and the AI will be improved. Shiro doesn't offer us any other options.
Tonne 18 Apr, 2024 @ 2:01pm 
Why only 1v1 couldn't it just be normal round but AI is better?
[NewNet]*Akiyama  [author] 14 Apr, 2024 @ 3:05am 
In the beta Update of northgard the defense and offensive tactics are greatly improved. So I did a test and deleted these code lines in my Enhanced AI. Without these lines the game didn't crashed with 4 AIs. And we had no chance in a 2vs4, even with difficult Level extreme (level 5 of 7). So yes, I will update this mod to be compatible with an numbers of AIs. Sadly I have no Internet the next 10 days, so you'll have to wait... Sorry.
Mijj 11 Apr, 2024 @ 12:13pm 
Can you make it work with 2v2 as I wanted to play it with a friend?
[NewNet]*Akiyama  [author] 21 Mar, 2024 @ 1:24pm 
I'd be happy if you give it a try and give me feedback. Regarding the neutral factions, the AI starts the game with 30% trust towards them. Sure, it's a kind of cheat, but where doesn't the AI cheat? ;) And in 1vs1, the game is practically over before reaching 100% with a faction. However, the 30% prevent the AI from attacking the neutral factions. And he won´t stay on neutral tiles forever.
The AI's economy runs more stable. I'm still looking for a solution to achieve an even more balanced ratio of military to economy, but my options are limited. However, I've never seen my AI starve. He always had enough villagers to build and manage everything. I've had games against Shiro's AI where not a single villager was free to build the Altar of Kings...
And my AI never endlessly sieges a tile. With every attack on his territory, some calculations run to initiate suitable defense strategies. And if he starts an attack and wins, he won't just turn back home but will continue to advance.
Keiter 21 Mar, 2024 @ 10:39am 
gonna try this mod the issues i'm see'n with the current ai is the enemy camping neutrals soon as they win favor that kinda ruines some the matches cause ya can just take there townhall while they camp over there :/ also the dwarves we always scout out dwarves asap to win over then enemy ai almost always wipes the dwarves as soon as they win favor of them it seems so if they get a head start on ya ya have to hussle not so much a problem just predictable then theres starving ai's like over winter the ai wont do anything to help its situation for food or anything like in late game enemy has 25 military units only couple food plots and begin to starve over winter the ai doesnt swap any for villagers to gather food or what not they just starve out again predictable and easy win even on extreme think you mention you tweaked all this stuff wunna give it a try
Dran_____ 16 Mar, 2024 @ 8:44am 
Will be interesting. After returning to Northgard after a couple of years, I got disappointed at how boring the AI is. Was it always that bad? Either way, this might make the AI more fun again.
[NewNet]*Akiyama  [author] 11 Mar, 2024 @ 1:07pm 
My biggest wish, but unfortunately no chance.
d12ddd 11 Mar, 2024 @ 9:25am 
I'm guessing this isn't usable in Conquest?
T-NT 10 Mar, 2024 @ 6:53pm 
Thank you!
I don't really need a "fair play" AI opponent. I'll just go PvP instead.
But I really want Conquest-level AI for PvE co-op, as extreme AI is just not enough...
Glad you made it! Keep it up!
[NewNet]*Akiyama  [author] 9 Mar, 2024 @ 1:30am 
All improvements made by this mod are listed above. However, the programming possibilities are very limited in Northgard. I would love to enhance the AI's economy, but that's not possible with a script. I can't even assign a job to a villager. So yes, the AI continues to cheat. However, I've set the AI to a relatively easy difficulty level, so the amount of cheating is manageable. I don't gift units or anything like that to the AI. Killing a few villagers at the AI definitely has a noticeable impact on its economy. If you manages to do so, because the AI's defensive strategies have improved significantly.

But there will never be a mod that controls the AI's economy and completely eliminates AI cheating.
Dizzy Ioeuy 8 Mar, 2024 @ 4:17pm 
If your AI cheats with resources as the base game does, then no thank you.

If you have improved the gameplay and have an AI level where resources matter to the AI like they do to the player then maybe this mod will be worth something.

Which is it?
FsGoD 5 Mar, 2024 @ 12:30pm 
Thank you for doing what the developer refuses to do. Thank you!