-
Posts
1,480 -
Joined
-
Last visited
Content Type
Profiles
Forums
Developer Articles
KSP2 Release Notes
Everything posted by Nazalassa
-
kspbutitsfine
-
[WIP] [1.12.x] HUDReplacer - (v1.2.11-beta)
Nazalassa replied to UltraJohn's topic in KSP1 Mod Development
I'll do all that before anything else: NOTES ======= Astronaut Complex -> Top bar: mainBorder_top#6x33 -> Crewmember bg: vsd_widget_crew_bg#30x54 -> Accept crewmember: vsd_widget_crew_button_v#22x54 (tick) vsd_widget_crew_button_v_over#22x54 (tick) vsd_widget_crew_button_v_down#22x54 (tick) -> Remove crewmember: vsd_widget_crew_button_x#22x54 (cross) vsd_widget_crew_button_x_over#22x54 (cross) vsd_widget_crew_button_x_down#22x54 (cross) -> Slider: vsd_slider_fill#29x11 vsd_slider_bg#29x11 -> Level: lvl0#85x17 lvl1#85x17 lvl2#85x17 lvl3#85x17 lvl4#85x17 lvl5#85x17 -> Suit switcher: kerbal_switch_suit#32x32 -> Tabs: tab_std_normal#44x24 -> scrollbarVknow#16x182 scrollbarHknow#182x16 VAB: Blue_Btn_Normal#40x18 Blue_Btn_Over#40x18 Blue_Btn_Active#40x18 Blue_Btn_Inactive#40x18 gen_btn_right_normal#22x32 gen_btn_right_over#22x32 gen_btn_right_active#22x32 gen_btn_right_inactive#22x32 gen_btn_left_normal#22x32 gen_btn_left_over#22x32 gen_btn_left_active#22x32 gen_btn_left_inactive#22x32 pin_toggle_on#32x32 pin_toggle_off#32x32 numeric_toggle_on#32x32 numeric_toggle_off#32x32 Flow_Enabled#18x18 Flow_Disabled#18x18 EditorButtons_New EditorButtons_Load EditorButtons_save EditorButtons_Launch EditorButtons_Symmetry_stateMap#384x256 EditorButtons_MirrorSymmetry_stateMap#128x256 EditorButtons_Symmetry_norm#128x128 EditorButtons_Symmetry_hover#128x128 EditorButtons_Symmetry_act#128x128 EditorButtons_Symmetry_disabled#128x128 app_divider_pulldown_header_xxx#30x17 Do you know the name of the texture for the grey bar on top of the screen? I couldn't find it. -
N -1
- 30,739 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
Thanks :) I think I'll make it a new theme for KSP (I have plenty of time to kill this week) I just loaded all scenes and dumped the list of names of textures, then copied those that didn't start by Squad/ or something (those that aren't in GameData) to a new file, then sorted the file. Now I know all the names that are present in the scenes I loaded (settings, astronaut complex, VAB, etc.) so that if I find the name of one texture I can deduce the name of other textures. (for the same thing. sorry if what I say is all but understandable) -
N -1 Nothing really changed since last new page...
- 30,739 replies
-
- going off the rails!
- non-stop!
-
(and 3 more)
Tagged with:
-
totm aug 2023 What funny/interesting thing happened in your life today?
Nazalassa replied to Ultimate Steve's topic in The Lounge
Happy birthday! -
Thread.ressucitate()
-
More shenanigans...
-
[WIP] [1.12.x] HUDReplacer - (v1.2.11-beta)
Nazalassa replied to UltraJohn's topic in KSP1 Mod Development
The fix works perfectly :) I'm trying to get as much names as possible, and I propose that, for clarity, HUDReplacer prints a thick line ( [][][][][][][][][] ) to the log before spitting all the names when "d" is pressed, because else it's hard to make the difference between the outputs of two consecutive presses of "d" (if nothing's logged between them). Understand: it will improve readability if someone presses "d" a lot of times in a row. I have made a pull request: https://github.com/UltraJohn/HUDReplacer/pull/1 Oh, btw, here's what I have been doing all the afternoon: I'm planning to make the, um, let's call it "theme", once I'll have done all the space center and VAB/SPH buttons. -
I'll try. (in five minutes since I'm scheduling a system reboot rn) How long will it stay?
- 4,948 replies
-
- ksptot
- mission planning
- (and 3 more)
-
N -1
- 30,739 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
I've messed around quite a bit with HUDReplacer, and I think I already have a bug report... I think I've found a pretty nasty issue, when HUDReplacer fetches the files from a config (filePath = GameData/ExampleMod/PluginData/ for example), it follows the path from the current directory, and not the KSP directory! (the current directory is the directory (or folder) from where the game was launched, not necessary the KSP directory.) For example, I have a shortcut on my desktop to launch KSP, so the directory from which KSP is launched is /home/whateverMyUserNameIs/ , so when HUDReplacer searches the directory GameData/ExampleMod/PluginData/, it actually looks at /home/whateverMyUserNameIs/GameData/ExampleMod/PluginData/ (which does not exist, as KSP isn't installed in /home/whateverMyUserNameIs/ ), and not at /home/whateverMyUserNameIs/Utility/KSP/GameData/ExampleMod/PluginData/ which is where it actually is. I learned all that from KSP.log where it said something like this: error, can't find directory /home/whateverMyUserNameIs/GameData/ExampleMod/PluginData/ . So, in order to load the images, I had to specify the following path: Utility/KSP/GameData/ExampleMod/PluginData/ ( /home/whateverMyUserNameIs/Utility/KSP/GameData/ExampleMod/PluginData/ also works). However, that makes texture packs (etc.) not portable, as different installs of KSP can be in different folders, and the current directory is not always the KSP directory, which is (at least in my opinion) a big issue. --] POSSIBLE PATCH [-- After browsing HUDReplacer's source code, I think I found the culprit: in HUDReplacer.cs , line 113: Directory.GetFiles(filePath, "*.png"); This function seems to looks for a directory that is either an absolute directory (path starts with C:\ or / for example), or a sub-directory of the "current directory". So, to fix that issue, the simplest idea would be perhaps to replace filepath by something like KSP_directory + filePath , and that would ensure that the mod loads correctly paths like GameData/ExampleMod/PluginData . By looking at the source of Navball Texture Changer (file NavBallTextures.cs , line 88) (https://github.com/linuxgurugamer/NavBallTextureChanger/blob/master/Source/NavBallTexture.cs) I found that they used this: KSPUtil.ApplicationRootPath + "GameData/NavBallTextureChanger/PluginData/" So it appears that what we're searching is KSPUtil.ApplicationRootPath ! I don't know if you need to add something like using KSPUtils , but I found it in the KSP API (https://www.kerbalspaceprogram.com/ksp/api/class_k_s_p_util.html#a60726f2d6045af932ffa222c8473424e). So I guess you don't need to... So, in a nutshell: a possible patch would be to replace Directory.GetFiles(filePath, "*.png"); by Directory.GetFiles(KSPUtil.ApplicationRootPath + filePath, "*.png"); . Ah, one last thing: you should maybe update the readme to indicate that, in the developer version, pressing 'e' dumps all images loaded to the log and, most importantly, pressing 'q' refreshes the loaded images. (key-binds found in HUDReplacer.cs) Nice mod btw. I can't wait to play KSP 95 -
N -1
- 30,739 replies
-
- going off the rails!
- non-stop!
-
(and 3 more)
Tagged with:
-
N -1
- 30,739 replies
-
- going off the rails!
- non-stop!
-
(and 3 more)
Tagged with:
-
totm aug 2023 What funny/interesting thing happened in your life today?
Nazalassa replied to Ultimate Steve's topic in The Lounge
Congrats! -
Wheee
-
I don't think it's running out of disk space, as I still have 360 GiB left.
- 4,948 replies
-
- ksptot
- mission planning
- (and 3 more)
-
N -1
- 30,739 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
You should include the example textures in the zips (currently they are only in the source code) No, wait, you actually have to download the entire source code to get them. -
N -1
- 30,739 replies
-
- going off the rails!
- non-stop!
-
(and 3 more)
Tagged with:
-
[1.12] KerbalSports Returns! Everyone's favorite KSP fishing mod
Nazalassa replied to JonnyOThan's topic in KSP1 Mod Releases
The fishes now speak French https://github.com/jrossignol/KerbalSports/pull/7