Jump to content

Xavier513

Members
  • Posts

    72
  • Joined

  • Last visited

Everything posted by Xavier513

  1. OK, fixed, I added some cfg to RO, marked these parts with "RSSROConfig = True", then they are shown in game.
  2. OK, fixed, I added some cfg to RO, marked these parts with "RSSROConfig = True", then they are shown in game.
  3. How to show non-RO parts in game? I upgraded my game from 1.10.x to 1.12.3, most issues to my save are fixed, except that some parts are missing, and I failed to figure out how to make the game to load those parts. I used robotic parts from stock DLC in vessels(such as hinges and grip strips), but I can not find those parts anywhere.
  4. I upgraded my game from 1.10.x to 1.12.3, most issues to my save are fixed, except one: I used robotic parts from stock DLC in vessels(such as hinges and grip strips), but I can not find those parts anywhere. Is there any way to load these parts?
  5. Sure, try this simple craft plz: KIU-Pack/test-fairing.craft at master · vaporz/KIU-Pack (github.com) Just load the craft, hit space to stage, then watch the craft dropping on the ground: with auto-strut on, the fairings will disconnect, with auto-strut off, the fairings remains connected. I can reproduce in my save every time.
  6. I'm having the same issue in my RO save after updating mods to latest. The fairings keeps disconnecting after taking off for about 40 seconds. Thanks to @themaster401 , disabling auto-strut seems to have fixed the issue. Here is my mod list: Advanced Jet Engine (AdvancedJetEngine v2.20.0) B9 Aerospace Procedural Wings - Fork (B9-PWings-Fork 3:0.45.1) B9 Part Switch (B9PartSwitch v2.20.0) BahamutoD Animation Modules (BDAnimationModules 1:v0.6.7.1) Breaking Ground (BreakingGround-DLC 1.7.1) Chinese Mod Patches (ChineseModPatches 0.11.1) ClickThrough Blocker (ClickThroughBlocker 1:2.1.10.21) Community Resource Pack (CommunityResourcePack v112.0.1) Deadly Reentry Continued (DeadlyReentry 1:v.7.9.0) Environmental Visual Enhancements Redux (EnvironmentalVisualEnhancements 3:1.11.7.2) FASA (FASA 1:v7.2.7) Ferram Aerospace Research Continued (FerramAerospaceResearchContinued 3:0.16.1.2) Hangar Extender (HangerExtenderExtended 3.6.0.2) Harmony 2 (Harmony2 2.2.1.0) Kerbal Changelog (KerbalChangelog v1.4.2) Kerbal Joint Reinforcement Continued (KerbalJointReinforcementContinued v3.7.5.0) KIU Chinese Common (KIUChinese-Common 1.0.6) KIU Chinese Human Spaceflight Pack (real scale) (KIUChineseHumanSpaceflightPack-RO 1:1.0.8 Public Beta) Kopernicus Planetary System Modifier (Kopernicus 2:release-1.12.1-206) KSC Switcher (KSCSwitcher v2.1.0.0) KSP Community Fixes (KSPCommunityFixes 1.35.2) KSP Wheel (KSPWheel 1:0.16.14.33) KSPBurst (KSPBurst v1.5.5.1) MechJeb 2 (MechJeb2 2.14.3.0) ModularFlightIntegrator (ModularFlightIntegrator 1.2.10.0) Module Manager (ModuleManager 4.2.3) ModuleDepthMask (DepthMask 1.1.3) Patch Manager (PatchManager 0.0.17.6) PlanetShine (PlanetShine 0.2.6.6) PlanetShine - Default configuration (PlanetShine-Config-Default 0.2.6.6) Procedural Fairings (ProceduralFairings 1:v6.6.0.0) Procedural Parts (ProceduralParts v2.5.9.0) Real Fuels (RealFuels 1:v15.9.0.0) Real Plume (RealPlume 2:v13.3.2) Real Solar System (RealSolarSystem v20.1.3.0) Real Solar System Textures - 4096 x 2048 (RSSTextures4096 v18.6.1) RealChute for Stock (RealChuteForStock v1.4.9.4) RealChute Parachute Systems (RealChute v1.4.9.4) RealHeat (RealHeat v5.1) Realism Overhaul (RealismOverhaul v17.10.1.0) ReStock (ReStock 1.4.5) ReStock+ (ReStockPlus 1.4.5) RO Capsules (ROCapsules v2.4.1.0) RO Engines (ROEngines v2.9.0.0) RO Heatshields (ROHeatshields v1.2.1.0) RO Library (ROLib v1.9.1.0) RO Solar (ROSolar v2.1.2.0) RO Tanks (ROTanks v2.10.0.0) ROUtils (ROUtils v1.0.1.0) RSS DateTime Formatter (RSSDateTimeFormatter v1.12.1.0) RSS Visual Enhancements - Low Resolution (RSSVE-LR 2.1.6) Scatterer (Scatterer 3:v0.0878) Scatterer Default Config (Scatterer-config 3:v0.0878) Scatterer Sunflare (Scatterer-sunflare 3:v0.0878) Shaddy (Shaddy v2.5) SmokeScreen - Extended FX Plugin (SmokeScreen 2.8.14.0) Solver Engines plugin (SolverEngines v3.14.0) Staged Animation (StagedAnimation v2.0) TextureReplacer (TextureReplacer v4.5.3) Textures Unlimited (TexturesUnlimited 1.5.10.25) Toolbar Controller (ToolbarController 1:0.1.9.11) TweakScale Redistributable (TweakScale-Redist v2.4.8.3) Waterfall Core (Waterfall 0.9.0)
  7. Try this: global::Vessel v = FlightGlobals.ActiveVessel; v.ActionGroups.SetGroup(KSPActionGroup.Brakes, true);
  8. In game, we can enable "infinity fuel" in debug console. How can I do the same thing in a C# plugin? Is there any API?
  9. Environment: RSS, RO Sometimes after loading a saved game, I found the rocket standing alone on the ground, without launch pad and any other buildings around. Here's how to reproduce: 1, Enter VAB, launch a vessel. 2, After the vessel is loaded, save current name to save "A". 3, Press ESC, and enter Tracking Station, then change launch site to another location, then click "Exit" on the top right corner. 4, Press ESC, load saved game "A". 5, When the vessel is loaded, the launch pad is missing! Is this a bug of KSP or any mod? Is there any way I can fix it by myself? I'm working on a plugin. I'm using "GamePersistence.LoadGame()" to load saves, is there any C# API can fix this? Thanks very much!
  10. What kind of addon are you up to develop? I'm very curious, it sounds interesting.
  11. I think it's possible, an add-on/plugin is just some C# code running in an Unity engine. You can try doing following things to find the answer by yourself. Write a simple plugin to: upload a file to a local file server download a webpage, e.g. google.com send a get/post request to any website, e.g. google.com I guess the final answer is YES.
  12. Thanks! A further question: what happens when target vessel is very close to player vessel? If target vessel's position is determined by SetPosition (or "on-rails"), when player vessel collides with target, the target vessel would behave like a kinematic object, and it's orbit wouldn't change, which is not correct. But if target vessel is "off-rails" and throwed back to physics engine, I think it's not an easy thing to make target vessel to exactly move along it's orbit. When target vessel is far away and goes "on-rails" again, this inaccuracy will result in an orbit change, even if target vessel is not touched at all. How does KSP deal with this situation? Here is my thoughts: 1, When target vessel is near, target vessel goes "off-rails" and is throwed back to physics simulation. 2, If target vessel does not collide with any object, it finally moves far away enough and goes "on-rails", it's orbit would not change. The inaccuracy in physics simulation takes no effects to actual orbit. 3, If target vessel collides with something, from this moment on, its current physics state would result in an orbit change accordingly, until it moves far away and goes "on-rails" again.
  13. OK, after some tests, observing: Debug.LogWarning(Krakensbane.GetFrameVelocity() + "," + Krakensbane.GetLastCorrection()); these two values seems changing every Update.
  14. I'm working on a mod, related with things like rendezvous and some orbit calculation. I keep hearing about "Krakensbane", and I know it's for dealing with issues caused by high velocity, it's repositioning the whole universe. I'm curious on some details, so I searched the forum and found a link: http://forum.kerbalspaceprogram.com/entries/12-Krakensbane Unfortunately, it's not available anymore. Does anyone have a backup to that page? These are the questions I'm curious about: 1, When player vessel is coasting along orbit (at high speed, no timewarp), is the whole universe repositioning itself along player vessel's orbit, in "on rails" mode? 2, As the orbit is not a straight line, orbit velocity is changing all the time(both direction and speed), is the velocity absorbed by Krakensbane actually changing all the time? 3, If player vessel is accelerating, how often is the extra velocity absorbed by Krakensbane? Every FixedUpdate? 4, If another vessel is now very close to player(say, 100m), how is the vessel's position determined? By "on rail" mode(Deterministic Physics) or "off rail" mode(Physics engine)? Thanks!
  15. Newly downloaded [email protected], with two expansions, but with no mods. Quite simple to reproduce this bug: 1, load any save 2, press "ESC" 3, press "F2" (hide GUI) 4, press "ESC", again 5, load any save, again 6, BOOM! Now, KSP will load forever. But if you press "ESC", the GUI will show up, but the vessel disappears. The only way to recover is quit and launch KSP, again. Exceptions in KSP.log: [EXC 13:27:38.029] NullReferenceException FlightCamera.SetTarget (UnityEngine.Transform tgt, System.Boolean keepWorldPos, FlightCamera+TargetMode targetMode) (at <a5c262f7fe724eb9918d4487db8b635e>:0) FlightCamera.SetTarget (UnityEngine.Transform tgt, FlightCamera+TargetMode targetMode) (at <a5c262f7fe724eb9918d4487db8b635e>:0) FlightCamera.SetTargetVessel (Vessel vessel) (at <a5c262f7fe724eb9918d4487db8b635e>:0) FlightCamera+<Startup>d__67.MoveNext () (at <a5c262f7fe724eb9918d4487db8b635e>:0) UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) (at <12e76cd50cc64cf19e759e981cb725af>:0) [EXC 13:27:38.033] NullReferenceException UnityEngine.Transform.get_position () (at <12e76cd50cc64cf19e759e981cb725af>:0) FlightCamera.UpdateCameraTransform () (at <a5c262f7fe724eb9918d4487db8b635e>:0) FlightCamera.LateUpdate () (at <a5c262f7fe724eb9918d4487db8b635e>:0)
  16. "What country do you live in?" No China?
  17. It WORKS! Thank you! @si2504 With some minor changes though, appending following config node in "RealismOverhaul\Engine_Configs\EngineVariants_Config.cfg": @PART[*]:FOR[RealismOverhaulEnginesPost] { @MODULE[ModuleEngineConfigs] { @CONFIG,* { @minThrust = 0 } } }
  18. Hi, how can I change "Min Throttle" to all engines to "0%"? I have already set "simulateUllage" and "limitedIgnitions" in RealSettings.cfg to false, this is the last "stocklike" thing I need in RSS.
  19. Having the same issue, should I take this as a KSP bug? I'm going to swap them to each other in my code.
  20. Please help! KSP gets stucked whiling loading "proceduralSRBRealFuels". With [email protected] installed, I tested against multi versions of procedural parts, it seems this happens when ProceduralParts version 2.1.1 or 2.1.2 is installed. There may be something in version 2.1.1.
  21. hi, @Stone Blue, thanks. Sorry, I'm testing this function along with many other WIP features in my project, so it's not quite convenient to provide a DLL. But the codes above are basicly all the codes needed for this feature, for now. You can 1, create a new project in Visual Studio, 2, create a C# file with those codes. 3, add references of Assembly-CSharp.dll and UnityEngine.dll to project. 4, then you can compile it to generate a DLL, Besides, you have to add a button somewhere(e.g. some part's right click menu) to set "bottonClicked" to true, or activate the addon in other ways.
  22. OK, my mistake, some lines of code weren't commented out correctly. The code above works fine, now.
  23. I'm trying to play KSP on more than one monitor, with different content in each monitor. I successfully achieved this on two monitors, but I encountered an issue, and I need some help: the vessel disappears in the first monitor. This is how I enable the second monitor: 1, Connect another monitor to the PC running KSP (via HDMI port). 2, Compile following codes and start KSP, this addon will take effect in Flight scene. [KSPAddon(KSPAddon.Startup.Flight, false)] public class DisplayAddon : MonoBehaviour { private static bool bottonClicked; private static global::Vessel vessel; private static Camera galaxyCamera; private static Camera scaledSpaceCamera; private static Camera camera00; private static int SecondDisplay = 1; public void Start() { vessel = FlightGlobals.ActiveVessel; Display.displays[SecondDisplay].Activate(); // Activate the second display // Copy in-game cameras galaxyCamera = new GameObject().AddComponent<Camera>(); galaxyCamera.CopyFrom(Camera.allCameras.FirstOrDefault(cam => cam.name == "GalaxyCamera")); galaxyCamera.name = "GalaxyCameraCopy"; scaledSpaceCamera = new GameObject().AddComponent<Camera>(); scaledSpaceCamera.CopyFrom(Camera.allCameras.FirstOrDefault(cam => cam.name == "Camera ScaledSpace")); scaledSpaceCamera.name = "scaledSpaceCameraCopy"; camera00 = new GameObject().AddComponent<Camera>(); camera00.CopyFrom(Camera.allCameras.FirstOrDefault(cam => cam.name == "Camera 00")); camera00.name = "camera00Copy"; // New cameras render to the second display galaxyCamera.targetDisplay = SecondDisplay; scaledSpaceCamera.targetDisplay = SecondDisplay; camera00.targetDisplay = SecondDisplay; } public void FixedUpdate() { if (bottonClicked) { camera00.transform.position = new Vector3(-5.5f, 0.7f, -2.0f); // Place the camera at somewhere near the vessel camera00.transform.LookAt(vessel.CoM); galaxyCamera.transform.rotation = camera00.transform.rotation; scaledSpaceCamera.transform.rotation = camera00.transform.rotation; } } } 3, Load a save, load a vessel, then enable addon. Please take a look at these 4 images: https://imgur.com/a/uiOz9pn The first 2 images are contents in two monitors when the addon IS NOT activated. The last 2 images are contents in two monitors when the addon IS activated. As you can see, in the third image, the vessel is not shown. Does anyone know how to fix this? Thanks a lot!
  24. OK, it's "FlightCamera.fetch.Distance" and "FlightCamera.fetch.SetDistanceImmediate( )"
×
×
  • Create New...