Rehoboam

Upload your latest creations here.
Please note that by posting comments to posts in this forum you forfeit your personal copyright on whatever you post. AI Scripters reserves the right to re-use objective comments in script reviews without requiring the posting author's permission. Credit, where appropriate will be given in such cases.
TheNightPanda
Forumer
Posts: 23
Joined: Sun May 27, 2018 3:22 am

Rehoboam

Post by TheNightPanda »

Hi all 😊
I’m happy to share my first AI “Rehoboam” with you

Game versions: DE only
Settings (standard): Conquest, 200 pop, ressources low, dark age start, any team setup
Map: Arabia (should do fine on similar land maps with normal ressource spawns)
Civilisations: 1v1/2v2/pocket in 3v3/4v4 - Franks
Civilasations: flank in 3v3 or 4v4 - Mayans
Difficulty: Any. Plays on full strength on hardest and extreme. DUC eco is turned off at difficulties lower than hard or taunt 200. Only cheats when taunt 201 is detected.

Rehoboam only plays a limited number of civs for now. Read more in the above section.

The playstyle of the ai resembles that of the pre WK meta with flanks going for archers and pockets going fc knights. It has somewhat decent anti trush features and will do a little adapting to enemy strategy but not that much. It plays fairly greedy and defensive.
Rehoboam1.51 is quite weak, only slightly stronger than the hard DE/HD ai’s.
Rehoboam 1.60a have about a 50% winrate against the DE extreme AI when playing on its supported settings.
Rehoboam 1.61a seems to have >50% winrate vs most other non cheating AI's when playing on it's supported settings. (DE only). In 4v4 arabia I have not been able to find an ai that could consistantly beat it. It is still quite weak vs early agression though.

It is likely that support for all civs will be added at some point but is not the focus at the moment. Support for userpatch might be added in the far future.

General advice for making future scripts simpler and more effective is more than welcome.
Attachments
Rehoboam 1.61a.rar
Reuploaded fixing patch related bugs
(151.74 KiB) Downloaded 27 times
Rehoboam 1.60a.rar
(107.15 KiB) Downloaded 63 times
Rehoboam1.51.rar
(70.78 KiB) Downloaded 126 times
Last edited by TheNightPanda on Sun May 09, 2021 1:26 pm, edited 21 times in total.

TheNightPanda
Forumer
Posts: 23
Joined: Sun May 27, 2018 3:22 am

Update: Rehoboam 1.60

Post by TheNightPanda »

Happy New Year everybody 😊
I’m happy to share my first update for Rehoboam with you!

Changelog from Reboboam 1.51:
-Dark age and feudal age now have 100% DUC controlled economy. Rehoboam now plays fairly similar to how a human might manage its economy in the early game if not harassed. If Rehoboam faces a bug or a situation the DUC eco is not suited for it will go back to the old 1.51 system.
-Castle age and Imperial age has had minor build order adjustments to take advantage of the faster castle age time.
-Major structural changes to the way the code is organized to make editing and future updates easier to script. (No effect on gameplay)
-Now plays on full strength without cheating on both hardest and extreme. Taunt 200 will now turn off new DUC behavior making Rehoboam play like version 1.51. Difficulties below hard will also play without the new DUC behavior. Taunt 201 will turn on ressource cheats. Taunt 202 will turn off ressource cheats. Default is no cheating.
-Win rate vs. Rehoboam 1.51: >95% in both 1v1 and team games.


All comments and advice are welcome. Note that the only focus for this update was early game eco and that other bugs, weaknesses and missing features will be looked at in future updates. The comming update will likely focus on late game eco.

Many thanks to Esty, Marathon, Promiskuitiv, Aleph, Rubberman, Wildbeast, OffTwo and anyone else i might have forgotten for your contenueus guidance and welcoming community.
A special thanks to CheeseOnToast and Leif Ericson. This update would have been impossible without your guys, especially your help with DUC-commands. Also Leif's awesome encyclopedia has been invaluable.
Last edited by TheNightPanda on Mon Jan 04, 2021 1:56 pm, edited 1 time in total.

lolasik43
Forumer
Posts: 8
Joined: Sat Nov 25, 2017 4:05 am

Re: Rehoboam

Post by lolasik43 »

Thank you for AI ;)

FireBall37
Forumer
Posts: 31
Joined: Sat Aug 22, 2020 10:49 pm

Re: Rehoboam

Post by FireBall37 »

Hi NightPanda! Your ai looks pretty advanced for having started so soon. I'm looking forward to hearing more about it! :D

TheNightPanda
Forumer
Posts: 23
Joined: Sun May 27, 2018 3:22 am

Re: Rehoboam

Post by TheNightPanda »

Feel free to ask anything you wish to know about. I’m also on the discord forum :)

TheNightPanda
Forumer
Posts: 23
Joined: Sun May 27, 2018 3:22 am

Updated to 1.60a

Post by TheNightPanda »

Updated to 1.60a.

Various bug fixes. Most notably fixed some bugs introduced with the latest DE patches which made 1.60 stop playing in feudal age by sending all vills to corners. Might still happend on very rare occations.

This is the version that will be used for the DE AI Ladder. I'm hoping to have 1.61 ready within a month or so :)

User avatar
jdstankosky
Guru
Posts: 908
Joined: Thu Nov 25, 2010 12:30 pm
Location: Florida, USA
Contact:

Re: Rehoboam

Post by jdstankosky »

I have you playing as 1.60a Mayans on Hardest in a 1v1 vs random AI. I noticed an issue with Deer luring/pushing. Once the deer got close to TC the vills would spam garrison into TC and come out non-stop until deer ran away. They never fired arrows at it.

Same game, after a point in Castle Age, as I write this, you have 3500+ Wood, 6400+ Food, 3200+ Gold, and only 400 Stone... Only 2 stone miners and no mining camps near stone. I wonder if you will eventually build a castle... You don't even have a Stable.

(some time later) You were defeated with no change to your AI's behavior.
Do not try to script a counter for everything. That is reactionary, and always slower than taking the initiative in battle. Decide from the start what you are going to do, and do not waiver from it. Own it.

TheNightPanda
Forumer
Posts: 23
Joined: Sun May 27, 2018 3:22 am

Re: Rehoboam

Post by TheNightPanda »

jdstankosky wrote:
Mon Apr 12, 2021 12:51 am
I have you playing as 1.60a Mayans on Hardest in a 1v1 vs random AI. I noticed an issue with Deer luring/pushing. Once the deer got close to TC the vills would spam garrison into TC and come out non-stop until deer ran away. They never fired arrows at it.

Same game, after a point in Castle Age, as I write this, you have 3500+ Wood, 6400+ Food, 3200+ Gold, and only 400 Stone... Only 2 stone miners and no mining camps near stone. I wonder if you will eventually build a castle... You don't even have a Stable.

(some time later) You were defeated with no change to your AI's behavior.
First issue sounds a known bug that mainly happends in MP games due to the vills getting re-garrisoned before having time to fire the arrows. May also happen more on high end pc's with a higher number of passes every second. I'll get around to fixing it eventually, shouldnt be hard.

Second one is because rehoboam cannot yet play mayans in 1v1. If you check the preffered settings you will see that it can only play mayans as flank in 3v3 or 4v4 games :) Rehoboam should tell you at the start of the game if it is not playing on i'ts preffered settings. Maybe I should just make Rehoboam resign if it's being made to play on settings that is likely to lead to major bugs?

User avatar
marathon
Waheguru
Posts: 1976
Joined: Fri May 14, 2010 2:30 pm

Re: Rehoboam

Post by marathon »

Don't resign. Players hate it. Better just inform.

User avatar
jdstankosky
Guru
Posts: 908
Joined: Thu Nov 25, 2010 12:30 pm
Location: Florida, USA
Contact:

Re: Rehoboam

Post by jdstankosky »

i did see that Mayans were a flank position in the code, but i was almost certain it included Mayans, even as it's preference, for 1v1 in the chat. i will double check later. i work too much 😭

also, the high-end PC thing might be true. i have a very powerful computer. if it makes a difference, i was on Casual speed, no speed hack
Do not try to script a counter for everything. That is reactionary, and always slower than taking the initiative in battle. Decide from the start what you are going to do, and do not waiver from it. Own it.

Post Reply