Logo Platform
logo amplifiers simplified

Last batch of AI improvements to AI Core DLL

Copied to clipboard!
a year ago
Nov 20, 2023, 10:06:26 PM

Well, with this one I finish all the big points I wanted to accomplish to improve the AI. If all of these go finally in, players will have a pleasant surprise with AI performance (I hope).


1. At early game AI will usually do a second explorer ship to assign it to a nearby constellation, but as that constellation is usually unreachable, the explorer will sit doing nothing, until is able to go there.


I modified the code so while there are not known nodes on the target constellation, changes into "Explore the nearest node" behavior, and goes back to the "Explore Constellation" as soon as there is a known node on such constellation.


FleetMission_Explore.cs


2. I further improved the code for exploring own system, the issue is, even after fixed is that is so low priority it usually doesn't kick off until very late game, or random circumstances.


I extended the funcion to make the interest rise a tiny bit with each unexplored curiosity in empire systems, and a bit more if that curiosity is on the target system.


SearchAllColonies.cs


I'm pretty proud of these changes, without making exploration any more of a priority, AI will engage with it much more actively. And they synergize very well, sometimes the AI will explore curiosities of a owned system while in "Explore the nearest node", or go back from a explore contellation mission to explore owned nodes, if it is very relevant and is nearby, also possibly upgrading the ship in the process, to go back into the mission later.


As before, I provide my edited code, as well as the original disassembled code as reference, you can compare both with a merge/compare tool (IE WinMerge) to see the exact changes, and apply those into the source code.


The code files: improve-code2.zip


Lastly, a legal disclaimer in the case it is needed: I give Amplitude and their collaborators full permission to use and modify my code if there's any intellectual property held into it, not covered by the game's terms of service.


Thanks for reading.

Updated a year ago.
0Send private message
a year ago
Nov 20, 2023, 10:38:59 PM

I salute the work you are doing to improve the game

0Send private message
a year ago
Nov 21, 2023, 1:01:53 AM

Thanks! don't expect AI in a whole new level, that would need so much extra work, but sure an AI much more competent, consistent and active.

0Send private message
a year ago
Nov 21, 2023, 3:16:06 PM

As I understand you offer a series of AI fixes in multiple threads, right? Would you be so kind to offer one file including all the fixes, or do we have to download all those offered files to manually edit the core file(s)?

0Send private message
a year ago
Nov 21, 2023, 4:16:25 PM

Don't worry, I shared here every change I made in my mod Enfer Reloaded, all the mod are improvements or fixes to current AI Core DLL functionalities. Some or all of it may be there in the next patch, this is the way I can share it and give permission to use it to the patch team. This is to give proper insight and also the necessary logic of every change made so the team could opt to implement it or not.


You don't need to edit anything, either wait for the patch or use the mod with the prepatch beta version installed. Hopefully all of the changes will be on the patch. I was told the two first posts are already implemented.

Updated a year ago.
0Send private message
0Send private message
?

Click here to login

Reply
Comment

Characters : 0
No results
0Send private message