TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

KSP2 is spamming the Windows Registry until the game stops working

272 pointsby firewireover 1 year ago

26 comments

tyingqover 1 year ago
One of the comments mentions this:<p><i>&quot;Alright, doing some investigating it seems that they are saving the Pqs preferences based off of the instance ID of the pqs object, which, according to unity&#x27;s own documentation, changes between runs of the game, hence why its saving 10 trillion different copies of the same data&quot;</i><p>So, somebody didn&#x27;t notice a &quot;changes every game&quot; instance ID was in the path and&#x2F;or data. They thought they were overwriting a single key.
评论 #37647041 未加载
评论 #37646668 未加载
评论 #37646831 未加载
评论 #37649538 未加载
评论 #37650685 未加载
SketchySeaBeastover 1 year ago
KSP2 is really becoming the premier example of &quot;Nearly perfect labour of love&#x27;s legacy ruined after being bought by a larger company.&quot;<p>More on topic: I have no idea why one would want to use the registry to store this information.
评论 #37645574 未加载
评论 #37647162 未加载
评论 #37645579 未加载
评论 #37646410 未加载
评论 #37645748 未加载
评论 #37646946 未加载
评论 #37646055 未加载
评论 #37654497 未加载
评论 #37646870 未加载
kortexover 1 year ago
It feels like the Windows Registry is one of those well-intentioned ideas that ended up being a tremendous mess in actual implementation. &quot;Let&#x27;s use a central database to store things that the OS, drivers, and UI need to access&quot; somehow became &quot;half assed KV dumping ground for every process and their dog to litter with whatever while acting as a singular bottleneck&quot;.<p>See also: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=32275078">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=32275078</a>
评论 #37646573 未加载
评论 #37646596 未加载
评论 #37645915 未加载
评论 #37646716 未加载
评论 #37650795 未加载
评论 #37647015 未加载
评论 #37645741 未加载
dotnet00over 1 year ago
KSP2 had all the warning signs of being a disaster ever since the initial delays and controversies with the original studio. Unfortunately, as usual, the community put on hype blinders until it became impossible to ignore.
评论 #37646388 未加载
评论 #37647205 未加载
评论 #37645537 未加载
评论 #37647415 未加载
Xeamekover 1 year ago
People in both threads shit on devs as if they manually modified registry with a crappy script at that, but this is the official Unity API and this is the idiomatic way to store preferences.<p>Ofcourse, it is unfortunate to have bug here of all places, but it looks like people don&#x27;t like KSP2 devs in general (maybe even for good reasons, I don&#x27;t know) and try to exaggerate this issue as some kind of proof, when in reality there is none
评论 #37647196 未加载
Pannoniaeover 1 year ago
Not surprised at all; KSP as a franchise is in the enshittification stage where they aim to invest the minimum amount of money and maximise returns. This is just simply inexcusable software engineering <i>and</i> quality control.<p>Bit tangential but I&#x27;d like to remind everyone that this is the game where the lead designer (?) said that wobbly rockets and physics bugs are adding to the fun of the game, and they are implemented deliberately. This is doomed.
评论 #37645637 未加载
评论 #37645662 未加载
评论 #37645533 未加载
评论 #37656745 未加载
评论 #37645506 未加载
elzbardicoover 1 year ago
I haven&#x27;t done Windows native development for over 20 years, but at my time during the 90&#x27;s we already used the registry rather sparingly. And at this time, cross-platform development was not even in our radars.<p>I wonder how in the Year of Our Lord of 2023 someone feels confortable using the Windows Registry like some kind of blackboard.
评论 #37647123 未加载
评论 #37646656 未加载
bloqsover 1 year ago
Honestly when the brains come together on hackernews to reverse engineer and unfuck a high profile videogame I get unreasonably excited. The guy that fixed the GTAV loading times via identifying a broken JSON loop downloading cosmetics was astonishing to me
评论 #37648046 未加载
londons_exploreover 1 year ago
Adding 322 mb of data to the registry isn&#x27;t going to be healthy for windows either.<p>Registry hives expand but don&#x27;t contract again. The registry is effectively held entirely in RAM. You are therefore effectively wasting 322 mb of RAM even when KSP isn&#x27;t running.
评论 #37654755 未加载
评论 #37647251 未加载
评论 #37646500 未加载
评论 #37648016 未加载
Xeamekover 1 year ago
People in both threads shit on devs as if they manually modified registry with a crappy script at that, but this is the official Unity API and this is the idiomatic way to store preferences.<p>Ofcourse, it is unfortunate to have bug here of all places, but it looks like people don&#x27;t like KSP2 devs in general (maybe even for good reasons, I don&#x27;t know) and try to exaggerate this issue as some kind of proof, when in reality there is nonw
thisiswaterover 1 year ago
Unity&#x27;s default save system &quot;PlayerPrefs&quot; saves to the registry, but I find it difficult to see why this is a good idea for anything but global settings (e.g. graphics settings). Serialization to JSON is a fairly simple alternative.<p>Why would this be used for player data in a production game? It&#x27;s frustrating to port playerprefs data between systems for testing purposes. Is there something I&#x27;m missing?
ad-astraover 1 year ago
As a teenager I played so much KSP that my grades suffered, played KSP2 a few days ago &amp; did a moon landing, the game has a long way to go but the experience wasn’t nearly as bad as the reviews suggested.
评论 #37646506 未加载
raverbashingover 1 year ago
This is yet another example on how, while Windows can have its problems, 90% of them are other developers treating the system as their personal dump truck&#x2F;litterbox<p>(as per another comment)<p>&gt; having the Pqs preferences based off of the instance ID of the pqs object, which, according to unity&#x27;s own documentation, changes between runs of the game<p>This looks like someone copy-pasted something off of Stack Overflow (wouldn&#x27;t be the first time)
xinayderover 1 year ago
This is amazing. It shows that a developer team from a triple-A publisher with billions of dollars at their disposal is just incompetent. The single-man team headed by HarvesteR and later some other devs that joined him were much more competent and it was an indie game.<p>Take2 killed the KSP franchise and they continue to do so. From less and less frequent updates (KSP2 has received only 3 &quot;major&quot; patches since it was released in February, taking 2 months between updates), to useless hotfixes that take a week to be deployed to fix just a single bug, to them taking 6 months to try to find out the reason the rockets are wobbly, to them releasing a game in Early Access which wasn&#x27;t even ready for EA, it was an alpha prototype, completely broken down, and just trying to milk the franchise lovers for their $40 for an INCOMPLETE PROTOTYPE (which will be raised to $70 once the game leaves EA), I wish they just abandoned KSP2.<p>KSP1 with its modding community has produced so much and it&#x27;s a much better game than its sequel. The charts don&#x27;t lie, right now 1k players on KSP1, 67 on KSP2.<p>Now someone&#x27;s going to tell me &quot;this is not how game dev works&quot;. Well. They have billions at their disposal and a predatory publisher on their back. And their dev team consists of a lot of modders from the KSP community which I particularly don&#x27;t blame them for not delivering, but Nate and the team that was poached from Star Theory by Take2 because the former didn&#x27;t agree with the time frame Take2 gave them to release a working prototype, they are really incompetent.<p>They are &quot;building the game from ground up&quot; using the same engine as its predecessor and amazingly they came across the exact same bugs that KSP1 had fixed like 8 years ago. This is not even newbie game dev, it feels like they&#x27;re just a bunch of people that just started to learn how to write software.<p>I have an opinionated website tracking their lies and deceptions (based on Web3 is Going Great), if anyone is interested: <a href="https:&#x2F;&#x2F;nokerbal.space" rel="nofollow noreferrer">https:&#x2F;&#x2F;nokerbal.space</a>
plucover 1 year ago
Is it common to use the registry essentially as a database? 300mb is way more than I expected that thing to support in a single key, but I admittedly know nothing about Windows. I&#x27;ve only ever seen it used to store booleans or simple string values.
评论 #37652511 未加载
ourafover 1 year ago
Makes sense. one of the simplest ways of saving data in Unity (but not the most correct) is saving values via PlayerPrefs[0]. In Windows, this saving method defaults to registry instead of creating a separate save file in the game folder. if you don&#x27;t make your own system for storing variables or running everything in cache and then use a smarter way of saving data, it can get out of hand fast.<p>This was way more common in the old Unity 5 days, though<p>[0]<a href="https:&#x2F;&#x2F;docs.unity3d.com&#x2F;ScriptReference&#x2F;PlayerPrefs.html" rel="nofollow noreferrer">https:&#x2F;&#x2F;docs.unity3d.com&#x2F;ScriptReference&#x2F;PlayerPrefs.html</a>
compramblerover 1 year ago
Everyone seems to love shitting on KSP2, when the same people forget what KSP1 was like in Alpha. No science, shitty graphics, excessively wobbly rockets, inconsistent orbits, (other than graphics) seems familiar?<p>It took a looooong time for KSP1 to get where it is now, it will also take awhile for KSP2 to be as polished.<p>Chill out.
评论 #37646078 未加载
评论 #37646010 未加载
评论 #37646213 未加载
评论 #37645874 未加载
评论 #37646465 未加载
评论 #37646089 未加载
评论 #37645855 未加载
评论 #37648691 未加载
评论 #37647460 未加载
评论 #37645868 未加载
proactivesvcsover 1 year ago
I went to download the attached .txt file and actually saw Firefox&#x27;s download pie gradually filling. I thought, how big is this single registry key‽ 344Mb, that&#x27;s how big!
ivanjermakovover 1 year ago
I&#x27;m so grateful Unix did not implement its own registry. Files all the way down.
评论 #37648159 未加载
评论 #37650691 未加载
terafoover 1 year ago
After doing some profiling when that game released I&#x27;m not surprised. Game lacked LOD system, 70% of frame time was spent doing terrain rendering(IIRC it also generated mesh from texture every single frame).
burrishover 1 year ago
Sorry for the language but Wow this is incredibly stupid How did this get allowed ?
评论 #37645434 未加载
Guvanteover 1 year ago
A comment says a dev tool got included by mistake
pdntspaover 1 year ago
Is this &quot;not corrupting the registry&quot; really a thing that people are worried about when you&#x27;re using Windows&#x27; APIs to access it?
babypuncherover 1 year ago
Who still uses the Windows Registry in 2023?
评论 #37647175 未加载
tambourine_manover 1 year ago
“Be warned though, deleting the wrong thing can stop applications from working, or even <i>break the entire operating system</i>.“<p>You gotta love Windows.
评论 #37647157 未加载
评论 #37646965 未加载
ilytover 1 year ago
I think only thing worse to do with registry would be using it as savegame storage.<p>Holy fuck those guys are clueless, no wonder KSP2 launched in such shit state.