Jump to content

MysticPing

Members
  • Posts

    64
  • Joined

  • Last visited

Everything posted by MysticPing

  1. I'm sorry, have to go soon to work a night shift so a bit frustrated. using KRPC.Client; using KRPC.Client.Services.KRPC; namespace ConsoleApplication2 { class Program { static void Main(string[] args) { using (var connection = new Connection(name: "Vessel Name")) { var spaceCenter = connection.SpaceCenter(); var vessel = spaceCenter.ActiveVessel; System.Console.WriteLine(vessel.Name); } } } } Is the code. From the C# Documentation. I can connect to the KSP client and I can acces connection.kRPC() but not SpaceCenter() Visual studio tells me that connection has this: edit:
  2. Urgh I was so excited to try this but I simply cannot get the c# library to work. connection has no member called "SpaceCenter" which means I can't get anywhere or do anything.
  3. After installing FAR trough CKAN, then deciding i didn't like it and uninstalling it via CKAN all my planes have 0 lift and cost "NaN"
  4. After starting a new save with this mod this happens: http://gfycat.com/YellowishGlossyCamel Any idea what causes this? Tried with both decoupler and stack seperator
  5. Is there a way to only install the stock science wedges for Universal Storage? Like the mysterygoo and science jr wedges
  6. Yeah as mentioned in the video it doesn't have much range to due to the fuel balancing. Same with engine power. It's not the fastest plane but sticking another engine on the back would mean it could barely lift withotu another vtol engine, which would make it wider etc. You get the idea. It's this im trying to improve in version 3.
  7. Thanks! It's gone trough a lot of changes trough ksp versions but is still by far my favorite creation.
  8. Hi! I'd love to share this awesome VTOL i made. Here's a short video going into more detail. I'm sorry for the noise, you can hear my pc fan as well as typing and mouse clicking / scrolling. It's something I'm working on. Download
  9. o.O I guess i'll have to look trough that carefully tomorrow. Looks very complicated.
  10. Getting clean cut readings for roll, pitch and heading remains an issue due to the weird KSP internal reference frame. But you can get clean cut target heading. So why not vessel? It's the only missing piece in my program
  11. How do i get my ships horizontal heading? ship:heading returns something else. Don't even know what
  12. stage:amount returns 0 even when i have 4 stages, any ideas? EDIT: https://gfycat.com/OblongSnoopyGreendarnerdragonfly Just need to get the actual missile to hit and i'm done.
  13. Thank you so very much! Using a slightly modified version of what you just posted i got it to work :D set t_info to list(). set finished to false. set target to Duna. set COMPAREPLANET to Duna. wait 1. until finished = true { // Forces you to select a target clearscreen. set t to target. if ( (" " + t ) <> (" " + COMPAREPLANET) ) { print "Target Acquired". print "----------------". print "Target Distance: " + t:distance. print "Target Heading: " + t:heading. set heading_up to 90 - vang(t:position, ship:up:vector). print heading_up. t_info:add(t:distance). t_info:add(t:heading). t_info:add(heading_up). set finished to true. } else { print "Please select a target". } wait 0.2. } wait 0.5. print "You have "+stage:amount+" Missiles remaining". if (ship:electriccharge < 20) { print "You have low electricity". } if (ship:heading > t_info[1]) { until (ship:heading < t_info[1]) { AG1 on. } AG1 off. } if (ship:heading < t_info[1]) { until (ship:heading > t_info[1]) { AG2 on. } AG2 off. }print "Gathering Target Info...".
  14. So running with the " "+ method (http://hastebin.com/mezesucoru.coffee) I get this error
  15. Yes but the thing with the ""+ thing you suggested does not work, and in either case if they are wrapped differently they should not be equal? ""+target makes a object does not exist blabla error
  16. If I have a target or not before the script runs it switches to duna and when i then select the target i want to select it keeps printing "Please select a target" So no difference.
  17. My latest code without that period still has the same problem http://hastebin.com/caqaxojoko.coffee Or did i remove the wrong period?
  18. That's the point though, i want it to finish the loop if the target selected is not kerbin. But even if i change the line to = instead of <> just to test the rest of the script it wont execute it. I also tried changing the else to something like elseif target=kerbin but then it didn't even print that either.
  19. My code: http://hastebin.com/ubidihumid.vbs[1] After i manually select a target it keeps printing "Please Select a Target" Any idea why? Even if i change the line to if target = body("Kerbin") { it still prints "please select a target"
×
×
  • Create New...