Bay 12 Games Forum

Dwarf Fortress => DF Modding => Utilities and 3rd Party Applications => Topic started by: popeoh on September 25, 2014, 04:00:56 am

Title: Uristmaps - Google maps like renderer for DF worlds
Post by: popeoh on September 25, 2014, 04:00:56 am
Hi dwarves! I built (and finally released a usable version) a  small tool to generate a google maps like view from legends mode exports. You can view a demo of such a map here: http://demo.uristmaps.org/ (http://demo.uristmaps.org/). The project's page is www.uristmaps.org where you can find the download and usage instructions.

Current features:


Many more features are planned, especially bringing more details about sites and their history in. Unfortunately I am not very good with creating graphics so at the moment the project uses a combination of the game asset graphics from www.kenney.nl and some creations of my own. It would be a tremendous help if anyone with more skills in graphics would want to work on a tileset for Uristmaps.

I'm looking forward to your feedback and complaints ;)
Also, I'm not very good at describing my projects so feel free to ask anything that's unclear for you.
Title: Re: Uristmaps - Google maps like renderer for DF worlds
Post by: yxe on September 26, 2014, 10:03:28 am
I really like this.

thanks for sharing the app =)
Title: Re: Uristmaps - Google maps like renderer for DF worlds
Post by: huhwhozat on September 26, 2014, 10:41:21 am
That's impressive!  Nice work!  I think we're using the same icon grouping plugin for work. :D

Imo, the icons should appear a bit smaller, especially at zoomed-out views.  They clutter up the map a lot as is.  If you're in need of more icons, check out game-icons.net for a large, well-maintained collection of free high quality icons in both png and svg formats.  (No I don't work for them or anything - I just think it's an awesome resource.)
Title: Re: Uristmaps - Google maps like renderer for DF worlds
Post by: Dirst on September 26, 2014, 01:37:15 pm
Very nice looking!

Now it just needs star ratings for the sites...

****
by Redtooth Dirtyfist, Goblin Lasher Squadleader
"Human village, lightly defended.  Good loot.  Would pillage again."
Title: Re: Uristmaps - Google maps like renderer for DF worlds
Post by: salithus on September 26, 2014, 06:07:08 pm
This is really cool - nice work!
Title: Re: Uristmaps - Google maps like renderer for DF worlds
Post by: popeoh on October 05, 2014, 02:14:22 pm
Thank you all for your kind words. I have now released a new version of Uristmaps which now also displays population info and detailed maps (if available) for the sites. Please check out the demo (http://demo.uristmaps.org) or try it yourself (http://www.uristmaps.org/posts/uristmaps-02-release.html).

I am very interested in your opinions and ideas for additional features.
Title: Re: Uristmaps - Google maps like renderer for DF worlds
Post by: jwhite.df on October 05, 2014, 05:02:41 pm
Cool. What would you use it for? More efficient fortress location scouting?
Title: Re: Uristmaps - Google maps like renderer for DF worlds
Post by: popeoh on October 05, 2014, 05:10:47 pm
I think it is most useful as a navigation aid in adventure mode. But it can also help you check the neighborhood when embarking ;)
Title: Re: Uristmaps - Google maps like renderer for DF worlds
Post by: Megaman_zx on November 04, 2014, 01:30:40 am
this is really amazing!!! keep it coming bro  8)
Title: Re: Uristmaps - Google maps like renderer for DF worlds
Post by: UristWoodie on November 05, 2014, 08:18:50 am
PTW.

Looks really, really cool.
Title: Re: Uristmaps - Google maps like renderer for DF worlds
Post by: Icefire2314 on November 06, 2014, 06:46:45 pm
It's...
It's...
It's...
beautiful *-*
Title: Re: Uristmaps - Google maps like renderer for DF worlds
Post by: draeath on December 14, 2014, 06:57:46 pm
Handy!

Question - can we use different legends map exports for the main image? Specifically the first on in the detailed map exports would be nice!
Title: Re: Uristmaps - Google maps like renderer for DF worlds
Post by: Rose on December 14, 2014, 10:50:17 pm
This makes me want to make a top-down version of isoworld for really close zoom levels.
Title: Re: Uristmaps - Google maps like renderer for DF worlds
Post by: Valid_Dark on December 16, 2014, 08:50:33 pm
Error when running Generate_map.bat

Spoiler (click to show/hide)

TaskError - taskid:render_sat:5
PythonAction Error
Memory Error



soo... is it a Ram issue? or python error? or what?

thanks if you can help me out.

plus it'd be easier if you could just automate the whole ting
Title: Re: Uristmaps - Google maps like renderer for DF worlds
Post by: popeoh on June 14, 2015, 12:59:44 pm
Hey guys, I have just released a new version of Uristmaps. Sorry that it took some time, I completely rewrote the thing so it hopefully runs better and on more systems (Windows 32bit was completely broken). You can check out the demo here (http://demo.uristmaps.org) and download here (http://www.uristmaps.org/download.html). Here's what the new version brings:


Would be great if any of you tested it and gave me some feedback.
Title: Re: Uristmaps - Google maps like renderer for DF worlds
Post by: lethosor on June 14, 2015, 03:37:13 pm
"uristmaps.sh" can't be run standalone on OS X (possibly Linux as well, although I haven't tested it there yet) because it uses DOS-style line endings:
Code: [Select]
-bash: ./uristmaps.sh: /bin/bash^M: bad interpreter: No such file or directory

Title: Re: Uristmaps - Google maps like renderer for DF worlds
Post by: popeoh on June 14, 2015, 03:45:12 pm
Thanks, I could not test the start scripts on mac - only on windows and linux. I'll replace them in the next hotfix.
Title: Re: Uristmaps - Google maps like renderer for DF worlds
Post by: Gorobay on June 14, 2015, 04:48:06 pm
The population overlay on the demo page claims that there are:

To fix this, Site#addInfo would need to be able to parse the raws at least enough to match singulars with plurals.
Title: Re: Uristmaps - Google maps like renderer for DF worlds
Post by: popeoh on June 15, 2015, 03:25:04 am
At the moment I use a translation table to transform the singular forms into plural for the population information. The Site.addInfo uses the plural (or singular) form that comes from DF for better text in the site popups.
Title: Re: Uristmaps - Google maps like renderer for DF worlds
Post by: Rose on June 15, 2015, 03:27:26 am
Another interesting overlay would be to show, for example, the population map of all civilized creatures.
Title: Re: Uristmaps - Google maps like renderer for DF worlds
Post by: popeoh on June 15, 2015, 08:07:28 am
Do you mean something like the available heatmaps, but for multiple populations at the same time?
Title: Re: Uristmaps - Google maps like renderer for DF worlds
Post by: Rose on June 15, 2015, 08:44:01 am
Yeah, pretty much.
Title: Re: Uristmaps - Google maps like renderer for DF worlds
Post by: Lightningy on June 19, 2015, 11:12:32 am
PTW
Title: Re: Uristmaps - Google maps like renderer for DF worlds
Post by: popeoh on June 19, 2015, 03:33:16 pm
PTW?
Title: Re: Uristmaps - Google maps like renderer for DF worlds
Post by: Lightningy on June 19, 2015, 03:34:32 pm
Posting to watch. It means good job i will post to see what happens, basically.
Title: Re: Uristmaps - Google maps like renderer for DF worlds
Post by: popeoh on June 19, 2015, 03:53:59 pm
Ah right. Thanks ;)
Title: Re: Uristmaps - Google maps like renderer for DF worlds
Post by: Lightman on August 03, 2015, 03:45:44 am
This is a really fun tool! Thanks. How can I host it on my existing webserver? I copied the "output" directory but I just see a list of sites and no map.

It would be really cool if you expanded the options.  In particular, I'd like to separate camps and lairs from other things:

Sites/Civilized (Towns, forts, etc. This could also be broken down, further)
Sites/Lairs
Sites/Camps
...

That would help because the map can be a little cluttered right now, with everything at once.
Title: Re: Uristmaps - Google maps like renderer for DF worlds
Post by: popeoh on August 03, 2015, 04:21:56 am
Hi, glad it is of use to you! Copying the output directory to a webserver should actually be enough. Make sure you copy all files and directories so the index.html file is in the root and point your browser to it.

And I agree, disabling types of sites when viewing the map is a great idea.
Title: Re: Uristmaps - Google maps like renderer for DF worlds
Post by: Lightman on August 03, 2015, 06:01:49 am
I'm pointing to server/region, which has index.html and everything else in output but it's not working. Is JavaScript the only thing it needs?
Title: Re: Uristmaps - Google maps like renderer for DF worlds
Post by: popeoh on August 03, 2015, 06:12:34 am
Everything in the output folder is needed, it should be enough to just copy the output folder to your webserver. This is how the demo.uristmaps.org (http://demo.uristmaps.org) page is done.
Title: Re: Uristmaps - Google maps like renderer for DF worlds
Post by: Lightman on August 03, 2015, 10:19:16 pm
Can you give me the config that is used for the included server?  Maybe there is something server-side I need to set up.

EDIT:
Ah, I see. The files have to be in the root "/" of the server.  I think it would be better if you changed the paths to "./" so that it's not limited to an absolute path.
Title: Re: Uristmaps - Google maps like renderer for DF worlds
Post by: Lightman on August 04, 2015, 02:26:28 am
Finally! Got it working. Yes, please change all your absolute path references to relative. I changed index.html, js/urist.js and js/sitesgeo.json

Then it worked on my web server and almost works just by opening the index, locally (the "Sites" option is not visible).
Title: Re: Uristmaps - Google maps like renderer for DF worlds
Post by: Graknorke on August 04, 2015, 02:54:32 am
Wow this looks way better than it did last time I saw it.
Title: Re: Uristmaps - Google maps like renderer for DF worlds
Post by: popeoh on August 04, 2015, 04:25:15 am
Finally! Got it working. Yes, please change all your absolute path references to relative. I changed index.html, js/urist.js and js/sitesgeo.json

Then it worked on my web server and almost works just by opening the index, locally (the "Sites" option is not visible).

Ah, good catch! I'll fix this for the next version.
Title: Re: Uristmaps - Google maps like renderer for DF worlds
Post by: Lightman on August 04, 2015, 02:38:00 pm
Ah, good catch! I'll fix this for the next version.

Cheers :)
Title: Re: Uristmaps - Google maps like renderer for DF worlds
Post by: Scoops Novel on August 14, 2015, 09:15:50 am
With some art assets, could this convert df maps to classic fantasy maps?
Title: Re: Uristmaps - Google maps like renderer for DF worlds
Post by: popeoh on August 18, 2015, 07:19:59 am
That, of course, depends on what your classic fantasy map looks like. Art assets and coloring is the most important step, things like labeling for regions is still in the works.
Title: Re: Uristmaps - Google maps like renderer for DF worlds
Post by: CharonM72 on January 13, 2016, 04:48:43 am
Hey, I wanted to see if there's been any development on this. It's a really cool browser, and I don't want to see it disappear!
Title: Re: Uristmaps - Google maps like renderer for DF worlds
Post by: popeoh on January 13, 2016, 05:10:52 pm
The project is definitely not dead - it's more like a hiatus ;) I keep an eye on this thread and other channels in case anyone encounters grave problems but at the moment there is no active work going on. I don't play much DF currently but when that changes I'll probably also have more interest in Uristmaps again to add new features.
Title: Re: Uristmaps - Google maps like renderer for DF worlds
Post by: Dustin on April 07, 2016, 06:08:06 pm
hey, umm, can you find a way to compact tthe file, as it will take up most of the room on my sd card, which i use for df,
Title: Re: Uristmaps - Google maps like renderer for DF worlds
Post by: lethosor on April 07, 2016, 07:20:52 pm
The files I see at http://www.uristmaps.org/download.html are under 6 MB. The DF executable itself is larger than that, so I'm confused about how you don't have space for it. How big is your SD card?
Title: Re: Uristmaps - Google maps like renderer for DF worlds
Post by: CharonM72 on April 08, 2016, 09:31:12 am
I think Dustin is talking about after Uristmaps reads the region data. For a large map, the Uristmaps data files take up about 100MB and add up to a whopping 90,000 files.
Title: Re: Uristmaps - Google maps like renderer for DF worlds
Post by: popeoh on April 12, 2016, 07:00:13 am
Since uristmaps does not create the map tiles on demand as you view the map, all tiles are created during the creation step and this can take up quite some storage space depending on the size of your world and the chosen maximum zoom level. max_zoom defaults to 8 but you can set it to a lower value to save space.
Title: Re: Uristmaps - Google maps like renderer for DF worlds
Post by: MobRules on April 21, 2016, 04:38:18 pm
Glad to hear this is still alive! Looks really neat.