Skip to content
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

Self-contained per aibot directory structure #3739

Open
Chewbakka-Wakka opened this issue Apr 16, 2024 · 2 comments
Open

Self-contained per aibot directory structure #3739

Chewbakka-Wakka opened this issue Apr 16, 2024 · 2 comments
Labels

Comments

@Chewbakka-Wakka
Copy link

Chewbakka-Wakka commented Apr 16, 2024

Currently, ai bots are stored as follows in the game path a bit like this:

/warzone2100/multiplay/skirmish/

Where all bots have a combination of files and directory/sub-directories all shared here:

bonecrusher/
bonecrusher.json
cobra_includes/
Cobra.js
Cobra.json
cobra_rulesets/
nexus_includes/
nexus.js
nexus.json
nexus_standards/
semperfi_includes/
semperfi.js
semperfi.json

  • NB files...

I propose a simple change of moving these files into own directories without mixing like this:

/warzone2100/multiplay/skirmish/aibots/

Bonecrusher/
Cobra/
Nexus/
Semperfi/
NullBot/

Should be easy, though it seems an ai bot will not currently load unless the .js and .json files are specifically within:
/warzone2100/multiplay/skirmish/

If I manually create /warzone2100/multiplay/skirmish/aibots/ then move such files there, they will not be loaded by the game in the GUI menu selection screen. ( all done offline after decompressing the .wz file containing this data )

P.S. - Where are the Easy and Insane modifiers that correspondingly give the AI bot an oil nerf of -25% and a bonus of +100%?

@Arithyce
Copy link

Arithyce commented Apr 16, 2024

P.S. - Where are the Easy and Insane modifiers that correspondingly give the AI bot an oil nerf of -25% and a bonus of +100%?

On GitHub: https://github.com/Warzone2100/warzone2100/tree/master/data/mp/multiplay/script/rules/powermodifier.js.
In mp.wz: mp.wz\multiplay\script\rules\setup\powermodifier.js.

@Chewbakka-Wakka
Copy link
Author

Further to this... I could use some help in passing a file on the CLI for my numerous AI bot tests as I make incremental changes, though I see no docs on how or what the file should contain.

$ warzone2100 --skirmish=test --nosound - ( Is the closest I can get )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants