View Single Post
Old 09-04-07, 10:10 PM   #96
DirtyHarry3033
Weps
 
Join Date: Aug 2005
Posts: 351
Downloads: 0
Uploads: 0
Default

Quote:
Originally Posted by sergbuto
The interference problem of two copies of the file is known from SH3 times. The brief installation intsructions in post #39 of this thread point out to the necessity of removal of existing Camera.dat from the Library folder before installing the mod. But maybe these instruction are not clear enough in emphasizing the problem.
Actually, there's no need at all to delete "Cameras.dat" before installing. Whether using JSGME or simply copying the modded Cameras.dat in with Windows Explorer, the old one will be totally blown away and replaced with the modded one. No probs or conflicts at all there

Where the problem comes in is if you do something stupid like I did, and run MiniTweaker, and end up with "Copy of Cameras.dat" in the folder, and forget about it, and don't delete it And then a month later you install a modded Cameras.dat and have all kinds of problems since there are 2 different versions of the same file, with different names...

I've decided that for whatever reason, SH4 (SH3 also?) will read any file it finds ending in ".dat" (possibly any other valid extension also?) no matter what the name, and load whatever data it finds there. If it's already loaded a node, it won't load it a 2nd time, but if it finds a node not in the 1st file it loaded, it will add it to what it already has loaded. In effect, merging the contents of 2 different .dat files.

Don't think the name has anything to do with this, I think I could have renamed "Cameras.dat" to "Arsewipe.dat" before installing your mod and "Arsewipe" still would have loaded - except in that case I'm thinking the mod wouldn't have worked at all as "Arsewipe" would have been loaded 1st, and since it already contained all the nodes in your modded Cameras.dat, none of your mods would have been loaded.

As it is, your modded .dat file was missing the AxisRotation data, and since "Copy of Cameras.dat" was loaded after your modded Cameras.dat, and did contain AxisRotation data, that data was loaded and added to the changes you made. Hence the problem I had of not only "walking the deck" but also having the camera rotate up/down/left/right...

Well I learned something at least. Not sure I understand the reasoning behind it, I've been writing code for 25 years and if I'm looking for data that should be found in a file named "Cameras.dat" I sure as hell won't be trying to read it from a file named "Tiddlywinks.dat" (or even one called "Camera.dat" for that matter)

Forgive my "rant" Just not sure what the devs were thinking when they decided to read any "valid-appearing" data from any file no matter what the name. Maybe I'm just behind the times :hmm:

DH

[edit] Actually, assuming I'd renamed "Cameras.dat" to "Arsewipe.dat" before installing your mod, the results would have turned out the same. SH4 would have loaded the original data for Conning Deck cam from "Arsewipe", then read the modded "Cameras.dat" and loaded the FreeMove data you added. Again, combining 2 functions on cursor keys, both movement and camera rotation.
DirtyHarry3033 is offline   Reply With Quote