Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

Tool: OtsFp9Tools.exe

 
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] >> Flashpoint Campaigns Series >> Mods and Scenarios >> Tool: OtsFp9Tools.exe Page: [1]
Login
Message << Older Topic   Newer Topic >>
Tool: OtsFp9Tools.exe - 12/23/2014 6:44:25 PM   
harry_vdk

 

Posts: 330
Joined: 6/10/2014
From: Drachten
Status: offline
Hi,

For my Dutch maps I have create a small tool named:OtsFp9Tools.exe.

Its written in C# and located within this github repository.

Within this repository is also a short file description of the .fp9 fileformat made by Robert Crandall.

The Dutch maps are 7 hexdraw maps 67x64 hexes from left to the right with 21 columns overlap and 46 unique columns.

With this tool I can copy every overlap to the next map.


First map:
otsfp9tools /filename="NL 37b 1985.png" /import="NL 37f 1985.png" /offsetcol=46

Second map:
otsfp9tools /filename="NL 37f 1985.png" /import="NL 37b 1985.png" /offsetcol=-46
otsfp9tools /filename="NL 37f 1985.png" /import="NL 38b 1985.png" /offsetcol=46

Third map:
otsfp9tools /filename="NL 38b 1985.png" /import="NL 37f 1985.png" /offsetcol=-46
otsfp9tools /filename="NL 38b 1985.png" /import="NL 38f 1985.png" /offsetcol=46
......

......
Last map:
otsfp9tools /filename="NL 40f 1985.png" /import="NL 40b 1985.png" /offsetcol=-46

There are more options right now not used with this purpose (and not full tested).
/filename=<base filename>");
/import=<import filename>");

[/OffsetCol=<int>]
[/OffsetRow=<int>]

[/RangeMinCol=<int>]
[/RangeMinRow=<int>]
[/RangeMaxCol=<int>]
[/RangeMaxRow=<int>]

[/NewMaxCol=<int>]
[/NewMaxRow=<int>]


Updated to version 1.03:
- Use .jpg as default mapfile extension.
- Add 2 options useful with qgis
/CreateElevation and /CreateHexContours



< Message edited by harry_vdk -- 9/30/2016 6:28:53 AM >
Post #: 1
RE: Tool: OtsFp9Tools.exe - 12/23/2014 9:30:30 PM   
The Plodder


Posts: 993
Joined: 7/28/2003
From: New Zealand
Status: offline
Nice! This will come in handy if/when I decide to extend the Berlin map.

_____________________________

Gen. Montgomery: "Your men don't salute much."
Gen. Freyberg: "Well, if you wave at them they'll usually wave back."

(in reply to harry_vdk)
Post #: 2
RE: Tool: OtsFp9Tools.exe - 12/24/2014 1:10:33 PM   
harry_vdk

 

Posts: 330
Joined: 6/10/2014
From: Drachten
Status: offline
Add a special draw option used for drawing mapvalues:
/drawmapvalues
[/drawfilename=<optional filename>]

Sample:
otsfp9tools /filename="CA 1 Red Storm.fp9" /drawfilename="CA 1 Red Storm.jpg" /drawmapvalues

produce this:






Attachment (1)

(in reply to The Plodder)
Post #: 3
RE: Tool: OtsFp9Tools.exe - 12/24/2014 8:06:40 PM   
W1ll14m


Posts: 280
Joined: 3/27/2009
From: Eindhoven, the Netherlands
Status: offline
Cool!

William

_____________________________

OTS "garden boy"

(in reply to harry_vdk)
Post #: 4
RE: Tool: OtsFp9Tools.exe - 1/15/2015 10:48:05 AM   
harry_vdk

 

Posts: 330
Joined: 6/10/2014
From: Drachten
Status: offline
Hi,

I have done one option on my bucketlist.

/ExtractMap=<extract to filename>
/StartCol=<int>
/StartRow=<int>
/NrOfCols=<int>, default=46
/NrOfRows=<int>, default=30

Its extract a .png and .fp9

< Message edited by harry_vdk -- 1/15/2015 11:49:46 AM >

(in reply to harry_vdk)
Post #: 5
RE: Tool: OtsFp9Tools.exe - 1/15/2015 11:05:15 AM   
Capn Darwin


Posts: 6920
Joined: 2/12/2005
From: Newark, OH
Status: online
Harry, awesome work! Thanks for sharing the tool.

_____________________________

13 Update is live! Everyone is working hard on Southern Storm!

Website still in limbo

Cap'n Darwin aka Jim Snyder
On Target Simulations

(in reply to harry_vdk)
Post #: 6
RE: Tool: OtsFp9Tools.exe - 5/26/2015 3:23:51 PM   
harry_vdk

 

Posts: 330
Joined: 6/10/2014
From: Drachten
Status: offline
Add the Hexsize Obstacle ID to the /drawmapvalues option.






Attachment (1)

(in reply to harry_vdk)
Post #: 7
RE: Tool: OtsFp9Tools.exe - 9/30/2016 6:39:49 AM   
harry_vdk

 

Posts: 330
Joined: 6/10/2014
From: Drachten
Status: offline
Add option /CreateElevation

Example:
/filename="CA 1 Red Storm.fp9" /createelevation

Create a new file named "CA 1 Red Storm.elevation.png"

This useful after the creation of a elevation layer witin qgis and scan the .fp9 file and use the levels within the .fp9.





Attachment (1)

(in reply to harry_vdk)
Post #: 8
RE: Tool: OtsFp9Tools.exe - 9/30/2016 6:47:47 AM   
harry_vdk

 

Posts: 330
Joined: 6/10/2014
From: Drachten
Status: offline
Add option /CreateHexContours

Example:
/filename="CA 1 Red Storm.fp9" /createhexcontours

Create a new file named "CA 1 Red Storm.hexcontours.png"

Similar with /CreateElevation, but its create only the hexcontours on a transparent image and intended as a layer on top of the grid layer as a indication for the levels.





Attachment (1)

(in reply to harry_vdk)
Post #: 9
RE: Tool: OtsFp9Tools.exe - 9/30/2016 9:52:17 AM   
mb4329

 

Posts: 63
Joined: 1/16/2007
Status: offline
Hi Harry,

This is a really great tool. I used it a bit this evening and have a couple of questions.

I am running it from the command prompt, but I am wondering if there is a better way to run it?

Also, I used the /createelevation option which worked well and wondered it there is a command to suppress the display of the row and column numbers on the filename.elevation.png?

Regards,
Merrick

(in reply to harry_vdk)
Post #: 10
RE: Tool: OtsFp9Tools.exe - 10/1/2016 7:04:19 AM   
kipanderson

 

Posts: 367
Joined: 8/27/2001
From: U.K.
Status: offline
Harry,

thanks...extraordinarily clever stuff and look forward to using it.

Thanks.
All the best,
Kip.

(in reply to mb4329)
Post #: 11
RE: Tool: OtsFp9Tools.exe - 10/1/2016 1:08:43 PM   
harry_vdk

 

Posts: 330
Joined: 6/10/2014
From: Drachten
Status: offline

quote:

ORIGINAL: mb4329

Hi Harry,

This is a really great tool. I used it a bit this evening and have a couple of questions.

I am running it from the command prompt, but I am wondering if there is a better way to run it?

Also, I used the /createelevation option which worked well and wondered it there is a command to suppress the display of the row and column numbers on the filename.elevation.png?

Regards,
Merrick

Merrick,

I have split /createelevation and add /drawhexnumbers as a separate parameter.

I have create this tool for batch processing and repeated usage without a user interface. I running this only from batch/script files.

(in reply to mb4329)
Post #: 12
RE: Tool: OtsFp9Tools.exe - 10/3/2016 1:34:12 AM   
mb4329

 

Posts: 63
Joined: 1/16/2007
Status: offline
Hi Harry,

Thanks for the tweak. It works great.

Merrick

(in reply to harry_vdk)
Post #: 13
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> Flashpoint Campaigns Series >> Mods and Scenarios >> Tool: OtsFp9Tools.exe 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

0.105