par002 par002

AI isnt very smart.. it Cheats

AI isnt very smart.. it Cheats

Cheating AI

I did some tests with not only exploring ships that can auto survey, but also with a small galaxy and watching what the AI players do.

Auto Survey.

Take one of the ships that you have and make a direct b-line somewhere where it is completely surrounded by fog of war. When it is out far enough, turn on Auto Survey. It will go directly to an anomaly outside of its "viewed" space. Cheats Although is is for my empire, it just proves that the AI knows were everything is on the map w/out "discovering" it first.

AI Colonization.


I randomly kept generating a small galaxy map with only 2 players and I made sure that I was on the opposite end of the map from the AI. During gameplay, I built nothing but exploring vessels and researched sensors so that I could see a long ways. All I focused on was uncovering the map as much as I possible on my side of the galaxy w/out losing the ability to "see" where the AI was going..

I want to make it clear, I was EXTREMELY vigilant on watching where the AI ships were going and recorded what they could "possibly" have seen with their scouts.

Loe and behold, without any "scouting" ships (or ANY ships for that matter) I saw the AI player building colony ships and sending them to my side of the map to habitable planets that the AI could NEVER have seen.

I repeated this test 5 times with a small galaxy and a different race each time (thinking it might be possible for some races to be omniscient?). And all 5 times the AI exhibited the ability to see resources and habitable planets w/out "discovering" them first.

I am a programmer myself (business apps actually.. would like to get into gaming some day) but I focused on AI during my last year in college. It would not be "too" hard to create a heuristic that would allow the AI the INABILITY to choose destinations that it was unable to "discover" first.

By the way, the AI was on "NORMAL" for all of these tests.

This is the MAIN reason why this game needs multiplayer. There are only so many times I will play this game on single player *knowing* that I am at a distinct disadvantage from my opponents.

PAR
99,113 views 147 replies
Reply #26 Top
And your quote "...they may release..." is the reason I am posting here. So I am doing what I can to let them know that a multiplayer "patch" would greatly increase their sales.


Yet again, I'll say it. Chill. Meaning relax. If you think that you are the only person that has brought this up, you obviously didn't read the (literally) hundreds of posts about multiplayer that already were posted. You might check out the post named "Galactic Civilizations: The case for no multiplayer". As of now it has 96 replies, many from the designers of the game. That might answer all of your questions. And that isn't the only post that covers it.

If your complaints about the single player aspect of the game were simply to promote your wish for multi-player, you really DO need to relax a bit.

Personally, I believe that there are enough people asking for multi that it WILL show up. But being obnoxious about it will not speed the release.

You are the one who is taking this too personally. I suggest that you take a time out.

I am not arguing... I am stating facts with more facts and would love others to do the same tests and tell me I'm full of $hit with something backing it instead of typical "i said this so believe it"


Sorry. You are arguing. And being obnoxious as well. Please stop it.

Reply #27 Top
hehe i'll tell par to chill just because it gets him so mad
Reply #29 Top
Here we go again

Everybody jumps on the "lets trash the guy who makes a comment we don't like" bandwagon. And he actually has facts! And yes I know that everyone who worships this game automatically knows everything in the universe about AI and how it works. In a normal forum if people think someone is being an idiot they just ignore them. There is a post from the "bad" party and that's it. Everyone just ignores them. The post fades away quietly. But here everyone else get's so insulted they feel better only by trashing the 'bad" party. (And yes I am expecting to get trashed for this post.) So don't any of you 6 year olds dissapoint me, trash away, and have fun.
Reply #30 Top
I'll run multiple tests myself. I did one test and it was inconclusive; most of the AI colony ships were clearly traveling to planets that scouts had seen. One colony ship went to a planet that a scout did not see, but it may have been innocuous. Will run more later to confirm one or the other.
Reply #31 Top


Here we go again

Everybody jumps on the "lets trash the guy who makes a comment we don't like" bandwagon. And he actually has facts! And yes I know that everyone who worships this game automatically knows everything in the universe about AI and how it works. In a normal forum if people think someone is being an idiot they just ignore them. There is a post from the "bad" party and that's it. Everyone just ignores them. The post fades away quietly. But here everyone else get's so insulted they feel better only by trashing the 'bad" party. (And yes I am expecting to get trashed for this post.) So don't any of you 6 year olds dissapoint me, trash away, and have fun.


we're not trashing him, its just that we only have his word against stardock to go on. We have claims but at the end of the day thats all they are. So far no real evidence. Moreso it doesn't matter what results he got from whatever experiments he ran. So far no one else has been able to reproduce them, and in science thats key. We'll have to wait and see if others get the same observations, so far it hasn't been the case. If not, then his case is false, just like any other scientific theory would be if it can't be reproduced by others. Why should he get special treatment?? And by the way, don't look now but your trashing as well
Reply #32 Top


Here we go again

Everybody jumps on the "lets trash the guy who makes a comment we don't like" bandwagon. And he actually has facts! And yes I know that everyone who worships this game automatically knows everything in the universe about AI and how it works. In a normal forum if people think someone is being an idiot they just ignore them. There is a post from the "bad" party and that's it. Everyone just ignores them. The post fades away quietly. But here everyone else get's so insulted they feel better only by trashing the 'bad" party. (And yes I am expecting to get trashed for this post.) So don't any of you 6 year olds dissapoint me, trash away, and have fun.


we're not trashing him, its just that we only have his word against stardock to go on. We have claims but at the end of the day thats all they are. So far no real evidence. Moreso it doesn't matter what results he got from whatever experiments he ran. So far no one else has been able to reproduce them, and in science thats key. We'll have to wait and see if others get the same observations, so far it hasn't been the case. If not, then his case is false, just like any other scientific theory would be if it can't be reproduced by others. Why should he get special treatment?? And by the way, don't look now but your trashing as well
Reply #33 Top
edited for double post
Reply #34 Top
The key here is that the software will absolutely only perform actions for which code instructions exist. If the code shown by frogboy are the only instructions related to finding or knowing about habitable planets, then it simply can't do anything else. Extra instructions (lines of code) aren't magically generated just to spite people. Test all ya like - I'm going with what the code says.

Oh, and making unpopular statements is always going to make you unpopoular. Would have thought that was obvious.
Reply #35 Top
Just so you know, there is a toggle above your minimap that turns anomaly display on/off. When turned on, you are able to see all anomalies, explored or not, currently on the map. When you tell a ship to auto-survey, it will make a bee-line for the nearest, and continue around the map. It is intended.

As for AI colonization issues, I have never had the same problem. I always see faction scouts racing from system to system before I see colonies. I could be wrong, but you could have a flaw with your experimentation. If the first thing the AI does is send a ship packed with engines on an end-around you, they could easily explore systems in your territory for early exploitation. I do it all the time. Why colonize around yourself when you can trap somebody in and greatly hamper their ability to develop?
Reply #36 Top
I also came to a similar conclusion. Not only do I belive the AI know the entire map at start but I also belive the AI starts with certain.. advantages.

Playing a Large Map as the Yor in the beginning on normal difficulty versus 7 AIs. As I am still sending my Colonyship to the first planets I found when all AI civs smack down on their second planet. About 10 turns later all AIs settle on their 3rd planets. This is when I am still buildning my second colonyship. My Flagship hasn´t even found a third system yet!

To sum it up. When I now have settled on 3rd planet moste of the AIs have 4-6 planets. I focused ONLY on building colonyships. Now I´m being attacked by three AIs and I´m desperatly fighting to hold on to my 3 planets. Altough its intersting and fun I think this is a bit off scale for being on normal difficulty...

This also have another drawback. It forces the player to warmonger in order to expand early on at all since most planets are already taken by the AI. Not a problem for me this time since I´m playing the Yor. But many players want to play peacefully.

For some reason I´m terrible behind techwise. Even though I make a new discovery every 3rd turn or so I´m so behind its not even funny. I can´t see any other explaination for this then some sort of "AI boost"....
Reply #37 Top
The key here is that the software will absolutely only perform actions for which code instructions exist. If the code shown by frogboy are the only instructions related to finding or knowing about habitable planets, then it simply can't do anything else. Extra instructions (lines of code) aren't magically generated just to spite people. Test all ya like - I'm going with what the code says.


Take a look at Arcanum3000s reply. There are other blocks of code being called in that statement that could contain errors, IsKnownBy () and QueryID ().

That being said, I haven't observed any odd behaviour in AI colonization patters.

Reply #38 Top
What the code doesn't say is how the planets are visible to the AI. I would suggest that the observations made by par.002 are worthy of investigation given that another player has noticed similar behaviour consistant with the AI KNOWING what the player sees.

Thats not cheating (although it appears as such), its simply a bug and it should be ruled out and investigated.

Reply #39 Top
I could be wrong, but you could have a flaw with your experimentation.

What are the sensors range of the AI ships? Don't forget that sometimes, they can see you when you can't see them

I randomly kept generating a small galaxy map with only 2 players and I made sure that I was on the opposite end of the map from the AI.

Are you sure that the FOW isn't magically cleared by starting a game from a previous one? This kind of behavior was spotted during the beta for the human player but I don't know if the AI are subject to it too.
Reply #40 Top
Well if the AI knows where everything is I don't know how I could be beating them to systems when I have to check everything out 1st. If Frogboy says it is not happening that's good enough for me. That's like questioning Jesus on the accuracy of the bible. In Gal Civ 1 the AI did know where the systems were on Maso, that's why it was Maso. They were given the Stellar configurary (sp?)tech off the bat. I know I would not be getting the starts I'm getting now, if the AI had that kind of advantage, having played about 500 games against those odds on the old game.
Reply #41 Top
Just so you know, there is a toggle above your minimap that turns anomaly display on/off. When turned on, you are able to see all anomalies, explored or not, currently on the map. When you tell a ship to auto-survey, it will make a bee-line for the nearest, and continue around the map. It is intended.

Weird. The only ones that show up on my minimap are ones I can see.

I had an accidental experiment. A race's survey ship and mine met on a auto-explore 'routine' going in the exact same direction on the same turn...to the point where to continue on our lines we would leap-frog. I noticed this and decided to manually alter the course a few degrees so the ship wouldn't waste speed going around the other ship. It just happened that the next turn I uncovered that I had directed the ship right at an anomaly(close enough). The other races ship was on a course that would have taken it within about 5ish sqrs. I had the lead in terms of direction and turns but I could tell when the AI saw it for it's last move on the next turn was to turn towards it...but I was already heading at it and beat him to it. So the AI wasted it's time which was fine by me.
Reply #42 Top
I'll throw in my two cents here, with a direct observation from one of my games.

The situation was thus: it was early in the game, after the scouting rush, during the colonization rush. I, being a research mogul, had already researched a couple of levels of sensors and colonized a pair of planets to the North-west, making contact with an AI to the north-west. There were a pair of very nice uninhabited class 15 planets to my south-east, so I quickly deployed a sensor craft loaded with 15 sensors to keep an eye on them.

I saw the NW AI deploy colony ships from his planets, heading directly for 'my' two class 15's. I immediately purchased a pair of fast colony ships (blowing about 1500 bc in the process) and sent them to colonize them before he got there. They took three turns to reach them. During those three turns, there were NO scout vessels anywhere near the two class 15's.

The turn following my colonization of the planets, with NO WAY of knowing that I had colonized the two planets they were on a direct course for, the two NW AI colony ships changed course, one immediately colonizing the class 3 planet adjacent to my capital (AGAIN, it always does this), the other heading into space I hadn't yet explored to the north.

I would consider this as strong evidence that the AI has access to information it shouldn't. Does the 'IsColonyColonized' function just check directly, or does it check to see if the AI should KNOW the planet is colonized?

crickel
Reply #43 Top
Just so you know, there is a toggle above your minimap that turns anomaly display on/off. When turned on, you are able to see all anomalies, explored or not, currently on the map. When you tell a ship to auto-survey, it will make a bee-line for the nearest, and continue around the map. It is intended.

Weird. The only ones that show up on my minimap are ones I can see.

I had an accidental experiment. A race's survey ship and mine met on a auto-explore 'routine' going in the exact same direction on the same turn...to the point where to continue on our lines we would leap-frog. I noticed this and decided to manually alter the course a few degrees so the ship wouldn't waste speed going around the other ship. It just happened that the next turn I uncovered that I had directed the ship right at an anomaly(close enough). The other races ship was on a course that would have taken it within about 5ish sqrs. I had the lead in terms of direction and turns but I could tell when the AI saw it for it's last move on the next turn was to turn towards it...but I was already heading at it and beat him to it. So the AI wasted it's time which was fine by me.
Reply #44 Top
The AI probably knows you've colonized the planets. So can you. If you check your minimap, and turn the areas of influence on, you'll see a bice big blob of color appear around that star when someone colonizes a planet.
Reply #45 Top
time to put this to rest!!! (although as I type this I know that people are still going to argue after this proof is given.

Here is an EASY test that anyone can perform.

a) Run galciv2.exe with the command line paramter "cheat". There are a few ways of doing this,
1) create a file (with notepad if you want) galciv2.bat which contains the line "galciv2.exe cheat" in the same directory as the game is installed
2) start->run->cmd, change to the correct directory and run "galciv2.exe cheat"
3) Other ways I can't be bothered mentioned, you get the idea

b) Start a game. Low habitable planets and lots of stars or whatever you want.

c) Press Ctrl-U. (effectively lift fog of war) Now you can see where ALL objects are You will instantly meet all other races in the next turn. But this is because you now see them... (if you are wondering that because we cheated in seeing all activity, then so can they... I disagree due to the results of this experiment seems to show they can't see).

d) Sit back and relax and press "Turn" alot, watch what the AI does.

2 things I notice. Firstly, the Flagship B-lines to all anamolies, seen or not. (Which they shouldn't,. no way they should know...) But we can do that also, so its fair.

Secondly (and more importantly) 2 or 3 scouts ships explore the universe to all planets, habitable or not! and well before any colony ships.

Thirdly, they also keep ships near the other races areas so they can "spy"... sneaky little devils

So there... feel free to argue all you want, only those who read this post and try it out can see for real what the enemy is doing.
(To the original poster, try your experiments in the same manner as before but with this cheat, and you can see how they managed to deceive you all this time).

HAPPY SPACING

Reply #46 Top
My current theory is that (one or more of):

A) Not enough testing has been done to be statistically relevant;
B) Considering that I almost always send colony ships blind, the AI might do it more than some people expect;
C) Considering the strange behavior of AI troop transports (sometimes being built in hordes and launched unescorted), there is some ship-sending code hidden in a forgotten corner somewhere, with different rules than the function assumed to be in control;
D) There is a bug in AI map knowledge. Another bug reported by Frogboy earlier, in which AIs would surrender to you out of the blue, was because a pointer that intended to point at the AI accepting the surrender some AI was not being reset, and still pointed at the player. Similarly, perhaps the first colony ship to recieve orders on a new AI turn is using the human's map instead of the AI's map.


That said, there is a difference between "bug" and "cheat". Accusing someone of writing a "cheating" AI after he has many times stated that the AI does not cheat, takes pride in his ability to write a good AI that does not cheat, and seems to be honest and skillful, is a vile slur. Publicly accusing people of theft when you drop something and notice that they own something similar is slander, and can land you in jail. This is no different.

Stardock published a good game before all the bugs were gone. THE GAEM HAS BUGS!!!1111!! Note that I can say this and I am not committing slander, or being an ass like the person who started the thread. There is ample evidence for it being true, for example; and furthermore, it is provable and mandatory, considering that the state of the art in software design and verification cannot provide bug-free software of this magnitude, after any amount of testing with modern methods.

I feel that given the rate of bug-fixing, the game should have been released a couple weeks later, as there is obviously plenty of work to be done. That's not slander either - it's an opinion. Furthermore, it is neither deliberately inflammatory nor insulting.

par.002, on the other hand, feels that seeing an AI colony ship beeline to a habitable planet it probably never saw - and then seeing it again and again - is sufficient grounds to publicly accuse a seemingly nice, friendly, caring person, who is seemingly trying his hardest, of fraud - and add the slur "The AI is not very smart" to the mix.

No grounds were ever used to justify the slur. No evidence was presented regarding AI intelligence at all. Therefore, I can only assume it was a deliberate insult to add "flavor" to the ensuing discussion. However, it gives me grave doubts as to the validity of any of par's purported testing, as he obviously has no qualms about making claims for the purpose of hurting others that have no relevance or justification. I suspect that par saw the event. But someone so eager to accuse decent people of fraud in the most insulting way possible will never convince me that he was statistically thorough, since he lacks the motivation or patience; words are free and immediately gratifying.

The alleged fraud, then, is that Frogboy (and friends, but he wrote the AI) developed a game claiming "It does not cheat" while actually inserting cheat mechanisms to compensate for an inabilty to write good code. Given that obviously Stardock DOES write good code, and so has no reason to insert cheats and lie about them; that anyone with half a brain can imagine a dozen other possible causes for this syndrome; and that all of those half-brained causes, no matter how implausible, are more likely than fraud - I think you, Mr. par, should formally apologize to Stardock.

If I had met you on the street, and you had leveled such accusations at me with such little evidence and such an obvious antagonistic, insulting attitude - in front of other people I wanted to impress - I would have knocked you flat on your ass, then slapped a lawsuit on top of it and made you pay for hurting my pride and scratching my fist. Stardock legal and PR lack my adrenal glands, so you're pretty safe sniping away like a little spoiled brat - but here's to hoping you screw up again and get banned.
Reply #47 Top
I would consider this as strong evidence that the AI has access to information it shouldn't. Does the 'IsColonyColonized' function just check directly, or does it check to see if the AI should KNOW the planet is colonized?


I wouldn't consider it strong evidence. You have to test before you claim. I just did a quick test. After you scout a planet you can tell if it's been colonized even if you can't see it. I uncovered a planet then pulled all my ships back and waited. When the AI nabbed the planet it showed it colonized and by which race.

I did some other experiments with AI cheating. I found 0. What I did is picked added speed and sensors to abilities and combined with 25% mini I could make cargo sensor ships right off the bat. And uncover the map. I played VS the humans.

Every game I noticed the same thing. But it happened in different ways each time. Most of the time their survey ship had gone by half of the habitable planets before they send their scouts out. The scouts would always head out to areas the survey ship had not covered in it's anomaly connect the dots. They would get JUST within sensor range of the nearest unseen star then head off to the next nearest. I never ever saw a colony ship head anywhere that it wasn't obvious that either the survey ship or scouts had seen. In fact it seemed near impossible for them not to have spotted at least 3 or so planets before their first new colony ship came out.

Now I'm not sure but I dont think the scouts uncovered the planets themselves only the stars...which we know will tell you all you need to know excluding quality.

Reply #48 Top
Hi!
I still suspect there's a bug in the "what AI can see" code. I had several ocassions when my scanner ships (cargo huil, engine, rest about 10 scanners) were sniped by the dreadLord's fighters BEFORE they even get to the front. And there was not ANY dreadLord's ship in vicinity to spot it, I had a 100% visual coverage on that frontline. Te fighter just went from the planet, avoided my fleet of 3 fregates that were providing cover for the rest of my ships (scanners, transports) and sniped the scanning ship.
In another campaign mission I've seen both drengin's defensive fleets all or a sudden move. When I checked their destinations, they were both heading for my scanner ship, that was still more than 20 parsecs away. There was a fight in vicinity of it a turn before (me destroying a constructor heading after a resource), but I'm pretty sure the scanner ship was out of sight of that constructor. Besides, those drengin's fleet didn't target the fighter that destroyed it, but were steadily heading after the scanner ship for next 10 turns! That strange behaviour allowed me to destroy all three drengin's military starbases, that were now without protection, and invaded their only planet.

That said I think Brad should check the "pick appropriate target" piece of code. Two fleets, where a single fighter would be enough, was an obvious overkill. And neither of them was able to catch my speed 8 ship with their speeds of only 2. "Baiting" anyone?
BR, Iztok

Reply #49 Top
Well the cheat sure helps...no no planet finding cheating to be seen in several maps. In fact a few errors. A couple of times would head for the same target. Most of the time they'd then split for new different ones but one time they were heading for a star in the corner of the map ( no habital there) one was about 4 pc ahead of the other. So the second scout's trip was wasted. Also it was funny when a scout was headed for an isolated star just when it's survey ship took a turn by the star for an anomaly. As soon as the survey ship passed by the star the scout essentailly pulled a 90 and headed for another.

But still it appears the computer seems to know more about anomalies than it should or else we don't because I can't see any way short of cheating or sensors of spotting anomalies. And my incedent with the enemies survey ship changing course was probably due to another race took the anamoly it was after
Reply #50 Top
Here is an EASY test that anyone can perform.

a) Run galciv2.exe with the command line paramter "cheat". There are a few ways of doing this,


c) Press Ctrl-U. (effectively lift fog of war) Now you can see where ALL objects are You will instantly meet all other races in the next turn. But this is because you now see them... (if you are wondering that because we cheated in seeing all activity, then so can they... I disagree due to the results of this experiment seems to show they can't see).


Well, this suppose that the AI works the same way if with FOW lifted for the player or not. If there is a bug, it could be that without CTRL+U, the map is revealed to the AI and with CTRL+U, the FOW is enable for the AI. That would explain different behaviors experienced by various posters

I saw the NW AI deploy colony ships from his planets, heading directly for 'my' two class 15's. I immediately purchased a pair of fast colony ships (blowing about 1500 bc in the process) and sent them to colonize them before he got there. They took three turns to reach them. During those three turns, there were NO scout vessels anywhere near the two class 15's.

The turn following my colonization of the planets, with NO WAY of knowing that I had colonized the two planets they were on a direct course for, the two NW AI colony ships changed course, one immediately colonizing the class 3 planet adjacent to my capital (AGAIN, it always does this), the other heading into space I hadn't yet explored to the north.

Well, if they know that the 2 planets where PQ 15 and availabe for colonization, they will know when you colonized it.
Bascally, the code posted by Frogboy shows that when you have seen a planet, you know waht will happen to it
And it works both way.