Cruzada

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.
Post Reply
User avatar
Campeador
Waheguru
Posts: 1340
Joined: Mon Nov 01, 2010 8:11 am
Location: Spain

Re: Cruzada

Post by Campeador »

It's just a bug. Lie! There are some bugs. :P

Some of the versions with my Cruzada have an horrible eco balancement. It's the main reason because I decided to develop Marathon's idea. And I suspect that my economical sns are not neither the best.

The result is that Cruzada has an all around better and more violent flush than Crusade (although with a smaller diversity of strategies) but a much worse castle and imperial ages. Better said, horrible castle and imperial ages.

But I think that I'll can test my new eco balancement next weekend and perhaps upload it.

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

Re: Cruzada

Post by Armelon »

Hey there,

I've just played a couple games with Cruzada to check it out and see if i could see any things that might help you so:

The second lumber camp seems to be dropped rather far away, what in my tests resulted them to be forwarded also.

First mining camp got dropped on middle gold on gold rush right away (this was rather close though im guessing about 20-25 tiles. still was unprotectable for your script though

Cruzada seems to go up to feudal-age as soon it got the 500 food? In the 3 tests i ran it once went with 24 pop, once 25 pop once 26 pop. And in all cases it didnt really seem to deal with everything proper. Only having wood for a single range at first not having enough gold to get archers going right away and such sort of things. In one of them (i believe it was the 26 pop up) it started making a archery-range with 4 villagers, im guessing because it thought it was quite late.

Anyhow i think it would be more effective to have a serten number of villagers to up at, at wich you know for sure it will do what it has to do.

In the one game you manged to reach castle-age your eagles + skirms (double counter on Daedric's Xbows/skirms) You manged to destroy Daedric though, i should really add counters to eagles haha.

Good luck! Hope this can help you some :3

User avatar
Campeador
Waheguru
Posts: 1340
Joined: Mon Nov 01, 2010 8:11 am
Location: Spain

Re: Cruzada

Post by Campeador »

Hi Armelon:

Camps. You are right, Cruzada sometimes builds them too far. I am using 1.c system to place them even in low resources maps, although I suspect taht with UP there are tools to place them in wise sites either in good or bad maps.

Feudal jump. There is a requisite, 24 villagers (this number will depend of the selected strategy) or 1000 food. I had it higher, but there are AIs which are too agressive to allow a slow feudal time and after the economy improvements that I've taken from The Horde and other AIs Cruzada is often able to build an instant archery and with fast gold incoming to don't delay at least the second archer. Keep in mind that if my enemy hasn't started an army Cruzada can attack even with just 3 soldiers (initial scout and extra two men). But I'll keep attention anyway in my next tests to see if Cruzada really needs to boost again the minimal number of dark villagers.

Eagles/skirms. I'ts natural. :devil For the moment I have a single strategy for Mayans, which makes them to train only xbows in castle age as a default plan. But my big scripts always have a counter system because as player I like to face AIs which adapt their armies to what I am using. And Cruzada usually prepares eagles vs skirms and change from xbows to skirms if enemy uses a some archery (including skirms) unless enemy uses too counters to skirms, in such case it will forget xbows and skirms. Another example are huskarls, which convince Cruzada to uses a combination of eagles (or m@a), scorpions and monks.


P.D: Ty for the feedback. B)

User avatar
Campeador
Waheguru
Posts: 1340
Joined: Mon Nov 01, 2010 8:11 am
Location: Spain

Re: Cruzada

Post by Campeador »

New update, but bugged. :head

I've completed the new dynamic gatherer calculator, but it sometimes fails in the castle age. I suspect that the reason are the rams, they cost too much woodcutters, so the minimal number of villagers is often higher that I can have. Perhaps is another bug that I haven't found.

The system consists in calculate the number of villagers in every resource considering the selected units to train, their costs, time training, number of buildings, possible bonuses which affect these stats, etc. I've used values in the excel file for it.
It later reduce them depending of the completed economical upgrades, adds extra woodies for farms, reduce gold miners for relics/trade units, etc.

And in the Mayan Flush, Mayan Crossbow and Mayan Arbalest files I have rules to send the extra villagers (if there are)depending of the age phase.


If the problem is with my rams, a possible solution could be to leave them just for the case in which I have an "excedent" of villagers for the extra-percentage-xxx ones, and similar with onagers (they are just a complement for other antiarcher units) or perhaps castle units (all of them with a really fast training time, although always with a small number of buildings).

Any feedback is apreciated. I'm sure that my idea is good, although there are things to change.

User avatar
Kazein
Swami
Posts: 161
Joined: Fri Apr 19, 2013 1:21 pm

Re: Cruzada

Post by Kazein »

A small suggestion is to use like a 5% escrow on wood to maybe save up for them? (I don't know if you're using escrow already or not).

(IIRC rams are 175 wood)
If the AI gathered 500 wood/minute, at ~%11-12 wood escrow, you could get the cost of a ram in three minutes. Unless my math is off.

User avatar
Campeador
Waheguru
Posts: 1340
Joined: Mon Nov 01, 2010 8:11 am
Location: Spain

Re: Cruzada

Post by Campeador »

My AI doesn't use escrow, although perhaps I'll do something similar to what you say: stop the production of a few wood and gold units to accelerate rams if really needed.

But my problem is not that Cruzada can't train rams. Cruzada does it even too easily. The problem is that when my AI trains rams it often sends every villagers into wood and gold, keeping 3-4 farmers, or even none of them. My probable solution is to convert rams and other siege units in an "extra", to don't use my basic villagers, just for when I have an excess. This solution could require your suggested escrow or to stop wood/gold units unless Cruzada have enough resources.

Well, I have now an idea to implement. The problem is that I have a very important exam next June-July, so my progresses will be much slower until then. But it doesn't matter, I've started a new AI this winter, I want to finish it in a future and everything goes right I'll try to make Cruzada in something as dangerous and more complete than Crusade a couple of years ago. B)

User avatar
Campeador
Waheguru
Posts: 1340
Joined: Mon Nov 01, 2010 8:11 am
Location: Spain

Re: Cruzada

Post by Campeador »

Cruzada updated.

I've resolved the bug which ruined my economy when castle or siege units requested.

UUs and siege are now considered by my eco balance system to calculate extra gatherers, not for minimal ones. This system is less accurate, but erases the risk to colapse my economy if there are not enough villagers to keep all my buildings spamming units.

Perhaps it could be improved adding escrows.


The other thing to improve is my obsolete attack system. Perhaps I learnt to do it in the future. :P

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

Re: Cruzada

Post by scripter64 »

Thanks for the update, Campeador!
It's great to see a new Cruzada :)

Felipe_EL_Guapo
Yogi
Posts: 250
Joined: Wed Jun 11, 2014 8:54 pm

Re: Cruzada

Post by Felipe_EL_Guapo »

Hello,
I tried this AI and displayed ERR5001: File open failed. File Extra Units stuff Caste and Sieget.per. Although still works.

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

Re: Cruzada

Post by scripter64 »

Oh, it seems there's an extra load at the bottom of the main file. You can fix it by opening Notepad, drag "Cruzada Maya.per" onto Notepad to open it, go to the very bottom and add a ";" in front of (load "Extra units stuff Caste and Sieget"), so it's like ;(load "Extra units stuff Caste and Sieget"). After that, please save and see if it works.

Post Reply