PhilippeDS
Members-
Posts
15 -
Joined
-
Last visited
Content Type
Profiles
Forums
Developer Articles
KSP2 Release Notes
Everything posted by PhilippeDS
-
2.5x Scaled Missions [v0.3.1 for KSP2]
PhilippeDS replied to PhilippeDS's topic in KSP2 Mod Releases
It is possible but not from the actual patch. All the values are hardcoded for 2.5x. So it's possible to do new patches for 10x. Do you use any particular mod? -
Hi. I don't really understand the method .perturbed_orbit for an orbit. I don't have the same results than the expected orbit an a node. Is it normal? CONSOLE.clear() const this_obt = vessel.orbit CONSOLE.print_line(this_obt.eccentricity.to_fixed(6)) CONSOLE.print_line(this_obt.periapsis.to_fixed(0)) CONSOLE.print_line(this_obt.apoapsis.value.to_fixed(6)) CONSOLE.move_cursor(CONSOLE.cursor_row + 1,0) let temp_obt = this_obt.perturbed_orbit(this_obt.next_periapsis_time(), vec3(0,0,500)) let new_node = vessel.maneuver.add_burn_vector(this_obt.next_periapsis_time(), vec3(0,0,500)).value CONSOLE.print_line(temp_obt.eccentricity.to_fixed(6)) CONSOLE.print_line(temp_obt.periapsis.to_fixed(0)) CONSOLE.print_line(temp_obt.apoapsis.value.to_fixed(0)) CONSOLE.move_cursor(CONSOLE.cursor_row + 1,0) temp_obt = new_node.expected_orbit CONSOLE.print_line(temp_obt.eccentricity.to_fixed(6)) CONSOLE.print_line(temp_obt.periapsis.to_fixed(0)) CONSOLE.print_line(temp_obt.apoapsis.value.to_fixed(0))
-
I've created this new function using UI. In the UI, you see the current time and you have a button to warp. use { CONSOLE } from ksp::console use { yield, current_time } from ksp::game use { warp_to } from ksp::game::warp use { floor } from core::math use { screen_size, open_window, Align } from ksp::ui pub fn main_editor () -> Unit = { CONSOLE.clear() create_window() } fn create_window() -> Unit = { const myScreen = screen_size() const window_width = myScreen.x/5 const window_height = 50 const main_window = open_window("<b>CURRENT TIME</b>", (myScreen.x-window_width)/2, myScreen.y - 20, window_width, window_height) const hours_per_day = 6 const now_time: Cell<float> = Cell(current_time()) const now_time_days: Cell<float> = Cell(0) now_time_days.value = floor(now_time.value / (hours_per_day*3600)) const days_in_game: Cell<float> = Cell(0) days_in_game.value = now_time_days.value + 1 const now_time_hours: Cell<float> = Cell(0) now_time_hours.value = floor((now_time.value - now_time_days.value*(hours_per_day*3600)) / 3600) const now_time_minutes: Cell<float> = Cell(0) now_time_minutes.value = floor((now_time.value - now_time_hours.value*3600) / 60) const now_time_seconds: Cell<float> = Cell(0) now_time_seconds.value = floor(now_time.value - now_time_hours.value*3600 - now_time_minutes.value*60) const main_box = main_window.add_vertical(10.0, Align.Stretch) const detail_box = main_window.add_horizontal(10.0, Align.Center) main_window.add_spacer(20,0) const warp_box = main_window.add_vertical(10.0, Align.Stretch) const now_time_label = main_box.add_label("Current time (s):", Align.Stretch, now_time.value) now_time_label.bind(now_time, "Current time: {0:N2} s") const days_label = detail_box.add_label("day:", Align.Center) days_label.bind(days_in_game, "{0:N0} d") const hours_label = detail_box.add_label("hour:", Align.Center) hours_label.bind(now_time_hours, "{0:N0} h") const minutes_label = detail_box.add_label("min:", Align.Center) minutes_label.bind(now_time_minutes, "{0:N0} min") const seconds_label = detail_box.add_label("sec:", Align.Center) seconds_label.bind(now_time_seconds, "{0:N0} s") const warp_input_box = warp_box.add_horizontal(10.0, Align.Stretch, 10.0) const warp_label = warp_input_box.add_label("Warp (in seconds):", Align.Start) const warp_value = warp_input_box.add_float_input(Align.Start, 10.0) warp_value.value = 0 const warp_button = warp_box.add_button("WARP", Align.Center) warp_button.on_click(fn() -> { const now = current_time() const deltaT = warp_value.value warp_to(now + deltaT) }) while(!main_window.is_closed) { now_time.value = current_time() now_time_days.value = floor(now_time.value / (hours_per_day*3600)) days_in_game.value = now_time_days.value + 1 now_time_hours.value = floor((now_time.value - now_time_days.value*(hours_per_day*3600)) / 3600) now_time_minutes.value = floor((now_time.value - now_time_days.value*(hours_per_day*3600) - now_time_hours.value*3600) / 60) now_time_seconds.value = floor(now_time.value - now_time_days.value*(hours_per_day*3600) - now_time_hours.value*3600 - now_time_minutes.value*60) yield() } }
-
Hello. Is it possible de create a new txt file with Kontrol System 2, and to write/read this file? My ideas: - create a log mission file for each my mission - create a experiment file where I store all the science experiment already done to exclude them for the next flights. Thanks for your answers.
-
2.5x Scaled Missions [v0.3.1 for KSP2]
PhilippeDS replied to PhilippeDS's topic in KSP2 Mod Releases
The values was given in km instead of in meters so the mission wasn't validated even with a craft in a Keostationary orbit. -
2.5x Scaled Missions [v0.3.1 for KSP2]
PhilippeDS replied to PhilippeDS's topic in KSP2 Mod Releases
v 0.3.1 is on spacedock. The Keostationary Orbit mission has been fixed. -
SCALED MISSIONS Updates the mission in Exploration Mode to match the 2.5x scale of Kerbolar System. Spacedock: https://spacedock.info/mod/3564/ScaledMissions Github: https://github.com/PhilouDS/ScaledMissions Author: @PhilippeDS with the kind help of @cheese3660 Known Issues: The Keostationary Orbit mission is not validated even if the conditions are met. Let me know if you find something wrong Dependencies: KerbolarUpscale >= 0.3.0 PatchManager >= 0.5.0 SpaceWarp >= 1.7.0
-
Hi! I created some easy functions to use inside the VAB with Kontrol System 2. Let me know what you think about this. https://github.com/PhilouDS/KontrolSystem2_personal_scripts/tree/main/to2Local/VAB
-
I learned how to use github and I push a request. I found how to add the button in the VAB for Kontrol System.
-
Hi! Is it possible to add a shortcut for Kontrol System in the app tray of the VAB please? Thanks.
-
Hi! I'm trying some functions inside the VAB using main_editor(). I have access to Kerbin information with find_body("Kerbin") but I wish to have access to my ship's information. Is it possible? As in main_flight, I try with main_editor(vessel: Vessel) but it didn't work. I assumed that function can't have any parameter. I try with a string parameter: after rebooting, my file was deleted from the entrypoints. Thanks for your help.
-
[1.2.2 / 1.3] Career Evolution Contract Pack
PhilippeDS replied to pap1723's topic in KSP1 Mod Releases
@pap1723 I'm French and I'm using Career Evolution Contract Pack. I love it! So, first of all: thank you!! I'd like to translate all this contract pack in French but I don't know how to do. Can you help me? I'm still new in this forum so I can't send you directly a message, sorry. Cheers, Philippe -
[1.12.X] Kerbal Planetary Base Systems v1.6.15 [28. April 2022]
PhilippeDS replied to Nils277's topic in KSP1 Mod Releases
Thank you Nils277 for your answer and your very great job ! -
[1.12.X] Kerbal Planetary Base Systems v1.6.15 [28. April 2022]
PhilippeDS replied to Nils277's topic in KSP1 Mod Releases
Hi, I'm a newbie in KSP and I play the french version. This mod works very well so, first of all, thank you very much. Neverless, the kspedia page doesn't appear in my kspedia menu. What can I do? Thank you.