Stoping a cheating AI -1 reply

  • 1
  • 2

Please wait...

xanofar

Back from the dead!

50 XP

15th April 2008

0 Uploads

783 Posts

0 Threads

#1 10 years ago

How do I disable the ai from being able to build certain units? It's driving me crazy because the ai keeps building tons and tons of capital ships they should only be able to build one or two of. Plus, they typically build their units ten times as fast as I can.

Where do I edit this?




Keraunos281

Addicted to GF

50 XP

3rd February 2008

0 Uploads

266 Posts

0 Threads

#2 10 years ago

DifficultyAdjustments.xml - that's for speed and several other things. Do you play vanilla or a mod?




xanofar

Back from the dead!

50 XP

15th April 2008

0 Uploads

783 Posts

0 Threads

#3 10 years ago

Mods, typically.




Keraunos281

Addicted to GF

50 XP

3rd February 2008

0 Uploads

266 Posts

0 Threads

#4 10 years ago

Then some other things might be changed by scripts (look into sandbox_xxx files), unit files etc.




T3h Piti

Where is this.

50 XP

9th March 2007

0 Uploads

3,087 Posts

0 Threads

#5 10 years ago

it's in a unit's xml, it pretty much tells the ai what to build first and more of, so if you put tie fighters at 1000 expect your force to be of ll corvettes.




Soveriegn

My EMPIRE!!

50 XP

14th October 2007

0 Uploads

307 Posts

0 Threads

#6 10 years ago

Or you could make the enemy factions ships very expensive but that limits you to one faction.




xanofar

Back from the dead!

50 XP

15th April 2008

0 Uploads

783 Posts

0 Threads

#7 10 years ago
Oddslayer;4414877 it's in a unit's xml, it pretty much tells the ai what to build first and more of, so if you put tie fighters at 1000 expect your force to be of ll corvettes.

I found this VERY helpful for stopping the enemies' mass-production of SSDs, etc. Thanks!

By the way, I noticed in changing everything that bigger things are typically set with higher levels, approximately how does the whole thing balance out?

Fighters seem to be about 60, whereas capitals are typically 8000, and space stations are even higher. I tried significantly lowering all space station levels in order to limit the number made and increase land-battle occurances, but they still seem to build them quite a bit.

Also, if I (theoretically) reduced *ALL* levels by half, would it reduce the production of all things by the AI by half, or is it simply based on comparison and it'll produce the same number of things as before?

Again, thanks! I now at least can reduce specific units that the AI spams too much with (the AI had been making 2-4 SSDs per planet at one point!! - usually in less than the amount time it would take me just to build 1!!)




xanofar

Back from the dead!

50 XP

15th April 2008

0 Uploads

783 Posts

0 Threads

#8 10 years ago
Soveriegn;4415782Or you could make the enemy factions ships very expensive but that limits you to one faction.

I was doing that for a while, that and reducing their firepower and company units, that way *when* (not if) they spammed me it wouldn't hit as hard. But, as you can imagine, that was pretty lame...




Sidious Invader

Dark Lord Of The Sith

50 XP

9th January 2007

0 Uploads

853 Posts

0 Threads

#9 10 years ago

I see you got your answer, but when I originally read this I thought you were talking about the magic cash, landunit, spaceunit, and structure drop when you are in a losing situation. If you want to get rid of those cheats open up Defensivegalacticequations.xml in xml\ai\perceptualequations\, and look at the end at the "Needs_magic_..." equationsat the end, and delete everything in between the begin, and end, tags, and replace it with "0.0" this will give it no desire whatsoever.




xanofar

Back from the dead!

50 XP

15th April 2008

0 Uploads

783 Posts

0 Threads

#10 10 years ago
Sidious Invader;4415924I see you got your answer, but when I originally read this I thought you were talking about the magic cash, landunit, spaceunit, and structure drop when you are in a losing situation. If you want to get rid of those cheats open up Defensivegalacticequations.xml in xml\ai\perceptualequations\, and look at the end at the "Needs_magic_..." equationsat the end, and delete everything in between the begin, and end, tags, and replace it with "0.0" this will give it no desire whatsoever.

Well, I'm actually interested in pretty much any info on the production made by the AI since I like to take things in the game rather slowly and defensively, and not have to claim as many planets as possible early on simply so that I have an iron grip on the AI's production (like having space units over ever planet of a certain faction as the Empire simply so I don't have to worry about them mass-producing capital ships, or stealth-taking every planet with a star base level above 2 as the ZC just to keep their production in check).

Wait... so magic is when the AI feels it's losing and creates units out of nowhere to create a challenge? How would I make it so that it'll only do this to a minimum amount? :)




  • 1
  • 2