Jump to content

neurotoxin

Members
  • Posts

    45
  • Joined

  • Last visited

Posts posted by neurotoxin

  1. Yeah, I didn't think it'd be easy or else the answer would have shown up from my first hour of googling. Well, it did, in the form of reflection. I guess it's time to look into the reflection API. Thanks for the replies. Honestly, this wasn't even directly KSP related but there are a lot of talented programmers here so I thought I might get a good answer, which I did, thus why I am quick to dismiss module manager. Once again, thanks for the help.

  2. You mean you extended the wheel module? Something as simple as changing the names of the modules in the configs will do.

    Yeah I know I could do that, but I'm trying to avoid it. The question is more theoretical than something I intend to use in a practical mod.

    I don't have the .dll open atm so these are just made up names but let's say the .dll has a Wheel class with a method named Roll(). Is there any way to make it so when the game calls Wheel.Roll() it actually calls MyNewWheel.Roll(). For this example let's assume MyNewWheel : Wheel and only the Roll method has been overridden. Again all theoretical, any resemblance to real people or places is purely fiction.

  3. "do-while" and "while" loops are not just preference. They work differently.

    Right you are. Thanks for pointing me to learn something new. The books I taught myself with didn't cover do-while loops or the difference. Thanks for correcting that and not letting it just drift away, I appreciate a learning opportunity.

    ah, great! people are talking about programming/scripting in KSP! Exactly what I was going to ask about!

    My questions (forgive if they have been answered already):

    1: Is there a Wiki / Documentation for making scripts in KSP?

    2: Can you place a script in a part.cfg file to be activated when the part is? (ex, run script when engine activates)

    Thanks!!

    The best documentation I've been able to find is:

    http://wiki.kerbalspaceprogram.com/wiki/Category:Community_API_Documentation

    https://github.com/Anatid/XML-Documentation-for-the-KSP-API

    I don't know exactly how up to date either of those resources are but they seem to give a good stepping off point.

  4. Programming is programming. If you truly understand the fundamentals than learning another language is trivial. Its learning the KSP API that is the cumbersome part, especially with essentially zero documentation. Java and C# are extremely similar and won't take much of a leap.

    Yeah, I kind of figured that seeing as I can READ other's code decently. The issue I'm worried about is adapting to the few differences, like keywords. Actually, googling around a bit has waylaid some of my fears on syntax, I guess some of the differences I saw were just different modder's preferences (like using do while loops rather than while {//do stuff}).

    Yeah, considering that, I'll just jump in and try it. Time to get used to Visual Studio, probably the most daunting part of all this, learning a new IDE. It's like a new pair of shoes, the old one is all broken in and comfy and you feel bad leaving them. Haha.

  5. Ok so I guess I'll ask here. Was going to start a thread but I figured I'd see what this was first.

    My question is, how hard will it be learning C# coming from a background of java? I see many similarities in the two looking through other developers source codes and a I also see differences, obviously I'm talking about syntax as the keywords are quite different.

    Can anyone point me to some decent resources that aren't aimed at beginner programmers but still cover a good portion of the c# basics using semi-advanced concepts?

    Lastly, should I be focusing on learning the .net framework or is plugging into KSP not going to require a strong knowledge of it? Pre-thanks for any answers.

  6. So... after screwing around a bit with my settings and managing to increase my FPS quite a bit (from 25ish at KSC screen to 60) I noticed that I no longer had the right click or staging issues on the x64 build. I'm not entirely sure HOW relevant it is. I'm assuming it's some kind of Unity bug stemming from not updating user input while playing catch-up in rendering but don't listen to me as I don't really know what I'm talking about (I've only built command line and simple gui applications).

    As for the framerate improvement, I was just fiddling about in my settings.cfg file and came across PLANET_FORCE_SHADER_MODEL_2_0 = False. I set that to True and massive improvement but it makes the KSC scene extremely ugly because the seams in the terrain are suddenly very apparent. YMMV.

    Anyway, if anyone wants to verify that framerate effects the ability to decouple/right click it'd be much appreciated. Just drive your game into the ground framerate wise, try a couple short test flights, then try to get your fps back up over 30 and try again and let me know.

  7. I appreciate your work, and I understand the situation. I understand that reddit, somethingawful, etc. are useful ways of communicating with different parts of the fanbase. At the same time, I would suggest that this kind of information should be released through the KSP website and the KSP forum first. This isn't to put down users of those other sites, but I suggest this kind of information should come from the most official channels first, not posts on 3rd parties.

    Pretty much everything you said. It's just disappointing that rather than the 100 page thread on a forum dedicated to the game and run by the company the first direct information shows up somewhere else. I'm glad there was/is communication just slightly disappointed that it wasn't here first. It's not a huge deal at all just irksome. I do however appreciate Rowsdower showing up to confirm pretty quickly.

  8. I recall reading somewhere that squad doesn't want to release features that will only be available to a select set of customers (in this case that would be steam customers). Not that that's the whole reasoning behind it but I'm sure it has a part to play in that decision.

  9. Wow, I can't believe how hard on this guy you guys are being. Obviously Petumies is proud of what he's managed to accomplish thus far and just wanted to share his progress. Sure that progress isn't a lot but he apparently felt he reached a milestone and posted to gather some encouragement. Everybody has to start somewhere.

    @Petumies Keep up the good work and I hope to see more progress from you. Don't mind the sarcastic and/or negative responses.

  10. I recently put together a ModuleManager modification for a request and I figured I'd leave a copy here in case anyone in following this thread would like to use it. It just adds mechjeb functionality to all the stock(Squad) command pods and probe cores.

    Installation should be self explanatory for anyone who's installed mods lately. Module Manager's source can be found on Ialdabaoth's Github and my contribution is just the MechjebPodEnabler.cfg which can be opened with any text editor.

    Mechjeb Command Pod Enabler - Mediafire

  11. Well, it turns out I had 0.7.1 installed, not 0.7.2.

    Anyway, I installed 0.7.3 and it corrected part of the problem.

    Now I have the settings.cfg file automatically created. I changed the ShowOverlay line to False and ran the game.

    Mostly the same. The overlay is off by default in the Tracking Station and when I'm in flight, but the splash screen still has the grid.

    Thanks again for any advice.

    Add the following line to your settings.cfg file:


    ShowInMenu = False

  12. I have located the option in game to remove the hex display, however nothing that removes the hexgrid from Kerbin in the main menu/title screen.

    I can`t understand why it`s there to begin with... can that be removed?

    9

    Also I suggest setting the default of the hex display to off, rather than on. I open my map maybe 0.5% of the time to look at kethane, and the other 99.5% of the time for unrelated activities, and it would seem a default setting of off is more appropriate, but that is a subjective opinion.

    Kill the hex on the title screen is a direct request though :) If I can disable myself I would appreciate anyone sharing with me how

    See my post directly above yours. Specifically locate GameData/Kethane/settings.cfg and add the line "ShowInMenu = False" without quotation marks.

  13. I have no settings.cfg in my GameData\Kethane\ folder. I made one with those lines, but no effect.

    Advice?

    Thanks

    It should be generated the first time you run KSP with Kethane installed. Delete the one you made, launch KSP and see if it makes one. The full cfg on my system looks like this:


    ShowInMenu = False
    ScanningSound = True
    ShowOverlay = False
    WindowLeft = 1123
    WindowTop = 581

    There's a blank line following the last key (although I don't believe that's important because it's just a keypair file). TBH I don't see why it wouldn't work just using the lines from my previous post unless you're not using the most recent version. I would personally try just deleting the settings.cfg you hand made, launch KSP, make a ship (command pod + kethane scanner), launch, end flight, go to the tracking center, close ksp and modify the settings.cfg that should be generated.

    Not entirely sure when it generates the file thus the launch/tracking station junk above but that should cover all configurable lines that would need to be initialized at any given point (position x2, detection sound, show overlay toggle).

  14. I really hate to harp on the main menu thing, but I've installed 0.7.2 and I can't find the option to turn off the main menu grid display. The control in the map view looks the same as it did in 0.7.1 and the "show overlay" radio button doesn't seem to affect the main menu's display when turned off. GameData/Kethane/settings.cfg doesn't have any additional settings in it that I can see. What am I overlooking?

    PS, the reason I'm focused on this is because it's the only issue I've had with this new update. So that's a good thing? :)

    Looking into the source on Github it looks like the value you want to set is ShowInMenu.

    After some trial and error I figured it out. I placed ShowInMenu in the following location

    ScanningSound = True

    ShowInMenu = False

    ShowOverlay = False

    For some reason it kept reverting my changes when I placed it at the end although it might work for you there. So edit GameData/Kethane/settings.cfg and then start your game.

  15. The problem with the above two posts has to do with the say he draws the hex's

    The above thing would mean he'd have to draw each hex as 6 triangles really adding to the computer resources Kethane uses.

    EDIT: the above 2 posts above FaceDeer's

    I liked one of the previous ideas that was made earlier in the thread but I think you had mentioned there was some problems with it.

    I knew there were issues with it but since we were on the topic I felt I should fully explain what I had pictured.

    I explained earlier in the thread why splitting up hexagons into different colors is a technical challenge. Not impossible, but it would involve changing the mesh structure and that screws with things like cell<->vertex lookups.

    Another option would be to texture cells that contain other resources, like with a dot or something. It would be the same color as currently, but at least it would be an indication that "something's up" under that cell.

    That would be great. Any indication that there's more than one resource in a cell that doesn't muddy up the cells would be a step in the right direction in my opinion. Either way I'm just happy we got the new overlay. Just wanted to offer my 2 cents.

  16. -snip-

    In short, I think a primitive, not-so-great version is possible without much effort, but making it look good and work well is sort of a design challenge.

    Oh definitely I understand that. I liked one of the previous ideas that was made earlier in the thread but I think you had mentioned there was some problems with it. I don't know HOW possible it would be but possibly adding an indicator IF another resource is present. Example of my idea below (forgive my amazing MSPaint skillz yo.) Assume kethane as the primary deposit in multiple resource mode and display a indicator for any other resources located in the same cell.

    Like I said, I have absolutely no idea how difficult this might be from a programming perspective (I haven't learned much farther beyond console utilities in java) just an idea. I know I wouldn't wanted a blending, especially considering how ugly some colors may get when mixed with others.

    Kethane deposit with ore:

    Y7xlUk6.png

    Kethane deposit with ore and another resource:

    1ZkaoE9.png

    EDIT: The multiple resources view would be used primarily as a quick reference point for overlapping resources which a user could identify deposit sizes easily by just switching views to said resource and hovering. Multiple resources view would show no deposit values (or all if you would/could code that in) and would serve only as a reference point.

×
×
  • Create New...