Sigma88 / Sigma-Cartographer

Map exporting tool for KSP
Other
8 stars 6 forks source link

config for map output #16

Open KSAMissionCtrl opened 5 years ago

KSAMissionCtrl commented 5 years ago

Looking to make extra zoom levels for my ground map of Kerbin, which currently goes up to level 5 using the old kerbalmaps.com data and I'd like to add levels 6 and 7. Poodmund directed me to this plugin after he made those levels himself, but wasn't able to upload that much data.

Sigma88 commented 5 years ago

ok, so this is a brief guide I wrote for the syntax:

https://pastebin.com/0pchfKcG

"width = " is the total width of the full texture "tile = " is the side of the square you want to export

so, if you set "width = 65536" "tile = 8192"

you will get a grid of 8 by 4 tiles sized 8192x8192 pixels

Sigma88 commented 5 years ago

this is an example cfg

@SigmaCartographer
{
    Maps
    {
        colorMap = false
        satelliteMap = true
        body = Kerbin
        width = 65536
        tile = 8192
        oceanFloor = false
    }
}
Sigma88 commented 5 years ago

if the map is not being generated at the Lat/Lon you want, you can use LAToffset = LONoffset = to fix it

you might also find useful the option leaflet = true if you are doing something similar to what pood was doing

Sigma88 commented 5 years ago

oh, you also might want to wait for a release because I don't know how reliable the dll in the development version might be

KSAMissionCtrl commented 5 years ago

Thanks! I'll give it a spin at some point. If I have trouble I won't bug you about it - will keep an eye out for the release and try again

krisalyssa commented 5 years ago

@KSAMissionCtrl Here is the configuration I'm using for zoom levels 6 and 7:

    // level 6
    Maps
    {
        body = Kerbin
        colorMap = false
        satelliteMap = true
        oceanFloor = false
        width = 32768
        tile = 256
        exportFolder = 6
    }

    // level 7
    Maps
    {
        body = Kerbin
        colorMap = false
        satelliteMap = true
        oceanFloor = false
        width = 65536
        tile = 256
        exportFolder = 7
    }

If you're using Leaflet, note that though the development version of the DLL claims to support writing out to a Leaflet-compatible directory structure, it doesn't appear to be working at present. If you set leaflet = true, you won't get any output at all. The configuration above should generate tiles, but they'll be in a flattened structure (all tiles for a given zoom level in a single directory).

Sigma88 commented 5 years ago

Huh, I didn't know the leaflet feature broke... I will look into it

krisalyssa commented 5 years ago

Created #19 for leaflet not working correctly.

KSAMissionCtrl commented 5 years ago

thanks @CraigCottingham! I'm kicking myself for forgetting about this before I left for work overseas over the holidays - could have had the PC churning out tiles while I was gone. How long did it take for you to output those levels? Also which branch did you use and which KSP version did you use?

@Sigma88 any update on the leaflet support?

Sigma88 commented 5 years ago

@KSAMissionCtrl no sorry, haven't looked into that yet

krisalyssa commented 5 years ago

@KSAMissionCtrl Zoom levels 6 and 7 took quite a while -- I started it running before I went to bed, and it still wasn't done when I checked in the morning.

I used the development branch of Sigma-Cartographer and KSP 1.5.1. If that works for you, you're welcome to pull them from... no, I'll send that to you via private message. I'm not ready for everybody else in the world to start pulling those files and I get slapped with a huge bandwidth bill. 😄

KSAMissionCtrl commented 5 years ago

@Sigma88 ok, just checking thanks @CraigCottingham yes I've had prior experience with KSP tile output and I would expect the process to take quite some time, which is why I was angry I forgot to look into it before I left. Appreciate the download offer, if you are willing to sacrifice a good chunk of your bandwidth allotment. No worries if not, I'll get around to doing it eventually

Sigma88 commented 5 years ago

sorry for not replying in so long guys, a new release is out. let me know if you still need help