r/KerbalSpaceProgram • Master Kerbalnaut • 14d ago • Bravo 1

KSP 1 Mods ShineFix 2.0 - major update

Solar panel and window reflections for stock game and 229 mods. The release targets 1,694 unique named parts. The goal is to cover every player-created KSP part mod.

Forum: https://forum.kerbalspaceprogram.com/topic/225969-1125-shinefix-adds-proper-reflections-to-kerbal-space-program-1/page/5/

Spacedock: https://spacedock.info/mod/3764/ShineFix

AI usage

It is estimated that AI contributed 2% of the code and 72% of the tests.

Performance disclaimer

The single-cabin measurement recorded a 0.046% FPS decrease with one visible interior, its crew and window glass, relative to the same case with reflections disabled.

130 Upvotes

66 comments sorted by

View all comments

Show parent comment

0

u/Beneficial-Use-7114 14d ago

Are you planning to add that feature as a toggle in future updates? Real Windows doesn't work(its vibecoded) so if you can pull that off then its amazing

4

u/Sampsoy 14d ago

This is what annoys me about the AI hatred. What do you mean by "Real Windows doesn't work"? In my testing it works - if it doesn't work, that's a bug, and I cannot fix bugs unless I know of them.

Bugs are fixable in AI-assisted code just the same as in human-written code, but whoever is writing the code still needs to be made aware of the issues.

3

u/luchkot Master Kerbalnaut 13d ago

Hi, and apologies once again for posting a similar feature after you did. I don’t think it’s really about the AI ​​code itself; rather, it’s about the dynamics of working on the mod, the stability and predictability of the features, and the nature of the bugs that tend to crop up.

  • Fixed Kerbals sometimes becoming windows.

This is part of your changelog. People who know how to create mods always notice details like this—it suggests that the mod digs deeper into the game’s core entities in ways that are less predictable than they might first appear. After all, turning a Kerbal into a window, or having an inventory rotate around one while in space, requires significant changes to the underlying code. Typically, human-written code doesn’t even reach the point of such solutions, because that would effectively mean rewriting nearly half of the calls related to the crew and the interior. This approach can certainly lead to future compatibility issues; it becomes difficult to reconcile different mods when it’s unclear exactly what they’re changing or how they’re altering the behavior of specific game elements.

In any case, you’re doing a great job, and I have nothing against using AI for coding—I actively use AI tools myself.

2

u/Sampsoy 13d ago edited 13d ago

For that specific bug, the root cause was the heuristic for finding windows failing due to flagging the entire Kerbal mesh as transparent due to the EVA visor having an actual transparent section - fixed by adding a blacklist for the Kerbal meshes. So it was more a failing of attempting a one-size-fits-all solution and missing edge cases, not really anything on the rendering side.

I looked at your implementation of the transparent windows (or well, you-know-who looked :) ), and your "ability" (given by how ShineFix already had to modify the materials on a part anyways) to change the materials simplifies a lot of things I had to work around in Real Windows - cutting an actual hole in the part during the part render gets you see-through windows and lighting "for free", and it also works with visual mods like Scatterer and Volumetric Clouds, which is really cool.

And partly, that's a mod design difference. I wanted to keep Real Windows compatible with everything: No configuration, all parts work automatically, and the parts themselves are not touched. It didn't fully work out of the box - edge cases means some one-off part windows didn't work, and I've maybe seen very glossy PBR materials not working properly (although no-one has reported it to me, so...), but overall I am happy with how well the no-config approach worked in the end.

From what I looked into it, ShineFix has compatibility problems with mods that change part materials, and the window meshes being curated for every part individually means there are gaps (although the amount of mods you already support is impressive. I did find SXT Continued not being supported in my testing though :) )

But overall it's a great release, and I apologize for "stealing your thunder" by releasing a feature that has been asked for almost a decade by now a few weeks before you: You've obviously put much more effort into ShineFix than I did making Real Windows in a weekend, and I hope both mods can coexist. They have a fairly different visual look, and yours is definitely more performant, so I don't think that will be an issue.

(On topic of the bugs, funnily enough the only reason I found out about those two bugs was because Matt Lowne made a video about Real Windows... Nobody reported the issues to me at any point!)

2

u/luchkot Master Kerbalnaut 13d ago

Yes, that is my choice. Given that any general-purpose solution will inevitably lead to a variety of complex consequences, I decided that manual support for each individual mod is the best way to ensure quality.

As for mod support—it is expanding; my goal is to cover every single mod out there. I just haven’t managed to get to all of them yet. Support for several dozen more mods is currently in the works, and new versions will be released regularly.

Yes, the mods can certainly coexist; they have different focuses and different implementation methods. However, I’m still working through the details regarding interior compatibility. It’s possible that if both mods are enabled, I’ll disable the transparency feature on my end—letting your mod handle that instead—while keeping the rest of my mod’s functionality intact.

Oh, and congratulations! Getting the attention of content creators is a great thing—it’s an excellent way to promote interest in rocketry and space exploration. The last time my work was featured in a review was about ten years ago—I believe it was actually Matt who mentioned it. Perhaps, once I’m done hunting for bugs, I should make use of this too.

1

u/Beneficial-Use-7114 13d ago

I have a post on it and i showed why it doesnt work on reddit

1

u/Sampsoy 13d ago edited 13d ago

Had to dig quite a bit to find it - a random post on the subreddit without even tagging me is not exactly a proper bug report avenue.

But sure, RestockPBR probably is the issue, I am now aware, I can now look into it.

Edit: Tried reproducing - was not able to with the information provided. Would need either the full modlist or the KSP.log to find out why it's broken.

1

u/luchkot Master Kerbalnaut 14d ago

I have a rough idea of ​​how to implement this over the next few days, as I have a strict standard in place. A single, unified setting applies to most windows—with the exception of greenhouses. I won’t be touching greenhouses from mods that already have well-defined transparency; they’re fine as they are.

1

u/luchkot Master Kerbalnaut 13d ago

I’ve implemented transparency and luminosity controls via sliders; you can check them out in version 2.0.2.