SOLVED Problem with Upgrade.ini

Discussion in 'Modding' started by Juan93sl, Mar 19, 2018.

  1. Juan93sl

    Juan93sl Registered

    Joined:
    Dec 20, 2017
    Messages:
    3
    Likes Received:
    1
    Hi,

    I'm having problems with the mod i'm editing. I'm using upgrade.ini to be able to select the Engine with different powers. I use this code:

    UpgradeType="Engine"
    {
    UpgradeLevel="Engine 1"
    {
    Description="Motor nuevo"
    Price=0

    HDV=[ENGINE]
    HDV=GeneralTorqueMult*=1.000
    HDV=GeneralPowerMult*=1.000
    HDV=LifetimeAvg=7200
    }

    UpgradeLevel="Engine 2"
    {
    Description="Motor con una carrera de uso, eso implica en él una perdida de potencia del 2%"
    Price=0

    HDV=[ENGINE]
    HDV=GeneralTorqueMult*=0.98
    HDV=GeneralPowerMult*=0.98
    HDV=LifetimeAvg=7150
    HDV=EngineSpeedHeat=0.002055
    }

    UpgradeLevel="Engine 3"
    {
    Description="Motor con dos carreras de uso, eso implica en él una perdida de potencia del 4%"
    Price=0

    HDV=[ENGINE]
    HDV=GeneralTorqueMult*=0.96
    HDV=GeneralPowerMult*=0.96
    HDV=LifetimeAvg=7100
    HDV=EngineSpeedHeat=0.002060

    I used it in two other mods in which it works but in this it does not work. I can select the different types of engine but nothing happen. For example, when I select Engine 3 which have less power, in game have the same power as Engine 1. I tryed puttin extreme valors as 0.1 but nothing. The engine is FSR2017 which is in steam workshop.

    Thanks for your helps :)
     
  2. Lazza

    Lazza Registered

    Joined:
    Oct 5, 2010
    Messages:
    12,345
    Likes Received:
    6,572
    Do you have the } after the last option? Missing braces are a common problem.
     
  3. Nibiru

    Nibiru Registered

    Joined:
    Dec 24, 2011
    Messages:
    1,200
    Likes Received:
    1,295
    You'll need 2 brackets at the end.
    1 to close the last upgrade
    And the 2nd to close the whole upgrade
     
  4. Bernd

    Bernd Registered

    Joined:
    Jul 9, 2013
    Messages:
    1,509
    Likes Received:
    755
    I agree to this and if that don't solves the problem, add a line with HDV= to each option, that it looks like this
    HDV=
    HDV=[ENGINE]
     
    Nibiru likes this.
  5. Juan93sl

    Juan93sl Registered

    Joined:
    Dec 20, 2017
    Messages:
    3
    Likes Received:
    1
    Ouch sorry, as i did not copy to this post all the file, i did not put 2 brackets at the end but in mi uprgrade.ini there are. I always finish with them and it did not work. I will try that bernd say.

    Thank to all!
     
    Nibiru likes this.
  6. Juan93sl

    Juan93sl Registered

    Joined:
    Dec 20, 2017
    Messages:
    3
    Likes Received:
    1
    IT WORKS!! I add HDV= and it works, thank very much!!
     
  7. Bernd

    Bernd Registered

    Joined:
    Jul 9, 2013
    Messages:
    1,509
    Likes Received:
    755
    You are welcome, i'm glad that it works now.
     

Share This Page