UnofficialCrusaderPatch / UnofficialCrusaderPatch2

Unofficial balancing patch installer for Stronghold Crusader 1
MIT License
429 stars 60 forks source link

AICE - AI Character Editor - community AIC #280

Open ByBurton opened 5 years ago

ByBurton commented 5 years ago

Hi, I'm in charge for the AICE, and I kinda came up with an idea. I've seen all those wishes you guys have towards all the different AI characters. For example "improve Caliph's economy". So I kinda want to gather all ideas in this thread, and then create a community file which we could probably attach to the patch itself then. What do you guys think?

If you post ideas, please try to format it like this: "AI-Lord: -things to change 1 -things to change 2 -... Next AI-Lord"

And try to format the things you want to change by: offence, defence, siege engines, resources, economy.

~Kimberly

ByBurton commented 5 years ago

@Sh0wdown Can we have a "AIC" and "Discussion" label?

ByBurton commented 5 years ago

I'm gonna start with my ideas:

Pig:

Rat:

Snake:

Wolf:

Wazir:

Caliph:

Richard:

Saladin:

Sultan:

Philipp:

Marshall:

Abbot:

Emir:

Sheriff:

PitchNeeded commented 5 years ago

Raiding troops do need to be increased for most of the AIs apart from Emir and Marshall who send enough I think (although maybe as you say Emir could wait a bit until he has recruited three or so more Arabian swordsmen before he sends his raids). I do notice Emir sends more raiding Arabian swordsmen if he has a lot of gold, big lines of them.

I would suggest Saladin would very rarely send a big group of Arabian swordsmen for raiding too just to switch around his tactics a bit and make him able to destroy buildings in raids. Arabian swordsmen look very regal and would fit with Saladin's status as a king. Saladin needs his counterattacking and patrolling Arabian swordsmen increased in numbers too to rival Emir's I think.

Abbot definitely needs to increase the numbers of monks who raid and counterattack. He can certainly afford it. And Pig needs to rival Sheriff with the raiding macemen.

For Sultan yes, less woodcutters and one additional quarry would be great. He could defend his quarries with a few Arabian archers along with the current slingers and Arabian swordsmen. For Caliph, yes another quarry would be great, he definitely needs the economic boost.

You forget about Nizar and Frederick there,

for Nizar he should build harassment siege engines and increase his raiding and counterattacking forces of assassins and for Frederick larger counterattack forces and maybe build a siege tower for sieges.

It must be tested though with increasing counterattack forces, I am worried that increasing counterattack forces for AI (apart from for Abbot who can just spam cheap monks quickly) would mean they would be slower to respond to threats on the map, as they have to train more units before they send them.

Evrey commented 5 years ago

What do you guys think?

Give me an editor, give it the ability to import config files as community-created bot. I am not interested in a tool that can only select between picked community choices.

Asophix commented 5 years ago

Hello,

I welcome this idea!

I agree with Evrey's suggestion, the option to pick between custom/community profiles should be nice! If the AICE is distributed the same way as the AI Village, it will be perfect.

My suggestions:

The Wolf:

The Emir:

Emperor Frederick:

ByBurton commented 5 years ago

@Evrey This tool is being worked on, by me. We will probably have an early version read this week. You will be able to change all AIs the way you want to, but this community one will be included in the UCP.

ByBurton commented 5 years ago

@pwnasunt The problem with patrols is, is that you can not select specific units an AI should use just for them. They consist of the same units the defence does. E.g. Sultan has Slingers and swordsmen as defence, what do you see around his quarries? E.g. Wazir uses arabian archers and fire throwers as defence, what do you see as his patrols?

YouMoMCallME commented 5 years ago

@ByBurton Thank you for your work on the AICE tool.

I would like to add a knight for the Wolf because I think it is in his style.

I understand that the Stables will occupy a lot of space in his Castle, and the economy will be a little different.

Asophix commented 5 years ago

@ByBurton How do you know that? Although it is mostly true, for example The Lionheart has pikemen with archers, yet you cannot use pikemen defense markers. Also, Saladin has a few Arabian swordsmen in his patrols, but their marker is also unusable, iirc.

ByBurton commented 5 years ago

@pwnasunt How I know that? I found out a lot of these variables. Richard uses pikemen and archers as defence, so that is why he has pikemen as patrols. Same for Saladin. Here, the part of Richard's defence I am talking about: DefUnit1 = EuropArcher DefUnit2 = EuropArcher DefUnit3 = Pikeman

Edit: This means, that he uses twice as many archers as defence as he uses pikemen.

Asophix commented 5 years ago

@ByBurton Interesting. It seems that sortie units also qualify as defenders, right? :D I thought defenders == static defenders only.

ByBurton commented 5 years ago

@pwnasunt Nope. Sortie units are completely standalone. They have nothing to do with defence. Defenders can be split in wall defenders and patrols, but use the same unit types.

ByBurton commented 5 years ago

@Truetobi91 I have made a aic file which maintains the vanilla balance as close as possible. Although I improved the pig a slight little bit more than others, as he is supposed to be stronger than the Snake, and he is underpowered. I also slightly made the wolf even slower with attacking. But with more force. (In the original campaign he also only acted in the end) That balance file will be included in the next UCP.

This one here should be different, it should be made out of community ideas, and not focused on any of your ideas. It should be a mix out of all the different ideas.

PitchNeeded commented 5 years ago

The Emir:

  • Add horse archers to raids (preferrably a large group, like his Arab swordsmen)
  • Add horse archers to patrols (better farm coverage, Arab swordsmen are slow to respond)

Hmm, I don't think this would work well, adding horse archers to his raids would mean he would take ages to raise a siege force (and his big Arabian swordsmen raids are effective enough as they are I think), and adding horse archers to patrols would make him too similar to Wazir, and anyway Emir already uses Arabian archers to defend his farms/quarries/mines if they are under threat from an enemy. At the minute, I notice that Emir first sends Arabian archers out to archers to respond to attacks on his farms/quarries/mines and if these aren't effective in dealing with the threat then then he sends the Arabian swordsmen. I think those tactics are OK as they are.

But I do notice already Emir sometimes sends out a few horse archers to deal with enemy troops attacking his walls. If he could send out some more and not use them for melee combat as he does now but keep them in a safe place just outside his castle firing at the melee troops hacking at his walls, this would be great! Wazir and Saladin could also use the same tactics.

The Emir:

  • Add fire ballistae to siege attacks (they are already made as harassing engines)
  • Add a battering ram or two to siege attacks (helps Arabian swordsmen to get in)

Good ideas for Emir. A ram would be good for Emir for sieges, I do see him almost as the Arabian equivalent of Richard with similar castle defences and reliance on heavy infantry for attack and defence, so it would good if he could be like Richard and use a ram or two.

Emperor Frederick:

Add swordsmen to patrols (better defense against fast raiders) Add swordsmen/knights to defensive marker types (improves wall defenses/enables 'sallying forth')

Frederick already sends 4 swordsmen to counter attack sometimes. He needs to send more than just 4, as this is not enough I think.

PitchNeeded commented 5 years ago

Now the brilliant developers seem to have deciphered the coding needed to edit AI behaviour, would it be possible eventually to create a new AI character? Considering if you edit an AI's behaviour enough using the AICE it would become a new AI essentially, all that would be required is to create a space in the game to have this new AI instead of replacing another one. Yes there would be no speech files or binks initially but I am sure eventually these could be created by someone.

ByBurton commented 5 years ago

"Creating space" isn't that easy probably. But yeah, would be awesome! I still fancy my idea of Robin Hood, using weak units like the rat, but the other way around. Spamming archers, building those watchtowers The Caliph fancies so much, and having kind of a mix of a weird castle in the midst of a nizar island :D . 🤷‍♀️

PitchNeeded commented 5 years ago

"Creating space" isn't that easy probably. But yeah, would be awesome! I still fancy my idea of Robin Hood, using weak units like the rat, but the other way around. Spamming archers, building those watchtowers The Caliph fancies so much, and having kind of a mix of a weird castle in the midst of a nizar island :D . 🤷‍♀️

Sounds great, but rather than spearmen, I would love a Robin Hood character to use tunnelers for melee combat in siege along with the archers, it would be unique, and also tunnelers are faster than spearmen and have a decent attack.

Still would love to see Lord Woolsack from Stronghold 1 with a mix of pikemen, monks and archers. Lord Woolsack was unfairly left out of the game I think when Sir Longarm is there!

YouMoMCallME commented 5 years ago

Still would love to see Lord Woolsack from Stronghold 1 with a mix of pikemen, monks and archers. Lord Woolsack was unfairly left out of the game I think when Sir Longarm is there!

I would also like to see Lord Woolsack. All the more talk animation and sounds are in Stronghold 1.

PitchNeeded commented 5 years ago

I would also like to see Lord Woolsack. All the more talk animation and sounds are in Stronghold 1.

Oh just found somebody experimented and tried to use the gifs and speech from Lord Woolsack here: http://stronghold.heavengames.com/cgi-bin/forum/display.cgi?action=ct&f=14,3626,,10 so it definitely would work.

We would just have to make it so you have to have Stronghold 1 to have that character and use the audio files, but yes that shouldn't be a problem. He would be the pikemen specialist to combat his old rival Sir Longarm's knights! Big groups of pikemen to raid and counterattack, I am imagining him as the Crusader Lord equivalent of Emir both in tactics and personality! And he would have monks because he looks like a Stronghold crusader monk!

But the game actually having a female character would be excellent too, and for this Eleanor of Aquitaine would be the best candidate! A queen consort who took part in the Second Crusade!

Panbutt commented 5 years ago

This is amazing to hear! While I'm bristling with ideas, I'll keep them to a minimum so I don't come off as overwhelming aha. Most of my suggestions here are more quality of life adjustments:

Pig

Nizar

Wazir

Phillip

ByBurton commented 5 years ago

@Panbutt I like your ideas for Philipp and Wazir.

PitchNeeded commented 5 years ago

Marshall, Emir, Saladin, Lionheart, Pig, Frederick

Caliph

Rat

Sultan

Phillip, Nizar and Snake

Wazir

Wazir

Increase wheat farm count from 8 max to 12 max.

One more iron mine and two more wheat farms would be better. I think 10 wheat farms is enough with negative fear factor and the additional iron mine would help him to do better on a map with little oasis area.

ByBurton commented 5 years ago

@PitchNeeded That would strengthen the AI way too much, consider maybe something less strong.

PitchNeeded commented 5 years ago

@PitchNeeded That would strengthen the AI way too much, consider maybe something less strong.

OK maybe only 1 additional iron mine for AIs that already have iron mines (apart from economic genius Abbot who doesn't need any more) then....the exception being Caliph who needs a bit more of an economic boost (1 more iron mine and 1 more quarry) because he is often so slow raising new siege forces because of his expensive troops. I know you said before he is only supposed to be a medium difficulty AI but I think he would struggle with a low gold start against other medium difficulty AIs such as Snake or Pig in a 1v1 at the minute because of his poor economy and expensive siege troops (unless he had tons of oasis grass around his castle and the stone and iron supply was literally right outside his gate). With another stone quarry and another iron mine, he could still do decently even if the stone or iron was a bit of a distance from his castle.

So maybe this would be OK:

Saladin, Emir, Wolf, Pig, Sheriff, Marshall, Lionheart, Frederick

+1 iron mine

Wazir

+1 iron mine (and maybe +1 wheat farm)

Rat

+3 cheese farms (some cheese for the rodent :D)

Phillip, Nizar, Sultan, Snake

+1 quarry

Caliph

+1 quarry and +1 iron mine

Monsterfisch commented 5 years ago

am i right to assume if the ai is assigned units it doesnt have workshops for will automatically buy in the required equipment?

ByBurton commented 5 years ago

@Monsterfisch yes. Regarding workshops though: I have no idea how to change what a workshop produces. For example I have no idea how to tell Philipp to produce pikes instead of spears.

Monsterfisch commented 5 years ago

mhm i see that sure is a bit of a problem but i am sure that after enough digging a value for that will surface eventually. As long as the ai buys in the required equipment that a good start to get some more balanced ais going particularly with the abbot and his gold storage. that being said really looking forward to trying out setups myself with the editor you are working on. particulary with the option to boost the aiv economy to make up for the increased need of gold in case they need to buy in additional armor and weapons to be able to recruit those special "new" units

PitchNeeded commented 5 years ago

mhm i see that sure is a bit of a problem but i am sure that after enough digging a value for that will surface eventually. As long as the ai buys in the required equipment that a good start to get some more balanced ais going particularly with the abbot and his gold storage. that being said really looking forward to trying out setups myself with the editor you are working on. particulary with the option to boost the aiv economy to make up for the increased need of gold in case they need to buy in additional armor and weapons to be able to recruit those special "new" units

"Creating space" isn't that easy probably. But yeah, would be awesome! I still fancy my idea of Robin Hood, using weak units like the rat, but the other way around. Spamming archers, building those watchtowers The Caliph fancies so much, and having kind of a mix of a weird castle in the midst of a nizar island :D . 🤷‍♀️

I was thinking that until a space is created for a new AI in the game, we should have an optional feature as part of the AICE to temporarily swap any one of the other AIs of our choosing with any player made AI so we can just test it out and experiment.

I am going to start creating AIV files for my Lord Woolsack proposal now so I can experiment when AICE is out. I think a castle with lots of the small 10 stone perimeter turret towers and only one or two big square towers could be Woolsack's style. No vanilla AIVs use lots of perimeter turrets, and they look quite nice, and would make him unique. No pitch (not really in his character), but he would use some wooden traps. Quite a few poleturners for his pikemen, a cathedral, inns and statues.

Monsterfisch commented 5 years ago

100% agree i will certainly try my hand at prototyping some new characters (economy and unit wise) that would be interesting to see in game in hope that it will be possible to get them in there additionally.

YouMoMCallME commented 5 years ago

Really looking forward to AICE ....

PitchNeeded commented 5 years ago

Really looking forward to AICE ....

Indeed it's incredible that editing AI tactics, economic buildings and unit types is possible.

Sh0wdown commented 5 years ago

IF you already want to get some insight, here is such a file. vanilla.zip

The AICE will provide a GUI so you don't have to edit text files, though you can still do that if you want. You will be able to install your own edited .aic files with the UCP. I would like to include a few .aics from the community optionally in the launcher. Maybe one can even combine AIC & AIV edits.

I'm also looking into the addition of ne AIs, but that will take more time.

PitchNeeded commented 5 years ago

100% agree i will certainly try my hand at prototyping some new characters (economy and unit wise) that would be interesting to see in game in hope that it will be possible to get them in there additionally.

Also if we are to experiment to make new AIs with the AICE, can it be made please, if possible, so we can use any Stronghold Crusader sound files as quotes for an AI (even peasant quotes!) and use any Stronghold Crusader binks as videos like the halberdier one (from the campaign) and the one with the jester (used for the sandbox/invasion scenario travelling fair event)? That would be excellent.

Monsterfisch commented 5 years ago

I'm also looking into the addition of ne AIs, but that will take more time.

pretty sure this implies the additional soundfiles etc =)

ByBurton commented 5 years ago

@Truetobi91 You could open up an issue for that idea.

PitchNeeded commented 5 years ago

Phillip

An option in the patch once AICE is released to let him use a mix of knights, spearmen, archers and catapults in a siege rather than just spearmen.

A properly sieging Phillip will be amazing to see! Him saying 'My knights will ride you down, charge' before a siege and then some knights actually coming rather than just a bunch of spearmen!

ByBurton commented 5 years ago

@PitchNeeded It would look stupid though, seeing like 6 knights attacking.... And stables are expensive.

Monsterfisch commented 5 years ago

The only thing those knights would look stupid doing is camping in front of the keep killing peasants over and over again to cripple the enemies economy even further to buy more time to recruit the finishing force ;)

ByBurton commented 5 years ago

@Monsterfisch Knights aren't that good ... I won't create an aic with philipp using knights as attack force, it would be way to expensive for him, and ineffective as well.

Monsterfisch commented 5 years ago

i am not trying to convince anyone to put knights in the aic after all that can be tried out by people themselves later if they are curious all i am saying is that knight stats wise sure look better than spearman and if Phillips economy can be upped a little bit the price wouldn't be a big issue anymore. and as it has been pointed out before Phillip sure likes to boast with his knightly strikeforce it would fit his character. appart from that the knights in the attackforce would serve well in destroying the enemy economy during the attack (that way the spearman buy them more time to do damage) on top of the raids

ByBurton commented 5 years ago

Yes, I know, I know. And as you said, you can put those knights in yourself. But even if he boasts with them, having a max of, say, 8 knights "charge" into battle will always more look like a suicide squad. They won't be a threat to anyone probably. They will act like any regular meele units in an offensive force, attack a wall (or towers / gates with the UCP). And that is so not the "ride them down" Philipp meant.

Monsterfisch commented 5 years ago

i hear you but that is exactly why they should be added to the attack force as the knight will at least get to the walls and deal damage plus buy time for the spearman to get closer because they have much better stats, anyways no need to debate this any further after all its a minuscule thing to get worked up about ;)

Rakso69 commented 5 years ago

This stuff is a really great thing! I'll edit my own Wolf once it get's published. I hope it to have under access every single AI aspect, not limited by any case, by which I also mean min/max catapults/trebuchets/fire balista etc. for sieges, min/max woodcutters and alike. Basically every single one of these if that's possible to edit. By the way I'd like to ask: I've noticed some users use some different AIV Editors over here(based on pics they post), looks it has a desert and has a higher resolution, the one on which I'm working uses grass and low resolutions. Could anyone post a link to a "best" or "better" one if has one for download? Maybe it allows for some additional guarding troops to be deployed, also more cata/trebuchets too? Feeling like I would might still be using old tools, while new ones are avaible for use already, lmao! Cheers!