Ludeon Forums

Ludeon Forums

  • March 29, 2017, 07:01:12 AM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: GRimworldMaps (Google maps for Rimworld)  (Read 1262 times)

Jaxxa

  • Super Modder
  • Colonist
  • ***
  • Posts: 843
  • Refugee
    • View Profile
GRimworldMaps (Google maps for Rimworld)
« on: October 02, 2016, 02:52:23 AM »

Here is something that I gave been working on for a while, taking screenshots from Rimworld and converting them for use in a Website, kind of similar to Google Maps.

Here is what I have done so far.

This is the map from the Succession game I did (https://ludeon.com/forums/index.php?topic=24214.0) , with an image at the end of each persons turn so you can see how the colony changed over time. Dont know how much further I will develop this, I mainly wanted to see if it could be done.



« Last Edit: February 19, 2017, 08:14:52 PM by Jaxxa »
Logged

kaptain_kavern

  • Planetologist
  • ****
  • Posts: 1284
  • Neolithic Era Archivist
    • View Profile
    • RimWorldMod Slack - A place for live chatting about RimWorld modding
Re: GRimworldMaps (Google maps for Rimworld)
« Reply #1 on: October 02, 2016, 01:03:13 PM »

I like the idea. Even if I i've no idea how it's done
Folks that do a lot of succession games or RP will find it handy.

Jaxxa

  • Super Modder
  • Colonist
  • ***
  • Posts: 843
  • Refugee
    • View Profile
Re: GRimworldMaps (Google maps for Rimworld)
« Reply #2 on: October 02, 2016, 06:04:19 PM »

The basics of how its done is:
  • A mod moves the camera and takes a bunch of screenshots.
  • I compress the Screenshots, so it isn't almost 500 MB per map.
  • I Run a Helper program on the screenshots to generate code for them.
  • I copy that code into HTML File Template I have for http://leafletjs.com/. (and modify a few other bits)
  • Copy the images into a Subfolder of the Template.
  • Repeat Steps 1-5 to add other layers.
  • Then I hosted it online as a demonstration, but you can view it locally at this point.

kaptain_kavern

  • Planetologist
  • ****
  • Posts: 1284
  • Neolithic Era Archivist
    • View Profile
    • RimWorldMod Slack - A place for live chatting about RimWorld modding
Re: GRimworldMaps (Google maps for Rimworld)
« Reply #3 on: October 02, 2016, 08:34:15 PM »

Oh thx for detailing it buddy ;)

I already heard about leafletjs on a similar project for KSP

Jaxxa

  • Super Modder
  • Colonist
  • ***
  • Posts: 843
  • Refugee
    • View Profile
Re: GRimworldMaps (Google maps for Rimworld)
« Reply #4 on: October 03, 2016, 06:05:26 PM »

No problem, I will eventually be putting the mod up with how to instructions.