QUOTE(Ojan @ Dec 3 2006, 05:10 AM)
QUOTE(SkuggNödraket)
Firegraft adds Firegraft\114a.fgd when saving to an exe or mpq, and this file contains information for FireGraft's patcher about where to apply the patches to and other various version-specific information. SCMLoader has its own copy of this file already and will not allow the .scm/.scx to override it.
Why not allow loading? Let's say that the modder/mapper has a newer version of the .fgd file than SCMLoader has, with more .exe-edits (editing a value at a specific offset) for example. That would make it impossible to put in a map....
Or is it security reasons behind this?
[right][snapback]598601[/snapback][/right]
If it was allowed to be included in the map, a custom one could be used to modify any arbitrary memory location. This wouldn't really be a good thing in my opinion, since SCMLoader shouldn't be something that you can only play these maps with people you know and trust.
As far as keeping it up-to-date, that shouldn't be an issue. I plan on updating it as often as that file is updated. If for some reason I don't update it, it would be possible for someone else to do so, since it is simply stored in an mpq archive embedded in SCMLoader.qdp.
For similar reasons, I'll probably be putting in checks for certain things with some of the exe edits from FireGraft such that only the values that are the ones FireGraft would use will be allowed. Of course, this should only have an effect on hex-edited patches and not ones that were only modified by FireGraft.
Anyway, what I'm trying to get across here is the potential issues when having SCMLoader use a patch from a map compared with using a stand-alone patch. When using a stand-alone patch, you know where you got it from and probably who created it as well. However, when running SCMLoader you will not know in advance for maps you download through SC whether the map contains mods or even a FireGraft patch until either you are told so or actually play the map.
It is because of this that these measures (and others later) will be taken to ensure the safety of FireGraft patches included in maps.