The System Registry
#1
Posted 29 January 2011 - 10:00 AM
#2
Posted 29 January 2011 - 10:30 AM
#3
Posted 29 January 2011 - 10:33 AM
All I ever used it for is editing a few file associations for a game editor.
#4
Posted 29 January 2011 - 10:36 AM
I see no need for the registry if you can still access it through DLLs.
All I ever used it for is editing a few file associations for a game editor.
Yes. That's probably the only thing I've really used the registry for, and possibly the only thing I would miss. I wouldn't mind as long as it could be accessed through a DLL.
#5
Posted 29 January 2011 - 11:06 AM
#6
Posted 29 January 2011 - 11:07 AM
-MoK
#7
Posted 29 January 2011 - 11:31 AM
Though besides storing an install directory, I mainly use ini files for storing information now. The built-in ini functions could use an update, to allow it to open more than 1 file at once and to allow dealing with files that are located outside of the game directory.
If someone really didn't know what they were doing, then I don't believe that they'd be able to mess up any windows registries too easily. The same functions can be accomplished with a DLL, which there already is one available for. Of course, you wouldn't want to have to use a DLL for every little thing.
If nice speed improvements will be gotten by removing extra functions like this, then many would probably be in favor of such being done.
#8
Posted 29 January 2011 - 11:31 AM
I think games should have no business storing stuff outside their own key, but I would certainly like to be able to have read-only access to keys outside the game's own. At least this would allow us, in specific cases, to check the system's configuration and then decide whether specific game features should be enabled or disabled.
I also wouldn't mind registry access to disappear for the game's own key, if that is to be replaced with a comparable alternative like an integrated, static variable database file. INI files work quite well but I suppose that to some users, they're a bit of a hassle compared to registry access. You'd need something anyway - highscore tables are stored in the registry by default.
#9
Posted 29 January 2011 - 11:42 AM
I have to agree that it is a security breach and many people can mess it up very badly with it, but if you know how to use it correctly, it's great.
If removed, i would still use dll's to gain access to it.. and that applies for anyone else who uses it, i guess.
#10
Posted 29 January 2011 - 11:57 AM
I never understood why GM does natively provide full access to the registry but needs external packages for proper ini and xml support.
GM natively allowing games to have access to only a limited part of the registry is fine by me, though I would personally never use it. I prefer files, though I'm not really sure why.
#11
Posted 29 January 2011 - 12:10 PM
#12
Posted 29 January 2011 - 12:15 PM
Really what's the problem with having access to it? - Untill microsoft deprecates it officially, support should be kept. - Really I don't understand the good thing about purposelly cripling a program and limiting users!
Maybe in 99% of the programs written in gamemaker it isn't needed and stupid to change the registry. However, in that 1% of programs written, it still is stupid to remove it. As it just "being" there doesn't hurt anyone!
Is this a sign we're going to limit gamemaker so only minigames & uploading to yoyogames are soon only possible?
#13
Posted 29 January 2011 - 12:37 PM
I think Microsoft is right. That registry is a big throw-it-all-in garbage-alike bin, which is near to impossible to determine which program uses/owns which key, and thus impossible to clean. I wonder what they intend to use instead though ...A few folk have said they would like to keep access to the systems registry, where as I (and Microsoft strangley enough) have said its horrible, dangerous and should go.
The usual I guess. Although I predominantly use it to read from it. Like where another program stored its data-files so I can find and access them.So I'm interested in what you actually use it for?
I think you will have a problem there. Not being able to access the registry at all would be a pretty crude solution, removing the write-capabilities (which are way underpowered by the way) will not stop anyone from doing dangerous things like snooping on other peoples settings ...Perhaps we can achieve this some other way...
Personally I use the old INI file if I want to store settings. Although it does not have the flexibility of the registry I like how I can easily remove all traces of a oncewhile usefull program (by deleting the executable and its (same-named) INI-file).
P.s.
I also do not see a good reason why a games high-scores should be stored in the Registry. Deleting a game using highscores always causes a "registry-leak".
P.p.s
With the number of "what do you think about this" and "this is is going to be changed" things you've now presented, are you really going to put all of that into a "this is just an update" fractionally-numbered version (instead of giving it its own "Fully new" whole number) ?
Edited by ragarnak, 29 January 2011 - 01:26 PM.
#14
Posted 29 January 2011 - 12:45 PM
The functions could be put into a GEX instead?
It's good idea. This part can be removed from GM - begginners don't need this (they can even destroy something on their own PC's by using it), and if someone really needs it, can use DLL. That's why GM can use DLL's right?
#15
Posted 29 January 2011 - 12:52 PM
#16
Posted 29 January 2011 - 12:53 PM
#17
Posted 29 January 2011 - 01:21 PM
(Sry, my english is very bad :<)
#18
Posted 29 January 2011 - 01:24 PM
-MoK
#19
Posted 29 January 2011 - 02:11 PM
#20
Posted 29 January 2011 - 02:37 PM
I accept you might want to read the registry, but I'm not sure it's vital. Having been writing PC games for 17 years, I've only touched the registry a few times, and that's usually to set up file associations.
Speaking of which... I can also see you might want that. It might be better to have a specific functions for them, although I don't think it's vital either. You can always just load the file instead of double clicking it. But we'll definitely talk about it.
In terms of DLL access.... yes you could still do that, and there's nothing much we could do about it. As soon as you allow extensions, you have to accept this kind of thing, and that's obviously a no-no for us to remove. I would rather there was enough in Game Maker to allow what you needed, but didn't allow stuff that was too dangerous to leave there.
That said... Platform specific stuff may well (long term) be moved to extensions anyway to allow for a cleaner codebase.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users



This topic is locked








