Skip to content

Conversation

@rlcevg
Copy link

@rlcevg rlcevg commented Feb 9, 2019

Latest version with next changes according to previous DevCircuitAI:
rlcevg/CircuitAI#92
rlcevg/CircuitAI#93
rlcevg/CircuitAI#94

Made behaviour.json, block_map.json, build_chain.json, commander.json, economy.json, factory.json, response.json from circuit.json for each difficulty.
Note: AIOptions.lua contains list of json files (a.k.a. config parts) and because this list is the same for all difficulties i left AIOptions.lua inside DevCircuitAICommon. But its proper place is probably inside each difficulty-folder: DevCircuitAIBeginner, DevCircuitAIBrutal, DevCircuitAIEasy, DevCircuitAIHard, DevCircuitAINormal, DevCircuitAINovice.

Also updated brutal config to the same revision that resides in spring repository (i think those were the last changes Ivory_King sent to me on 12/12/2018).

@GoogleFrog
Copy link

What do each of the configs correspond to? Were the difficulty changes migrated to the new config system?

@rlcevg
Copy link
Author

rlcevg commented Feb 10, 2019

Those configs are simply current DevCircuitAI circuit.json divided into several files, except for brutal that is replaced by config from spring repository.
behaviour.json contains "quota", "retreat", "behaviour"
block_map.json holds "building"
build_chain.json - "porcupine", "build_chain"
commander.json - "commander"
economy.json - "economy"
factory.json - "select", "factory"
response.json - "response"
AI reads those parts in order described by 'config_file' param inside AIOptions.lua and merges them into single json in memory (a.k.a. previous circuit.json)
You can break it even futher, like making out of behaviour.json separate quota.json, retreat.json, behaviour.json and adding quota+retreat+behaviour to config_file. Or even some parts of "behaviour" in one json file and rest in another - AI will merge json objects and replace json values (string, array, int).

I hope rlcevg/CircuitAI#93 didn't actually mean "merging all difficulties/jsons into single table" :)

There are no difficulty changes with regard to current DevCircuitAI, except for brutal.

@GoogleFrog GoogleFrog merged commit ca7b7c5 into ZeroK-RTS:master Feb 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants