I notice that the default build orders for melee AI are contained in the base.SC2data file under terranX.galaxy, zergX.galaxy, etc, where X is a number from 1-5 and represents very easy to insane. If I wanted to modify these default built orders for my custom map is it as simple as changing this file and saving it into the map? Or does saving it to the map not override the original?
I see that there are entire custom AI's out there, but I pretty much want the keep the existing melee AI and just have them build slightly different units in slightly different orders. Any thoughts would be appreciated.
There's no way of forcing the game to override data files that aren't expected parts of a map/mod. This is the same reason why you can't modify the base UI. Hopefully, it's changed in the future so you can override any data file by placing it in your map.
As far as i know, the base.sc2data file are mpq file outside of the map and specific to the game. If you change it, the game wont load. (prevent cheating, hacking...). And the map will not load such file if they have it. So your best bet is to recreate AI using trigger or based on their galaxy file
I saw that the default melee initialization action calls a function called MeleeInitAI();, I assume this function is built in to starcraft and eventually calls the terranX.galaxy file. I was thinking I could delete this action and call my own version of it by simply copying the built in version and making it reference my own terranx.galaxy file. However even though I can see all the trigger lib in the base.sc2data file there doesn't appear to be a function called 'meleeinitAI' in any of the files that are visible, are there 'hidden' native function calls that I can't copy out and customize? Is there some better way to tweak the default build order for a map?
I haven't done it... but I am prety sure with the "upgrades" to the AI manipulation you can do it... my basis being you could do it in WC3 and iirc even SC... It's just done differently now.
Update - I used an MPQ editor to make a 'triggerlibs' folder in the map archive, then added my own terran0.galaxy ( which happened to be the blizzard version with one change) and it DOES appear to load the modified file for that map.
That's awesome, but you're not going to be going around mussing with other player's MPQ files and I believe bnet does a validation check on things like that every time you log in to prevent tampering... but I'm have no basis for that claim other than "I would guess"
Update - I used an MPQ editor to make a 'triggerlibs' folder in the map archive, then added my own terran0.galaxy ( which happened to be the blizzard version with one change) and it DOES appear to load the modified file for that map.
I'm not sure that works or not. However, I found a field in data editor, Under tab Gameplay Data, choose the default one, there's a field for AI/ File to load triggerlibs galaxy file for ai. You may dig around that.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I notice that the default build orders for melee AI are contained in the base.SC2data file under terranX.galaxy, zergX.galaxy, etc, where X is a number from 1-5 and represents very easy to insane. If I wanted to modify these default built orders for my custom map is it as simple as changing this file and saving it into the map? Or does saving it to the map not override the original?
I see that there are entire custom AI's out there, but I pretty much want the keep the existing melee AI and just have them build slightly different units in slightly different orders. Any thoughts would be appreciated.
There's no way of forcing the game to override data files that aren't expected parts of a map/mod. This is the same reason why you can't modify the base UI. Hopefully, it's changed in the future so you can override any data file by placing it in your map.
@roadmaster1975: Go
As far as i know, the base.sc2data file are mpq file outside of the map and specific to the game. If you change it, the game wont load. (prevent cheating, hacking...). And the map will not load such file if they have it. So your best bet is to recreate AI using trigger or based on their galaxy file
I saw that the default melee initialization action calls a function called MeleeInitAI();, I assume this function is built in to starcraft and eventually calls the terranX.galaxy file. I was thinking I could delete this action and call my own version of it by simply copying the built in version and making it reference my own terranx.galaxy file. However even though I can see all the trigger lib in the base.sc2data file there doesn't appear to be a function called 'meleeinitAI' in any of the files that are visible, are there 'hidden' native function calls that I can't copy out and customize? Is there some better way to tweak the default build order for a map?
I haven't done it... but I am prety sure with the "upgrades" to the AI manipulation you can do it... my basis being you could do it in WC3 and iirc even SC... It's just done differently now.
@Anthius: Go
Update - I used an MPQ editor to make a 'triggerlibs' folder in the map archive, then added my own terran0.galaxy ( which happened to be the blizzard version with one change) and it DOES appear to load the modified file for that map.
That's awesome, but you're not going to be going around mussing with other player's MPQ files and I believe bnet does a validation check on things like that every time you log in to prevent tampering... but I'm have no basis for that claim other than "I would guess"
I'm not sure that works or not. However, I found a field in data editor, Under tab Gameplay Data, choose the default one, there's a field for AI/ File to load triggerlibs galaxy file for ai. You may dig around that.