KML-INST Tool (Full Version)

All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Mods and Scenarios >> Useful Material



Message


Flankerk -> KML-INST Tool (11/18/2013 11:28:24 AM)

This is a small programme written to allow placemarks in the likes of Google Earth to be quickly imported into Command:-




Attached below is the guide on how to use it:-

KML transfer utility
The KML transfer utility enables you to import positions of real facilities saved as KML in an Earth browser (like Google Earth) to Command.

CREATE KML FILE (IN GOOGLE EARTH)
Start with creating a folder for each .kml you are planning to transfer to Command. If you name the folder with the same name as you are planning to use for the .inst you faciliate your future work. Then start to add place marks for those facilities you will import into Command. The name of the place mark will be transferred to Command and you can choose to use the database name, like:
A/C Open Parking Spot (1x Medium Aircraft)

You could also add a number to the name som that it's possible to identify each unique facility:
A/C Open Parking Spot 1 (1x Medium Aircraft)

Some times the facility has a authentic designation and then it could be used:
A/C Open Parking Spot H 3 (1x Medium Aircraft)

(Sub folders might be used to organize the place marks but the information about the sub folders will not be transferred.)

When you are done in Google Earth then you should save the folder(s) as .kml; conveniently to the Command Modern Air Naval Operations KML Transfer folder.

TRANSFER KML TO RAW INST
Run the KMLTransfer.exe program that you find in the KML Transfer folder. Now you are able to load any .kml file (with the Load KML button) and then you can save the locations as an .inst file (with the Save locs button).

EDIT INST FOR COMMAND
In order to make it possible to import the facilites into Command you will have to edit the raw .inst file; both the file header, footer and the member records.

File header:
{"DB_ID":0, "FormatVersion": 0, "MemberRecords":[

The default DB_ID is 0 but that will not be accepted by Command so you will have to chage it to:
1 for DB3K ("DB_ID":1) or
2 for CWDB ("DB_ID":2)

File footer:
],"ValidFrom":"", "ValidUntil":"", "Name":"", "Comments":""}

The meta information in the file footer is presented in the Import dialog. All these fields could be left empty (""). ValidFrom and ValidUntil are text fields that informs the player which years the facilities should be used and Name and Comments gives additional information.

The information about the individual facilities are found in the member records:
{"Member_DBID": 10000,
"MemberType": "Command_Core.Facility",
"MemberName": "Place mark 1",
"ParentGroupName": "Name of KML",
"Longitude": 0,
"Latitude": 0,
"Altitude": 0,
"Loadout ID": 0,
"Orientation": 0}

Member_DBID is presented in the Database Viewer and if you would like to import Place mark 1 above as a large building you will find this description in the Database Viewer:
#115 - Building(Large) -- Generic(Generic),0-0, -

Member_DBID should then be changed to 115:
"Member_DBID": 115,

(Note that all fields, as well as facility members, must be separated by a comma.)

It's possible to change MemberName from the name of the place mark, given in Google Earth.

ParentGroupName is the name of the .kml folder created in Google Earth. For facility groups, like air bases, this should be the name of the group:
"ParentGroupName": "Airbase Alpha",

For other types of facilities ParentGroupName should be replaced by null:
"ParentGroupName": null,

When you have made these changes you can save the file and move it to desired sub folder in the ImportExport folder.

Jakob Wedman



There is planned to be a demonstration of its use on Baloogan's site.

We could do with year specific files being built up for all areas [8D]

In effect building up air defences and radar sites for each year that imagery is available.
I plan to finish up Chinese defences before moving onto Taiwanese. I am sure there are many others that need doing. (Greece, Turkey, Japan, North Korea, South Korea, Syria, Iran to name a few)

For units in close proximity, such as airbases you normally find you are best off with custom overlays though it is possible to build an airbase in Google Earth then import. The KML tool works at its best when its dispersed objects that need to be imported.
As it picks up the name along with the exact location, you can accurately place say a radar site, name it specifically in Google Earth, and it will be imported with the correct location and name into Command.

From my point of view I find the simplest naming convention is to stick with the classification according to the database.



Flanker




Jakob Wedman -> RE: KML-INST Tool (11/18/2013 4:58:39 PM)

Here's a short introductory video:
Command video: Introduction to KML Transfer Utility




navwarcol -> RE: KML-INST Tool (11/18/2013 5:20:21 PM)

Very cool!




RoryAndersonCDT -> RE: KML-INST Tool (11/18/2013 5:20:54 PM)

I did a 30 minute Baloogan Highlight on this tool. Its pretty neat! Please give it a look!

http://www.youtube.com/watch?v=OcCu_wjRpRI&feature=youtu.be






deagu -> RE: KML-INST Tool (11/18/2013 7:29:14 PM)

Hi,

tried your tool under Windows Vista, but got an error when hitting the button load kml:
Did not find "ICSharpCode.SharpZipLib" Any idea?

System.IO.FileLoadException: Die Datei oder Assembly "ICSharpCode.SharpZipLib, Version=0.84.0.0, Culture=neutral, PublicKeyToken=1b03e6acf1164f73" oder eine Abhängigkeit davon wurde nicht gefunden. Die gefundene Manifestdefinition der Assembly stimmt nicht mit dem Assemblyverweis überein. (Ausnahme von HRESULT: 0x80131040)
Dateiname: "ICSharpCode.SharpZipLib, Version=0.84.0.0, Culture=neutral, PublicKeyToken=1b03e6acf1164f73"
bei KMLTransfer.Form1.LoadKMLBtn_Click(Object sender, EventArgs e)
bei System.Windows.Forms.Control.OnClick(EventArgs e)
bei System.Windows.Forms.Button.OnClick(EventArgs e)
bei System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
bei System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
bei System.Windows.Forms.Control.WndProc(Message& m)
bei System.Windows.Forms.ButtonBase.WndProc(Message& m)
bei System.Windows.Forms.Button.WndProc(Message& m)
bei System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
bei System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

WRN: Protokollierung der Assemblybindung ist AUS.
Sie können die Protokollierung der Assemblybindungsfehler aktivieren, indem Sie den Registrierungswert [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) auf 1 festlegen.
Hinweis: Die Protokollierung der Assemblybindungsfehler führt zu einer gewissen Leistungseinbuße.
Sie können dieses Feature deaktivieren, indem Sie den Registrierungswert [HKLM\Software\Microsoft\Fusion!EnableLog] entfernen.



************** Geladene Assemblys **************
mscorlib
Assembly-Version: 2.0.0.0.
Win32-Version: 2.0.50727.4241 (VistaSP2GDR.050727-4200).
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll.
----------------------------------------
KMLTransfer
Assembly-Version: 1.0.0.0.
Win32-Version: 1.0.0.0.
CodeBase: file:///C:/Users/AG/Desktop/Command/KMLTransfer.exe.
----------------------------------------
Microsoft.VisualBasic
Assembly-Version: 8.0.0.0.
Win32-Version: 8.0.50727.4016 (NetFxQFE.050727-4000).
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll.
----------------------------------------
System
Assembly-Version: 2.0.0.0.
Win32-Version: 2.0.50727.4235 (VistaSP2GDR.050727-4200).
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll.
----------------------------------------
System.Windows.Forms
Assembly-Version: 2.0.0.0.
Win32-Version: 2.0.50727.4236 (VistaSP2GDR.050727-4200).
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll.
----------------------------------------
System.Drawing
Assembly-Version: 2.0.0.0.
Win32-Version: 2.0.50727.4235 (VistaSP2GDR.050727-4200).
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll.
----------------------------------------
System.Runtime.Remoting
Assembly-Version: 2.0.0.0.
Win32-Version: 2.0.50727.4016 (NetFxQFE.050727-4000).
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll.
----------------------------------------
System.Windows.Forms.resources
Assembly-Version: 2.0.0.0.
Win32-Version: 2.0.50727.4016 (NetFxQFE.050727-4000).
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms.resources/2.0.0.0_de_b77a5c561934e089/System.Windows.Forms.resources.dll.
----------------------------------------
mscorlib.resources
Assembly-Version: 2.0.0.0.
Win32-Version: 2.0.50727.4241 (VistaSP2GDR.050727-4200).
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll




RoryAndersonCDT -> RE: KML-INST Tool (11/18/2013 8:14:30 PM)

Ah the zip Flanker uploaded doesn't include the ICSharpCode.SharpZipLib.dll which it requires.




Flankerk -> RE: KML-INST Tool (11/18/2013 8:27:02 PM)


Should be OK now with the added DLL.




deagu -> RE: KML-INST Tool (11/18/2013 8:32:34 PM)

Thanks does work now! Great! [:)]




ComDev -> RE: KML-INST Tool (11/18/2013 9:36:52 PM)


quote:

ORIGINAL: Baloogan

I did a 30 minute Baloogan Highlight on this tool. Its pretty neat! Please give it a look!

http://www.youtube.com/watch?v=OcCu_wjRpRI&feature=youtu.be



The popularity of your videos caused Youtube to collapse... "500 Internal Server Error"




RoryAndersonCDT -> RE: KML-INST Tool (11/18/2013 10:24:02 PM)

Haha I did notice Youtube was giving out errors over the last half hour or so. Its working for me now [:D]

YouTube is a really amazing platform, I did a few calculations of what it would cost me to host my videos myself and its 1000s of dollars lol!




sluggy2010 -> RE: KML-INST Tool (11/19/2013 11:52:35 AM)

Nice one Flankerk

Thanks





ComDev -> RE: KML-INST Tool (2/21/2014 10:34:06 AM)

Just bumping this thread [8D]

Anyone played around with the KML-to-INST tool lately?




cwemyss -> RE: KML-INST Tool (2/21/2014 2:42:05 PM)

I was planning to do it this weekend, if I can get a few hours.




RoryAndersonCDT -> RE: KML-INST Tool (2/27/2014 3:30:44 AM)

Bump [:)]




brassem -> RE: KML-INST Tool (2/27/2014 8:24:23 AM)

Is there a known limit on how many units can be brought in for conversion to a single .inst?

(Would hate to create a 4096 unit count kml file, and have it crash on conversion!)




cwemyss -> RE: KML-INST Tool (2/27/2014 6:05:43 PM)


quote:

ORIGINAL: cwemyss

I was planning to do it this weekend, if I can get a few hours.


Fail.




Flankerk -> RE: KML-INST Tool (2/27/2014 9:15:34 PM)


I don't think anyone has encountered a limit on the import. Bear in mind these will already be saved as a KML so there is a backup if anything did go wrong.




Roby7979 -> RE: KML-INST Tool (8/3/2018 8:52:39 PM)

Is this program still used or is there another newer one?...2018?




Blast33 -> RE: KML-INST Tool (1/9/2019 7:50:32 AM)

I just started to work with CMANO and I don't have a KML transfer folder in CMANO like in the youtubes of Baloogan.
No KMLtrsanfer.exe is present.
Is this program removed?

How do I transfer KML files now to .inst? Any alternatives?



[image]local://upfiles/61749/35DFFC41A4204B8FA3FF39F6DDFF8C90.jpg[/image]




Blast33 -> RE: KML-INST Tool (1/26/2019 7:04:18 PM)

Works fine now, disregard the previous post pls.




1nutworld -> RE: KML-INST Tool (5/2/2020 4:37:03 PM)

Does anyone know if the dbfiles for this add-on have been updated since 2013? Specifically the DB3000 or 1980-2015+ files




1nutworld -> RE: KML-INST Tool (6/15/2021 11:39:28 PM)

if anyone is still using KML transfer utility, I'm wondering how to get multiple DB units to be designated by number so that I can track what gets added to my KML files, for example using an air base. I can designate XL tarmac space 1 thru 7, Med tarmac space 1-4, but it will not allow me to designate Hardened AC shelters 1 thru 45, or Ammo bunkers 1 to 5




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.71875