A12 EXP - New Config Files

Discussion in 'Experimental Features Discussion' started by Hummel-o-War, Apr 21, 2020.

  1. Vermillion

    Vermillion Rear Admiral

    Joined:
    Jul 15, 2018
    Messages:
    3,259
    Likes Received:
    8,933
    Here's a finished example config
    It increases the ammo capacity for the T1 and T2 pistols to 16 and increases steak's food value by 20.

    Should work as-is. But I haven't tested it.
     

    Attached Files:

    #61
    Kostriktor likes this.
  2. Kostriktor

    Kostriktor Commander

    Joined:
    Jul 31, 2019
    Messages:
    63
    Likes Received:
    31
    so cool !
    i see !
    what program do you use then ?
     
    #62
  3. Kassonnade

    Kassonnade Rear Admiral

    Joined:
    May 13, 2017
    Messages:
    2,819
    Likes Received:
    4,114
    You can use a simple text editor, but choose one which shows line numbers at least. I use Notepad++, it's free.

    Save the file as plain "txt", and change the extension manually to "ecf" (like renaming).
     
    #63
    zaphodikus and Kostriktor like this.
  4. Kostriktor

    Kostriktor Commander

    Joined:
    Jul 31, 2019
    Messages:
    63
    Likes Received:
    31
    ok confirmed this doesnt work:


    # How it works:
    # - rename to 'Config.ecf' to activate
    # - change original values of parameters as desired
    # - listed parameters will overwrite the game's internal original values
    # - parameters not listed (commented out / removed) will cause the game to continue using the internal ORIGINAL values

    VERSION: 9


    # ==================== BLOCKS, DEVICES ==========================


    # Properties:

    { Item Id: 2051, Name: Pistol
    {
    AmmoCapacity: 16, display: true
    }
    }
    { Item Id: 2068, Name: PistolT2, Ref: Pistol
    {
    AmmoCapacity: 16, display: true
    }
    }
    { Item Id: 2349, Name: Steak, Ref: FoodTemplate
    {
    AddFood: 80, display: FoodValue
    }
    }


    do you guys know any news ?
     
    #64
  5. Vermillion

    Vermillion Rear Admiral

    Joined:
    Jul 15, 2018
    Messages:
    3,259
    Likes Received:
    8,933
    The file should just be called "Config".
    ecf is the file extension and actually naming it "Config.ecf" will cause it to not work.
     
    #65
  6. Kostriktor

    Kostriktor Commander

    Joined:
    Jul 31, 2019
    Messages:
    63
    Likes Received:
    31
    it is called only Config
    upload_2021-1-5_15-37-9.png

    is my path wrong?
    upload_2021-1-5_15-37-30.png

    when a line starts with " # ", does that mean the line doesnt count ?
     
    #66
  7. Myrmidon

    Myrmidon Rear Admiral

    Joined:
    Mar 26, 2016
    Messages:
    1,734
    Likes Received:
    2,066
    The # symbol stands as a remark argument. So yes anything in the same line that follows a # symbol is being ignored on parsing (or execution) of the file (by the interpreter of the programming language that runs the game).
     
    #67
    Kostriktor likes this.
  8. Kassonnade

    Kassonnade Rear Admiral

    Joined:
    May 13, 2017
    Messages:
    2,819
    Likes Received:
    4,114
    If you are on Windows, you need a file extension, in this case the " .ecf" after "Config", else you might simply be trying to run a .txt file and nothing will happen. What is the file type of your config ?
     

    Attached Files:

    #68
  9. Kostriktor

    Kostriktor Commander

    Joined:
    Jul 31, 2019
    Messages:
    63
    Likes Received:
    31
    should be right
    upload_2021-1-6_6-51-9.png

    it does work !
    i tried in "creative" before diving into survival, and fortunately, these configs dont apply to creative, this way, you can build stuff properly for official servers.
    it does work in survival !
     
    #69
    Kassonnade likes this.
  10. If you want to use a Config.ecf file in creative mode you have to copy the file into the creative scenario as well.

    Creative already has a Config.ecf in the scenario folder to increase a few stack sizes in creative mode. So that means you have to replace it in there if you want to use your custom one in creative mode.
    It's a new addition that came about after this thread (You are in an A12 experimental thread after all).

    Be warned though. You will have to copy your custom config into creative over and over every time the game has an update because it will be overwritten to the default one creative uses when it updates or you verify files through Steam.
     
    #70
  11. Myrmidon

    Myrmidon Rear Admiral

    Joined:
    Mar 26, 2016
    Messages:
    1,734
    Likes Received:
    2,066
    We need a tool to edit/merge config files. All the fiddling editing by hand here and there makes it very tedious.
     
    #71
    Kassonnade likes this.
  12. Taelyn

    Taelyn Guest

    There plenty of Tools on the internet that do this

    https://winmerge.org/ for example
     
    #72
    Kassonnade and Germanicus like this.
  13. Myrmidon

    Myrmidon Rear Admiral

    Joined:
    Mar 26, 2016
    Messages:
    1,734
    Likes Received:
    2,066
    Yes I know that. What I mean is a tool like EPD and PDA editors that are specific designed for the ecf structure as it is for the game.:)
     
    #73
  14. Taelyn

    Taelyn Guest

    Then i suggest you keep an close eye on EPD once JMC returns from his sickleave ;);););)
     
    #74
    Kassonnade and Germanicus like this.
  15. Myrmidon

    Myrmidon Rear Admiral

    Joined:
    Mar 26, 2016
    Messages:
    1,734
    Likes Received:
    2,066
    Will do, thank you.
     
    #75
    Kassonnade likes this.
  16. Kostriktor

    Kostriktor Commander

    Joined:
    Jul 31, 2019
    Messages:
    63
    Likes Received:
    31
    i like that creative is separated; you use that for builds on official-servers afterall.
    configs are there for the normal non-vegans who dont want to live off plants in a game, and for ppl who know how firearms work and dont accept their pistol not shooting targets at 20 meters.

    basically increase meat-drop and increase range on weapons, and this turns into an awesome game again.
     
    #76

Share This Page