[REL] rFactor2 Series Creator (UI for creating vmods)

Discussion in 'Other' started by Noel Hibbard, Jun 5, 2015.

  1. GauchoRS

    GauchoRS Registered

    Joined:
    Nov 23, 2011
    Messages:
    471
    Likes Received:
    9
    error during first run

    Informationen über das Aufrufen von JIT-Debuggen
    anstelle dieses Dialogfelds finden Sie am Ende dieser Meldung.

    ************** Ausnahmetext **************
    System.NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
    bei CreateMod.Form1.inventory()
    bei CreateMod.Form1.Form1_Shown(Object sender, EventArgs e)
    bei System.Windows.Forms.Form.OnShown(EventArgs e)
    bei System.Windows.Forms.Form.CallShownEvent()
    bei System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)
    bei System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
    bei System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
    bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
    bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
    bei System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
    bei System.Windows.Forms.Control.InvokeMarshaledCallbacks()


    ************** Geladene Assemblys **************
    mscorlib
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.0.30319.34014 built by: FX45W81RTMGDR.
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll.
    ----------------------------------------
    rF2SeriesCreator
    Assembly-Version: 1.0.0.2.
    Win32-Version: 1.0.0.2.
    CodeBase: file:///D:/rFactor2/rF2SeriesCreator.exe.
    ----------------------------------------
    Microsoft.VisualBasic
    Assembly-Version: 10.0.0.0.
    Win32-Version: 12.0.20806.33440 built by: FX45W81RTMREL.
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll.
    ----------------------------------------
    System
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.0.30319.34003 built by: FX45W81RTMGDR.
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll.
    ----------------------------------------
    System.Core
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.0.30319.33440 built by: FX45W81RTMREL.
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll.
    ----------------------------------------
    System.Windows.Forms
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.0.30319.33440 built by: FX45W81RTMREL.
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll.
    ----------------------------------------
    System.Drawing
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.0.30319.33440 built by: FX45W81RTMREL.
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll.
    ----------------------------------------
    System.Runtime.Remoting
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.0.30319.33440 built by: FX45W81RTMREL.
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll.
    ----------------------------------------
    System.Data
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.0.30319.33440 built by: FX45W81RTMREL.
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll.
    ----------------------------------------
    System.Xml
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.0.30319.33440 built by: FX45W81RTMREL.
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll.
    ----------------------------------------
    System.Numerics
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.0.30319.33440 built by: FX45W81RTMREL.
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll.
    ----------------------------------------
    mscorlib.resources
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.0.30319.33440 built by: FX45W81RTMREL.
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_de_b77a5c561934e089/mscorlib.resources.dll.
    ----------------------------------------
    System.Windows.Forms.resources
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.0.30319.33440 built by: FX45W81RTMREL.
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.resources/v4.0_4.0.0.0_de_b77a5c561934e089/System.Windows.Forms.resources.dll.


    ---------------------------------------- View attachment 16933

    log ends with ..
    VEH File: D:\rFactor2\~temp\FC_01.VEH
    VEH File: D:\rFactor2\~temp\FC_02.VEH
    VEH File: D:\rFactor2\~temp\FC_03.VEH
    VEH File: D:\rFactor2\~temp\FC_04.VEH

    I don;t know which mod it belongs, I searched it, but couldnt find a mod with these .VEH files
     
  2. sherpa25

    sherpa25 Registered

    Joined:
    May 14, 2015
    Messages:
    233
    Likes Received:
    26
    Thanks. I get the same 'null' error.

    My log:

    Core: D:\XBOX360\rFactor2\
    DataPath: D:\XBOX360\rFactor2
    MAS2.exe: D:\XBOX360\rFactor2\Support\Tools\MAS2.exe
    ModMrg.exe: D:\XBOX360\rFactor2\Bin32\ModMgr.exe
    Packages: D:\XBOX360\rFactor2\Packages

    Inventory:
    Add MFT file: D:\XBOX360\rFactor2\Installed\Commentary\Commentary\1.0\commentary.mft
    Add MFT file: D:\XBOX360\rFactor2\Installed\HUD\F1 2013 HUD\1.1\F1 2013 HUD.MFT
    Add MFT file: D:\XBOX360\rFactor2\Installed\HUD\F1 2013 HUD RIGHT\1.1\F1 2013 HUD RIGHT.MFT
    Add MFT file: D:\XBOX360\rFactor2\Installed\HUD\F1 HUD\1.0\F1 HUD.MFT
    Add MFT file: D:\XBOX360\rFactor2\Installed\Locations\2013_ABUDHABI\1.0\2013_ABUDHABI.mft
    Add MFT file: D:\XBOX360\rFactor2\Installed\Locations\2013_BAHRAIN\1.0\2013_BAHRAIN.mft
    Add MFT file: D:\XBOX360\rFactor2\Installed\Locations\2013_BELGIUM\1.0\2013_BELGIUM.mft
    Add MFT file: D:\XBOX360\rFactor2\Installed\Locations\2013_CHINA\1.0\2013_CHINA.mft
    Add MFT file: D:\XBOX360\rFactor2\Installed\Locations\2013_GERMANY\1.0\2013_GERMANY.mft
    Add MFT file: D:\XBOX360\rFactor2\Installed\Locations\2013_HUNGARORING\1.0\2013_HUNGARORING.mft
    Add MFT file: D:\XBOX360\rFactor2\Installed\Locations\2013_INDIA\1.0\2013_INDIA.mft
    Add MFT file: D:\XBOX360\rFactor2\Installed\Locations\2013_Interlagos\1.0\2013_Interlagos.mft
    Add MFT file: D:\XBOX360\rFactor2\Installed\Locations\2013_KOREA\1.0\2013_KOREA.mft
    Add MFT file: D:\XBOX360\rFactor2\Installed\Locations\2013_MALAYSIA\1.0\2013_MALAYSIA.mft
    Add MFT file: D:\XBOX360\rFactor2\Installed\Locations\2013_Melbourne\1.0\2013_Melbourne.mft
    Add MFT file: D:\XBOX360\rFactor2\Installed\Locations\2013_MONACO\1.0\2013_MONACO.mft
    Add MFT file: D:\XBOX360\rFactor2\Installed\Locations\2013_MONTREAL\1.0\2013_MONTREAL.mft
    Add MFT file: D:\XBOX360\rFactor2\Installed\Locations\2013_MONZA\1.0\2013_MONZA.mft
    Add MFT file: D:\XBOX360\rFactor2\Installed\Locations\2013_Silverstone\1.0\2013_Silverstone.mft
    Add MFT file: D:\XBOX360\rFactor2\Installed\Locations\2013_SINGAPORE\1.0\2013_SINGAPORE.mft
    Add MFT file: D:\XBOX360\rFactor2\Installed\Locations\2013_SPAIN\1.0\2013_SPAIN.mft
    Add MFT file: D:\XBOX360\rFactor2\Installed\Locations\2013_SUZUKA\1.0\2013_SUZUKA.mft
    Add MFT file: D:\XBOX360\rFactor2\Installed\Locations\2013_USA\1.0\2013_USA.mft
    Add MFT file: D:\XBOX360\rFactor2\Installed\Locations\Bahrain_RD\1.1\BAHRAIN_RD.MFT
     
  3. Noel Hibbard

    Noel Hibbard Registered

    Joined:
    Oct 5, 2010
    Messages:
    2,744
    Likes Received:
    32
    Is that the whole log? If so, could you send me a copy of "D:\XBOX360\rFactor2\Installed\Locations\Bahrain_RD\1.1\BAHRAIN_RD.MFT".

    If that isn't the whole log, could you post the whole log.
     
  4. Noel Hibbard

    Noel Hibbard Registered

    Joined:
    Oct 5, 2010
    Messages:
    2,744
    Likes Received:
    32
    Those files belong to 458_Challenge v0.82. Where can I find a copy of this mod?

    Edit: Nevermind, I found it. I will check out the veh files and see why my parsing code is crashing. Thanks for the bug report!

    Edit2: Okay, this bug is fixed. The problem is FC_04.VEH is all messed up. It has "Category" listed twice and is totally missing "Classes". These errors will no longer crash my tool.
     
  5. sherpa25

    sherpa25 Registered

    Joined:
    May 14, 2015
    Messages:
    233
    Likes Received:
    26
    Hi Noel. That is the whole log. I just checked the Bahrain_RD.mft file, and it shows 0 bytes. Perhaps that's the reason for that? How about the other locations shown (ex. 2013_USA), you need it? Or did the error just occur with the Bahrain_RD file (the last file in the log)?
     
  6. Noel Hibbard

    Noel Hibbard Registered

    Joined:
    Oct 5, 2010
    Messages:
    2,744
    Likes Received:
    32
    Oh.. for sure that would be a problem. I will add some code to handle that. But if that file is 0kb then you will not be able to use that track in the game either and it will not show up in the modmgr either.

    Edit: Your bug is fixed. Download and try again.
     
  7. sherpa25

    sherpa25 Registered

    Joined:
    May 14, 2015
    Messages:
    233
    Likes Received:
    26
    It actually shows in rF2 launcher package installer, though correct as I haven't used it. I removed it. Will retry your newer version. Thanks
     
    Last edited by a moderator: Jun 9, 2015
  8. Noel Hibbard

    Noel Hibbard Registered

    Joined:
    Oct 5, 2010
    Messages:
    2,744
    Likes Received:
    32
    The package manager reads these MFT files for the details. If it is 0kb then it will not be able to get the details. If you were seeing and "installed" Bahrain 1.1 in the package manager then you must have another folder in Installed\Locations that has that same name. It's possible you have a Bahrain 1.1 rfcmp file in your packages folder and the package manager is listing that but listed as not installed.
     
  9. randy103

    randy103 Registered

    Joined:
    Jun 20, 2014
    Messages:
    9
    Likes Received:
    0
    Noel, I really like the mod manager tool. Everything I need is there. I made a wish list post last night. I mentioned your name and hope that is ok. Thanks for all you do!
     
  10. sherpa25

    sherpa25 Registered

    Joined:
    May 14, 2015
    Messages:
    233
    Likes Received:
    26
    Hi Noel. I left it running last night, then saw the error below. LOG is attached in .RAR file.

    -------------------------
    See the end of this message for details on invoking
    just-in-time (JIT) debugging instead of this dialog box.

    ************** Exception Text **************
    System.FormatException: Input string was not in a correct format.
    at Microsoft.VisualBasic.CompilerServices.Conversions.ParseDouble(String Value, NumberFormatInfo NumberFormat)
    at Microsoft.VisualBasic.CompilerServices.Conversions.ToInteger(String Value)


    ************** Loaded Assemblies **************
    mscorlib
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
    ----------------------------------------
    rF2SeriesCreator
    Assembly Version: 1.0.0.5
    Win32 Version: 1.0.0.5
    CodeBase: file:///K:/XBOX360%20AMODS/rFactor2/Apps/rF2SeriesCreator_v1.005.exe
    ----------------------------------------
    Microsoft.VisualBasic
    Assembly Version: 10.0.0.0
    Win32 Version: 12.0.51209.34209 built by: FX452RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
    ----------------------------------------
    System
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.34238 built by: FX452RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
    ----------------------------------------
    System.Core
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
    ----------------------------------------
    System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.34251 built by: FX452RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
    ----------------------------------------
    System.Drawing
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
    ----------------------------------------
    System.Runtime.Remoting
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.34245 built by: FX452RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
    ----------------------------------------
    System.Data
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
    ----------------------------------------
    System.Xml
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.34234 built by: FX452RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
    ----------------------------------------
    System.Numerics
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll
    ----------------------------------------
     
  11. Noel Hibbard

    Noel Hibbard Registered

    Joined:
    Oct 5, 2010
    Messages:
    2,744
    Likes Received:
    32
    I am going to add some logic to dump the contents of the veh,gdb or mft that fails to load to a log file and then keep on running without an error and then at the end of the inventory it will let you know that some of your content didn't process properly. You will then be able to post the log here for me to look at.
     
  12. Noel Hibbard

    Noel Hibbard Registered

    Joined:
    Oct 5, 2010
    Messages:
    2,744
    Likes Received:
    32
    Okay, it was failing on one of the cars in the FSR 2015 mod. One of the cars has a X1 as a car number and I was storing the car number as an integer and X1 clearly isn't an integer. I am going to store the car number as a string going forward.
     
  13. Noel Hibbard

    Noel Hibbard Registered

    Joined:
    Oct 5, 2010
    Messages:
    2,744
    Likes Received:
    32
    1.0.0.6 is released. It shouldn't crash regardless of what content you have installed. It may fail to load some of it but it will no longer crash the tool. If it fails to load some content it will dump enough detail to the log file for me to look into the problem.
     
  14. TVR_Guy

    TVR_Guy Registered

    Joined:
    Mar 4, 2013
    Messages:
    38
    Likes Received:
    0
    Noel,

    I tried your recent release combining AM, URD and ISI Mods in the GT3 class. I run a field of 20 AI's and selectively chose 21 cars among the Mods/car models. Using the VMod that I created, all I get is the URD EGT cars showing up. I reloaded the track three times but it is just duplicating the 1/2 dozen cars that I selected from the URD Mod.

    I lost the ability to selectively pick the AI car field with build 946. I'm hoping your App would allow this.

    Was that the intent of your App or am I missing something in its application.

    Thanks and I appreciate your efforts.

    Forgot to mention that I selected an URD EGT car to drive
     
    Last edited by a moderator: Jun 11, 2015
  15. Noel Hibbard

    Noel Hibbard Registered

    Joined:
    Oct 5, 2010
    Messages:
    2,744
    Likes Received:
    32
    Yes you should be able to select any combination you want. My guess is you are running into the MAS2.exe bug which randomly drops cars. The work around is to grab a copy of MAS2 from build 798 and drop it in the same folder as my tool and rebuild your vmod.
     
  16. TVR_Guy

    TVR_Guy Registered

    Joined:
    Mar 4, 2013
    Messages:
    38
    Likes Received:
    0
    That fixed it.
    Thanks again for the application.
     
  17. Noel Hibbard

    Noel Hibbard Registered

    Joined:
    Oct 5, 2010
    Messages:
    2,744
    Likes Received:
    32
    I spent a little time today working on caching to reduce the startup time. I hope to release something sometime this week. On a large install it just isn't practical to use this tool in it's current form. :(
     
  18. Kristoff Rand

    Kristoff Rand Registered

    Joined:
    Dec 23, 2011
    Messages:
    1,055
    Likes Received:
    10
    Should I be using this or the built in system inside of the Mas.exe? What are the pro/con features that I should know?
     
  19. Noel Hibbard

    Noel Hibbard Registered

    Joined:
    Oct 5, 2010
    Messages:
    2,744
    Likes Received:
    32
    Pros are its easier to use as it lists the cars in a tree view just like they are in the game so you just click the cars you want and the tool decides what components the car depends on. The tool also lists the pace cars and let's you select which ever pace car you want.

    The con right now is that it takes a very long time to take an inventory of all your content. I plan to fix this by the end of the week.

    I don't know of any pros of the MAS2 tool over the tool I made. The cons are that you have to know what components contain the cars you want and then you have to be sure you have all the cars highlighted on that final screen before clicking package. Also if you want to use a custom pace car you have to manually edit the rfm file and you also need to remember to include the component for the pace car.

    Once I fix the startup time I can't see any reason not to use my tool over mas2.

    To be clear though. My tool simply generates the config file which Mas2 reads. So I build the config file and then call MAS2 to build the actual package. Maybe one day ISI will give us direct APIs for reading and writing packages so I don't need to automate the mas2 tool anymore.
     
  20. argo0

    argo0 Registered

    Joined:
    Jan 22, 2012
    Messages:
    624
    Likes Received:
    8
    Sounds great. Exactly the sort of software that many of us need, and will go a long way towards making rf2 a more complete and accessible experience. The work that you guys are doing (Noel, Gerard, Nibo so many others, not to mention all the track & car guys) is amazing and worth so much to us. Thanks very much.
     

Share This Page