Live data from Hacker News

KSP2 is spamming the Windows Registry until the game stops working

forum.kerbalspaceprogram.com

261–270 of 306 posts

Re: KSP2 is spamming the Windows Registry until the game stops working

#261

Earlier quoted context omitted.

This is the same case in any OS when you're deleting things with root privileges.

I macOS you can’t delete system files, even with root privileges, unless you disable system integrity, which requires a restart. Not the same at all.

in macOS a developer is like 90% likely to already have SIP disabled, because if at any point they had to do even one single thing that SIP didn't like, they would have had to completely turn off all security for the entire operating system

Re: KSP2 is spamming the Windows Registry until the game stops working

#262

Earlier quoted context omitted.

It’s /etc but harder to browse and edit. Or, from the contrary perspective: it’s the 500 places config lives on Linux, but in one place instead. (Except it still has a deep hierarchical structure, so that second one is kiiiinda not entirely true, in that you can run into exactly the same issues as scattered config files on Linux)

You can search for keys and values across all loaded hives. This makes finding things in the registry much easier. Editing, sure, you've got essentially a single GUI application and CLI or programmatic access. Your options are certainly more limited than the plethora of text editors available.

Or you can use powershell that allows you to browse the registry as if it were a filesystem.

    PS> cd HKLM:\Software\Microsoft\Windows\CurrentVersion
    PS> ls
    [...bunch of stuff...]
    PS> gp Themes DesktopBackground
    DesktopBackground : c:\windows\web\wallpaper\[...default system wallpaper...]

Re: KSP2 is spamming the Windows Registry until the game stops working

#263

Earlier quoted context omitted.

[dead]

And Microsoft knows corporate is where the reoccurring revenue is.

The number one reason corporate picks Microsoft is the control of people it provides by it lush telemetry dashboards on worker efficiency.

Re: KSP2 is spamming the Windows Registry until the game stops working

#264
post #76

Earlier quoted context omitted.

Coming from a Linux background, what is the windows registry and why do things need to write to it? All I ever read about it seem to be horror stories. Can't you store stuff alongside the install? Or in some user data location?

> what is the windows registry and why do things need to write to it? It's a centralized, high-performance small key value store that's the alternative to writing a million config files in random places. It's arguably much better in my experience. E.g. one of the never-ending headaches I always have on Linux is updating config files when a package updates. There's no automatic file merge in general (hence .pacnew and…

Except the part where whenever you install anything on Windows the whole OS grinds to a halt... I assume writing to the registry takes an exclusive lock. Or has to contend with decades of backwards compatibility layers and triggers, or both...

Re: KSP2 is spamming the Windows Registry until the game stops working

#265

Earlier quoted context omitted.

Where do you store where the application-specific KV stores are located? Are you just going to hard-code it so the application cannot be moved or installed elsewhere or on external drives? Where does the OS store its own settings? There are a lot of problems with software "shotgunning" their junk across the system. This isn't exclusive to the Registry or even a specific OS unfortunately. Just go look at what configur…

macOS has a folder called Library where this stuff is supposed to go. It's not enforced by decree, with many apps doing their own horrible thing. Ultimately, its macOS' culture that mostly makes apps puts their settings and other resident details in Library. I'm not knowledgeable enough to know why a culturally enforced folder is far worse than the database that Windows has. Care to enlighten me?

macOS also has NSUserDefaults which is a similar application (but sometimes developer team?) scoped KV system which is actually just a plist file shoved into ~/Library/Preferences. It's the most similar thing to the Windows Registry in both its intended purpose (small amounts of configuration data) and the ways people abuse it due to its simple interface (storing absolutely everything in it).

Re: KSP2 is spamming the Windows Registry until the game stops working

#266

Earlier quoted context omitted.

It's far worse than that. Take-Two bought Squad and KSP along with it. Soon after they took Squad's original IP from them and gave it to Private Division to develop KSP 2. Then they poached staff from Squad. It's not like KSP 2 is developed in some innovative way, I was expecting that game like KSP 2 should have been developed in it's own engine since it's so unique among other games. But nooo. KSP 2 still uses Unity…

> should have been developed in it's own engine since it's so unique among other games with my limited technical knowledge about game programming and much less limited technical knowledge about software development in general this seems quite wrong because while the game is somewhat unique in some point, in many many(1) other technical points it's not, so by using a game engine you can save a lot of time/problems wit…

The "some point" is the main selling point of KSP. The "many other" technical points are beside the point. If you get the small things right but fail at the most important part, you fail overall.

Re: KSP2 is spamming the Windows Registry until the game stops working

#269
post #76

Earlier quoted context omitted.

Coming from a Linux background, what is the windows registry and why do things need to write to it? All I ever read about it seem to be horror stories. Can't you store stuff alongside the install? Or in some user data location?

The database-backed configuration mechanism makes a ton of sense, and if you squint, the filesystem is really kind of a database anyway. With the registry, there’s a lot you get for free—you can set defaults system-wide, you don’t have to deal with parsing, you can get new values without re-parsing a file, etc. A lot of the horror stories came from earlier versions of Windows which had problems with reliability. If y…

Most people aren't sysadmins. The registry is inaccessible to them.

Re: KSP2 is spamming the Windows Registry until the game stops working

#270

Earlier quoted context omitted.

You can search for keys and values across all loaded hives. This makes finding things in the registry much easier. Editing, sure, you've got essentially a single GUI application and CLI or programmatic access. Your options are certainly more limited than the plethora of text editors available.

Or you can use powershell that allows you to browse the registry as if it were a filesystem. PS> cd HKLM:\Software\Microsoft\Windows\CurrentVersion PS> ls [...bunch of stuff...] PS> gp Themes DesktopBackground DesktopBackground : c:\windows\web\wallpaper\[...default system wallpaper...]

That kind of defeats the purpose, doesn't it?
Post reply on HN