Tool: OtsFp9Tools.exe (Full Version)

All Forums >> [New Releases from Matrix Games] >> Flashpoint Campaigns Series >> Mods and Scenarios



Message


harry_vdk -> Tool: OtsFp9Tools.exe (12/23/2014 6:44:25 PM)

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





Plodder -> RE: Tool: OtsFp9Tools.exe (12/23/2014 9:30:30 PM)

Nice! This will come in handy if/when I decide to extend the Berlin map.




harry_vdk -> RE: Tool: OtsFp9Tools.exe (12/24/2014 1:10:33 PM)

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:



[image]local://upfiles/48993/9A7D5BB6198F40EE94AA48B0E6CE8C39.jpg[/image]




WildCatNL -> RE: Tool: OtsFp9Tools.exe (12/24/2014 8:06:40 PM)

Cool!

William




harry_vdk -> RE: Tool: OtsFp9Tools.exe (1/15/2015 10:48:05 AM)

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




CapnDarwin -> RE: Tool: OtsFp9Tools.exe (1/15/2015 11:05:15 AM)

Harry, awesome work! Thanks for sharing the tool.




harry_vdk -> RE: Tool: OtsFp9Tools.exe (5/26/2015 3:23:51 PM)

Add the Hexsize Obstacle ID to the /drawmapvalues option.



[image]local://upfiles/48993/9BD09ACBB46C4172BCC04990C0CD7D78.jpg[/image]




harry_vdk -> RE: Tool: OtsFp9Tools.exe (9/30/2016 6:39:49 AM)

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.


[image]local://upfiles/48993/65E089044C18451E9C44EB8374034664.jpg[/image]




harry_vdk -> RE: Tool: OtsFp9Tools.exe (9/30/2016 6:47:47 AM)

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.


[image]local://upfiles/48993/13631948312B47DCAE7060F671B23BF9.jpg[/image]




mb4329 -> RE: Tool: OtsFp9Tools.exe (9/30/2016 9:52:17 AM)

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




kipanderson -> RE: Tool: OtsFp9Tools.exe (10/1/2016 7:04:19 AM)

Harry,

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

Thanks.
All the best,
Kip.




harry_vdk -> RE: Tool: OtsFp9Tools.exe (10/1/2016 1:08:43 PM)


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.




mb4329 -> RE: Tool: OtsFp9Tools.exe (10/3/2016 1:34:12 AM)

Hi Harry,

Thanks for the tweak. It works great.

Merrick




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
1.75