Results 1 to 4 of 4

Thread: SDX Coding Question - changing CONFIG line...

  1. #1
    Tracker
    Join Date
    Jun 2016
    Posts
    173
    Rep Power
    0

    SDX Coding Question - changing CONFIG line...

    A very simple question when you know the right answer!!

    How do you alter config lines in the SDX modder? I'm looking to change this (in gamestages):
    <config startingWeight="1"
    scavengerGameDifficultyBonus="0"
    adventurerGameDifficultyBonus="0.1"
    nomadGameDifficultyBonus="0.2"
    warriorGameDifficultyBonus="0.6"
    survivalistGameDifficultyBonus="1.0"
    insaneGameDifficultyBonus="1.5"
    daysAliveDifficultyBonus="0.1"
    daysAliveChangeWhenKilled="2"
    diminishingReturns="0.2" />

    to this:
    <config startingWeight="75"
    scavengerGameDifficultyBonus="0"
    adventurerGameDifficultyBonus="0.2"
    nomadGameDifficultyBonus="0.5"
    warriorGameDifficultyBonus="0.1"
    survivalistGameDifficultyBonus="1.5"
    insaneGameDifficultyBonus="2"
    daysAliveDifficultyBonus="5"
    daysAliveChangeWhenKilled="0"
    diminishingReturns="0.0" />

    But i cant work out the .xml commands to "set" a config... Could anyone help?

    Also, an additional 2 questions:
    1) Is it possible to INCREASE the difficulty when you die (ie have a NEGATIVE value in daysAliveChangeWhenKilled)? I've tried it and it crashes, but is there another way to do this?
    2) What does diminishingReturns do?

    Thank you!

  2. #2
    Colony Founder sphereii's Avatar
    Join Date
    Dec 2015
    Posts
    3,598
    Rep Power
    1
    Quote Originally Posted by Beard_One View Post
    A very simple question when you know the right answer!!

    How do you alter config lines in the SDX modder? I'm looking to change this (in gamestages):
    <config startingWeight="1"
    scavengerGameDifficultyBonus="0"
    adventurerGameDifficultyBonus="0.1"
    nomadGameDifficultyBonus="0.2"
    warriorGameDifficultyBonus="0.6"
    survivalistGameDifficultyBonus="1.0"
    insaneGameDifficultyBonus="1.5"
    daysAliveDifficultyBonus="0.1"
    daysAliveChangeWhenKilled="2"
    diminishingReturns="0.2" />

    to this:
    <config startingWeight="75"
    scavengerGameDifficultyBonus="0"
    adventurerGameDifficultyBonus="0.2"
    nomadGameDifficultyBonus="0.5"
    warriorGameDifficultyBonus="0.1"
    survivalistGameDifficultyBonus="1.5"
    insaneGameDifficultyBonus="2"
    daysAliveDifficultyBonus="5"
    daysAliveChangeWhenKilled="0"
    diminishingReturns="0.0" />

    But i cant work out the .xml commands to "set" a config... Could anyone help?

    Also, an additional 2 questions:
    1) Is it possible to INCREASE the difficulty when you die (ie have a NEGATIVE value in daysAliveChangeWhenKilled)? I've tried it and it crashes, but is there another way to do this?
    2) What does diminishingReturns do?

    Thank you!
    Found you!

    See if this section of the tutorial will help you out: https://7d2dsdx.github.io/Tutorials/...XPathLine.html

    Your set would look something like this:

    <set xpath="/gamestages/config/@startingWeight">2</set>

    You would need multiple lines to change them all. You could just remove the config, and then append a new one, but probably more flexible to set individual values.

    1) You'd probably need to extend the class, and over-ride the value, then figure out what calls that class, and change it. It'd probably be a combination of PatchScripts and Scripts.

    2) I think diminishingreturns applies for multi-players when its developing blood moon parties.

  3. #3
    Tracker
    Join Date
    Jun 2016
    Posts
    173
    Rep Power
    0
    A scholar and a gent! Thank you.

    Regarding answer 2) - do you have any more info on what the impact of an increase/decrease of diminishingreturns would be? I only ever play MP...

  4. #4
    Colony Founder sphereii's Avatar
    Join Date
    Dec 2015
    Posts
    3,598
    Rep Power
    1
    I think it reduces the horde. So if you both have game stages 300, then combined you'd have a game stage of 600, but the diminishing return reduces that number a bit? I'm not very confident in the answer though.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •