InFamous-Celtic

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
minimostro
Forumer
Posts: 35
Joined: Sun Apr 09, 2017 10:25 pm
Location: Venezuela
Contact:

InFamous-Celtic

Post by minimostro »

Hello here I leave my first artificial intelligence is very weak but it is the best thing that I have achieved so far I still have a lot to learn.
My head does not enter much information there are many things that I do not understand and I do not know if I understand them but I'm very happy with what I wear so far when I get here I did not know anyt
hing about all this and now I know a little Thanks to you

Some errors were fixed. And now he works a little better just a little better. Try it and tell me how to improve it Thanks.


InFamous Now play with Koreans, Byzantines, Aztecs, Celts, Saracens Every civ does something different or at least try. Please try and help me with your wise advice. Thank you

Play with Celts korean byzantine saracen aztecs
200 population
Land maps
1 vs. 1


Your advice would help me a lot :lol:
Attachments
InFamous.rar
(8.71 KiB) Downloaded 90 times
Last edited by minimostro on Tue May 30, 2017 12:25 pm, edited 3 times in total.
Creating my first ai :head

Armelon
Swami
Posts: 229
Joined: Mon May 06, 2013 12:37 am

Re: InFamous-Celtic

Post by Armelon »

Hello there,

So here are some things i noticed:
1. At the start it does not use villagers to scout for its sheep. it took 2:10 minutes to find its inital sheep.
2. In one game it did not build a house untill 2 minutes.
3. I think you should just read through every single strategic-number (sn) for starters, and add in everything that just sounds usefull. there is one that sends your sheep to the town-center insted of the mill and so on, they only have to be added.
4. It makes a second mining-camp on stone, before a second lumber-camp. mines stone pretty much right from the start yet never uses it. better make a second lumber-camp insted and delay stone miners untill actualy used. you can make a tower right from the start anyways.
5. Does not use "up-drop-resources" hunting boars causes idle time it seems.
(defrule
(unit-type-count-total villager < 25)
(can-train villager)
=>
(train villager)
(enable-timer 1 22) ;villager creation time is 25 seconds
)
(defrule
(timer-triggered 1)
(food-amount < 50)
=>
(up-drop-resources food c: 3)
)
6. Initial camp-max-distance seems to be way to high, making inefficent camps, harder to defend aswell.
7. Maximum food drop distance is like 30 aswell or something? goes to great lenghts to catch fish try atleast halving this number for a more effective eco.
8. There also is an SN that allows your villagers to help you defend. in early feudal-age you could use this to get yourself out of sticky situations, don't forget to turn it down/off intime though! :)

Its doing decent for your first try though, some fine tuning and it can probaly fight the somewhat older AI's.

scripter64
Waheguru
Posts: 5891
Joined: Fri Jan 16, 2009 8:36 pm

Re: InFamous-Celtic

Post by scripter64 »

Thanks, minimostro :)

User avatar
minimostro
Forumer
Posts: 35
Joined: Sun Apr 09, 2017 10:25 pm
Location: Venezuela
Contact:

Re: InFamous-Celtic

Post by minimostro »

Hi Armelon, thank you for trying my ai and most grateful for the advice. I'm going to fix that thing that you say to me and I'm doing the homework even more difficult because I do not know english, hehe, I'm going to read the references of the sn and add as you say thanks again. To all for responding. I almost love them :dance
Creating my first ai :head

User avatar
Esty
Guru
Posts: 929
Joined: Wed Dec 30, 2015 7:37 am

Re: InFamous-Celtic

Post by Esty »

promissing AI, especially with his feudal-age strategy consisting in massing skirmishers :P

You should maybe trigger TSA when you got more than one unit. Thy are actually sent one by one.
Ooh and your "retreat units from TC" looks kinda weird, maybe because of a timer not working as expected.

Keep up the good work :)
Author of the TRiBaL_Warriors AI and currently PharaoN :dance

User avatar
minimostro
Forumer
Posts: 35
Joined: Sun Apr 09, 2017 10:25 pm
Location: Venezuela
Contact:

Re: InFamous-Celtic

Post by minimostro »

Hi Esty! Also noticed that my troops do not form a group and go one at a time and I can not find a way to solve it, would you help me?

The best ai such as barbarian, tribal warrior, promi a group of 8-10 soldiers in feudal age come out to attack together and thus have more chances to win, mine go one by one and are dying :lol:
Creating my first ai :head

User avatar
Esty
Guru
Posts: 929
Joined: Wed Dec 30, 2015 7:37 am

Re: InFamous-Celtic

Post by Esty »

use something like (military-population >= 8) in your conditions to activate your town size attack. Pretty simple :)

I would suggest you to have a code to retreat-to town-center in case your towers are destroyed

Your sn-maximum-food-drop-distance is really too low (8). It should be increased in feudal-age and then in castle-age because it prevent your AI to make more farms, far from your town-center.

(set-strategic-number sn-maximum-food-drop-distance 20) would be OK in feudal.

And i noticed that you didn't set the sn-cap-civilian-builders which determine the number of villagers allowed to build at a same time. I heard that a value of 100 for the start of the game is fine. I dont know what happens if that sn isn't set. Maybe the whole villagers can be simultaneously builders ?
Author of the TRiBaL_Warriors AI and currently PharaoN :dance

User avatar
Esty
Guru
Posts: 929
Joined: Wed Dec 30, 2015 7:37 am

Re: InFamous-Celtic

Post by Esty »

And small explanation about escrow.
I see

Code: Select all

(defrule
         (can-research-with-escrow ri-siege-engineers)
=>
         (research ri-siege-engineers)
It wont work at all. Escrowing resources means you keep a % of the resources you are gathering for a specific research. It requires to be planed that way :

Code: Select all

(defrule
	(the conditions you want)
=>	(set-escrow-percentage food 20) ;Your AI will keep 20% of your next resources of food for the research-with-escrow you desire.
	(set-escrow-percentage gold 12) ;if you want 12 % of gold gathered for your next research with escrow
	(chat-local-to-self "escrowing 20food & 12gold for a specific research with escrow")
	(disable-self))
And then, the escrowed resources will be used :

Code: Select all

(defrule
         (can-research-with-escrow "the research i want") ; the escrowed resources are finally used
=>
	(release-escrow food) ; the escrowed food and gold are spent
	(release-escrow gold)
	(research  "the research i want"))
	(set-escrow-percentage food 0) ; very important, or your ai will keep escrowing the % of that resource permanently
	(set-escrow-percentage gold 0))
You have to be carefull using escrow rules because it can sometimes kill your economy, especially when you escrow resources for expensive researchs. In fact, you need to be sure that the rule which spend the resources will be triggered fastly.
Author of the TRiBaL_Warriors AI and currently PharaoN :dance

kunyi
Guru
Posts: 738
Joined: Tue Mar 21, 2006 7:48 am

Re: InFamous-Celtic

Post by kunyi »

i think if we want better micro for AI-s, we need Copy humans micros... like we copyed human BO-s :devil iam working on it. but hard, many bugs, many good micros, never optimalize... 11, maybe with new 1.5-1.6 rc duc., just actually need more test.

User avatar
minimostro
Forumer
Posts: 35
Joined: Sun Apr 09, 2017 10:25 pm
Location: Venezuela
Contact:

Re: InFamous-Celtic

Post by minimostro »

HI Esty!
use something like (military-population >= 8) in your conditions to activate your town size attack. Pretty simple :)
After reading your comment I worked a little bit on that and I put this up and it works much better. Thank you.

Code: Select all

;    SUPERIORIDAD MILITAR  A FAVOR
(defrule
	(players-military-population any-enemy <= 10)
	(military-population >= 10)
			=>
	(set-goal a-tsa aa-on)
)
(defrule
	(players-military-population any-enemy <= 15)
	(military-population >= 15)
			=>
	(set-goal a-tsa aa-on)
)
(defrule
	(players-military-population any-enemy <= 20)
	(military-population >= 20)
			=>
	(set-goal a-tsa aa-on)
)
(defrule
	(players-military-population any-enemy <= 25)
	(military-population >= 25)
			=>
	(set-goal a-tsa aa-on)
)
(defrule
	(players-military-population any-enemy <= 30)
	(military-population >= 30)
			=>
	(set-goal a-tsa aa-on)
)
(defrule
	(players-military-population any-enemy <= 35)
	(military-population >= 35)
			=>
	(set-goal a-tsa aa-on)
)
(defrule
	(players-military-population any-enemy <= 40)
	(military-population >= 40)
			=>
	(set-goal a-tsa aa-on)
)
(defrule
	(players-military-population any-enemy <= 45)
	(military-population >= 45)
			=>
	(set-goal a-tsa aa-on)
)
(defrule
	(players-military-population any-enemy <= 50)
	(military-population >= 50)
			=>
	(set-goal a-tsa aa-on)
)
(defrule
	(players-military-population any-enemy <= 60)
	(military-population >= 60)
			=>
	(set-goal a-tsa aa-on)
)
(defrule
	(players-military-population any-enemy <= 70)
	(military-population >= 70)
			=>
	(set-goal a-tsa aa-on)
)
(defrule
	(players-military-population any-enemy <= 80)
	(military-population >= 80)
			=>
	(set-goal a-tsa aa-on)
)
(defrule
	(players-military-population any-enemy <= 90)
	(military-population >= 90)
			=>
	(set-goal a-tsa aa-on)
)
(defrule
	(players-military-population any-enemy <= 100)
	(military-population >= 100)
			=>
	(set-goal a-tsa aa-on)
)
(defrule
	(players-military-population any-enemy <= 110)
	(military-population >= 110)
			=>
	(set-goal a-tsa aa-on)
)

;    						SUPERIORIDAD MILITAR  EN CONTRA
(defrule
	(players-military-population any-enemy >= 10)
	(military-population <= 10)
 (strategic-number sn-gather-idle-soldiers-at-center == 1)
			=>
   (set-strategic-number sn-gather-idle-soldiers-at-center 1)
	(set-goal a-tsa aa-off)
	(chat-local-to-self " TENGO MENOS MILITARES RETIRADA ")
)
(defrule
	(players-military-population any-enemy >= 10)
	(military-population <= 10)
 (strategic-number sn-gather-idle-soldiers-at-center == 1)
			=>
   (set-strategic-number sn-gather-idle-soldiers-at-center 1)
	(set-goal a-tsa aa-off)
	(chat-local-to-self " TENGO MENOS MILITARES RETIRADA ")
)
(defrule
	(players-military-population any-enemy >= 15)
	(military-population <= 15)
 (strategic-number sn-gather-idle-soldiers-at-center == 1)
			=>
   (set-strategic-number sn-gather-idle-soldiers-at-center 1)
	(set-goal a-tsa aa-off)
	(chat-local-to-self " TENGO MENOS MILITARES RETIRADA ")
)
(defrule
	(players-military-population any-enemy >= 20)
	(military-population <= 20)
 (strategic-number sn-gather-idle-soldiers-at-center == 1)
			=>
   (set-strategic-number sn-gather-idle-soldiers-at-center 1)
	(set-goal a-tsa aa-off)
	(chat-local-to-self " TENGO MENOS MILITARES RETIRADA ")
)
(defrule
	(players-military-population any-enemy >= 30)
	(military-population <= 30)
 (strategic-number sn-gather-idle-soldiers-at-center == 1)
			=>
   (set-strategic-number sn-gather-idle-soldiers-at-center 1)
	(set-goal a-tsa aa-off)
	(chat-local-to-self " TENGO MENOS MILITARES RETIRADA ")
)
(defrule
	(players-military-population any-enemy >= 40)
	(military-population <= 40)
 (strategic-number sn-gather-idle-soldiers-at-center == 1)
			=>
   (set-strategic-number sn-gather-idle-soldiers-at-center 1)
	(set-goal a-tsa aa-off)
	(chat-local-to-self " TENGO MENOS MILITARES RETIRADA ")
)
(defrule
	(players-military-population any-enemy >= 50)
	(military-population <= 50)
 (strategic-number sn-gather-idle-soldiers-at-center == 1)
			=>
   (set-strategic-number sn-gather-idle-soldiers-at-center 1)
	(set-goal a-tsa aa-off)
	(chat-local-to-self " TENGO MENOS MILITARES RETIRADA ")
)
(defrule
	(players-military-population any-enemy >= 60)
	(military-population <= 60)
 (strategic-number sn-gather-idle-soldiers-at-center == 1)
			=>
   (set-strategic-number sn-gather-idle-soldiers-at-center 1)
	(set-goal a-tsa aa-off)
	(chat-local-to-self " TENGO MENOS MILITARES RETIRADA ")
)
(defrule
	(players-military-population any-enemy >= 70)
	(military-population <= 70)
 (strategic-number sn-gather-idle-soldiers-at-center == 1)
			=>
   (set-strategic-number sn-gather-idle-soldiers-at-center 1)
	(set-goal a-tsa aa-off)
	(chat-local-to-self " TENGO MENOS MILITARES RETIRADA ")
)
(defrule
	(players-military-population any-enemy >= 80)
	(military-population <= 80)
 (strategic-number sn-gather-idle-soldiers-at-center == 1)
			=>
   (set-strategic-number sn-gather-idle-soldiers-at-center 1)
	(set-goal a-tsa aa-off)
	(chat-local-to-self " TENGO MENOS MILITARES RETIRADA ")
)
(defrule
	(players-military-population any-enemy >= 90)
	(military-population <= 90)
 (strategic-number sn-gather-idle-soldiers-at-center == 1)
			=>
   (set-strategic-number sn-gather-idle-soldiers-at-center 1)
	(set-goal a-tsa aa-off)
	(chat-local-to-self " TENGO MENOS MILITARES RETIRADA ")
)
(defrule
	(players-military-population any-enemy >= 100)
	(military-population <= 100)
 (strategic-number sn-gather-idle-soldiers-at-center == 1)
			=>
   (set-strategic-number sn-gather-idle-soldiers-at-center 1)
	(set-goal a-tsa aa-off)
	(chat-local-to-self " TENGO MENOS MILITARES RETIRADA ")
)
(set-strategic-number sn-maximum-food-drop-distance 20) would be OK in feudal.
Fixed thanks

I'm going to record a duel vs your illuminati to see how I work... thanks,thanks, thanks :dance
Creating my first ai :head

Post Reply