Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

KML-INST Tool

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Mods and Scenarios >> Useful Material >> KML-INST Tool Page: [1]
Login
Message << Older Topic   Newer Topic >>
KML-INST Tool - 11/18/2013 11:28:24 AM   
Flankerk

 

Posts: 417
Joined: 6/21/2006
Status: offline
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

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

Attachment (1)

< Message edited by mikmyk -- 9/7/2016 3:32:40 AM >
Post #: 1
RE: KML-INST Tool - 11/18/2013 4:58:39 PM   
Jakob Wedman

 

Posts: 202
Joined: 3/20/2013
Status: offline
Here's a short introductory video:
Command video: Introduction to KML Transfer Utility

_____________________________


(in reply to Flankerk)
Post #: 2
RE: KML-INST Tool - 11/18/2013 5:20:21 PM   
navwarcol

 

Posts: 637
Joined: 12/2/2009
Status: offline
Very cool!

(in reply to Jakob Wedman)
Post #: 3
RE: KML-INST Tool - 11/18/2013 5:20:54 PM   
RoryAndersonCDT

 

Posts: 1830
Joined: 6/16/2009
Status: offline
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




_____________________________

Command Dev Team
Technical Lead

(in reply to Jakob Wedman)
Post #: 4
RE: KML-INST Tool - 11/18/2013 7:29:14 PM   
deagu

 

Posts: 25
Joined: 8/4/2006
Status: offline
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

(in reply to RoryAndersonCDT)
Post #: 5
RE: KML-INST Tool - 11/18/2013 8:14:30 PM   
RoryAndersonCDT

 

Posts: 1830
Joined: 6/16/2009
Status: offline
Ah the zip Flanker uploaded doesn't include the ICSharpCode.SharpZipLib.dll which it requires.

_____________________________

Command Dev Team
Technical Lead

(in reply to deagu)
Post #: 6
RE: KML-INST Tool - 11/18/2013 8:27:02 PM   
Flankerk

 

Posts: 417
Joined: 6/21/2006
Status: offline

Should be OK now with the added DLL.

(in reply to RoryAndersonCDT)
Post #: 7
RE: KML-INST Tool - 11/18/2013 8:32:34 PM   
deagu

 

Posts: 25
Joined: 8/4/2006
Status: offline
Thanks does work now! Great!

(in reply to Flankerk)
Post #: 8
RE: KML-INST Tool - 11/18/2013 9:36:52 PM   
ComDev

 

Posts: 5735
Joined: 5/12/2006
Status: offline

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"

_____________________________



Developer "Command: Modern Air/Naval Operations" project!

(in reply to RoryAndersonCDT)
Post #: 9
RE: KML-INST Tool - 11/18/2013 10:24:02 PM   
RoryAndersonCDT

 

Posts: 1830
Joined: 6/16/2009
Status: offline
Haha I did notice Youtube was giving out errors over the last half hour or so. Its working for me now

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!

_____________________________

Command Dev Team
Technical Lead

(in reply to ComDev)
Post #: 10
RE: KML-INST Tool - 11/19/2013 11:52:35 AM   
sluggy2010

 

Posts: 121
Joined: 10/2/2013
Status: offline
Nice one Flankerk

Thanks


(in reply to Flankerk)
Post #: 11
RE: KML-INST Tool - 2/21/2014 10:34:06 AM   
ComDev

 

Posts: 5735
Joined: 5/12/2006
Status: offline
Just bumping this thread

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

_____________________________



Developer "Command: Modern Air/Naval Operations" project!

(in reply to sluggy2010)
Post #: 12
RE: KML-INST Tool - 2/21/2014 2:42:05 PM   
cwemyss

 

Posts: 173
Joined: 11/29/2013
From: Grapevine, TX, USA
Status: offline
I was planning to do it this weekend, if I can get a few hours.

(in reply to ComDev)
Post #: 13
RE: KML-INST Tool - 2/27/2014 3:30:44 AM   
RoryAndersonCDT

 

Posts: 1830
Joined: 6/16/2009
Status: offline
Bump

_____________________________

Command Dev Team
Technical Lead

(in reply to cwemyss)
Post #: 14
RE: KML-INST Tool - 2/27/2014 8:24:23 AM   
brassem


Posts: 73
Joined: 10/2/2013
From: NE of YMML
Status: offline
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!)

_____________________________

i7-3930K@3.2Ghz&H100liquid|ASUSP9X79Deluxe>X680/OC|32GBGSkillPC2400|2TBRaid0|Antec1200&1200WTruePower|ASUSGV278H-3D|SBX-FiT-Pro|TurtlebeachDPX21|Win7-64U

(in reply to RoryAndersonCDT)
Post #: 15
RE: KML-INST Tool - 2/27/2014 6:05:43 PM   
cwemyss

 

Posts: 173
Joined: 11/29/2013
From: Grapevine, TX, USA
Status: offline

quote:

ORIGINAL: cwemyss

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


Fail.

(in reply to cwemyss)
Post #: 16
RE: KML-INST Tool - 2/27/2014 9:15:34 PM   
Flankerk

 

Posts: 417
Joined: 6/21/2006
Status: offline

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.

(in reply to cwemyss)
Post #: 17
RE: KML-INST Tool - 8/3/2018 8:52:39 PM   
Roby7979

 

Posts: 963
Joined: 2/20/2018
From: Italy,Rome
Status: offline
Is this program still used or is there another newer one?...2018?

(in reply to Flankerk)
Post #: 18
RE: KML-INST Tool - 1/9/2019 7:50:32 AM   
Blast33


Posts: 404
Joined: 12/31/2018
From: Above and beyond
Status: offline
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?






Attachment (1)

(in reply to Roby7979)
Post #: 19
RE: KML-INST Tool - 1/26/2019 7:04:18 PM   
Blast33


Posts: 404
Joined: 12/31/2018
From: Above and beyond
Status: offline
Works fine now, disregard the previous post pls.

(in reply to Blast33)
Post #: 20
RE: KML-INST Tool - 5/2/2020 4:37:03 PM   
1nutworld


Posts: 365
Joined: 4/13/2014
Status: offline
Does anyone know if the dbfiles for this add-on have been updated since 2013? Specifically the DB3000 or 1980-2015+ files

_____________________________

USS Dwight D. Eisenhower (CVN-69) 1990-1994.

(in reply to Blast33)
Post #: 21
RE: KML-INST Tool - 6/15/2021 11:39:28 PM   
1nutworld


Posts: 365
Joined: 4/13/2014
Status: offline
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

_____________________________

USS Dwight D. Eisenhower (CVN-69) 1990-1994.

(in reply to 1nutworld)
Post #: 22
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Mods and Scenarios >> Useful Material >> KML-INST Tool Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

2.217