You can find it inside Sc2/Mods/Liberty.Sc2Mod.
To view it you'll need something like Lakid's MPQ Editor (the .Sc2Mod files are something like .rar files)
Thanks s3rius. I got the editor and opened Base Assets but my problem is I don't know what I'm looking at.
I'm trying to stop the Green Tea AI from cheating, but I don't know which file to look into. And I don't know the language. I'm just looking for key words that will tell me that's the code that allows the map hack or that's where he gets more minerals. I just need to know where to look.
Search all the Green Tea AI files (.galaxy) for the AIHarvestBonus word (in Notepad or some other text editor that can search multiple files) and set all the bonuses to 1.0. That should remove all the resource cheats.
Which I think means a map hack for Medium and above.
But I don’t understand the syntax and symbols. What does >= and == and != mean? How do you use () {;}? Where is the list of words like PlayerDifficulty c_diffNormalVision and c_skirMedium found?
I believe that this is Galaxy Script language so where do I go to read up on it? I’m not a programmer just a cut and paste man. I do not want to program “yet”, but I want to understand what I am seeing.
How do I get the Blizzard AI? Is it hard coded into the game or is there a module or file some where?
Unit AI is hardcoded.
Race AI is a Galaxy module.
You can find it inside Sc2/Mods/Liberty.Sc2Mod.
To view it you'll need something like Lakid's MPQ Editor (the .Sc2Mod files are something like .rar files)
@s3rius: Go
Thanks s3rius. I got the editor and opened Base Assets but my problem is I don't know what I'm looking at.
I'm trying to stop the Green Tea AI from cheating, but I don't know which file to look into. And I don't know the language. I'm just looking for key words that will tell me that's the code that allows the map hack or that's where he gets more minerals. I just need to know where to look.
http://www.sc2mapster.com/api-docs/functions/aiharvest-bonus/ is used to give AI players a cheat in their resource income.
Search all the Green Tea AI files (.galaxy) for the AIHarvestBonus word (in Notepad or some other text editor that can search multiple files) and set all the bonuses to 1.0. That should remove all the resource cheats.
I don’t understand all I know about this so here goes.
The Green Tea AI does not use a resource hack so the Blizzard AI is in effect.
The GT AI uses;
if ( PlayerDifficulty(player) >= c_skirMedium) { AISetDifficulty(player, c_diffNormalVision, false); } else { AISetDifficulty(player, c_diffNormalVision, true); }
Which I think means a map hack for Medium and above.
But I don’t understand the syntax and symbols. What does >= and == and != mean? How do you use () {;}? Where is the list of words like PlayerDifficulty c_diffNormalVision and c_skirMedium found?
I believe that this is Galaxy Script language so where do I go to read up on it? I’m not a programmer just a cut and paste man. I do not want to program “yet”, but I want to understand what I am seeing.
[>= Greater than or equal to] [== equal equal aka equal] [=! not equal]