Posted: Sat Jan 15, 2011 12:15 pm Post subject:
How to make AI not cheat?
Subject description: How to make AI not cheat?
I have started to make my own AI mod (got annoyed by the cheating hard AI (which was still fairly easy to defeat), but I can't find how to make the AI not cheat.
The AI seems to build super fast and have lots of extra money, when i get war factory built, it already has tech center and lots of tanks.
Only options related to that what I have found are
Only options related to that what I have found are
There's a lot more than that. Search for [AI] and you'll find a whole section for the AI behaviour.
In addition you can find under the [General] section the keys MultiplayerAICM, which gives the AI a money bonus at the start of the game and TeamDelays, AIHateDelays, AIAlternateProductionCreditCutoff, FillEarliestTeamProbability, MinimumAIDefensiveTeams, MaximumAIDefensiveTeams, TotalAITeamCap etc etc.
And finally you have to edit the ai.ini to change the attack and defense teams the ai builds. _________________ SHP Artist of Twisted Insurrection: Nod buildings
Oh I had no explanation for MultiplayerAICM in my rules.ini, I think that'll do the trick. Thanks a lot
I think I'll have to experiment with that value, but I really don't want the AI to cheat at least that much. Does MultiplayerAICM value 250 mean that all the money AI gets is multiplied by 2.5?
And Dutchygamer, I'm trying to test if I can make a challenging AI even if it does not cheat, maybe u can try it too when i get it somewhat done QUICK_EDIT
Does MultiplayerAICM value 250 mean that all the money AI gets is multiplied by 2.5?
No, it's a starting money multiplier, and doesn't affect the income given by harvesters. For example, with a MultiplayerAICM of 250, if you start with 10000 credits, the AI starts with 10000 * (100% + 250%) = 35000 credits. However, when the AI gets 800 credits from a full harvester, it'll get only 800. _________________ CnCNet Client | CnCNet TS patches | More Quality-of-Life Improvements for RA Remastered
Joined: 18 Jun 2005 Location: Dordrecht, the Netherlands
Posted: Sun Jan 16, 2011 12:18 pm Post subject:
Only RA2 has a constant income multiplier, in the form of AIVirtualOrePurifiers (or something named similar, been ages since I modded RA2 properly) QUICK_EDIT
[DUMMYAIMONEYBUILDING]
AIBuildThis=yes
Cost=-1000 ;give the AI some money when build
Strength=0 ;destroy itself when build
Techlevel=1
Prerequisite=CABHUT ;don't allow the player to build this
You could do the same with a unit and add a new team in ai.ini that builds this unit. _________________ SHP Artist of Twisted Insurrection: Nod buildings
I haven't tested that, but I imagine it could interfere with the AI's normal building of buildings. When the AI builds that dummy building, it gets destroyed immediately, and when the AI decides what building to build next it could choose that same building again since it doesn't have one of those in its base. _________________ CnCNet Client | CnCNet TS patches | More Quality-of-Life Improvements for RA Remastered
I know that the AI builds at a faster rate, and it is possible to change this. The build speed of the AI is 1.25 x the human player. Also, you can change the under power speed's (minimum production speed) and the wall/pavement speeds too.
MultipleFactory=0 ; factory bonus for multiples [1=full bonus, 0=no bonus] (def=1)
MinProductionSpeed=.5 ; minimum production speed as result of low power (def=.5)
WallBuildSpeedCoefficient=.5 ; how much faster than normal objects do walls build?
WorstLowPowerBuildRateCoefficient=.3 ; what is the lowest the build rate can get for being low on power?
BestLowPowerBuildRateCoefficient=.75 ; what is the highest the build rate can get when in a low power condition?
Im trying to look for the an AI snipet, the code that tells the computer how much faster or slower to build than the human player, give me a min unless someone can find it before me .
O.K this code tells the computer whether or not to build faster or slower than the human player, however it's not the actual build rate code I was talking about.
BuildSlowdown= ; the default is no, typing yes would mean ti will build slower than the human player _________________ If you don't eat, you don't poo, if you don't poo, you die. QUICK_EDIT
[DUMMYAIMONEYBUILDING]
AIBuildThis=yes
Cost=-1000 ;give the AI some money when build
Strength=0 ;destroy itself when build
Techlevel=1
Prerequisite=CABHUT ;don't allow the player to build this
You could do the same with a unit and add a new team in ai.ini that builds this unit.
Hmm...AFAIK AI ignored tech level but not Prerequisite, Or does I miss remember with RA2/YR?
This tag is not about AI. It is tag that make owner that has multiple factory build faster. _________________ Tiberian Sun : True Power - Reality Power Of 5 Factions... QUICK_EDIT
[DUMMYAIMONEYBUILDING]
AIBuildThis=yes
Cost=-1000 ;give the AI some money when build
Strength=0 ;destroy itself when build
Techlevel=1
Prerequisite=CABHUT ;don't allow the player to build this
You could do the same with a unit and add a new team in ai.ini that builds this unit.
I haven't tested that, but I imagine it could interfere with the AI's normal building of buildings. When the AI builds that dummy building, it gets destroyed immediately, and when the AI decides what building to build next it could choose that same building again since it doesn't have one of those in its base.
You wouldn't hve that problem if you make the building which has Cost=-1000 an (possibly invisible) upgrade which is only available for the AI. It then wouldn't have to destroy itself and the AI would only be able to produce as many upgrades as it has buildings to place it on. _________________ QUICK_EDIT
At least the Tiberian Sun AI isn't as omnipotent as the Tiberium Wars AI. Dear god that thing was full of shit. _________________ You come for the modding but you stay for the Crap Forum. QUICK_EDIT
Joined: 18 Jun 2005 Location: Dordrecht, the Netherlands
Posted: Wed Jan 26, 2011 8:37 pm Post subject:
Regulus wrote:
At least the Tiberian Sun AI isn't as omnipotent as the Tiberium Wars AI. Dear god that thing was full of shit.
Care to explain to me how the AI can fire its Ion Cannon directly at your cloaked structures then, or will build more Devil's Tongues when you have a lot of inf
AI is always all-seeing. It's the way the AI works QUICK_EDIT
I said isn't AS omnipotent. At least in Tiberian Sun when you build an Engineer, a raider buggy shows up out of no where to kill it. _________________ You come for the modding but you stay for the Crap Forum. QUICK_EDIT
Joined: 18 Jun 2005 Location: Dordrecht, the Netherlands
Posted: Wed Jan 26, 2011 9:26 pm Post subject:
Regulus wrote:
I said isn't AS omnipotent. At least in Tiberian Sun when you build an Engineer, a raider buggy shows up out of no where to kill it.
Even that can be done in TS, but I get what you mean. I always wait with training Engies in TW until I have some anti-vehicle units or anti-inf against Scrin (bloody Buzzers) QUICK_EDIT
If you change the [Cost=-1000] or any value with a (-) the computer/human player will get that exact value in extra money.
If you build a power plant that has -1000 cost, you will receive 1000 funds. Also, if you do not deploy the building, but buy units/vehicles/aircraft and your funds reach 0, and you cancel the building, you are now in an invisible debt. It will show 0, but the game knows you owe 1000. If a harvester docs and deposits tiberium, you will still have 0 until the dept is paid back.
Now I just had an amazing idea. Create a new building, like the component tower 2, And create another building, that is an upgrade Called "HSBC Finance". Make the HSBC Finance building an add on to the componnent tower 2, but make the component tower 2 not buildable. Yet making both objects with the same prequest structure, preferably a refinery or barracks. This will allow you to build it, but not deploy it.
And walloah! you can now take out loans on tiberiansun if your stuck lmao.
hsbc.mpr
Description:
Here we go! Just tested it and it works perfectly!
_________________ If you don't eat, you don't poo, if you don't poo, you die. Last edited by ruptioner on Thu Jan 27, 2011 12:41 am; edited 1 time in total QUICK_EDIT
I guess in the game we could include several loan buildings, a basic one at techlvl1, and and intermediate at teclvl 5 and advance loan at techlvl 9, each with a bank name. The higher the tech requirements, the bigger the loan! _________________ If you don't eat, you don't poo, if you don't poo, you die. QUICK_EDIT
You don't need the unbuildable base.
Just create an Upgrade for e.g. CABHUT, a civil building that is never owned by the player. _________________ SHP Artist of Twisted Insurrection: Nod buildings
Making the AI not cheat is pretty pointless in default engine because
1. AI ignores prerequisites, build limits, etc
2. AI has full map and sees through stealth
3. AI can't build extra factories due to cloning issue
4. AI attack forces use scripts which are based on events and thus are limited. It is not dynamic or learning.
Also due to wierd WW logic [Easy] is actually modifiers for a difficult AI and [Difficult] are modifiers for a hard ai. _________________ QUICK_EDIT
Not entirely in my experience. If you have all of your units and structures hidden, the AI's units won't attack you, they'll only move to your base and wait there until something is revealed (in most cases the AI's units will reveal your some base while moving next to your structures though). It doesn't care about stealth when targeting SWs though. And if you have almost everything stealthed but only a few units visible, the AI's attack teams will attack the few visible units instead of their scripts' targets.
^^correct. In TI i often build very fast a stealthgen to cloak my base and this way hide from the AI. If this AI is then attacked by another player, it will also stop sending its forces into my base and attack the other player instead. Since it then has another enemy, it will also stop firing its superweapons at my cloaked base.
Though one mistake (one of my units firing on the AI-player) and the AI will attack me again and it takes a while before another player can take its attention away from me. _________________ SHP Artist of Twisted Insurrection: Nod buildings
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum