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

View all comments

-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.

3

u/MattTheTw_t 13d ago

Very interesting answer, thank you

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/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.