How do I ban a block from a scenario?

Discussion in 'Scenarios' started by LoSboccacc, Jan 24, 2019.

  1. LoSboccacc

    LoSboccacc Commander

    Joined:
    Nov 28, 2015
    Messages:
    15
    Likes Received:
    17
    I'm trying to forbid the crafting of artillery turrets in a scenario, so that player can't create them but can use them if they salvage one from a poi

    Can't find how. Are there even creating restrictions in MP?
     
    #1
  2. ravien_ff

    ravien_ff Rear Admiral

    Joined:
    Oct 22, 2017
    Messages:
    6,275
    Likes Received:
    11,936
    You can use a custom config file to alter many things with items, blocks, weapons, crafting recipes, etc. Sadly such a config file can't be automatically included and activated within a scenario, but you can run one in single player or on a server.

    You can simply make artillery turrets uncraftable in any constructor and put that config on your server or single player game. If you want it included with a workshop scenario, you could probably place the file in the scenario folder and provide instructions on your workshop description of how individual players can copy the config file over to activate in single player or multi player, but it would be up to each player or server owner to use it or not.
     
    #2
  3. LoSboccacc

    LoSboccacc Commander

    Joined:
    Nov 28, 2015
    Messages:
    15
    Likes Received:
    17
    thanks! I'll have a lock at those. is there an example around?
     
    #3
  4. ravien_ff

    ravien_ff Rear Admiral

    Joined:
    Oct 22, 2017
    Messages:
    6,275
    Likes Received:
    11,936
    Empyrion - Galactic Survival/Content/Configuration

    Config_Example.ecf is the file you want to look at.

    Specifically, under the "templates" section:

    Code:
    { Template Name: TurretBaseArtilleryBlocks
      CraftTime: 30
      Target: AdvC
      { Child Inputs
        SteelPlateArmored: 30
        PowerCoil: 10
        Motor: 3
        ZascosiumAlloy: 20
        Oscillator: 5
      }
    }
    You *should* be able to simply create a new txt file in that same directory, name it "Config.ecf" (without the quotes), and edit it to say the following:

    Code:
    VERSION: 3
    
    { Template Name: TurretBaseArtilleryBlocks
      Target:
    }
    That will over-write only THAT part of the config, leaving everything else default.

    That should make base artillery turrets uncraftable by the player. You'll probably want to also remove them from the tech tree so players can't even spend points to unlock them but that's done in a different spot in the config file. I don't have any links to a guide on this atm but I'm sure there's some out there.

    Obviously, test in a new game first, and config changes can lead to bugs or other weird issues so use at your own risk. I have not tested this change so it might not work. If you run into problems, simply delete any file named "Config.ecf" in the configuration folder.
     
    #4
    LoSboccacc likes this.
  5. ravien_ff

    ravien_ff Rear Admiral

    Joined:
    Oct 22, 2017
    Messages:
    6,275
    Likes Received:
    11,936
    And unfortunately, I just realized, this might not stop people from using it in a factory blueprint, however I think that can be changed as well.
     
    #5
    LoSboccacc likes this.
  6. LoSboccacc

    LoSboccacc Commander

    Joined:
    Nov 28, 2015
    Messages:
    15
    Likes Received:
    17
    it's perfect, server will not have bp anyway
     
    #6
    ravien_ff likes this.
  7. ravien_ff

    ravien_ff Rear Admiral

    Joined:
    Oct 22, 2017
    Messages:
    6,275
    Likes Received:
    11,936
    Hope that works!
     
    #7
  8. This won't work like this. You can't simply delete the ingredient lines otherwise the game will still use the default values (meaning they will still be craftable.)

    "# - parameters not listed (commented out / removed) will cause the game to continue using the internal ORIGINAL values"
    Meaning you can't simply delete those lines to make it uncraftable.
     
    #8
    Last edited by a moderator: Jan 24, 2019
  9. ravien_ff

    ravien_ff Rear Admiral

    Joined:
    Oct 22, 2017
    Messages:
    6,275
    Likes Received:
    11,936
    It's not changing the ingredients, it's removing the constructors that it can be crafted in so it should work. but I didn't test it so it might not work as I expect since it's been a couple months since I messed around with the config.
     
    #9
  10. Forgive me, I haven't finished my coffee yet.
    I didn't notice that you left it with no target. That may actually work.
     
    #10
    ravien_ff likes this.
  11. ravien_ff

    ravien_ff Rear Admiral

    Joined:
    Oct 22, 2017
    Messages:
    6,275
    Likes Received:
    11,936
    You're probably doing better than I am, it's almost 7AM where I live and I still haven't gone to bed. :D
     
    #11
    Archimedez likes this.

Share This Page