Jump to content

KerbalGIS version 1.0-alpha2 (Just usable edition)


Gnonthgol

Recommended Posts

If you have seen KerbalMaps.com then you have a pretty good idea of what I am trying to do. This plugin will setup your own tile server inside your game. This allows you to get better resolution, newer maps and better plugin integration.

Download v1.0-alpha2

The plugin is not done quite yet and requires lots of work to be fully working. I am releasing it because it is in a state where it will be useful and I am requesting help.

What needs to be done:

  • Data from the PQS system needs to be cached to improve performance
  • More layers to show more interesting things
  • Testing with mods that modify the world
  • Front end needs some tweeks so that it does not look like it is made by someone who don't know JavaScript (me)
  • Need to show more information about the flights around the body
  • Other projections including polar projections
  • Layers for resources added by plugins like Kethane

Changelog:

1.0-alpha2:

  • Add configuration
  • Allow for directories in the http file requests and move the files to the www directory
  • Add simple body selector

1.0-alpha1:

  • Initial commit

If you want to help out read the source code is available at https://github.com/Gnonthgol/KerbalGIS. BSD license as always.

Edited by Gnonthgol
New version
Link to comment
Share on other sites

Should be moved to Add-on Development.

...And that's where we are now - done! :rolleyes:

This project does have my attention anyhow -- if this does what I think it might, then it's gonna be quite a treat once it's working! keep it up!

cheers!

Link to comment
Share on other sites

If this does what I think it might, then it's gonna be quite a treat once it's working! keep it up!

Well, it is working and is quite a treat. However it needs a lot of polish and testing before I dare call it version 1.0. I am already using it to find biomes.

Link to comment
Share on other sites

Sorry, manipulating the "http://localhost:8080" part did not help. I fear the culprit is

                public void Update ()
{
if (listener == null) {
listener = new HttpListener ();
listener.Prefixes.Add ("http://localhost:8080/");
listener.Start ();
listener.BeginGetContext (new AsyncCallback (httpCallback), listener);
}

in your KerbalGIS.cs class. Telemachus has the same problem to open up local web servers, but he seems to have created his own HttpListener classes. I can access the Telemachus pages perfectly fine from my tablet.

Maybe you could find something to let yourself be inspired from at his github project.

Link to comment
Share on other sites

Sorry, manipulating the "http://localhost:8080" part did not help.

Hmm, I suspect the HttpListener class works different on different systems. On my Linux it listens on all interfaces, that may be a Mono bug though.

Telemachus has the same problem to open up local web servers, but he seems to have created his own HttpListener classes. I can access the Telemachus pages perfectly fine from my tablet.

Maybe you could find something to let yourself be inspired from at his github project.

I did look at that code before, but writing your own http server when there is one included in the runtime is just silly and a waste of time in my opinion. What Telemacus does is it lets the connection be configured by an external configuration file. There is a configuration system for plugins in KSP already. There are several other places I have just put arbitrary numbers that should be configurable.

Link to comment
Share on other sites

Hmm, I suspect the HttpListener class works different on different systems. On my Linux it listens on all interfaces, that may be a Mono bug though.

Aaaaaaahhhhh... Windows... Let me check whether some stupid windows firewall blocks the access from other hosts on the same network. I would never notice a requester from Windows since I run my KSP always in full-screen mode.

*edit*: I just tried... No popups from Windows firewalls, even while trying to access the web server from my tablet. So much for a theory :)

Edited by hakan
tested personal firewall theory
Link to comment
Share on other sites

Thank you, after discovering the config.xml in the plugin directory everthing works like a charm. Access from the netbook and the mobile (Galaxy S4) works fine and is actually kind of usable...

Now all I need to do is find a way to run KSP or KerbalGIS headlessly on my server so just browsing the map does not kill my active game framerate :sticktongue:

Link to comment
Share on other sites

Now all I need to do is find a way to run KSP or KerbalGIS headlessly on my server so just browsing the map does not kill my active game framerate :sticktongue:

That is something i also want to try out. If you stick varnish or squid in front of it then it might be usable. You can still set the framerate in the config file but the map quality will suffer, it gives you lower resolution tiles if it takes too long.

I am working on trying to improve the framerate by caching the PQS data or deliver multiple in game frames for each tile.

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...