Warzone2100 / warzone2100

Command the forces of The Project in a battle to rebuild the world after mankind has been nearly destroyed by nuclear missiles. A 100% free and open source real-time strategy game for Windows, macOS, Linux, BSD+

Home Page:https://wz2100.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Self-contained per aibot directory structure

Chewbakka-Wakka opened this issue · comments

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%?

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.

I'll make PR for this... "bots"
Works when I've tested.