-
Posts
64 -
Joined
-
Last visited
Content Type
Profiles
Forums
Developer Articles
KSP2 Release Notes
Everything posted by MysticPing
-
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:
-
Looks good
-
FAR via CKAN Support Thread
MysticPing replied to NathanKell's topic in KSP1 Technical Support (PC, modded installs)
Thanks, will do -
FAR via CKAN Support Thread
MysticPing replied to NathanKell's topic in KSP1 Technical Support (PC, modded installs)
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" -
[1.2.2] Stock Part Revamp, Update 1.9.6. Released Source Files!
MysticPing replied to Ven's topic in KSP1 Mod Development
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 -
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.
-
[1.3] kOS Scriptable Autopilot System v1.1.3.0
MysticPing replied to erendrake's topic in KSP1 Mod Releases
I admit. I'm completely lost. ELI5? -
[1.3] kOS Scriptable Autopilot System v1.1.3.0
MysticPing replied to erendrake's topic in KSP1 Mod Releases
o.O I guess i'll have to look trough that carefully tomorrow. Looks very complicated. -
[1.3] kOS Scriptable Autopilot System v1.1.3.0
MysticPing replied to erendrake's topic in KSP1 Mod Releases
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 -
[1.3] kOS Scriptable Autopilot System v1.1.3.0
MysticPing replied to erendrake's topic in KSP1 Mod Releases
How do i get my ships horizontal heading? ship:heading returns something else. Don't even know what -
[1.3] kOS Scriptable Autopilot System v1.1.3.0
MysticPing replied to erendrake's topic in KSP1 Mod Releases
How should i do instead then? -
[1.3] kOS Scriptable Autopilot System v1.1.3.0
MysticPing replied to erendrake's topic in KSP1 Mod Releases
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. -
[1.3] kOS Scriptable Autopilot System v1.1.3.0
MysticPing replied to erendrake's topic in KSP1 Mod Releases
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...". -
[1.3] kOS Scriptable Autopilot System v1.1.3.0
MysticPing replied to erendrake's topic in KSP1 Mod Releases
So running with the " "+ method (http://hastebin.com/mezesucoru.coffee) I get this error -
[1.3] kOS Scriptable Autopilot System v1.1.3.0
MysticPing replied to erendrake's topic in KSP1 Mod Releases
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 -
[1.3] kOS Scriptable Autopilot System v1.1.3.0
MysticPing replied to erendrake's topic in KSP1 Mod Releases
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. -
[1.3] kOS Scriptable Autopilot System v1.1.3.0
MysticPing replied to erendrake's topic in KSP1 Mod Releases
My latest code without that period still has the same problem http://hastebin.com/caqaxojoko.coffee Or did i remove the wrong period? -
[1.3] kOS Scriptable Autopilot System v1.1.3.0
MysticPing replied to erendrake's topic in KSP1 Mod Releases
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. -
[1.3] kOS Scriptable Autopilot System v1.1.3.0
MysticPing replied to erendrake's topic in KSP1 Mod Releases
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"