Jump to content

Jimbofarrar

Members
  • Posts

    6
  • Joined

  • Last visited

Everything posted by Jimbofarrar

  1. I found an explanation here : https://docs.microsoft.com/fr-fr/windows/win32/fileio/naming-a-file#win32-device-namespaces
  2. Hi everyone I was using this tool when i started to make my own controller. I let it in stand by for a long time (i moved twice and started to run a business) and recently i found a solution to bring back the Zitronen plugin to life with win10. This tool is very usefull to try and debug code, so i forked this tool to make it compliant with the version 0.19.1 of the Zitronen plugin, essentially in updating the VesselData packet, added controls for SAS, navball mode, liquid fuel and oxidizer total and current stage and "vectors" It is still open source and can be found on GitHub : https://github.com/Jimbo-Farrar/KSPSerialIODebugTool (there is a executable version in the directory bin/Release/)
  3. There is an update : I ran some tests in KSP 1.7.3 an 1.8.1 (both without and with Breaking Ground and Making History Expansions) and they reveal that we don't need to test if com port is > 9. The syntax \\.\COMxx works from COM1 The modification needed in the plugin is just in one line Line 429 Port.PortName = @"\\.\" + PortNumber; // add @"\\.\" to PortNumber to have win10 compatibility for com ports > 9 According to the terms of use you will find a link to a zip file for the sources and license text, and a second link for the compiled dll License : CC BY, attribution to Zitronen Sources : https://www.dropbox.com/s/k5jl6pflr7vooh6/KSPSerialIO.zip?dl=0 Compiled dll : https://www.dropbox.com/s/39tfno3277yy992/KSPSerialIO.dll?dl=0
  4. These are the modifications i made : Added line 11 using System.Text.RegularExpressions; Added lines 266 and 267 public static string NumPortValueString; public static int NumPortValue; Added lines 420 to 425 NumPortValueString = Regex.Match(PortNumber, @"\d+").Value; NumPortValue = int.Parse(NumPortValueString); if (NumPortValue > 9) { PortNumber = @"\\.\" + PortNumber; } Added lines 431 to 436 NumPortValueString = Regex.Match(PortNumber, @"\d+").Value; NumPortValue = int.Parse(NumPortValueString); if (NumPortValue > 9) { PortNumber = @"\\.\" + PortNumber; }
  5. Hi everyone I have the same issue with Win10. After a lot of research i found that a COM port > COM9 must be like \\.\COMxx I tried putting \\.\COM16 (the COM port of my arduino) as default port in the config.xml of the plugin and i had handshake. So i made small additions in KSPIO.cs (0.19.1 version) generated the dll and it works fine with KSP 1.7.3 and also with a fresh install of KSP 1.8.1 You will find the modified KSPIO.cs here : https://www.dropbox.com/s/whqotb7y0dtbug6/KSPIO.cs?dl=0 Hope this could help.
×
×
  • Create New...