Jump to content

[WIP] MapResourceOverlay (works for Karbonite,MKS for now)


Cyrik

Recommended Posts

RELEASE THREAD

Distribution:

Release

Source

MIT License

Usage:

Look at any planet with Karbonite/MKS minable resources. Click the red toolbar icon to disable/enable and choose the resource to be displayed.

Requirements:

ORS

blitzys toolbar(for now)

Karbonite or MKS

here are some pics:

FXaIP8n.pngERGC1YH.png

Changelog:

Version 0.2: -added brightness toggle

-added a display cuttoff

-preference are saved

Version 0.01.3: -SCANSat integration

Version 0.01.2: -new Icon

-multiple overlays fixed

-tooltips added

Version 0.01.1: -Paths fixed for Linux and Mac

-Off by default

Version 0.01.0: initial release

otherwise i´m still working on making the overlay colors more spreadout and making the ORS integration dynamic instead of hard coded.

Edited by NathanKell
Links pulled until license issue resolved.
Link to comment
Share on other sites

now the question. it looks like this has no tie in to scanning soooo. might want to contact dmagic he can probaly help scansat work with it. kinda would be awsome to se a scansat map overlaid on the planet lol

Link to comment
Share on other sites

now the question. it looks like this has no tie in to scanning soooo. might want to contact dmagic he can probaly help scansat work with it. kinda would be awsome to se a scansat map overlaid on the planet lol

Why would Cyrik have to tie in to scanscat should be getting the same info from ORS and Karbonite or MKS that scansat is getting so they should be the same.

EDIT- Sorry wasn't thinking of scanscat maps on overlay

Link to comment
Share on other sites

Why would Cyrik have to tie in to scanscat should be getting the same info from ORS and Karbonite or MKS that scansat is getting so they should be the same.

EDIT- Sorry wasn't thinking of scanscat maps on overlay

So someone educate me... what would be the value of having SCANSat over this, since it is pretty much the same data anyway?

Link to comment
Share on other sites

So someone educate me... what would be the value of having SCANSat over this, since it is pretty much the same data anyway?

Think, I miss read his post, I think he was talking about having the ScanScat Biome and slope and maybe the rest show on the planet overlay.

EDIT- Like what you see when you look at the scanner map.

EDIT- something like this but on the planet overlay http://forum.kerbalspaceprogram.com/threads/57603-0-24-2-RasterPropMonitor-putting-the-A-in-your-IVA-%28v0-18-2%29-3-Aug?p=1347402&viewfull=1#post1347402

Edited by Mecripp2
Link to comment
Share on other sites

Think, I miss read his post, I think he was talking about having the ScanScat Biome and slope and maybe the rest show on the planet overlay.

EDIT- Like what you see when you look at the scanner map.

EDIT- something like this but on the planet overlay http://forum.kerbalspaceprogram.com/threads/57603-0-24-2-RasterPropMonitor-putting-the-A-in-your-IVA-%28v0-18-2%29-3-Aug?p=1347402&viewfull=1#post1347402

Yeah... that seems more like a SCANSat thing, and one hell of a dependency. and tbh, I'd rather see resources superimposed over the actual high-res globe

Link to comment
Share on other sites

yeah that mecripp. also i looked at the files havent installed yet cause fixing a mod conflict but to me looks like it instanly gives all the maps dont it?

not everyone wants it easy that why i was just asking and making a suggestion.

dont mean scansat as a dependency as a option.

well he just put it out so hopely he does more with it. seen to many good mods die to being abandoned or a license that keep someoen taking over it.

Edited by sidfu
Link to comment
Share on other sites

yeah that mecripp. also i looked at the files havent installed yet cause fixing a mod conflict but to me looks like it instanly gives all the maps dont it?

not everyone wants it easy that why i was just asking and making a suggestion.

dont mean scansat as a dependency as a option.

well he just put it out so hopely he does more with it. seen to many good mods die to being abandoned or a license that keep someoen taking over it.

heh, well given the guy already helps out with MKS and literally just started this, I doubt it will be abandoned ;)

Personally, I think it's worlds better than the default ORS orange globes. And would rather see something get out there that's an incremental improvement than than nothing at all. Can always iterate, etc. but IMO I would not want that hard dependency on SCANSat - an ORS replacement for the hotspot map is still worlds ahead of where that mod is now, and grants an instant benefit. And if it's only dependency is ORS, I'll bundle it with Karbonite in a heartbeat.

Link to comment
Share on other sites

heh, well given the guy already helps out with MKS and literally just started this, I doubt it will be abandoned ;)

Personally, I think it's worlds better than the default ORS orange globes. And would rather see something get out there that's an incremental improvement than than nothing at all. Can always iterate, etc. but IMO I would not want that hard dependency on SCANSat - an ORS replacement for the hotspot map is still worlds ahead of where that mod is now, and grants an instant benefit. And if it's only dependency is ORS, I'll bundle it with Karbonite in a heartbeat.

I can agree that it shouldn't have a hard dependency with SCANsat, but to answer your previous question about what benefit SCANsat has over this currently is that it is:

1. More realistic (you have to scan instead of being given the information for nothing)

2. Usable in IVA

3ish. Gives you another vessel to launch in order to complete the scanning, making it require more I game time. I listed this as 3ish because that will be a benefit to some and a pitfall to others.

Link to comment
Share on other sites

I can agree that it shouldn't have a hard dependency with SCANsat, but to answer your previous question about what benefit SCANsat has over this currently is that it is:

1. More realistic (you have to scan instead of being given the information for nothing)

2. Usable in IVA

3ish. Gives you another vessel to launch in order to complete the scanning, making it require more I game time. I listed this as 3ish because that will be a benefit to some and a pitfall to others.

Fair enough, but if you already have SCANSat for item 2... why would you use this?

For 3... it should IMO be tied to a partmodule at least. For item 1 I can go either way, as ORS != Kethane... and let's be honest, most of us who do use SCANSat just go into a polar orbit and warp forward for about ten seconds to get the whole map anyway ;)

Link to comment
Share on other sites

thats what i mean it nto be a hard dependent. it be like if u use this with scansat u have to scan to get the whole map but on other hand if u dont want to u can use alone and get instant whole map.

Link to comment
Share on other sites

Getting a error says can't found the Radii.cfg , Just started a new game with RSS is it because, I havent launch a scanner or RSS ?

EDIT- Put it in a older game that had a scanner up and mining base and not RSS and get same error and no overlay anyone get this to work?

Edited by Mecripp2
Link to comment
Share on other sites

Fair enough, but if you already have SCANSat for item 2... why would you use this?

For 3... it should IMO be tied to a partmodule at least. For item 1 I can go either way, as ORS != Kethane... and let's be honest, most of us who do use SCANSat just go into a polar orbit and warp forward for about ten seconds to get the whole map anyway ;)

Simple answer, nothing.

More complex answer, if it ends up being bundled with Karbonite I will have the option to use it either way, and if it integrates with SCANsat to overlay the SCANsat map onto the planet, I'd prefer that when not running IVA missions.

Doing my best to help! :)

Link to comment
Share on other sites

Simple answer, nothing.

More complex answer, if it ends up being bundled with Karbonite I will have the option to use it either way, and if it integrates with SCANsat to overlay the SCANsat map onto the planet, I'd prefer that when not running IVA missions.

Doing my best to help! :)

Oh no worries - my tone may have been misinterpereted. it was less 'You must be crazy to want X' and more 'I'm really curious why you want X, because when I ask a lot of questions I figure out what users are really looking for, and what the actual problem space is'

Link to comment
Share on other sites

Getting this error spamming the log

[EXC 20:25:45.710] IsolatedStorageException: Could not find file "/home/user/My Games/KSP_24.2_RSS_1.10/GameData/MapResourceOverlay\Assets\Radii.cfg".
files there, I can see it and found it and read it.

EDIT- Try'ed it in a none RSS one and samething and don't use Kethane and with mapoverlay installed the Karbonite scanner won't show anything. ;.;

EDIT- Did it work for you sidfu ? I know your a Mac user and guessing RoverDude is Windows and, I'm Linux lol so as any Linux user try'ed this and it work ?

Edited by Mecripp2
Link to comment
Share on other sites

did u check to see if for some reason when u extracted it it wind up being read only? only other thing i can think of is its a bug with rss or maybe if u using kethane and this togehter they conflicting?

Link to comment
Share on other sites

Getting this error spamming the log files there, I can see it and found it and read it.

Looks like someone didn't change their \'s and /'s when assigning path names. :wink:

You always need to append ".Replace("\\", "/")" to the end of the string when assigning a path to account for differences in Unix and Windows \ / usage; Windows can use either, but I think Unix screws up when you use \.


var dir = System.IO.Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
var radii = System.IO.File.ReadAllLines(dir+"\\Assets\\Radii.cfg");

https://github.com/Cyrik/MapResourceOverlay/blob/master/Source/MapResourceOverlay/MapOverlay.cs#L75-L76

Link to comment
Share on other sites

Oh no worries - my tone may have been misinterpereted. it was less 'You must be crazy to want X' and more 'I'm really curious why you want X, because when I ask a lot of questions I figure out what users are really looking for, and what the actual problem space is'

Thinking back, not really sure why I added that last line lol. Rest assured that I realized your intentions and I completely agree with and back them up! You are quite the modder and I will lend you my hand and mind when and where I can.(on that note, I am working on my YouTube ksp-modding series and plan on making a video for each of your mods/ships.)

Link to comment
Share on other sites

Looks like someone didn't change their \'s and /'s when assigning path names. :wink:

You always need to append ".Replace("\\", "/")" to the end of the string when assigning a path to account for differences in Unix and Windows \ / usage; Windows can use either, but I think Unix screws up when you use \.


var dir = System.IO.Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
var radii = System.IO.File.ReadAllLines(dir+"\\Assets\\Radii.cfg");

https://github.com/Cyrik/MapResourceOverlay/blob/master/Source/MapResourceOverlay/MapOverlay.cs#L75-L76

;.; Thanks DMagic guessing now, I need to wait for a quick fix.

Link to comment
Share on other sites

Quick testing stuff!

Can we have the overlay off by default?

Also - for whatever reason I got like... repeated overlays on Duna. It may be because I was using hyperedit? I basically had... very red, and a bit more red as my two choices

Link to comment
Share on other sites

hey guys, sorry it took me a while to answer. wasnt at home until now.

1. overlay off by default: yes, ill throw this into the next version

2. i´ll check out the duna overlay after using hyperedit. btw you dont have to be at the planet to see the overlay. if you focus it you get it too.

3. sorry for the linux and mac users. forgot to do the path thing right and have the slashes the wrong way for you guys. gonna fix this now.

4. scansat integration: i´ve been thinking about it too. i kind of like having to scan before seeing the overlay but not everyone thinks this way. i will look into scansat integration without a hard dependecy after the mod is stable and the important features are in there.

5. abandoning: for now i´m planning to support the mod:P and even if i do get hit by a bus, its an MIT license so someone else can always fork it and continue from there

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...