1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Library Creator XML 3.0

Discussion in 'Library Creator XML' started by arno, 13 Nov 2011.

  1. arno

    arno Administrator Staff Member FSDevConf team Resource contributor

    Joined:
    28 May 2004
    Messages:
    24,309
    Country:
    netherlands
    Hi all,

    Just to let you know that a beta version of Library Creator XML 3.0 is now available. It is part of the development releases package of my tools.

    This new version has the following changes:
    • New user interface
    • Simplified saving (XML and BGL saved from same place)
    • Option to load a MDL from Library Creator XML into ModelConverterX

    The changes I made now also will allow me to add support for reading BGL files soon. And I also have plans for more integration with ModelConverterX.
     
  2. hcornea

    hcornea Resource contributor

    Joined:
    20 Apr 2007
    Messages:
    2,388
    Country:
    australia
    Excellent developments, Arno!
     
  3. Ayrsimming

    Ayrsimming

    Joined:
    2 Jan 2005
    Messages:
    118
    Country:
    scotland
    Hi Arno

    With version 3 I am finding the feature that allows you to create .txt files for use with SbuilderX is now broken.
    The title of the library is not now being quoted as the first line, as it was previously, and also the Guid is showing as all '0's' for new entries.

    Iain
     
  4. arno

    arno Administrator Staff Member FSDevConf team Resource contributor

    Joined:
    28 May 2004
    Messages:
    24,309
    Country:
    netherlands
    Hi Ian,

    I'll take a look at this. Since it is the first beta release there might be a few issues left :).
     
  5. arno

    arno Administrator Staff Member FSDevConf team Resource contributor

    Joined:
    28 May 2004
    Messages:
    24,309
    Country:
    netherlands
    Hi Iain,

    Thanks for reporting. I have been able to fix both issues now. In the next development release it should be working again.
     
  6. Ayrsimming

    Ayrsimming

    Joined:
    2 Jan 2005
    Messages:
    118
    Country:
    scotland
    Hi Arno

    Can report SbuilderX txt files are now working again.

    Many thanks.

    Iain
     
  7. Tejal Bernardo

    Tejal Bernardo

    Joined:
    21 Mar 2011
    Messages:
    3,173
    Country:
    spain
    Great Arno, I see Library Creator as another indispensable tool for scenery maker, and it's great you have implemented a little this tool, greetings :cool:
     
  8. PatDeBarr

    PatDeBarr

    Joined:
    5 Mar 2006
    Messages:
    35
    Country:
    france
    Hi Arno,

    Great thanks for the version 3.0 of Library Creator XML.

    These tool is nice and works correctly, but only with '*.mdl' without animation :mad:

    When I try to add a '*.mdl' with animation, I receive a 'OutOfMemoryException'...
    (No error with Library Creator V2.0.3)
    Exemples are attached.

    The error message is join (sorry, I am french and my system is in french !!!)

    Patrick (PatDeBarr)
    http://avalsace.free.fr/SCENES.htm


    Consultez la fin de ce message pour plus de détails sur l'appel du débogage
    juste-à-temps (JIT) à la place de cette boîte de dialogue.

    ************** Texte de l'exception **************
    System.OutOfMemoryException: Une exception de type 'System.OutOfMemoryException' a été levée.
    à ASToFra.ObjectReader.MDLStatsReader.GetStatistics(String filename)
    à ASToFra.LibraryCreatorXML.XMLReader.Read(String filename)
    à ASToFra.LibraryCreatorXML.MainForm.LoadLibraryXML(String filename)
    à ASToFra.LibraryCreatorXML.MainForm.mnuFileOpen_Click(Object sender, EventArgs e)
    à System.Windows.Forms.ToolStripSplitButton.OnButtonClick(EventArgs e)
    à System.Windows.Forms.ToolStripSplitButton.OnMouseUp(MouseEventArgs e)
    à System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
    à System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
    à System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
    à System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
    à System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
    à System.Windows.Forms.Control.WndProc(Message& m)
    à System.Windows.Forms.ScrollableControl.WndProc(Message& m)
    à System.Windows.Forms.ToolStrip.WndProc(Message& m)
    à System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
    à System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
    à System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


    ************** Assemblys chargés **************
    mscorlib
    Version de l'assembly*: 2.0.0.0
    Version Win32*: 2.0.50727.5448 (Win7SP1GDR.050727-5400)
    CodeBase*: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
    ----------------------------------------
    Launcher_LibraryCreatorXML
    Version de l'assembly*: 1.0.0.0
    Version Win32*: 3.0.0.0
    CodeBase*: file:///E:/FS-X_Outils/FSDevelopper/LibraryCreatorXML.exe
    ----------------------------------------
    System.Windows.Forms
    Version de l'assembly*: 2.0.0.0
    Version Win32*: 2.0.50727.5446 (Win7SP1GDR.050727-5400)
    CodeBase*: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
    ----------------------------------------
    System
    Version de l'assembly*: 2.0.0.0
    Version Win32*: 2.0.50727.5447 (Win7SP1GDR.050727-5400)
    CodeBase*: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
    ----------------------------------------
    System.Drawing
    Version de l'assembly*: 2.0.0.0
    Version Win32*: 2.0.50727.5420 (Win7SP1.050727-5400)
    CodeBase*: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
    ----------------------------------------
    LibraryCreatorXML
    Version de l'assembly*: 1.0.0.0
    Version Win32*: 3.0.0.0
    CodeBase*: file:///E:/FS-X_Outils/FSDevelopper/LibraryCreatorXML.DLL
    ----------------------------------------
    ObjectModel3D
    Version de l'assembly*: 1.0.0.0
    Version Win32*: 1.3.0.0
    CodeBase*: file:///E:/FS-X_Outils/FSDevelopper/ObjectModel3D.DLL
    ----------------------------------------
    Utils
    Version de l'assembly*: 1.0.0.0
    Version Win32*: 1.3.0.0
    CodeBase*: file:///E:/FS-X_Outils/FSDevelopper/Utils.DLL
    ----------------------------------------
    System.Configuration
    Version de l'assembly*: 2.0.0.0
    Version Win32*: 2.0.50727.5420 (Win7SP1.050727-5400)
    CodeBase*: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
    ----------------------------------------
    System.Xml
    Version de l'assembly*: 2.0.0.0
    Version Win32*: 2.0.50727.5420 (Win7SP1.050727-5400)
    CodeBase*: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
    ----------------------------------------
    ObjectReader
    Version de l'assembly*: 1.0.0.0
    Version Win32*: 1.3.0.0
    CodeBase*: file:///E:/FS-X_Outils/FSDevelopper/ObjectReader.DLL
    ----------------------------------------
    mscorlib.resources
    Version de l'assembly*: 2.0.0.0
    Version Win32*: 2.0.50727.5448 (Win7SP1GDR.050727-5400)
    CodeBase*: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
    ----------------------------------------
    System.Windows.Forms.resources
    Version de l'assembly*: 2.0.0.0
    Version Win32*: 2.0.50727.5420 (Win7SP1.050727-5400)
    CodeBase*: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms.resources/2.0.0.0_fr_b77a5c561934e089/System.Windows.Forms.resources.dll
    ----------------------------------------

    ************** Débogage JIT **************
    Pour activer le débogage juste-à-temps (JIT), le fichier de configuration pour cette
    application ou cet ordinateur (machine.config) doit avoir la valeur
    jitDebugging définie dans la section system.windows.forms.
    L'application doit également être compilée avec le débogage
    activé.

    Par exemple*:

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

    Lorsque le débogage juste-à-temps est activé, les exceptions non gérées
    seront envoyées au débogueur JIT inscrit sur l'ordinateur
    plutôt que d'être gérées par cette boîte de dialogue.
     

    Attached Files:

  9. arno

    arno Administrator Staff Member FSDevConf team Resource contributor

    Joined:
    28 May 2004
    Messages:
    24,309
    Country:
    netherlands
    Hi,

    Thanks for reporting. I have fixed the bug, so in the next development release you can add these objects without problems.
     
  10. robystar

    robystar

    Joined:
    4 Oct 2006
    Messages:
    4,368
    Hi,

    Downloaded latest dev release and added one mdl (without animation) to an existing xml but Library Creator gave up on me.
    Unfortunately it substituted the existing xml by a 0kB xml.
    I decompiled the bgl to get a new xml and tried to add the new mdl to my xml whereupon Library Creator tells me the mdl is made for another version of FS and that I cannot mix the two.
    I checked MCX and indeed it looks like when I changed the GUID, it gave me this kind of GUID:36930a41-5ea5-4041-a73b-df1bdb0893cc which I believe is a FS9 type although my preferred FS version is FSX. So maybe it is a MCX bug?
     
  11. arno

    arno Administrator Staff Member FSDevConf team Resource contributor

    Joined:
    28 May 2004
    Messages:
    24,309
    Country:
    netherlands
    Hi,

    I checked and there was indeed a little bug in exporting the XML files. I have fixed that now. So that should fix the 0kB XML file being exported.

    Not sure what went wrong afterwards. The GUID you write is a fine FSX style GUID. After you load your decompiled XML file, what version does Library Creator XML show in the status bar? You get the version message when you try to add objects from another version.
     
  12. robystar

    robystar

    Joined:
    4 Oct 2006
    Messages:
    4,368
    I get FS2004 but that is not the case as this is an FSX bgl decompiled xml with only FSX type mdl's.
    (Sorry about being mistaken in the GUID type, I thought FSX style GUIDs did not have those hyphens, have they???).
     
    Last edited: 20 Nov 2011
  13. PatDeBarr

    PatDeBarr

    Joined:
    5 Mar 2006
    Messages:
    35
    Country:
    france
    Hi,

    Many thanks for your answer ...
    I'll wait the next release !

    Patrick
     
  14. PatDeBarr

    PatDeBarr

    Joined:
    5 Mar 2006
    Messages:
    35
    Country:
    france
    Hi Arno,

    The last release of LibraryCreatorXML work fine with animations :D ...

    Many thanks.

    Patrick
     
  15. arno

    arno Administrator Staff Member FSDevConf team Resource contributor

    Joined:
    28 May 2004
    Messages:
    24,309
    Country:
    netherlands
    Hi Roby,

    Let me see if I can reproduce that, which decompiler did you use?
     
  16. robystar

    robystar

    Joined:
    4 Oct 2006
    Messages:
    4,368
    Hi Arno,

    In the options I set the path to the fs2004 SDK one for FS2004 and the FSX SDK one for FSX.
    By the way, it now reads fsx instead of FS9 but models are still in red.
     
  17. tsgucci

    tsgucci

    Joined:
    11 Apr 2009
    Messages:
    348
    Country:
    hungary
    Hi Arno!


    Today I tested the new LC. If I may ask some function in the LC 3.0:

    - You can close LC without a warning to save your work. This happened to me very often with the 2.0 LC. I added an object, made a bgl but did not save the library. And when the next time I add an mdl (FS2004) LC generates a new GUID. So Either I rewrite the GUID in the txt, or I place the objects again.

    - FS2004 - If the mdl is FS9 than LC should take the GUID from the mdl's xml. Than the problem above could be avoided. In FSX this is not an issue.

    - Additional function when you right click on the GUID : change GUID.

    - Same change for the mdl's path.

    - In case of FS9 mdl. The option to open it in MDLTweaker would be very nice.


    Thank you Arno!
     
    Last edited: 2 Dec 2011
  18. arno

    arno Administrator Staff Member FSDevConf team Resource contributor

    Joined:
    28 May 2004
    Messages:
    24,309
    Country:
    netherlands
    Hi,

    Since in Library Creator XML 3.0 there is no difference anymore between compile BGL and save XML (all done from the same screen). I don't think such a reminder is needed anymore. And in future versions I will add the option to read the BGL directly as well.

    I know this has been discussed before, but I see the sample XML that the gamepack makes as nothing more than a sample. You don't need to use that GUID at all, that's why I just create a new random GUID when you add an object.

    In what case would you like to manually edit the GUID? The option is not there now since it is more save to just create a new one when needed. Is there a use case where you would want to edit the GUID?

    I had that option before, but since I never used it I removed it. You could of course remove the old one and just add the new one. But for FS2004 objects that would not keep the GUID the same. Maybe I should add the replace object button back.

    That's a nice idea, I'll put it on the list.
     
  19. hcornea

    hcornea Resource contributor

    Joined:
    20 Apr 2007
    Messages:
    2,388
    Country:
    australia
    Arno,

    I think the problem arises if you have already placed the model in the scenery (eg multiple times) then it falls out of the library xml file, and its GUID changes.

    Rather than place all the objects again ... re-creating the same GUID is a better option.



    Now, my request:

    Could Library Creator automatically detect new models in a folder and offer to add them to the library?

    I tend to colllect all the mdls in a folder and compile the library from there. I am sure many others do this.

    (An option to automatically parse x-files would be good for those of us who are lazy, and use 3DSMax)
     
  20. arno

    arno Administrator Staff Member FSDevConf team Resource contributor

    Joined:
    28 May 2004
    Messages:
    24,309
    Country:
    netherlands
    Hi,

    I have put the edit GUID idea on the wishlist now.

    I think I could add an option to add all objects in a specific folder. Would that work for you? Now you can already try to add all files in a folder and the tool will only add the new ones.

    Not sure if doing that automatically is so easy, because then the tool needs to know which folder belongs to which XML file.
     

Share This Page