First versions of my first ever AI

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.
User avatar
halcyon88
Swami
Posts: 138
Joined: Mon Mar 16, 2015 2:43 pm
Location: UK

First versions of my first ever AI

Post by halcyon88 »

I built this AI from scratch but it is very very simple and I only just started learning to script.

There will, no doubt, be plenty of bugs and things to fix

It is very incomplete

Putting my versions out there.

The first version is enough to beat the CD AI on Arabia sometimes even though it doesn't go imp and just stops doing stuff and starts long distance mining, etc.

At the moment all versions are HUNS ONLY AND LAND MAP ONLY.

I plan to transition the AI over time not just into UP commands but into a completely different civ and strategy

Rhapsody0001.per is version 1 and Rhapsody0002.per is version 2, etc.

Would appreciate any advice. I am totally new to scripting but having lots of fun even with just very basic stuff. :)
Attachments
Rhapsody0004.rar
(3.88 KiB) Downloaded 14 times
Rhapsody0003.rar
(3.68 KiB) Downloaded 10 times
Rhapsody version 0001 and version 0002.rar
(6.81 KiB) Downloaded 16 times
Last edited by halcyon88 on Mon Sep 06, 2021 8:01 pm, edited 3 times in total.
A.K.A. TOAO_Philosopher (formely TOAO_ReLeNtLeSsS, TOAO_Leo, TOAO_Ayubu_, TOAO_FSpirit, _TOAO_HussY_ and TOAO__HussaR_ (even before that, Deadly_Hussar— and DEADLY POISON on AOKH back when I was REALLY young)).

MrElephant
Forumer
Posts: 7
Joined: Sun Dec 20, 2020 6:28 am

Re: First two versions of my first ever AI

Post by MrElephant »

First Post!

Looking forward to trying out your new version, as I know you have been working hard on the AI.

Keep up the good work, and aim for the stars (Barbarian)

User avatar
halcyon88
Swami
Posts: 138
Joined: Mon Mar 16, 2015 2:43 pm
Location: UK

Re: First two versions of my first ever AI

Post by halcyon88 »

I really need to know what commands to use to stop the long distance gathering, lol. That would already be a big improvement. I'd really like my AI to just replenish its dropsites when it's just a few tiles away but they still like to gather across the whole map 11
A.K.A. TOAO_Philosopher (formely TOAO_ReLeNtLeSsS, TOAO_Leo, TOAO_Ayubu_, TOAO_FSpirit, _TOAO_HussY_ and TOAO__HussaR_ (even before that, Deadly_Hussar— and DEADLY POISON on AOKH back when I was REALLY young)).

User avatar
halcyon88
Swami
Posts: 138
Joined: Mon Mar 16, 2015 2:43 pm
Location: UK

Re: First two versions of my first ever AI

Post by halcyon88 »

MrElephant wrote:
Thu Sep 02, 2021 12:57 pm
First Post!

Looking forward to trying out your new version, as I know you have been working hard on the AI.

Keep up the good work, and aim for the stars (Barbarian)
Ty, working hard, sure, but only for 1 day so far LOL
A.K.A. TOAO_Philosopher (formely TOAO_ReLeNtLeSsS, TOAO_Leo, TOAO_Ayubu_, TOAO_FSpirit, _TOAO_HussY_ and TOAO__HussaR_ (even before that, Deadly_Hussar— and DEADLY POISON on AOKH back when I was REALLY young)).

User avatar
Leif Ericson
Waheguru
Posts: 1318
Joined: Wed Dec 09, 2009 8:15 pm
Location: United States

Re: First two versions of my first ever AI

Post by Leif Ericson »

I really need to know what commands to use to stop the long distance gathering, lol.
Check out the drop distance SNs: https://airef.github.io/strategic-numbe ... p-distance
Currently exploring the vast oceans and intelligence of Age of Kings.

Happy Scripting!

User avatar
halcyon88
Swami
Posts: 138
Joined: Mon Mar 16, 2015 2:43 pm
Location: UK

Re: First two versions of my first ever AI

Post by halcyon88 »

The key seems to be that I have to learn to combine that SN to stop the long distance travelling along with another fact to act upon in a useful way in order to replenish dropsites effectively.
A.K.A. TOAO_Philosopher (formely TOAO_ReLeNtLeSsS, TOAO_Leo, TOAO_Ayubu_, TOAO_FSpirit, _TOAO_HussY_ and TOAO__HussaR_ (even before that, Deadly_Hussar— and DEADLY POISON on AOKH back when I was REALLY young)).

User avatar
Leif Ericson
Waheguru
Posts: 1318
Joined: Wed Dec 09, 2009 8:15 pm
Location: United States

Re: First two versions of my first ever AI

Post by Leif Ericson »

To be clear, those drop distance SNs are the distance from the nearest dropsite, not the main TC. Usually I keep these SNs constant throughout the game and simply increase sn-mining-camp-distance and sn-lumber-camp-distance over time.
Currently exploring the vast oceans and intelligence of Age of Kings.

Happy Scripting!

User avatar
halcyon88
Swami
Posts: 138
Joined: Mon Mar 16, 2015 2:43 pm
Location: UK

Re: First two versions of my first ever AI

Post by halcyon88 »

Thanks, Leif.
A.K.A. TOAO_Philosopher (formely TOAO_ReLeNtLeSsS, TOAO_Leo, TOAO_Ayubu_, TOAO_FSpirit, _TOAO_HussY_ and TOAO__HussaR_ (even before that, Deadly_Hussar— and DEADLY POISON on AOKH back when I was REALLY young)).

User avatar
halcyon88
Swami
Posts: 138
Joined: Mon Mar 16, 2015 2:43 pm
Location: UK

Re: First two versions of my first ever AI

Post by halcyon88 »

Working on V3 today and spent all day scripting those two versions yesterday so I can safely say that I am addicted 11.
A.K.A. TOAO_Philosopher (formely TOAO_ReLeNtLeSsS, TOAO_Leo, TOAO_Ayubu_, TOAO_FSpirit, _TOAO_HussY_ and TOAO__HussaR_ (even before that, Deadly_Hussar— and DEADLY POISON on AOKH back when I was REALLY young)).

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

Re: First two versions of my first ever AI

Post by TheNightPanda »

halcyon88 wrote:
Fri Sep 03, 2021 4:34 am
Working on V3 today and spent all day scripting those two versions yesterday so I can safely say that I am addicted 11.
Great! 11 get used to it

Post Reply