Performing AI battles

Discussion in 'Mod Discussions' started by Quitch, April 20, 2015.

  1. Quitch

    Quitch Post Master General

    Messages:
    5,304
    Likes Received:
    5,995
    Or I could just remove the postfix from another AI. Good lord I'm slow :)
    wondible likes this.
  2. wondible

    wondible Post Master General

    Messages:
    3,279
    Likes Received:
    2,084
    @Quitch I've updated github

    - Make renamed copes of individual `ai_config.json`
    - Import personalities as server scene mod
    - Install task to overwrite `commander_manager`
    - Update commander names with AI name
    - Use default commanders
    - Typo correction in Queller
    - Note node and grunt cli dependencies
    - Note clean command (Many of these changes will affect files names, so projects should be cleaned)

    I've not made clean default. I suppose the non-forced version could be done somewhat safely, although copy:vanilla would need be to be included, or the full path specified.
    Quitch likes this.
  3. Quitch

    Quitch Post Master General

    Messages:
    5,304
    Likes Received:
    5,995
    Got this error running grunt clean during clean:4

    Warning: Cannot delete files outside the current working directory. Use --force to continue.

    Also got this error during grunt build

    Warning: Unable to read "../server_mods/Queller-AI/pa/ai/ai_unit_map.json" file
    (Error code: ENOENT). Use --force to continue.


    The tool shouldn't assume this file exists as it's not required for an AI mod to work. None of them are. It only raised this concern for the missing ai_unit_map not the missing ai_config. It should be noted that using --force meant it didn't copy over the ai_unit_map from either of the other two AIs.
  4. wondible

    wondible Post Master General

    Messages:
    3,279
    Likes Received:
    2,084
    --force is the same as -f mentioned in the readme. The grunt developers were suitably paranoid about "rm -rf /" scenario; it concerns me a little given that we are using a generated path (the mod id) The only way around it is to copy (or at least clean) the mod yourself, or figure out a setup where server_mods is below the project directory. Actually... soft links perhaps?

    Thanks, added a file-exists check for specific paths I'm reading.
    Quitch likes this.
  5. Quitch

    Quitch Post Master General

    Messages:
    5,304
    Likes Received:
    5,995
    That one is my bad for going "I know what I'm doing!" and not reading the readme :)
  6. wondible

    wondible Post Master General

    Messages:
    3,279
    Likes Received:
    2,084
    82000: pte branch on github handles unit_maps and platoon_templates as directories instead of single files.
    Quitch likes this.

Share This Page