-
Posts
1,480 -
Joined
-
Last visited
Content Type
Profiles
Forums
Developer Articles
KSP2 Release Notes
Everything posted by Nazalassa
-
If you could have one feature in KSP what would it be?
Nazalassa replied to TimKerbin's topic in KSP1 Discussion
No [or at least minimal] memory leaks would be pretty good. -
N 47 New page
- 30,746 replies
-
- going off the rails!
- non-stop!
-
(and 3 more)
Tagged with:
-
N 24
- 30,746 replies
-
- going off the rails!
- non-stop!
-
(and 3 more)
Tagged with:
-
[WIP] [1.12.x] HUDReplacer - (v1.2.11-beta)
Nazalassa replied to UltraJohn's topic in KSP1 Mod Development
Will try. It would've be nice (from the devs? Or not, idk) if we could just look into the texture dictionnary for a certain name. That way we could just look for cursor textures at the beginning and the amount of time we see KSP's cursor would be lower. -- I can report the same issues as @zapsnh. Also, maybe add in the README what pressing 'g' does in dev version? if I understood the source correctly, it says "that UI element has that and that images associated with it" or something like that. -
[WIP] [1.12.x] HUDReplacer - (v1.2.11-beta)
Nazalassa replied to UltraJohn's topic in KSP1 Mod Development
@UltraJohn I think this may work, but you should test it before. https://github.com/UltraJohn/HUDReplacer/pull/4 -
[WIP] [1.12.x] HUDReplacer - (v1.2.11-beta)
Nazalassa replied to UltraJohn's topic in KSP1 Mod Development
It's just a copy-paste of the entire code of cursordeleter, minus three lines of "using xyz" at the top. The complete code is the following: using System; using System.Timers; using UnityEngine; namespace CursorDeleter { [KSPAddon(KSPAddon.Startup.EveryScene, false)] public class CursorDeleter : MonoBehaviour { private Timer checkTimer; public void Awake() { /* * Because this script might run before or after the cursor controller * becomes available, this timer will repeatedly check for a * controller instance. */ checkTimer = new System.Timers.Timer(20); checkTimer.Elapsed += _removeCursor; checkTimer.Enabled = true; } private void _removeCursor(object source, ElapsedEventArgs e) { if (Cursors.CursorController.Instance) //Only bother if there's a cursor controller to kill. { /* * Kill the cursor controller WITH FIRE. */ Cursors.CursorController.Destroy(Cursors.CursorController.Instance); /* * Set the cursor back to default. */ UnityEngine.Cursor.SetCursor(null, Vector2.zero, CursorMode.Auto); /* * Done checking. Turn the timer off! */ checkTimer.Enabled = false; } } } } (it's under MIT iirc) I think I can make something that kind of works - give me a bit of time. -
Kerbin Elkano Let's start with Kerbin. The Kanethal and the Kanenia will be sent later (the, um, lifters are not finished yet). Here's the path to follow: The longest part will certainly be the 800 or so kilometers underwater; it may take 35 hours! But Bob really wants to do it. Bill agreed, as he wants to take photos of fishes and other sealife.
-
N 25
- 30,746 replies
-
- going off the rails!
- non-stop!
-
(and 3 more)
Tagged with:
-
Tanker launches Since the journey will likely use more fuel than available on the Kanenia, Gene Kerman decided to launch several tankers into various orbits - A xenon tanker around Jool, a xenon tanker around Duna, two fuel tankers around Jool, one around Dres, one around Eeloo, one around Moho, maybe a third one around Jool for safety, and several smaller tankers to refuel the lander on the surface of Duna, Laythe, Tylo, Vall for safety, maybe Eeloo? Anyways, that's a lot of rockets to launch.
-
I think I'll really start my Elkano this time... Quick math: rover has top seabed speed of around 7 m/s. a fourth of Kerbin's circumference is 300*pi ~= 900 km. The time the water part will take will be 900,000/7 ~= 128571 s which equals... 35 HOURS?? OK, I'll still do it, I was expecting worse :)
- 559 replies
-
- 1
-
-
Hi there! For a while, I (and also Bob) have been wanting to complete the Elcano challenge. (continuated:) (I know I've already made a thread about Elkano, but I think it's cleaner to start a new one) So Bob talked to Jeb about the idea, and then to Bill, and then to Val, and it was decided that they would go circumnavigate all the bodies in the Kerbol system (that have a surface, of course). False start counter: 1 False start #1: Here's the "official" flag: TBC
-
N 25
- 30,746 replies
-
- going off the rails!
- non-stop!
-
(and 3 more)
Tagged with:
-
N 21
- 30,746 replies
-
- going off the rails!
- non-stop!
-
(and 3 more)
Tagged with:
-
N 21
- 30,746 replies
-
- going off the rails!
- non-stop!
-
(and 3 more)
Tagged with:
-
[WIP] [1.12.x] HUDReplacer - (v1.2.11-beta)
Nazalassa replied to UltraJohn's topic in KSP1 Mod Development
Maybe try to execute Cursors.CursorController.Clear() on keypress, just to see what it does? I can't test rn. or just call whatever function that forces the cursor to update its textures, if there is one, at the end of HR's Update() . -
[WIP] [1.12.x] HUDReplacer - (v1.2.11-beta)
Nazalassa replied to UltraJohn's topic in KSP1 Mod Development
I proposed this one just to be sure HUDReplacer works in all scenes. The one before ( [KSPAddon(KSPAddon.Startup.Instantly, true)] ) would maybe have an effect on the cursor? That said, looking at cursordeleter's source yields that it uses KSPAddon.Startup.EveryScene , and it gets active right after game startup. So using it may make the mod do its stuff right on startup? IDK for I haven't tested it. Hold on, I'm looking at the KSP API for Cursors.CursorController ... (https://www.kerbalspaceprogram.com/ksp/api/namespace_cursors.html) Found this: Cursors.CursorController.DefaultCursor = <texture2d> changes the default cursor to whatever's in <texture2d>. Replace DefaultCursor with DefaultLeftClick and DefaultRightClick as needed. I still need to find a function to force cursor image updating, though. -
Hello hello!
-
[WIP] [1.12.x] HUDReplacer - (v1.2.11-beta)
Nazalassa replied to UltraJohn's topic in KSP1 Mod Development
So that explains why it didn't work first time, cuz I clicked (so that's not priority's fault) -
N 23 Could you check if your caps lock key is stuck?
- 30,746 replies
-
- going off the rails!
- non-stop!
-
(and 3 more)
Tagged with:
-
[WIP] [1.12.x] HUDReplacer - (v1.2.11-beta)
Nazalassa replied to UltraJohn's topic in KSP1 Mod Development
Found something! MM uses [KSPAddon(KSPAddon.Startup.Instantly, true)] which isn't present in HUDReplacer source. The function to call on startup is either Awake or Start . (have a look at https://github.com/sarbian/ModuleManager/blob/master/ModuleManager/ModuleManager.cs) @UltraJohn I made a pull request: https://github.com/UltraJohn/HUDReplacer/pull/3 Also maybe try adding [KSPAddon(KSPAddon.Startup.EveryScene, false)] so that it works in every scene? Dunno. (https://www.kerbalspaceprogram.com/ksp/api/class_k_s_p_addon.html) Maybe the normal cursor isn't basicNeutral#32x32 after all..?. -
[WIP] [1.12.x] HUDReplacer - (v1.2.11-beta)
Nazalassa replied to UltraJohn's topic in KSP1 Mod Development
So in fact the pressed images do work when priority is set to 65535, but not 8. I'm trying with 4294967295 (uint32 limit) Also I am browsing the source of mods that do stuff during startup (currently with ModuleManager) to try to find how to make stuff run at startup. Still doesn't work, trying priority 2147483648 (signed int32 limit) -
[WIP] [1.12.x] HUDReplacer - (v1.2.11-beta)
Nazalassa replied to UltraJohn's topic in KSP1 Mod Development
Trying right now (I may have to disable cursorDeleter) -- Nah, doesn't work, it does not replace WAIT I HAVE AN IDEA -
N 23 cAPS lOCK
- 30,746 replies
-
- going off the rails!
- non-stop!
-
(and 3 more)
Tagged with:
-
N 23
- 30,746 replies
-
- going off the rails!
- non-stop!
-
(and 3 more)
Tagged with: