[Request] Factory on continuous build by default

Discussion in 'Mod Discussions' started by Martenus, March 4, 2014.

  1. Martenus

    Martenus Well-Known Member

    Messages:
    530
    Likes Received:
    437
    Title says it all.
    Is it possible to code it?
  2. brianpurkiss

    brianpurkiss Post Master General

    Messages:
    7,879
    Likes Received:
    7,438
    I support this.

    Yes it is possible. Could be easily modded too.
  3. LavaSnake

    LavaSnake Post Master General

    Messages:
    1,620
    Likes Received:
    691
    I'd love this and I'll try to do it if someone hasn't done it by the time I'm doing updating my profile pic mod.
  4. tatsujb

    tatsujb Post Master General

    Messages:
    12,902
    Likes Received:
    5,385
    well there already is the Auto factory mod which is better in that you can turn it on and off.
  5. LavaSnake

    LavaSnake Post Master General

    Messages:
    1,620
    Likes Received:
    691
    I prefer continuous build because it lets you set a looping mix of units (like 1 flame tank, 5 ants).
  6. tatsujb

    tatsujb Post Master General

    Messages:
    12,902
    Likes Received:
    5,385
    ye, we'll, let's get cracking!
  7. Raevn

    Raevn Moderator Alumni

    Messages:
    4,226
    Likes Received:
    4,324
    In the factory blueprint, add the following:

    Code:
      "factory": {
        "default_build_stance": "Continuous"
      }
    I presume it's a client-side value, but haven't actually tested. You can probably set a default unit to build too:

    Code:
      "factory": {
        "initial_build_spec": "<path to unit blueprint>",
      }
    (Again, untested)
  8. tatsujb

    tatsujb Post Master General

    Messages:
    12,902
    Likes Received:
    5,385
    I don't know what file that is?

    not live_game?
  9. Raevn

    Raevn Moderator Alumni

    Messages:
    4,226
    Likes Received:
    4,324
    It's the unit blueprints, eg: \pa\units\land\bot_factory\bot_factory.json

    The factory attribute should already be there, just have to add default_build_stance/initial_build_spec.
  10. proeleert

    proeleert Post Master General

    Messages:
    1,681
    Likes Received:
    1,656
    Aah that's how the nuke launcher auto builds, I knew it was new. :)
  11. trialq

    trialq Post Master General

    Messages:
    1,295
    Likes Received:
    917
    I had considered that as the next step, but it would be quite a massive update code-wise, and limited as the settings would only be changeable from the settings menu (and global). It might come in the far future, but time is in short supply.

Share This Page