Bay 12 Games Forum

Dwarf Fortress => DF Modding => Utilities and 3rd Party Applications => Topic started by: CharonM72 on March 13, 2014, 08:56:36 am

Title: Satellite Imagery of DF Worlds (v1.3.3 - Now fully compatible with 0.40.x!)
Post by: CharonM72 on March 13, 2014, 08:56:36 am
This project is on GitHub! Find the most cutting-edge version here (https://github.com/CharonM72/SatelliteMapMaker), or download from DFFD below. DFFD will also be updated with major releases.

Bugs and suggestions here (https://github.com/CharonM72/SatelliteMapMaker/issues).

Ever wonder what your awesome DF world would look like in real life, from space? Well wonder no more!
This script will take your Legends mode detailed maps and magically convert them into a satellite image.
Check out what it's capable of:

Spoiler (click to show/hide)

Features:
-Accurately shows land as affected by temperature, biomes, vegetation, elevation, volcanic activity, and more
-Image scales are matched up to be an exact fit with the DF map assuming each tile in DF to be 5 by 5 feet, meaning that all the features are actual size
-Dirt, mountain, and tree imagery are all taken from actual satellite imagery (of Saudi Arabia, northern India, and Brazil)
-Water, ice cap, desert, vegetation, and atmosphere coloring all modeled off real-world satellite imagery

Please note that the code is heavily based on PeridexisErrant's and YukiHyou's batch files and Parket147's GIMP script, which is based on GFXiNXS's original Photoshop script. My ability to code in Batch and Scheme was close to none, so huge thanks to them for providing a lot of of the code already.
See the original Fantasy Map Maker thread here (http://www.bay12forums.com/smf/index.php?topic=73095.0).

CLICK HERE TO DOWNLOAD (http://dffd.wimbli.com/file.php?id=8472)
Please read the Readme carefully!

Tell me if you have any questions or comments! Expect more updates in the future.

Version history:
Spoiler (click to show/hide)
Title: Re: Satellite Imagery of DF Worlds
Post by: Johuotar on March 13, 2014, 03:17:25 pm
I'll try it, the maps should be fun to look at. Thank you and the others who worked on the previous programs!
Title: Re: Satellite Imagery of DF Worlds
Post by: Mephansteras on March 13, 2014, 03:18:44 pm
That comes out looking really neat! I'll have to give this a try.
Title: Re: Satellite Imagery of DF Worlds
Post by: PeridexisErrant on March 14, 2014, 01:28:42 am
Very, very pretty.  I like it so much I've included it in my legends processing suite (http://www.bay12forums.com/smf/index.php?topic=131307)!  Recursive credits,   ;D
Title: Re: Satellite Imagery of DF Worlds
Post by: zwei on March 16, 2014, 05:08:44 am
This is pretty awesome!
Title: Re: Satellite Imagery of DF Worlds
Post by: gefer8 on March 16, 2014, 04:02:10 pm
Good golly, this is sweet. Could you, though, make a smoother texture transition from desert to mountains and other biomes? They look out of place.
Spoiler (click to show/hide)
Title: Re: Satellite Imagery of DF Worlds
Post by: CharonM72 on March 17, 2014, 09:50:05 am
Very, very pretty.  I like it so much I've included it in my legends processing suite (http://www.bay12forums.com/smf/index.php?topic=131307)!  Recursive credits,   ;D

Awesome! Although I'll probably get around to updating it a lot soon. To be honest I've only tried it on one map so far so I'm sure there are lots of bugs. Plus I want to add a bunch more features.

Good golly, this is sweet. Could you, though, make a smoother texture transition from desert to mountains and other biomes? They look out of place.

That was one of the things I noticed too, especially with mountains. Volcanic borders used to be really sharp too but I managed to smooth them; maybe I can use a similar method here.
Speaking of volcanoes, your map seems to have a ton of volcanic activity or something. I'll see if that's a common occurrence and tone down the volcanism shading a bit if so.
Title: Re: Satellite Imagery of DF Worlds
Post by: PeridexisErrant on March 17, 2014, 06:12:43 pm
Awesome!  I've just found a very nice feature - GIMP has a user folder, and you don't need admin permissions or user input to copy to there.  Which means that the whole clumsy structure of prompts and opening windows can be replaced with the following line/s:

Code: [Select]
IF EXIST "%userprofile%\.gimp-*" (
    for /f "usebackq tokens=*" %%f in (`dir /s /b "%userprofile%\.gimp-*"`) do (
        SET scriptFolder="%%f"
    )
)

if not exist "%scriptFolder%\scripts\RealisticMapMaker.scm" copy "%CD%\RealisticMapMaker.scm" "%scriptFolder%\scripts\RealisticMapMaker.scm"

There's also a hopefully-nicer and more general way to find the install location, but that can come later (it's still under construction).
Title: Re: Satellite Imagery of DF Worlds
Post by: CharonM72 on March 18, 2014, 07:46:03 am
Uploaded a new version with a lot of changes today, mainly in the batch file.
PeridexisErrant, thanks for the tip! I included that in the update, and added a bunch more changes of my own. Check out the version history for a general list, and feel free to browse the code. Mostly I made it more user-friendly.
Title: Re: Satellite Imagery of DF Worlds (v1.2 - Adjustable atmosphere)
Post by: PeridexisErrant on March 18, 2014, 08:48:24 pm
Looks very nice! A few quick things: 

1) Any issues with me sticking my script (which includes your stuff) under GPL3 or CC BY-NC-SA license?

2) I'll probably just set atmosphere to 0 in the big script, and let anyone interested change it

3) Unless the atmo level is part of the map name, multiple runs are going to overwrite.  I manually renamed them to compare, but that's not great for users. 
Title: Re: Satellite Imagery of DF Worlds (v1.2 - Adjustable atmosphere)
Post by: CharonM72 on March 18, 2014, 10:27:57 pm
1) Any issues with me sticking my script (which includes your stuff) under GPL3 or CC BY-NC-SA license?

Nope, I'll probably do the same in that case.

3) Unless the atmo level is part of the map name, multiple runs are going to overwrite.  I manually renamed them to compare, but that's not great for users. 

That can easily be fixed. However it's possible I may add one or two more user-adjustable settings, in which case the filenames will just continue to be different. A cloud layer would sure be fun...
Oh, what if I just made a separate settings file? Then the users could change settings there, and it should still work with your Legends processing suite. If I add more than one setting I might do that.
Title: Re: Satellite Imagery of DF Worlds (v1.2 - Adjustable atmosphere)
Post by: PeridexisErrant on March 18, 2014, 11:42:25 pm
Now all up on GitHub. (https://github.com/PeridexisErrant/LegendsExportsProcessor)  Much easier to see what I'm doing!  Good news on the license, mine can be found at the link above.

It is definitely easy to fix, I just used the below:
Code: [Select]
set "mapName=SatelliteMapmaker_%atmosphere%atmo-%region#%.bmp"If there are a bunch of variables, I'd probably still put them in the name - it's a DF convention - but as "_a1_c4..." with a single letter.  It may also be possible to (elegantly) allow a number of combinations in a single pass... I might come back to that. 

A settings file could be very good; if you're using the new way I found of finding GIMP stick the path in that file too!
Title: Re: Satellite Imagery of DF Worlds (v1.2 - Adjustable atmosphere)
Post by: CharonM72 on March 19, 2014, 12:18:44 am
I'd be willing to work directly with your Legends Processing Suite, but I plan to make a number of changes in the near future which might mess up everything. I'm wondering if we can separate it into multiple files that call each other. Then editing each one would be way easier, and we wouldn't just have one big cluttered file. Besides, as it is it looks like your current suite still has the code from the old version.
Fortunately most of the changes I plan to make will be in the already-standalone GIMP script so that part shouldn't be a problem.

Personally, one of the issues I had with the Legends Processor was that I didn't really know what it did while (or before) it was running. I also had the unfortunate experience where I had an unrelated file in the folder that contained the string "region2" in the filename, but my only region was region1, so running the processor did nothing but make an empty zip file and delete all my exported data. I didn't realize the problem until I read through the code, haha. Something I focused on when writing my .bat file was making sure it gave plenty of instruction and output while running. Given the nature of the Legends Processing Suite, maybe it would be a good idea to prompt the user before each step to ask if they want to continue with or skip that operation too (ex. if I don't want to make a satellite map this time).
Title: Re: Satellite Imagery of DF Worlds (v1.2 - Adjustable atmosphere)
Post by: mastahcheese on March 19, 2014, 12:22:41 am
This looks awesome!
Title: Re: Satellite Imagery of DF Worlds (v1.2 - Adjustable atmosphere)
Post by: Raptomex on March 19, 2014, 01:56:06 am
That's actually really cool. Nice work.
Title: Re: Satellite Imagery of DF Worlds (v1.2 - Adjustable atmosphere)
Post by: PeridexisErrant on March 19, 2014, 03:30:16 am
I'd be willing to work directly with your Legends Processing Suite, but I plan to make a number of changes in the near future which might mess up everything. I'm wondering if we can separate it into multiple files that call each other. Then editing each one would be way easier, and we wouldn't just have one big cluttered file. Besides, as it is it looks like your current suite still has the code from the old version.
Fortunately most of the changes I plan to make will be in the already-standalone GIMP script so that part shouldn't be a problem.
Don't worry about messing up any of my stuff, I can always leave the last stable version up while I try to integrate something completely different.  I can definitely see an argument for splitting up the script - and if the parts go in a subfolder that deals with my main concern about people running the wrong script. 

Personally, one of the issues I had with the Legends Processor was that I didn't really know what it did while (or before) it was running. I also had the unfortunate experience where I had an unrelated file in the folder that contained the string "region2" in the filename, but my only region was region1, so running the processor did nothing but make an empty zip file and delete all my exported data.
I fixed the specific deletion problem earlier today when I spotted it - the OptiPNG section would delete "*egion*.bmp", now changed to "*%region#%*.bmp".  That was an old bit of code... Site maps still have issues as there's no identification of where they come. 

I didn't realize the problem until I read through the code, haha. Something I focused on when writing my .bat file was making sure it gave plenty of instruction and output while running. Given the nature of the Legends Processing Suite, maybe it would be a good idea to prompt the user before each step to ask if they want to continue with or skip that operation too (ex. if I don't want to make a satellite map this time).
Yeah, the documentation is appalling (I tried to comment the script decently, but that's not a substitute).  How much to involve the user is something of a style issue - I should probably do more, but since I started doing it just for me I just assume that the user knows what's happening and wants it to happen quickly.  I'll stick with the 'just make everything' approach, but better documentation and in-progress messages are definitely on the to do list... even calling it with no exports just gives a list of required inputs. 
Title: Re: Satellite Imagery of DF Worlds (v1.2 - Adjustable atmosphere)
Post by: CharonM72 on March 19, 2014, 10:07:20 pm
PeridexisErrant, I too am a newbie at the GitHub thing, but it seems I need to have special permissions to push commits to your repository. Could you grant me (also CharonM72 on GitHub) at least write access to the Satellite Map Maker files so I can update them?
Title: Re: Satellite Imagery of DF Worlds (v1.2 - Adjustable atmosphere)
Post by: PeridexisErrant on March 19, 2014, 10:27:15 pm
How do I do that?  And why wouldn't it work to fork/update/pull request?
Title: Re: Satellite Imagery of DF Worlds (v1.2 - Adjustable atmosphere)
Post by: CharonM72 on March 19, 2014, 10:44:05 pm
I guess it would work to fork it but then we'd have a bunch of versions of the same thing right? I think we want to keep this centralized if we can.
I don't know how to do pull requests on the Windows platform :P

EDIT: I can't publish forks either. I need write permissions if I am going to modify or add anything.
Title: Re: Satellite Imagery of DF Worlds (v1.2 - Adjustable atmosphere)
Post by: Hugo_The_Dwarf on March 24, 2014, 01:12:54 pm
is the error:
(gimp-console-2.8.exe:6544): LibGimpBase-WARNING **: gimp-console-2.8.exe: gimp_wire_read(): error

normal? or do I just have an older version of GIMP? also the image does get rendered fine after a few mins, just wanted to know if this error is supposed to happen and if it causes any issues.
Title: Re: Satellite Imagery of DF Worlds (v1.2 - Adjustable atmosphere)
Post by: PeridexisErrant on March 24, 2014, 05:36:10 pm
Not normal (I've never seen it), 2.8 is the latest version, but apparently it still works.

Would you mind testing my script (https://github.com/PeridexisErrant/LegendsExportsProcessor) for similar errors? I've reworked a fair bit of the mapmaker section, so it might be different.
Title: Re: Satellite Imagery of DF Worlds (v1.2 - Adjustable atmosphere)
Post by: Hugo_The_Dwarf on March 24, 2014, 05:47:41 pm
Yea I can try and test it right now, or at least very soon.
Title: Re: Satellite Imagery of DF Worlds (v1.2 - Adjustable atmosphere)
Post by: CharonM72 on March 27, 2014, 04:40:40 am
I get a lot of GIMP errors (about installed plugins) when I run GIMP too but it renders fine. It seems GIMP outputs both major and minor errors, so if it works it's nothing to worry about.
Title: Re: Satellite Imagery of DF Worlds (v1.2 - Adjustable atmosphere)
Post by: CharonM72 on March 30, 2014, 07:42:07 am
New version 1.3 released! Mostly under-the-hood stuff, but should make it work a bit more smoothly.

PeridexisErrant, I think for the same of simplicity I'll continue working on this project separately, but feel free to continue to include it in your LNP. I haven't tested it, but the batch file should be callable from another batch file, which means you won't need to integrate it with your script, although it'll have to re-run the GIMP finding and all. By the way SMM uses a slightly modified version of your GIMP finder, since 1. it was taking waaaay too long to find GIMP by just brute-force, and 2. it didn't seem to work anyway. File names shouldn't interfere with anything in your project. Also, you can call the batch file with a parameter at the end that sets the atmosphere level (0-2). Not totally sure if it works though. Feel free to test it and tell me. My project is now also on GitHub so you can follow any changes I make.
Title: Re: Satellite Imagery of DF Worlds (v1.3 - Harder, better, faster, etc.)
Post by: Zorbeltuss on April 11, 2014, 07:51:37 am
I just ran the master, version from github and this happened (after the first scriptwindow had said running gimp).
Code: [Select]
(gimp-console-2.8.exe:1848): LibGimpBase-WARNING **: gimp-console-2.8.exe: gimp_
wire_read(): error
batch command experienced an execution error:
Error: ( : 1) eval: unbound variable: \=\"
While trying to run the script through gimp I got:
Code: [Select]
Error while executing create-view-satellite:

Error: ( : 1) /: argument 1 must be: numbe
Is the script made for a specific size of map or maybe made with a specific span of sizes (I tried the biggest size of map (257x257))? Or is this a bug and where do I report it and how in that case?

/Zorbeltuss
Title: Re: Satellite Imagery of DF Worlds (v1.3 - Harder, better, faster, etc.)
Post by: Hugo_The_Dwarf on April 11, 2014, 08:18:51 am
I know the last version 1.2? works fine with the largest map size. If you scroll up I followed the link for PeridexisErrant script combo
Not normal (I've never seen it), 2.8 is the latest version, but apparently it still works.

Would you mind testing my script (https://github.com/PeridexisErrant/LegendsExportsProcessor) for similar errors? I've reworked a fair bit of the mapmaker section, so it might be different.
nvm i'll just quote it.
Did you enter a 0, 1, or 2 before it started? it asks for atmosphere level (which I think gives the feeling of fog/clouds)
Title: Re: Satellite Imagery of DF Worlds (v1.3 - Harder, better, faster, etc.)
Post by: Zorbeltuss on April 11, 2014, 08:22:24 am
nvm i'll just quote it.
Did you enter a 0, 1, or 2 before it started? it asks for atmosphere level (which I think gives the feeling of fog/clouds)
I will try it now, I tried 0 and 1 in both, and 2 in the bat version, no difference sadly.

Edit: That was the link I followed too apparently :P

/Zorbeltuss
Title: Re: Satellite Imagery of DF Worlds (v1.3 - Harder, better, faster, etc.)
Post by: PeridexisErrant on April 11, 2014, 08:58:59 am
Higher atmosphere gives a stronger pastel blue tint, no cloud effects (yet).

The issue trying to run it through GIMP directly looks like a missing parameter to me, but I can't do any more detail than that.

I think the ffirst error, thrown by the batch script, may be a failure to correctly find the install location - you could try editing it in manually for yourself since you don't have our imperative to general usability.
Title: Re: Satellite Imagery of DF Worlds (v1.3 - Harder, better, faster, etc.)
Post by: Zorbeltuss on April 11, 2014, 10:09:33 am
Higher atmosphere gives a stronger pastel blue tint, no cloud effects (yet).

The issue trying to run it through GIMP directly looks like a missing parameter to me, but I can't do any more detail than that.

I think the ffirst error, thrown by the batch script, may be a failure to correctly find the install location - you could try editing it in manually for yourself since you don't have our imperative to general usability.
It was gimp that returned that error too, however I fixed the problem, as a note to later users of this, most things with gimp works right of  the box after installation, but for this to work well it might be an Idea to restart the computer. Also I feel very silly now.

/Zorbeltuss
Title: Re: Satellite Imagery of DF Worlds (v1.3 - Harder, better, faster, etc.)
Post by: CharonM72 on April 11, 2014, 12:01:48 pm
Glad to see the problem was resolved. GIMP is a finicky piece of software; even when I run it it spits out like 15 errors (but it still runs successfully). There shouldn't be any issues with map size or anything as long as all the parameters are specified. Running it through the GIMP GUI should prompt for all the parameters anyway so barring inputting an invalid parameter it should work.

PeridexisErrant's script just calls my script for use anyway, so they should have exactly the same functionality. The only difference would be if he updates something without my knowledge (which would likely break compatibility with my new versions, haha) or if I release a new version and he hasn't updated his with my new files yet.

In a completely unrelated note I am super excited for the next version of DF. It should add a little more data to the exported maps that I can play with.
Title: Re: Satellite Imagery of DF Worlds (v1.3 - Harder, better, faster, etc.)
Post by: Zorbeltuss on April 11, 2014, 12:57:00 pm
Glad to see the problem was resolved. GIMP is a finicky piece of software; even when I run it it spits out like 15 errors (but it still runs successfully). There shouldn't be any issues with map size or anything as long as all the parameters are specified. Running it through the GIMP GUI should prompt for all the parameters anyway so barring inputting an invalid parameter it should work.

PeridexisErrant's script just calls my script for use anyway, so they should have exactly the same functionality. The only difference would be if he updates something without my knowledge (which would likely break compatibility with my new versions, haha) or if I release a new version and he hasn't updated his with my new files yet.
Yeah :), I've usually avoided GIMP but my program of choice (Paint shop pro 7) is getting very dated and I plan to change to linux soontm so it's better to learn gimp to have anything to work with.

In a completely unrelated note I am super excited for the next version of DF. It should add a little more data to the exported maps that I can play with.
I'm so exited I've jumped up and down on more than one occasion, squealing hasn't yet been part of my repertoire in my lifetime but I expect it for the release, I bet you'll find loads to work with.

Another unrelated note: Today I've been making maps in perfectworlddf, generating worlds and throwing results at a (quite good) mapmaker at a roleplaying forum to see what could be improved with my mapmaking (as in the bitmap i send to perfect world, I intend to tell him how I made it, but that will come with the final result) to get a realistic world. :)

/Zorbeltuss
Title: Re: Satellite Imagery of DF Worlds (v1.3 - Harder, better, faster, etc.)
Post by: Seagoon on April 11, 2014, 05:17:40 pm
"Error while executing create-view-satellite:

Error: ( : 1) /: argument 1 must be: number "

Im getting this error as well trying to run it through gimp, restarted my comp and everything :P still not working.

Title: Re: Satellite Imagery of DF Worlds (v1.3 - Harder, better, faster, etc.)
Post by: CharonM72 on April 12, 2014, 09:48:33 am
I'm really not sure what's happening there. The only argument in my script that's a number is the atmosphere level, and it checks to make sure it's a number before running. It must be something else.
Maybe try reinstalling GIMP? Or try a different version of GIMP or something. It's almost certainly something on GIMP's end.
Title: Re: Satellite Imagery of DF Worlds (v1.3 - Harder, better, faster, etc.)
Post by: Seagoon on April 12, 2014, 10:11:24 am
I actually installed the latest version of gimp incase that was the problem, no luck.
What version did you use to test this ?
Title: Re: Satellite Imagery of DF Worlds (v1.3 - Harder, better, faster, etc.)
Post by: CharonM72 on April 12, 2014, 10:17:47 am
Looks like it's 2.8.10, which appears to be the latest version.
Try this: in the batch file, at the very bottom there's a really long line that says this
Code: [Select]
start /wait "" %gimpLocation% -d -f -i -b "(create-save-satellite \"%water%\" \"%elevation%\" \"%vegetation%\" \"%volcanism%\" \"%temperature%\" \"%biome%\" \"%trees%\" \"%dirt%\" \"%mountains%\" %atmosphere% \"%mapName%\")"
Try sticking a --verbose in there like this:
Code: [Select]
start /wait "" %gimpLocation% -d -f -i --verbose -b "(create-save-satellite \"%water%\" \"%elevation%\" \"%vegetation%\" \"%volcanism%\" \"%temperature%\" \"%biome%\" \"%trees%\" \"%dirt%\" \"%mountains%\" %atmosphere% \"%mapName%\")"
May or may not give any more information. I'm kinda leaning toward may not though  :-\
Title: Re: Satellite Imagery of DF Worlds (v1.3 - Harder, better, faster, etc.)
Post by: Seagoon on April 12, 2014, 10:22:19 am
Uh, im not sure how this helped, but it just worked this time... no issues... All i did was alter that line of code...

Thanks though :)
Title: Re: Satellite Imagery of DF Worlds (v1.3 - Harder, better, faster, etc.)
Post by: magmaholic on April 12, 2014, 01:51:24 pm
Can it do this?
(https://imagizer.imageshack.us/v2/446x433q90/203/jrxy.png)
yes,it is the map in the first post :3
Title: Re: Satellite Imagery of DF Worlds (v1.3 - Harder, better, faster, etc.)
Post by: pisskop on April 12, 2014, 01:54:40 pm
Toady should include a script for bi-polar planets.
Title: Re: Satellite Imagery of DF Worlds (v1.3 - Harder, better, faster, etc.)
Post by: CharonM72 on April 12, 2014, 02:11:48 pm
Can it do this?
Spoiler (click to show/hide)
yes,it is the map in the first post :3

Hoo boy, I'd have to learn a whole new scripting language to get it to stick onto a sphere. Unless GIMP can do that? Maybe it can.

Besides, in that map the equator is at or near the bottom of the map; as pisskop said it's only half (or a quarter) of a planet at best. So perhaps a section of a sphere would be more accurate.
Title: Re: Satellite Imagery of DF Worlds (v1.3 - Harder, better, faster, etc.)
Post by: CharonM72 on April 12, 2014, 02:50:56 pm
Turns out GIMP can do spheres. Here's my stab at it:
Spoiler (click to show/hide)

I need to get working on clouds.
Title: Re: Satellite Imagery of DF Worlds (v1.3 - Harder, better, faster, etc.)
Post by: magmaholic on April 12, 2014, 04:37:39 pm
Turns out GIMP can do spheres. Here's my stab at it:
Spoiler (click to show/hide)

I need to get working on clouds.
heheh,i think you can rip off the code from gimp.
google earthdwarf.

Title: Re: Satellite Imagery of DF Worlds (v1.3 - Harder, better, faster, etc.)
Post by: Kaelem Gaen on August 21, 2014, 09:15:19 am
Rise Topic, Rise! Using my "Novice Reader" skill I have learned the secrets of Life and Death and use it on this topic.


Anyone know how to adjust the  code in the scheme and the bat to work with the new way Map images are named.   I wanna make Satellite Maps of worlds with Two Poles (thanks to .40.09.)
Title: Re: Satellite Imagery of DF Worlds (v1.3 - Harder, better, faster, etc.)
Post by: CharonM72 on August 21, 2014, 10:23:03 am
Rise Topic, Rise! Using my "Novice Reader" skill I have learned the secrets of Life and Death and use it on this topic.


Anyone know how to adjust the  code in the scheme and the bat to work with the new way Map images are named.   I wanna make Satellite Maps of worlds with Two Poles (thanks to .40.09.)

Ah, I haven't actually downloaded the new version yet due to being busy moving out of Tokyo (and waiting for bugfixes). When I have some free time I'll get on updating this for the latest version.
If you can tell me the naming scheme for the new maps though, I can probably throw in some ad-hoc fix that would search for those files and put an update on GitHub.
On a more long-term note, I will probably try to add a cloud layer, and if I can, add something where cities are located so they should be visible on the map, as well as updating it to work better with the new version of DF.
Title: Re: Satellite Imagery of DF Worlds (v1.3 - Harder, better, faster, etc.)
Post by: Kaelem Gaen on August 21, 2014, 10:55:02 am
Awesome hold on let me grab the name of the Image files.


region3-00300-01-01-bm.bmp
region3-00300-01-01-elw.bmp
region3-00300-01-01-el.bmp
region3-00300-01-01-tmp.bmp
region3-00300-01-01-veg.bmp
region3-00300-01-01-vol.bmp


looks like it mainly moved the map type to the end of the file name.
Title: Re: Satellite Imagery of DF Worlds (v1.3 - Harder, better, faster, etc.)
Post by: Graknorke on August 21, 2014, 11:12:58 am
Toady should include a script for bi-polar planets.
I know this is old, but it's not that old. You can have worlds with a pole at either end.
Title: Re: Satellite Imagery of DF Worlds (v1.3 - Harder, better, faster, etc.)
Post by: CharonM72 on August 21, 2014, 12:03:43 pm
Update! GitHub and DFFD have both been updated. I tested it and it should now work with the new naming scheme. Tell me if there are any problems!
Title: Re: Satellite Imagery of DF Worlds (v1.3.1 - Now fully compatible with the new DF!)
Post by: Kaelem Gaen on August 22, 2014, 04:16:32 pm
So I tried this out the other day but thought it might have been doing to much at once.    So I tried again now and I noticed it seems to get stuck on the  GIMP finding spot.
Title: Re: Satellite Imagery of DF Worlds (v1.3.1 - Now fully compatible with the new DF!)
Post by: CharonM72 on August 22, 2014, 05:08:09 pm
So I tried this out the other day but thought it might have been doing to much at once.    So I tried again now and I noticed it seems to get stuck on the  GIMP finding spot.

The first time it runs, or the first time after a while, it can take up to like 5 or even 10 minutes to find GIMP. I'm really not sure why it takes so long; it'd need a bunch of debugging. But usually it will eventually find it. If it doesn't it will probably notify you.

EDIT: If GIMP is installed in a nonstandard location or particularly if its user data folder is not found, it will throw a "not found" error.
Title: Re: Satellite Imagery of DF Worlds (v1.3.1 - Now fully compatible with the new DF!)
Post by: Kaelem Gaen on August 23, 2014, 09:03:36 am
It seems to create a file called "Goto" that is 0Kb after I run it and it completes.


I'll try again I did just repair my GImp install (It was in the standard place.)
Title: Re: Satellite Imagery of DF Worlds (v1.3.1 - Now fully compatible with the new DF!)
Post by: CharonM72 on August 23, 2014, 12:12:19 pm
It seems to create a file called "Goto" that is 0Kb after I run it and it completes.


I'll try again I did just repair my GImp install (It was in the standard place.)

I have no idea why it would do that. Where is the file created? What does the console say when you run it?
Title: Re: Satellite Imagery of DF Worlds (v1.3.1 - Now fully compatible with the new DF!)
Post by: Kaelem Gaen on August 23, 2014, 01:11:45 pm
It puts the "Goto" file in the folder I have all the  SatMapMakerstuff in (and the images from the world.) And the command doesn't seem to say anything it just closes and I have a "GOTO" file


Okay so I ran it via Command line so the console wouldn't close when it ended.   and I got this in the console
Code: [Select]
This program also requires the SMM-data folder to be in the same directory.

Press any key to continue . . .

Processing map exports from region3.
Found map images.
Found texture files.
Searching for GIMP (this may take a minute)...
:TheEnd was unexpected at this time.
Title: Re: Satellite Imagery of DF Worlds (v1.3.1 - Now fully compatible with the new DF!)
Post by: CharonM72 on August 23, 2014, 04:25:41 pm
It puts the "Goto" file in the folder I have all the  SatMapMakerstuff in (and the images from the world.) And the command doesn't seem to say anything it just closes and I have a "GOTO" file


Okay so I ran it via Command line so the console wouldn't close when it ended.   and I got this in the console
Code: [Select]
This program also requires the SMM-data folder to be in the same directory.

Press any key to continue . . .

Processing map exports from region3.
Found map images.
Found texture files.
Searching for GIMP (this may take a minute)...
:TheEnd was unexpected at this time.

That error is definitely in the GetGimpInstallLocationSMM.cmd file in the SMM_data folder. I made a quick change and uploaded a new version of that file to github (link in first post); could you download the latest version of that file, replace the old one with it, and try running again? It may still throw an error but it will be a different error.
There's also a very good chance the error is due to not being able to find GIMP. Fixing GIMP may well solve it.
Title: Re: Satellite Imagery of DF Worlds (v1.3.1 - Now fully compatible with the new DF!)
Post by: Kaelem Gaen on August 23, 2014, 05:18:27 pm
okay this time it threw this error.


Code: [Select]
This program also requires the SMM-data folder to be in the same directory.


Press any key to continue . . .


Processing map exports from region3.
Found map images.
Found texture files.
Searching for GIMP (this may take a minute)...
:EOF was unexpected at this time.
Title: Re: Satellite Imagery of DF Worlds (v1.3.1 - Now fully compatible with the new DF!)
Post by: CharonM72 on August 23, 2014, 09:15:39 pm
okay this time it threw this error.


Code: [Select]
This program also requires the SMM-data folder to be in the same directory.


Press any key to continue . . .


Processing map exports from region3.
Found map images.
Found texture files.
Searching for GIMP (this may take a minute)...
:EOF was unexpected at this time.


Well... that's not helpful. Check to make sure there's a GIMP executable (gimp-console-2.8.exe or whatever version) at %programfiles% (x86)\GIMP-2.0\bin\ (orange parts are optional), and also a .gimp-2.8 (or whatever version) folder in %userprofile%. If there's not then the GIMP check will fail.

If it's still broken, try opening cmd and running GetGimpInstallLocationSMM.cmd directly. When it asks for you to provide GIMP's location just press enter. A whole bunch of stuff should print on the screen. Let it run until it finishes, which could take 5-10 minutes at most, and when it's done select and copy all the output and paste it here (in a spoiler). To select and copy from command prompt, right click the window and choose the first option, then drag to select, then right-clicking in the selection should do it.

If you get really fed up with this and you just want the map maker to work, you can manually put your GIMP's location in the code, if you can decipher the batch files.
Title: Re: Satellite Imagery of DF Worlds (v1.3.1 - Now fully compatible with the new DF!)
Post by: Kaelem Gaen on August 23, 2014, 09:26:34 pm
Yes there's GIMP on the computer at those locations.  Well in my case it's \Program Files\GIMP 2\bin\  is it possible it doesn't check for the dashless location for an install?

I'll run the cmd in the Command Window and grab the output. 
The *'s are not part of the username just what I replaced it with

Spoiler (click to show/hide)
Title: Re: Satellite Imagery of DF Worlds (v1.3.1 - Now fully compatible with the new DF!)
Post by: CharonM72 on August 27, 2014, 12:47:08 pm
Yes there's GIMP on the computer at those locations.  Well in my case it's \Program Files\GIMP 2\bin\  is it possible it doesn't check for the dashless location for an install?

I'll run the cmd in the Command Window and grab the output. 
The *'s are not part of the username just what I replaced it with


Sorry for the long delay. Sorta in the process of moving.
Looks like it found GIMP. So the question is, why is it not working within the SMM script? Looks to me like it's an issue with quotation marks and whitespace. I'll try to get this fixed as soon as I can.
Title: Re: Satellite Imagery of DF Worlds (v1.3.1 - Now fully compatible with the new DF!)
Post by: Isharia on November 12, 2014, 09:03:59 pm
I tried doing this within GIMP itself, since the batch files seemed to not do anything, so I manually moved the script into the folder.

I got this as an error though:
(http://i.imgur.com/tDVODYh.png)
It appears to do all of the processes, and as it flashes between commands, it pops up when it says gimp-levels


Here is the output using the Fantasy Mapmaker Photoshop script though, which does still seem to work outside of placing civilizations:
Spoiler (click to show/hide)
Title: Re: Satellite Imagery of DF Worlds (v1.3.1 - Now fully compatible with the new DF!)
Post by: CharonM72 on November 12, 2014, 11:37:20 pm
I tried doing this within GIMP itself, since the batch files seemed to not do anything, so I manually moved the script into the folder.

I got this as an error though:
(http://i.imgur.com/tDVODYh.png)
It appears to do all of the processes, and as it flashes between commands, it pops up when it says gimp-levels


Here is the output using the Fantasy Mapmaker Photoshop script though, which does still seem to work outside of placing civilizations:
Spoiler (click to show/hide)

Hi Isharia, sorry but yeah, it looks like there's currently a major bug in the script. I'll try to get it sorted when I can, recently I've been incredibly busy. Feel free to download an old version off GitHub in the meantime, those should still work. This (https://github.com/CharonM72/SatelliteMapMaker/blob/2ce554db21c87f5c51bae744435c36b81f085a4f/SatelliteMapMaker%20v1.3.zip?raw=true) one should be fine, I think.
Title: Re: Satellite Imagery of DF Worlds (v1.3.1 - Now fully compatible with the new DF!)
Post by: Isharia on November 13, 2014, 12:08:31 am
You are fine :D  I'm just procrastinating with regard to stuff I should be doing.  I  think these are fascinating programs, and I want to get back into world-building and such, and this gives me realistic landscapes as a foundation.  More or less experimenting with which version I like the most.

Still an error of some sort, but it made it further than 1.3.1 (as in the batch scripts did something)  Had to edit the image filepath part to make it read the images (basically eliminating the extra -* after the abbreviations before the .bmp extension)
(http://i.imgur.com/TV1AjUN.png)
Title: Re: Satellite Imagery of DF Worlds (v1.3.1 - Now fully compatible with the new DF!)
Post by: CharonM72 on November 13, 2014, 09:05:18 am
You are fine :D  I'm just procrastinating with regard to stuff I should be doing.  I  think these are fascinating programs, and I want to get back into world-building and such, and this gives me realistic landscapes as a foundation.  More or less experimenting with which version I like the most.

Still an error of some sort, but it made it further than 1.3.1 (as in the batch scripts did something)  Had to edit the image filepath part to make it read the images (basically eliminating the extra -* after the abbreviations before the .bmp extension)

Did it work? If it didn't then feel free to try another version, haha. A bunch of filenames change over the versions, so you should redownload the whole package for each one and not just the scripts. The current version's bug I think is related to some tiny semantic issue that I can't quite pin down but I'll get it working sooner or later.
Title: Re: Satellite Imagery of DF Worlds (v1.3.1 - Now fully compatible with the new DF!)
Post by: Isharia on November 13, 2014, 08:03:48 pm
Github confuses the heck out of me, so I dunno where / how to find older stuff.

I just used the zip you linked, extracted it in a new folder, copied the maps over, so no cross version contamination.  I had to edit the batch in the version you linked to make it work with the changed DF naming scheme.  It found GIMP, it seemed to work so far, but the error that came up was something about not able to run whatever plugins that the second window states.
Title: Re: Satellite Imagery of DF Worlds (v1.3.1 - Now fully compatible with the new DF!)
Post by: CharonM72 on November 14, 2014, 02:30:04 am
Github confuses the heck out of me, so I dunno where / how to find older stuff.

I just used the zip you linked, extracted it in a new folder, copied the maps over, so no cross version contamination.  I had to edit the batch in the version you linked to make it work with the changed DF naming scheme.  It found GIMP, it seemed to work so far, but the error that came up was something about not able to run whatever plugins that the second window states.

I just fixed the old bug I think it was having, and the current version runs perfectly fine for me now. I'm not sure that bug is related to your problem, but try downloading the newest version from the top post (DFFD or Github) and tell me what happens. Make sure to give GIMP a good few minutes to run; it will likely throw errors that are non-fatal and won't affect the running of the program.
Title: Re: Satellite Imagery of DF Worlds (v1.3.1 - Now fully compatible with the new DF!)
Post by: Kaelem Gaen on November 14, 2014, 10:21:15 pm
Yep it's working now.  Excellent, and thank you.
Title: Re: Satellite Imagery of DF Worlds (v1.3.1 - Now fully compatible with the new DF!)
Post by: Isharia on November 16, 2014, 02:34:06 am
I'll confirm that it does work through the batch scripts now as well.

I still can't get it to work within GIMP itself though, for some reason.


Thank you for your hard work :)
Totally lets me play with some stuff that I've been wanting to for a long time.
Spoiler (click to show/hide)
Title: Re: Satellite Imagery of DF Worlds (v1.3.1 - Now fully compatible with the new DF!)
Post by: pisskop on November 16, 2014, 09:53:25 am
This is still pretty awesome, btw
Title: Re: Satellite Imagery of DF Worlds (v1.3.1 - Now fully compatible with the new DF!)
Post by: CharonM72 on November 16, 2014, 01:24:52 pm
I'll confirm that it does work through the batch scripts now as well.

I still can't get it to work within GIMP itself though, for some reason.

Found the issue, it was some stupid thing on my part. It's fixed, as well as a problem that made the script not install to the correct location. I am able to get GIMP to run the script within its own UI now, so please notify me if you have any more issues.
Title: Re: Satellite Imagery of DF Worlds (v1.3.3 - Now fully compatible with 0.40.x!)
Post by: CharonM72 on January 07, 2015, 10:35:26 pm
FYI I have not dropped this or anything, I am preparing to roll out 2.0 with a lot of major fixes. Halfway done already.
Title: Re: Satellite Imagery of DF Worlds (v1.3.3 - Now fully compatible with 0.40.x!)
Post by: PeridexisErrant on January 07, 2015, 11:11:24 pm
Awesome! 

I hope you don't mind me posting my wishlist - integration of the fantasy map maker, and support for .png imputs for both.  Having to deal with the GIMP plugin twice over is not much fun...
Title: Re: Satellite Imagery of DF Worlds (v1.3.3 - Now fully compatible with 0.40.x!)
Post by: CharonM72 on January 07, 2015, 11:19:44 pm
Awesome! 

I hope you don't mind me posting my wishlist - integration of the fantasy map maker, and support for .png imputs for both.  Having to deal with the GIMP plugin twice over is not much fun...

If I were to include Fantasy Map Maker with SMM I think I'd need the author's permission. Allowing the user to choose which script to run would be easy though.
I'll try out the .png thing. In theory, GIMP should be able to handle those exactly the same as the .bmp files.

Feel free to add stuff you want to the issues list on GitHub. I'll add those two now.
Title: Re: Satellite Imagery of DF Worlds (v1.3.3 - Now fully compatible with 0.40.x!)
Post by: PeridexisErrant on January 08, 2015, 12:53:05 am
If I were to include Fantasy Map Maker with SMM I think I'd need the author's permission. Allowing the user to choose which script to run would be easy though.

I'll try out the .png thing. In theory, GIMP should be able to handle those exactly the same as the .bmp files.

Feel free to add stuff you want to the issues list on GitHub. I'll add those two now.

Try sending Parker a PM - it's implicitly share-alike and given that it's been broken since 40.09 (and not updated since 2012!) you could probably take over maintenance and distribution if you're going to improve it.

Good to hear about the .png, and I'll direct further suggestions to GitHub - thanks.