-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use forceStrat key in config.json ? #49
Comments
Here is the list of strategies my bot is able to play: Inside each file, there is a "name" value, that's what you can input into the "forceStrat" key. The "FE" variants are the same strategies as the non FE but the bot will try to expand a bit earlier. Also, my bot can react to whatever you are doing when it scouts you, so there is a possibility that It wont do the strategy you coded in that file as It will try to adapt. PS: You should also disable the "cherryVis" option, its enabled by default in the config file but you dont really need it and can generate a lot of data if you play a lot of games. |
I changed "forceStrat": "JoyORush" --> but nothing happened, where exactly should the config.json be ? |
It should be in the same dir as the main jar file, I think the problem may be that some strategies are only allowed against some races, "JoyORush" only works against Protoss for example. This is the code that adds strategies to each pool depending on enemy race: |
No mate, Its TvP, and config.json is in the same dir, I still can't force any strategy. |
Thank you, I found the issue, it's a current path problem. But you have to consider that most people will not even run java -jar Ecgberht.jar from .\bwapi-data where config.json exists. In case you run java.exe from a command line with admin privileges, this path will be C:\Windows\System32. Also there no indicator that the detection of config.json has happened or not. |
Also TwoPortWraith, ProxyBBS not forced TvP! |
Both the jar and the config file are in I think the problem is that you need to run the java command from the Starcraft directory (mirroring SSCAIT and other tournaments behaviour) or from the same dir as the jar file. I will add this info to the README as right now is kinda obscure is not even clear in sscait rules webpage. I agree with the bot not printing any info about the loaded config file, I may add a "last try" logic so It tries to search for the config file from the same dir the jar file is located instead of relying on the path from where the java command was launched. Both of those builds are not enabled for TvP, 2PortWraith is TvZ and ProxyBBS is very bad against all of the early zealot aggression I found in the sscait ladder (only Proxy8Rax is enabled vs Protoss). |
BBS is common in TvP, yes allow any strategy vs any race if it is forced by user. btw, I don't use BWAPI installer, I use BWAPI Revamped, so paths are a little different: |
Hi mate, I'm trying to practice vs various Terran BOs, what values go in this key ?
The text was updated successfully, but these errors were encountered: