Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 30

Thread: <UpgradeCode> tag in the results file

  1. #11
    Senior Member
    Join Date
    Oct 2010
    Location
    Jacksonville, FL
    Posts
    435
    Try using the latest version of my tool and if you still have problems we will go from there. The latest version can be found here:
    http://www.nogripracing.com/details.php?filenr=35641

  2. #12
    Senior Member
    Join Date
    Oct 2010
    Location
    Okinawa/Holland
    Posts
    570
    Thx for your reply Noel,

    We are allready using 1.00

    All we did basicly was adding the weight upgrades to each car's upgrade.ini

    So for example the F171 Mclaren upgrade ini looks like this:
    Code:
    UpgradeType="Gear Indicator"
    {
    Instance="COCKPIT"
    
      Incremental=1
    
        UpgradeLevel="Hide Gear Indicator"
      {
        Description="Hide Gear Indicator"
        GEN=<COCKPITex>="//"
             GEN=<COCKPITex>="//"
    
      }
    
      UpgradeLevel="Show Gear Indicator"
      {
        Description="Show Gear Indicator"
        GEN=<COCKPITex>=""
            GEN=gear_indicator.gmt
    
      }
    }
    
    
    UpgradeType="FFB"
    {
      Incremental=1
    
      UpgradeLevel="Assist Level 3"
      {
        Description="Maximum Assist, Lightest Steering"
    
        HDV=[CONTROLS]
        HDV=SteeringFFBMult*=1
      }
    
      UpgradeLevel="Assist Level 2"
      {
        Description="Decreased Assist, Heavier Steering"
    
        HDV=[CONTROLS]
        HDV=SteeringFFBMult*=3.5
      }
    
      UpgradeLevel="Assist Level 1"
      {
        Description="Minimum Assist, Heaviest Steering"
    
        HDV=[CONTROLS]
        HDV=SteeringFFBMult*=5.0
      }
    }
    
      UpgradeType="Shifting Type"
      {
      
      UpgradeLevel="autoblip"
      {
        Description="Paddle type shifting with clutch time"
    
         HDV=[DRIVELINE]
         HDV=SemiAutomatic=0
         HDV=UpshiftDelay=0.21
         HDV=UpshiftClutchTime=0.21
         HDV=DownshiftDelay=0.21
         HDV=DownshiftClutchTime=0.35
         HDV=DownshiftBlipThrottle=0.05 
      } 
           
      
    UpgradeLevel="no autoblip"
      {
        Description="H type Shifting no clutch time"
    
        HDV=[DRIVELINE]
        HDV=SemiAutomatic=0
        HDV=UpshiftDelay=0.20
        HDV=UpshiftClutchTime=0.00
        HDV=DownshiftDelay=0.20
        HDV=DownshiftClutchTime=0.00
        HDV=DownshiftBlipThrottle=0.00 
    
      }
    
    UpgradeType="Arms"
    {
      Instance="WHEEL"
      UpgradeLevel="Arms"
      {
        Description="Arms"
        GEN=<WHEELEXISTS>=""
        GEN=<arms>=arms.gmt
        GEN=<LEGSEXISTS>=""
        GEN=Legs.gmt
      }
      UpgradeLevel="No Arms"
      {
        Description="No Arms"
        GEN=<WHEELEXISTS>="//"
        GEN=<arms>=arms.gmt
        GEN=<LEGSEXISTS>="//"
        GEN=<LEGSEXISTS>="//"
      }
    }
    
    UpgradeType="Areo Package"
    {
      Instance="DEBRIS0"
      UpgradeLevel="areo1"
      {
        Description="areo1"
        GEN=<DEBRIS0EXISTS>="//"
        GEN=<intake>=air_1a.gmt
      }
      UpgradeLevel="areo2"
      {
        Description="areo2"
        GEN=<DEBRIS0EXISTS>=""
        GEN=<intake>=air_1a.gmt
      }
    }
    
    UpgradeType="Areo Package"
    {
      Instance="RWING"
      UpgradeLevel="areo1"
      {
        Description="areo1"
        GEN=<RWINGEXISTS>=""
        GEN=<rwing>=rwinga.gmt
      }
      UpgradeLevel="areo2"
      {
        Description="areo2"
        GEN=<RWINGEXISTS>=""
        GEN=<rwing>=rwinga_2.gmt
      }
    }
    
      }
    UpgradeType="Laptime Reset"
    {
      UpgradeLevel="Option 1"
      {
        Description="Change from option 1 to 2 (or vice versa) to delete any existing qualifying lap times"
      }
    
      UpgradeLevel="Option 2"
      { 
        Description="Change from option 1 to 2 (or vice versa) to delete any existing qualifying lap times"
      }
    }
    
    UpgradeType="Weight"
    {
    Incremental=0
    
    Instance="REWARDS"
    
      UpgradeLevel="none"
      {
        Description="none"
        IconLevel=0
      }
      UpgradeLevel="+5 kg"
      {
        Description="+5 kg"
        IconLevel=0
        HDV=[GENERAL]
        HDV=Mass+=5
       }
      UpgradeLevel="+10 kg"
      {
        Description="+10 kg"
        IconLevel=0
        HDV=[GENERAL]
        HDV=Mass+=10
      }
      UpgradeLevel="+15 kg"
      {
        Description="+15 kg"
        IconLevel=0
        HDV=[GENERAL]
        HDV=Mass+=13.61
       }
      UpgradeLevel="+20 kg"
      {
        Description="+20 kg"
        IconLevel=0
        HDV=[GENERAL]
        HDV=Mass+=20
      }
      UpgradeLevel="+25 kg"
      {
        Description="+25 kg"
        IconLevel=0
        HDV=[GENERAL]
        HDV=Mass+=25
      }
      UpgradeLevel="+30 kg"
      {
        Description="+30 kg"
        IconLevel=0
        HDV=[GENERAL]
        HDV=Mass+=30
      }
      UpgradeLevel="+35 kg"
      {
        Description="+35 kg"
        IconLevel=0
        HDV=[GENERAL]
        HDV=Mass+=35
      }
      UpgradeLevel="+40 kg"
      {
        Description="+40 kg"
        IconLevel=0
        HDV=[GENERAL]
        HDV=Mass+=40
      }
      UpgradeLevel="+45 kg"
      {
        Description="+45 kg"
        IconLevel=0
        HDV=[GENERAL]
        HDV=Mass+=45
      }
      UpgradeLevel="+50 kg"
      {
        Description="+50 kg"
        IconLevel=0
        HDV=[GENERAL]
        HDV=Mass+=50
       }
      UpgradeLevel="+55 kg"
      {
        Description="+55 kg"
        IconLevel=0
        HDV=[GENERAL]
        HDV=Mass+=55
      }
      UpgradeLevel="+60 kg"
      {
        Description="+60 kg"
        IconLevel=0
        HDV=[GENERAL]
        HDV=Mass+=60
      }
      UpgradeLevel="+65 kg"
      {
        Description="+65 kg"
        IconLevel=0
        HDV=[GENERAL]
        HDV=Mass+=65
      }
      UpgradeLevel="+70 kg"
      {
        Description="+70 kg"
        IconLevel=0
        HDV=[GENERAL]
        HDV=Mass+=70
      }
      UpgradeLevel="+75 kg"
      {
        Description="+75 kg"
        IconLevel=0
        HDV=[GENERAL]
        HDV=Mass+=75
      }
      UpgradeLevel="+80 kg"
      {
        Description="+80 kg"
        IconLevel=0
        HDV=[GENERAL]
        HDV=Mass+=80
      }
      UpgradeLevel="+85 kg"
      {
        Description="+85 kg"
        IconLevel=0
        HDV=[GENERAL]
        HDV=Mass+=85
      }  
      UpgradeLevel="+90 kg"
      {
        Description="+90 kg"
        IconLevel=0
        HDV=[GENERAL]
        HDV=Mass+=90
       }
      UpgradeLevel="+95 kg"
      {
        Description="+95 kg"
        IconLevel=0
        HDV=[GENERAL]
        HDV=Mass+=95
      }
      UpgradeLevel="+100 kg"
      {
        Description="+100 kg"
        IconLevel=0
        HDV=[GENERAL]
        HDV=Mass+=100
      }
    The wierd thing is, eventhough the upgradechecker tells us a car used +5kg it was in fact 80KG. and 80KG was also selected by the driver, plus it did 'feel' like 80KG's and gave the required preformance.
    So it was never 5KG to begin with.
    Same for the 80KG usage showing as 40KG in the checker.


    The 'main' F171_Upgrades.ini in the mod-root also has the same weight upgrades btw.

  3. #13
    Junior Member
    Join Date
    Jan 2011
    Location
    Lithuania
    Posts
    8
    I think, there should be brackets (" } ") at the end of the file. Sorry if thats not the case.

  4. #14
    Senior Member
    Join Date
    Oct 2010
    Location
    Jacksonville, FL
    Posts
    435
    I am downloading F171 right now and then I will add the code you quoted and then I will try to debug this thing. It is possible Type-R is right though. I will report back shortly.

  5. #15
    Senior Member
    Join Date
    Oct 2010
    Location
    Jacksonville, FL
    Posts
    435
    Okay I am on to something. It has to do with UpgadeType="Areo Package" being in the file twice. rFactor consolidates it into one category but my tool does not. So the bitmap from rFactor doesn't match the bitmap my tool expects. Long story but I should be able to fix the problem.

    I should have a fix posted at NoGrip shortly.

  6. #16
    Senior Member
    Join Date
    Oct 2010
    Location
    Jacksonville, FL
    Posts
    435
    Well I was going to do a lazy fix for this bug but decided to do it the right way. Version 1.01 has been posted at NoGrip and should fix your problem.

    http://www.nogripracing.com/details.php?filenr=36070

    Thanks for the bug report!

  7. #17
    Senior Member
    Join Date
    Oct 2010
    Location
    Okinawa/Holland
    Posts
    570
    Hi Noel,

    Thx allot for your response, updating the checker was way beyond what i expected from this so many kudo's for you :-)

    We have done a series of tests with v1.01, including Type-R's suggestion (thx for that) and unfourtunately we are still stuck with the same results.

    The new checker now also shows the mods that are available (or that it recognizes) and F171 was part of the list.
    However, as previously mentioned, we have split up F171 into 2 parts, original and league, with a batch file enabling a user to change back and forth.
    I thought this was the problem but after installing the upgrade checker in my 2nd rfactor, adding the upgrades to a fresh and unmodified F171 installment it came back with the same results. some cars will give the correct values, others not. Yet the assigned weights where in effect on-track.

    Since we grabbed the weight upgrades from another mod (SCC) and changed some of the weights i decided to add the original upgrades from SCC to the fresh F171. same result, no luck.
    SCC itself seems fine with the checker but thats inconclusive because we dont have the time to test all cars innit so i'm not sure if it 100% works in SCC using original upgrades.


    I'm beginning to think there's more to it then just upgrade files, there might be entries in hdv/scn/whatever files that communicate with all this beneath the surface. i've tried to find them, also in SCC to compare entries in files. can find nawt.
    And tbh, i'm not too experienced with altering mods.

    I dont expect anyone to dive to deep into this on our account, i was just hoping i could get a quick fix here since we have been at it for weeks trying to figure it out but atm its looking like we will have to use mass.ini's again.

    Thx allot guys, your help is much appreciated :-)

  8. #18
    Senior Member
    Join Date
    Oct 2010
    Location
    Okinawa/Holland
    Posts
    570
    Arg! double post

  9. #19
    Senior Member
    Join Date
    Oct 2010
    Location
    Jacksonville, FL
    Posts
    435
    Just a real quick check is to be sure you are really running 1.0.1.0. It is possible my installer isn't overwriting the old one properly. To check the version just right click on the EXE and then select properties and then click the details tab. It should show 1.0.1.0 on the file version. I am going to look through my code one more time to be sure I am not missing something.

  10. #20
    Senior Member
    Join Date
    Oct 2010
    Location
    Jacksonville, FL
    Posts
    435
    Also, a little info on how my tool finds the upgrades files. First it reads the config.ini which is in the same directory as the upgrade checker. From the config.ini it gets the path to your rFm directory. Then it reads every *.rfm file in the rFm directory to get a list of each mod you have installed (within this install). From the *.rfm files it get the mod name and the "vehiclesdir=" for each mod. Then when you double click on a mod it then reads all the *.veh files in the "vehiclesdir=" (including subdirs) for that mod and generates a list of cars. Then when you double click on a car it reads the *.veh and looks for the "Upgrades=" line which tells it the path to the upgrade.ini for that car. It then reads the upgrade.ini file and generates a list of all the upgrades for that car.

    So fo rthe cars that don't work with my tool, check the veh file for that file to verify the path to the upgrade.ini and then copy and past the code from the upgrades.ini and I will look into it.

    We will figure this out I am sure.

Similar Threads

  1. rFactor results file errors
    By CordellCahill in forum rFactor 1 Technical Support
    Replies: 9
    Last Post: 01-27-2013, 11:34 PM
  2. XML Results reader in Java
    By Elantrax in forum rFactor 1 Technical Support
    Replies: 0
    Last Post: 07-15-2012, 03:30 PM
  3. Online rFactor Parser for Results
    By mAxL in forum rFactor 1 General Discussion
    Replies: 2
    Last Post: 12-09-2011, 07:27 AM
  4. XML Results file randomly written
    By Marcodika in forum rFactor 1 Technical Support
    Replies: 4
    Last Post: 07-01-2011, 04:35 PM

Posting Permissions

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