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

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

  1. Noel Hibbard

    Noel Hibbard Registered

    Joined:
    Oct 5, 2010
    Messages:
    2,744
    Likes Received:
    40
    I went through all the code to see every place where I convert a string to an integer and only see one place where it could be a problem and that is with the car number for a team. When I first wrote my class for parsing veh files I was using an integer for the car number but later I switched to a string because I found a few mods with car numbers that had alpha characters in them. Anyways, I just fixed it in this tool and I suspect it will your problem. Before I update the main link, could you download this exe and try it:
    https://www.dropbox.com/s/mlcmb8szl0abpq0/rF2SeriesCreator.exe?dl=0

    If that works I will package it up and update the first post.
     
  2. aerobaticrug

    aerobaticrug Registered

    Joined:
    Dec 27, 2012
    Messages:
    203
    Likes Received:
    5
    Got almost to the end this time!

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

    ************** Exception Text **************
    System.Data.ConstraintException: Column 'sig, category, description' is constrained to be unique. Value '019b4c334d1acf338b97f16b09025f631c0b7f8e8eff342bd00b555dd000dacd, Historic Open Wheel Challenge, EVE F3, EVE F3 MS5' is already present.
    at System.Data.UniqueConstraint.CheckConstraint(DataRow row, DataRowAction action)
    at System.Data.DataTable.RaiseRowChanging(DataRowChangeEventArgs args, DataRow eRow, DataRowAction eAction, Boolean fireEvent)
    at System.Data.DataTable.SetNewRecordWorker(DataRow row, Int32 proposedRecord, DataRowAction action, Boolean isInMerge, Boolean suppressEnsurePropertyChanged, Int32 position, Boolean fireEvent, Exception& deferredException)
    at System.Data.DataTable.InsertRow(DataRow row, Int64 proposedID, Int32 pos, Boolean fireEvent)
    at System.Data.DataRowCollection.Add(Object[] values)
    at CreateMod.Form1.inventory()
    at CreateMod.Form1.Form1_Shown(Object sender, EventArgs e)
    at System.Windows.Forms.Form.OnShown(EventArgs e)
    at System.Windows.Forms.Form.CallShownEvent()
    at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)
    at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
    at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
    at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
    at System.Windows.Forms.Control.InvokeMarshaledCallbacks()


    ************** Loaded Assemblies **************
    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.1.0.3
    Win32 Version: 1.1.0.3
    CodeBase: file:///D:/rF2SeriesCreator/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.Data.SQLite
    Assembly Version: 1.0.99.0
    Win32 Version: 1.0.99.0
    CodeBase: file:///D:/rF2SeriesCreator/System.Data.SQLite.DLL
    ----------------------------------------
    System.Transactions
    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.Transactions/v4.0_4.0.0.0__b77a5c561934e089/System.Transactions.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
    ----------------------------------------
    System.Configuration
    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.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
    ----------------------------------------
    System.EnterpriseServices
    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.EnterpriseServices/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
    ----------------------------------------

    ************** JIT Debugging **************
    To enable just-in-time (JIT) debugging, the .config file for this
    application or computer (machine.config) must have the
    jitDebugging value set in the system.windows.forms section.
    The application must also be compiled with debugging
    enabled.

    For example:

    <configuration>
    <system.windows.forms jitDebugging="true" />
    </configuration>

    When JIT debugging is enabled, any unhandled exception
    will be sent to the JIT debugger registered on the computer
    rather than be handled by this dialog box.
     
  3. aerobaticrug

    aerobaticrug Registered

    Joined:
    Dec 27, 2012
    Messages:
    203
    Likes Received:
    5
  4. TPG

    TPG Registered

    Joined:
    Mar 12, 2014
    Messages:
    409
    Likes Received:
    2
    I ran into an issue while the inventory was being compiled with a few mods, I think it may have something to do with same name/number. The ISI Stock Car mod is one I'm having trouble with, I keep getting this error [​IMG]

    There were 2 other mods that gave the same error, once I uninstalled them the inventory completed and I was able to make a .rfmod, I went back and tried to add the Stock Cars and got the same error as above. I noticed that with the SC mod they added the car they sponsored last year, the Edgar #2, but left the original #2 in the selection list, that seems to be where it's having problems.

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

    Inventory:
    Add MFT file: D:\rFactor2\Installed\Vehicles\ISI_StockCar_2015\1.04\ISI_StockCar_2015.mft
    Process MFT File: D:\rFactor2\Installed\Vehicles\ISI_StockCar_2015\1.04\ISI_StockCar_2015.mft
    MAS File: D:\rFactor2\Installed\Vehicles\ISI_StockCar_2015\1.04\HowstonGen6_sounds.mas
    MAS File: D:\rFactor2\Installed\Vehicles\ISI_StockCar_2015\1.04\sc2015.mas
    MAS File: D:\rFactor2\Installed\Vehicles\ISI_StockCar_2015\1.04\SC2015_car.mas
    MAS File: D:\rFactor2\Installed\Vehicles\ISI_StockCar_2015\1.04\SC2015_CarCrypt.mas
    MAS File: D:\rFactor2\Installed\Vehicles\ISI_StockCar_2015\1.04\SC2015_teams.mas
    VEH File: D:\rFactor2\~temp\SC2015_1.VEH
    VEH File: D:\rFactor2\~temp\SC2015_10.VEH
    VEH File: D:\rFactor2\~temp\SC2015_11.VEH
    VEH File: D:\rFactor2\~temp\SC2015_13.VEH
    VEH File: D:\rFactor2\~temp\SC2015_14.VEH
    VEH File: D:\rFactor2\~temp\SC2015_15.VEH
    VEH File: D:\rFactor2\~temp\SC2015_16.VEH
    VEH File: D:\rFactor2\~temp\SC2015_17.VEH
    VEH File: D:\rFactor2\~temp\SC2015_18.VEH
    VEH File: D:\rFactor2\~temp\SC2015_19.VEH
    VEH File: D:\rFactor2\~temp\SC2015_2.VEH
    VEH File: D:\rFactor2\~temp\SC2015_20.VEH
    VEH File: D:\rFactor2\~temp\SC2015_22.VEH
    VEH File: D:\rFactor2\~temp\SC2015_23.VEH
    VEH File: D:\rFactor2\~temp\SC2015_24.VEH
    VEH File: D:\rFactor2\~temp\SC2015_26.VEH
    VEH File: D:\rFactor2\~temp\SC2015_27.VEH
    VEH File: D:\rFactor2\~temp\SC2015_2_GUEST01.VEH
    VEH File: D:\rFactor2\~temp\SC2015_2_GUEST02.VEH
    VEH File: D:\rFactor2\~temp\SC2015_2_GUEST03.VEH
     
  5. Noel Hibbard

    Noel Hibbard Registered

    Joined:
    Oct 5, 2010
    Messages:
    2,744
    Likes Received:
    40
    Could you click the details button and then copy/paste the sig for me?
     
  6. TPG

    TPG Registered

    Joined:
    Mar 12, 2014
    Messages:
    409
    Likes Received:
    2
    See the end of this message for details on invoking
    just-in-time (JIT) debugging instead of this dialog box.

    ************** Exception Text **************
    System.Data.ConstraintException: Column 'sig, category, description' is constrained to be unique. Value '049331ab02d3974b31d8937dd42332ece40078a191741a13807fe1c1b2b655c4, StockCar, 2015 Edgar GT StockCar, SC2015 Edgar GT #2' is already present.
    at System.Data.UniqueConstraint.CheckConstraint(DataRow row, DataRowAction action)
    at System.Data.DataTable.RaiseRowChanging(DataRowChangeEventArgs args, DataRow eRow, DataRowAction eAction, Boolean fireEvent)
    at System.Data.DataTable.SetNewRecordWorker(DataRow row, Int32 proposedRecord, DataRowAction action, Boolean isInMerge, Boolean suppressEnsurePropertyChanged, Int32 position, Boolean fireEvent, Exception& deferredException)
    at System.Data.DataTable.InsertRow(DataRow row, Int64 proposedID, Int32 pos, Boolean fireEvent)
    at System.Data.DataRowCollection.Add(Object[] values)
    at CreateMod.Form1.inventory()
    at CreateMod.Form1.Form1_Shown(Object sender, EventArgs e)
    at System.Windows.Forms.Form.OnShown(EventArgs e)
    at System.Windows.Forms.Form.CallShownEvent()
    at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)
    at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
    at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
    at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
    at System.Windows.Forms.Control.InvokeMarshaledCallbacks()


    ************** 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.1.0.3
    Win32 Version: 1.1.0.3
    CodeBase: file:///C:/Users/XanK/Downloads/rF2/Addons/Series%20Creator/rF2SeriesCreator.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.34209 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.34209 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.Data.SQLite
    Assembly Version: 1.0.99.0
    Win32 Version: 1.0.99.0
    CodeBase: file:///C:/Users/XanK/Downloads/rF2/Addons/Series%20Creator/System.Data.SQLite.DLL
    ----------------------------------------
    System.Transactions
    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.Transactions/v4.0_4.0.0.0__b77a5c561934e089/System.Transactions.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
    ----------------------------------------
    System.Configuration
    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.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
    ----------------------------------------
    System.EnterpriseServices
    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.EnterpriseServices/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
    ----------------------------------------

    ************** JIT Debugging **************
    To enable just-in-time (JIT) debugging, the .config file for this
    application or computer (machine.config) must have the
    jitDebugging value set in the system.windows.forms section.
    The application must also be compiled with debugging
    enabled.

    For example:

    <configuration>
    <system.windows.forms jitDebugging="true" />
    </configuration>

    When JIT debugging is enabled, any unhandled exception
    will be sent to the JIT debugger registered on the computer
    rather than be handled by this dialog box.
     
  7. Noel Hibbard

    Noel Hibbard Registered

    Joined:
    Oct 5, 2010
    Messages:
    2,744
    Likes Received:
    40
  8. TPG

    TPG Registered

    Joined:
    Mar 12, 2014
    Messages:
    409
    Likes Received:
    2
    The latest build worked great, I even reinstalled the other 2 mods it was having issues with and had no problems..

    ..and Thx again for your contributions to the rF2 community, I've been using GetMod since it's release and recently started using the ServerManager, both excellent programs. :cool:
     
  9. aerobaticrug

    aerobaticrug Registered

    Joined:
    Dec 27, 2012
    Messages:
    203
    Likes Received:
    5
    That worked! Awesome job Noel!
     
  10. Noel Hibbard

    Noel Hibbard Registered

    Joined:
    Oct 5, 2010
    Messages:
    2,744
    Likes Received:
    40
    Just an FYI. When you run the tool for the first time it takes a while because it scans all your content. The progress bar will move as it does this scan. When the progress bar gets almost all the way to the end it will stop and it will seem like the app is hung. It is actually committing everything to the database at that stage. It isn't actually hung so don't terminate the app, just let it run. I am going to dig into the SQLite libs some more to see if I can track the progress when writing the DB so I can keep the progress bar rolling during this stage.
     
  11. aerobaticrug

    aerobaticrug Registered

    Joined:
    Dec 27, 2012
    Messages:
    203
    Likes Received:
    5
    Don't suppose there is anyway to integrate with getmod manager?

    Sent from my Nexus 6 using Tapatalk
     
  12. Noel Hibbard

    Noel Hibbard Registered

    Joined:
    Oct 5, 2010
    Messages:
    2,744
    Likes Received:
    40
    Yeah I could probably do that.
     
  13. aerobaticrug

    aerobaticrug Registered

    Joined:
    Dec 27, 2012
    Messages:
    203
    Likes Received:
    5
    Sorry, in had to ask as I'm a big fan of getmod manager as well :)

    Sent from my Nexus 6 using Tapatalk
     
  14. Noel Hibbard

    Noel Hibbard Registered

    Joined:
    Oct 5, 2010
    Messages:
    2,744
    Likes Received:
    40
    I noticed that I broke the pace car selector when I added the new cache. I went ahead and fixed that bug. Check the first post for the download link.
     
  15. Anto870

    Anto870 Registered

    Joined:
    Sep 8, 2014
    Messages:
    126
    Likes Received:
    46
    No more updates ?
     
  16. SPASKIS

    SPASKIS Registered

    Joined:
    Sep 7, 2011
    Messages:
    3,155
    Likes Received:
    1,426
    Noel hasn't been active for quite a while. However, for creating vmods I recommend using MAS2.exe. I never found this tool useful since I can see no problem using the official tool MAS2.exe.
     
  17. AMillward

    AMillward Registered

    Joined:
    Apr 4, 2017
    Messages:
    1,879
    Likes Received:
    1,837
    Will have to give this a go. Will help me when using GT3 mods to be able to use Blancpain, Aus GT and so on as one series instead of a mashup of all of them.
     

Share This Page