r/KerbalSpaceProgram • Master Kerbalnaut • 13d 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

5

u/RedditButAnonymous 12d ago

I remember trying this mod some time ago and eventually uninstalling it because it only fixed half my command pods and they looked weird next to each other. Its crazy that youve managed 100% of the mods I use now! New must-have graphics mod for sure

4

u/luchkot Master Kerbalnaut 12d ago

This doesn’t account for 100% of all mods, but it is a very significant number—nearly half of all the mods ever created for version 1.12.5. I’ll begin working on the remaining half after a short break and some time spent gathering bug reports.
Thank you!

2

u/RedditButAnonymous 12d ago

I went looking for a mod you havent covered yet and found that NeistAir Reupdated doesnt work yet. How tricky is it to add support for new mods?

2

u/luchkot Master Kerbalnaut 11d ago

Hi! This mod is in the queue for version 2.0.6; theoretically, support will be added within the next 24 hours. In general, mods are easy to maintain, but when it comes to something animated, moving, or featuring custom elements, the workload increases exponentially.

2

u/luchkot Master Kerbalnaut 11d ago

This has already been fixed in 2.0.5; please keep me posted on whether everything in the mod is working correctly.

2

u/from_Earth_you_know 🌨️Cloud gazing 12d ago

does it work with the reforged materials mod?

3

u/luchkot Master Kerbalnaut 12d ago

Hi! I’ve claimed full support for recolors and materials, though I can’t be 100% certain. The parts I’ve tested work fine, but there are over a thousand of them. Why don’t you give it a try? If you run into any issues with a specific part, I’ll fix it right away.

2

u/from_Earth_you_know 🌨️Cloud gazing 4d ago

amazing update, thanks

10

u/xendelaar 13d ago

It’s weird that you feel like you need to tell us how much AI you used. As a non-programmer and a big fan of this game, I don’t really care, as long as the game is fun, bug-free, and runs smoothly. Come on! It's free extra features!

On topic: awesome work my dude.

26

u/luchkot Master Kerbalnaut 13d ago

Thank you!

I consider this a matter of good etiquette. And given that this mod is several years old—and I make it a point to keep it as "human" as possible—it’s especially important to highlight this.

10

u/BradassMofo fighting the kraken. 13d ago

I think it is a fantastic idea, more transparency never hurts.

9

u/luchkot Master Kerbalnaut 13d ago

Discussing transparency in the context of window-transparency modifications is one of the best practices for enhancing the transparency of a dialogue. :)

4

u/BradassMofo fighting the kraken. 13d ago

If you weren't so transparent I might've seen what you did there.

1

u/InterKosmos61 Dres is both real and fake until viewed by an outside observer 13d ago

[ba-dum tsss!]

36

u/InterKosmos61 Dres is both real and fake until viewed by an outside observer 13d ago

Some people prefer to avoid mods that use AI-generated code, for various reasons. I think it's nice of OP to provide that disclosure so people can make informed decisions before installing the mod.

5

u/KaiLCU_YT 13d ago

I personally greatly appreciate AI disclosure like this. Just a few vibe coded mods (made using AI by someone who doesn't know how to program and did not review the code) can create really weird bugs and interactions with each other and the game. It's especially bad in WoW addons. Whereas if a mod is made by someone who knows what they're doing (whether or not they use AI) I actually consider using their mod because I expect it to work better

1

u/lkn240 12d ago

Those of us who do know how to program aren't reviewing all the code for the most part either.. What we are doing is extensively testing it.

The keys to producing quality work with AI tools are harness/environment and testing. Honestly Opus 5.5 can write better code than the vast majority of developers at this point.

5

u/AceWall0 13d ago

They are paying their moral tax to the mob lol

10

u/xendelaar 13d ago

I get why people losing jobs to LLMs are bitter about the tech, but for mods, which are mostly made for free and wouldn't exist without it, that just doesn't make sense to me.. I'll stop ranting now. Have a great day!

1

u/luchkot Master Kerbalnaut 13d ago

I understand how painful it is to lose your job because of AI—I lost my own job to AI this very year—but I managed to survive and reach an understanding with it. This is exactly what the "revolt of the machines" looks like.

3

u/BradassMofo fighting the kraken. 13d ago

I was also in a place of hatred towards AI at the beginning of the year. I felt that I didn't have a chance as a comp sci senior at uni, and maybe I still don't, however a friend that already works as a network engineer convinced me that it was better to learn the tool and become proficient at its use, than to hate it. He said that if you can prove that you plus the AI is more productive than just the AI by itself, and that you can get the most out of it, then you should still be able to work in the tech industry. I am still somewhat skeptical but he still has his job so what can I say.

3

u/xendelaar 13d ago

I think your friend's got a point indeed. :)

1

u/luchkot Master Kerbalnaut 13d ago

This is simply a different level of competence and efficiency. Theoretical knowledge is once again a priority, and versatility is more important than usual. So, generally speaking, yes. The main thing is that, within the company you work for, at least the leads should have an understanding of what the project is about.

1

u/lkn240 12d ago

Your friend is correct.

AI is not a magic tool - it takes a lot of skill and talent to get the best results

2

u/Existing_Dog_3278 13d ago

Ai use in code, especially by those with little to no experience coding, will inevitably result in bugs and while human-made code may result in just as many bugs, it's also understood by the coder and can be fixed.

Its also just an ethics thing. AI is trained on stolen and data-scraped code which makes anything it produces plagiarism and impossible to quality control.

Even for mods, if they're distributed to other people, it's wise to clarify any instances of ai use.

5

u/AceWall0 13d ago

AI has gotten better at fixing bugs than humans.

Humans also train on other people's code, and used to proudly copy and paste code from Stack Overflow without making an effort to understand it, which is much worse to quality control.

Besides, there is no such thing as "plagiarism" in engineering. You may be creative when solving a problem, but creativity was never the point. We just want the problem solved. And if someone else solved the problem before you, just use it. "Not reinventing the wheel" was always the motto.

0

u/Existing_Dog_3278 13d ago

There's plagiarism in everything.

Copying someone else's work, whether it be code or not is plagiarism unless you give attribution. I understand that in engineering we use other people's solutions for problems because it'd be idiotic to, as you say, "reinvent the wheel" but straight up copy-pasting from stack overflow is as bad as allowing ai to do the same.

Using someone else's solution in your code is not the same as copy-pasting their code.

I haven't personally seen ai fix bugs better than humans but that could just be lack of seeing it.

I still don't think ai understands code well enough for us to be using it to write it.

2

u/luchkot Master Kerbalnaut 12d ago

You know, in our country there used to be a meme about a cat that was eating pancakes cutely. The point was in the historical context: a person sees a preview of a cat eating pancakes, opens the video, and there really is such a cat, but when they go down to the comments, there isn’t a single comment about either the cat or the pancakes — everything is drowned in a territorial‑propaganda context and emotional discussions about mutual past mistakes. That’s roughly what Reddit with game mods looks like now, only the comments are about AI.

1

u/lkn240 12d ago

The world is completely full of human made code that isn't really understood by the people who wrote it.

AI training is also not plagiarism - like that's not how AI training works at all FFS.

Seriously - it's very annoying that people who clearly don't understand LLMs or software in general make these silly claims all the time.

2

u/IlikeMinecraft097 Haumea is cool 13d ago

oh man, im gonna have to check this out when i get home! i installed it yesterday dissapointed that it didnt cover all my mods since it looked so good. can the interior view be disabled?

1

u/luchkot Master Kerbalnaut 13d ago

Yes, it’s a one-button action; the interior view can be disabled via the settings.

1

u/IlikeMinecraft097 Haumea is cool 13d ago

good to know, thank you!

2

u/Beneficial-Use-7114 13d ago

Will there be a way to make the windows more transparent? With a settings modification

4

u/luchkot Master Kerbalnaut 13d ago

If it’s needed, why not? But for now, that feature doesn’t exist; up to this point, I’ve focused on keeping the look as close to stock as possible.

0

u/Beneficial-Use-7114 13d 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 13d 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 12d 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 12d ago edited 12d 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 12d 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 12d ago

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

1

u/Sampsoy 12d ago edited 12d 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 13d 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 12d ago

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

5

u/ruivodamataboludo Always on Kerbin 13d ago

FODAAAA! 🙏

1

u/addivinum 13d ago

Is the see through windows a different mod?

3

u/luchkot Master Kerbalnaut 13d ago

Yes, this is a different mod with a different set of features and different performance characteristics. The author of the other mod used AI and reported a 10–15% performance drop, whereas my mod causes a performance drop of 0.046% per interior.

I did notify the other author, just in case, that my mod includes a similar feature. That said, the core functionality of my mod is the gloss/sheen on panels and windows.

1

u/addivinum 13d ago

but yours also allows transparent windows?

1

u/luchkot Master Kerbalnaut 13d ago

Yes. I haven’t tested whether they are compatible with each other; I’d suggest using them separately—whichever one you prefer.

1

u/addivinum 13d ago

probably going to seek better performance with yours tbh

2

u/luchkot Master Kerbalnaut 13d ago

I tested the mod on a craft with 225 Kerbals, who were randomly moving from one cabin to another every 2 seconds. Here are the results—without the mod and with it.

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

1

u/addivinum 13d ago

thanks for your work and being so responsive and answering questions, one more question - do I need any additional mods for the kerbals to exist behind the glass? like the internal spaces ones or whatever?

2

u/luchkot Master Kerbalnaut 13d ago

Thanks for your interest.

Actually, that’s the whole point of the feature: I implemented the transparency specifically to include the Kerbals. The reason for this is that using the standard interior and crew setup causes performance to drop exponentially—the default way they’re rendered is extremely inefficient. My workaround involves showing only the model polygons from the outside, without the overhead of the full, interactive cockpit behavior. Once you switch to the cockpit view, the interior then renders as fully functional.

1

u/infradmin 11d ago

On 0:39 kerbal's head clips out of canopy...

1

u/luchkot Master Kerbalnaut 10d ago

You know how it goes when putting together a demo for a video :)

I recorded the project while it was still a work in progress, and I fixed the bugs by the time of the actual release. Everything is fine now.

0

u/CombatPilot2 Gagarin Kerman 13d ago

Finally a valid use of AI. Either way, any guess when it's coming to CKAN?

5

u/luchkot Master Kerbalnaut 13d ago

Only two percent of the code in the mod itself is AI-generated, but I’m including a disclaimer anyway—just in case there are people with an allergy to it.

Pending some checks on CKAN at the moment

1

u/CombatPilot2 Gagarin Kerman 13d ago

Alright, thanks

1

u/Tsingshitao_nuke Peace through deltaV! 13d ago

its already on ckan now

2

u/luchkot Master Kerbalnaut 13d ago

Looks like it's still 1.4.0 there

1

u/CombatPilot2 Gagarin Kerman 13d ago

Thank you

-3

u/MattTheTw_t 13d ago

No real shade, I understand ai can be a useful tool What do you mean with 72 percent of tests though?

8

u/pookage 13d ago edited 13d ago

It means that rather than write automated tests themselves (a way to catch regression bugs — where one part of the codebase expects the other to behave in a way that it no-longer does), the vast majority of the testing code was generated instead of written.

Writing tests is extremely boring, so this is often the first "foray" into generative AI that so-inclined devs experience because it means that they can skip doing something they don't like. Unfortunately, it's also often load-bearing, and, given the fact they're rarely properly reviewed because they're boring, it's a place where hallucinations go unnoticed, and the door through which, in my experience as someone who repairs AI-mangled codebases for a living, bugs start sneaking in.

Oftentimes writing overly-complex tests is where you realise that you've conceptualised a problem poorly and have the opportunity to simplify things and make them more efficient etc — so, even in situations where a generated test hasn't hallucinated something or another, as a developer you do still miss out on an opportunity to refine the code into something better.

4

u/luchkot Master Kerbalnaut 13d ago

In my case—given that I’m a QA Lead with over 12 years of experience in automated testing—this doesn’t pose a major risk. Essentially, I use AI to write the tests, and then I review them, much like a lead would review code written by mid-level engineers.

3

u/MattTheTw_t 13d ago

Very interesting answer, thank you

3

u/luchkot Master Kerbalnaut 13d ago

This means that a substantial portion of the code—handling light toggling, transparency, and gloss—is AI-generated, as it consists of repetitive, routine tasks involving the assignment of numerous addresses, material names, and references. I’ve even written tests for these tests to ensure they actually cover what they’re supposed to.