FSDeveloper Community

Go Back   FSDeveloper Community > Microsoft Flight Simulator development > Scenery Design - 3D Objects > Library Creator XML

Library Creator XML Support for Library Creator XML

Reply
 
Thread Tools Display Modes
  #1  
Old 13 Nov 2011, 05:37
arno's Avatar
arno arno is online now
  netherlands
Location: Amsterdam
Join Date: May 2004
Posts: 18,934
Send a message via Skype™ to arno
Library Creator XML 3.0

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.
__________________
Arno
If the world should blow itself up, the last audible voice would be that of an expert saying it can't be done.

FSDeveloper Administrator | Former Microsoft FS MVP
Quick links: My tools | Wiki | Download center | Blog
Reply With Quote
  #2  
Old 14 Nov 2011, 06:53
hcornea's Avatar
hcornea hcornea is offline
  australia
Location: Australia
Join Date: Apr 2007
Posts: 2,164
Excellent developments, Arno!
__________________
All of my apparent expertise is a product of The Dunning-Kruger Effect
Reply With Quote
  #3  
Old 14 Nov 2011, 09:44
Ayrsimming Ayrsimming is offline
  scotland
Join Date: Jan 2005
Posts: 102
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
Reply With Quote
  #4  
Old 14 Nov 2011, 12:18
arno's Avatar
arno arno is online now
  netherlands
Location: Amsterdam
Join Date: May 2004
Posts: 18,934
Send a message via Skype™ to arno
Hi Ian,

I'll take a look at this. Since it is the first beta release there might be a few issues left .
__________________
Arno
If the world should blow itself up, the last audible voice would be that of an expert saying it can't be done.

FSDeveloper Administrator | Former Microsoft FS MVP
Quick links: My tools | Wiki | Download center | Blog
Reply With Quote
  #5  
Old 14 Nov 2011, 12:48
arno's Avatar
arno arno is online now
  netherlands
Location: Amsterdam
Join Date: May 2004
Posts: 18,934
Send a message via Skype™ to arno
Hi Iain,

Thanks for reporting. I have been able to fix both issues now. In the next development release it should be working again.
__________________
Arno
If the world should blow itself up, the last audible voice would be that of an expert saying it can't be done.

FSDeveloper Administrator | Former Microsoft FS MVP
Quick links: My tools | Wiki | Download center | Blog
Reply With Quote
  #6  
Old 15 Nov 2011, 13:57
Ayrsimming Ayrsimming is offline
  scotland
Join Date: Jan 2005
Posts: 102
Hi Arno

Can report SbuilderX txt files are now working again.

Many thanks.

Iain
Reply With Quote
  #7  
Old 16 Nov 2011, 06:18
Tejal Bernardo Tejal Bernardo is offline
  spain
Location: GCXO
Join Date: Mar 2011
Posts: 2,187
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
__________________
Bernardo
Reply With Quote
  #8  
Old 19 Nov 2011, 15:16
PatDeBarr PatDeBarr is offline
  france
Location: BARR (Alsace)
Join Date: Mar 2006
Posts: 7
Exclamation

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

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_Cli ck(Object sender, EventArgs e)
à System.Windows.Forms.ToolStripSplitButton.OnButton Click(EventArgs e)
à System.Windows.Forms.ToolStripSplitButton.OnMouseU p(MouseEventArgs e)
à System.Windows.Forms.ToolStripItem.HandleMouseUp(M ouseEventArgs e)
à System.Windows.Forms.ToolStripItem.FireEventIntera ctive(EventArgs e, ToolStripItemEventType met)
à System.Windows.Forms.ToolStripItem.FireEvent(Event Args e, ToolStripItemEventType met)
à System.Windows.Forms.ToolStrip.OnMouseUp(MouseEven tArgs mea)
à System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
à System.Windows.Forms.Control.WndProc(Message& m)
à System.Windows.Forms.ScrollableControl.WndProc(Mes sage& m)
à System.Windows.Forms.ToolStrip.WndProc(Message& m)
à System.Windows.Forms.Control.ControlNativeWindow.O nMessage(Message& m)
à System.Windows.Forms.Control.ControlNativeWindow.W ndProc(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
File Type: mdl Fanion_01.MDL (10.3 KB, 81 views)
File Type: mdl Flag_Fra.MDL (7.5 KB, 81 views)
Reply With Quote
  #9  
Old 20 Nov 2011, 03:11
arno's Avatar
arno arno is online now
  netherlands
Location: Amsterdam
Join Date: May 2004
Posts: 18,934
Send a message via Skype™ to arno
Hi,

Thanks for reporting. I have fixed the bug, so in the next development release you can add these objects without problems.
__________________
Arno
If the world should blow itself up, the last audible voice would be that of an expert saying it can't be done.

FSDeveloper Administrator | Former Microsoft FS MVP
Quick links: My tools | Wiki | Download center | Blog
Reply With Quote
  #10  
Old 20 Nov 2011, 10:39
robystar robystar is offline
 
Location: Balkbrug, the Netherlands
Join Date: Oct 2006
Posts: 2,785
Send a message via Skype™ to robystar
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?
__________________
Ridentem dicere verum quid vetat (horatio) and I fully agree!
Reply With Quote
  #11  
Old 20 Nov 2011, 11:08
arno's Avatar
arno arno is online now
  netherlands
Location: Amsterdam
Join Date: May 2004
Posts: 18,934
Send a message via Skype™ to arno
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.
__________________
Arno
If the world should blow itself up, the last audible voice would be that of an expert saying it can't be done.

FSDeveloper Administrator | Former Microsoft FS MVP
Quick links: My tools | Wiki | Download center | Blog
Reply With Quote
  #12  
Old 20 Nov 2011, 11:18
robystar robystar is offline
 
Location: Balkbrug, the Netherlands
Join Date: Oct 2006
Posts: 2,785
Send a message via Skype™ to robystar
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???).
__________________
Ridentem dicere verum quid vetat (horatio) and I fully agree!

Last edited by robystar; 20 Nov 2011 at 11:23.
Reply With Quote
  #13  
Old 20 Nov 2011, 11:48
PatDeBarr PatDeBarr is offline
  france
Location: BARR (Alsace)
Join Date: Mar 2006
Posts: 7
Hi,

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

Patrick
Reply With Quote
  #14  
Old 22 Nov 2011, 12:05
PatDeBarr PatDeBarr is offline
  france
Location: BARR (Alsace)
Join Date: Mar 2006
Posts: 7
Hi Arno,

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

Many thanks.

Patrick
Reply With Quote
  #15  
Old 26 Nov 2011, 02:34
arno's Avatar
arno arno is online now
  netherlands
Location: Amsterdam
Join Date: May 2004
Posts: 18,934
Send a message via Skype™ to arno
Hi Roby,

Quote:
Originally Posted by robystar View Post
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???).
Let me see if I can reproduce that, which decompiler did you use?
__________________
Arno
If the world should blow itself up, the last audible voice would be that of an expert saying it can't be done.

FSDeveloper Administrator | Former Microsoft FS MVP
Quick links: My tools | Wiki | Download center | Blog
Reply With Quote
  #16  
Old 26 Nov 2011, 06:45
robystar robystar is offline
 
Location: Balkbrug, the Netherlands
Join Date: Oct 2006
Posts: 2,785
Send a message via Skype™ to robystar
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.
__________________
Ridentem dicere verum quid vetat (horatio) and I fully agree!
Reply With Quote
  #17  
Old 02 Dec 2011, 04:22
tsgucci tsgucci is offline
  hungary
Join Date: Apr 2009
Posts: 294
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!
__________________
http://lhsimulations.hu/LHSimulations/images/developer.png
Lima Hotel Simulations - Flight Simulator scenery design for Hungary - http://www.lhsimulations.hu

Last edited by tsgucci; 02 Dec 2011 at 04:29.
Reply With Quote
  #18  
Old 02 Dec 2011, 15:30
arno's Avatar
arno arno is online now
  netherlands
Location: Amsterdam
Join Date: May 2004
Posts: 18,934
Send a message via Skype™ to arno
Hi,

Quote:
Originally Posted by tsgucci View Post
- 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.
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.

Quote:
Originally Posted by tsgucci View Post
- 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.
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.

Quote:
Originally Posted by tsgucci View Post
- Additional function when you right click on the GUID : change GUID.
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?

Quote:
Originally Posted by tsgucci View Post
- Same change for the mdl's path.
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.

Quote:
Originally Posted by tsgucci View Post
- In case of FS9 mdl. The option to open it in MDLTweaker would be very nice.
That's a nice idea, I'll put it on the list.
__________________
Arno
If the world should blow itself up, the last audible voice would be that of an expert saying it can't be done.

FSDeveloper Administrator | Former Microsoft FS MVP
Quick links: My tools | Wiki | Download center | Blog
Reply With Quote
  #19  
Old 02 Dec 2011, 21:55
hcornea's Avatar
hcornea hcornea is offline
  australia
Location: Australia
Join Date: Apr 2007
Posts: 2,164
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)
__________________
All of my apparent expertise is a product of The Dunning-Kruger Effect
Reply With Quote
  #20  
Old 03 Dec 2011, 02:43
arno's Avatar
arno arno is online now
  netherlands
Location: Amsterdam
Join Date: May 2004
Posts: 18,934
Send a message via Skype™ to arno
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.
__________________
Arno
If the world should blow itself up, the last audible voice would be that of an expert saying it can't be done.

FSDeveloper Administrator | Former Microsoft FS MVP
Quick links: My tools | Wiki | Download center | Blog
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[FSX] Starting out with Library Creator - no luck Whirler Library Creator XML 1 22 Oct 2011 03:39
Making a single static aircraft library Gman Static Aircraft Model Maker 1 24 Nov 2010 18:41
Refinery objects for scenery hawkeye52 General chat 20 15 Sep 2010 18:16
Tutorial Thumbnails § Screen Capture Helli Airport Design Editor 18 19 Feb 2010 13:08
Blank Library in Instant Scenery Bob S FSDS 3 10 Nov 2007 23:01


All times are GMT -4. The time now is 06:52.

Kirsch designed by Andrew & Austin


Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.