SC4 Devotion Forum Archives

SC4Evermore Welcome Portal => LEX File Exchange Discussion => Topic started by: metasmurf on October 03, 2009, 06:25:13 PM

Title: Problem with one of CP's tree mods, starts altering all of the sudden?
Post by: metasmurf on October 03, 2009, 06:25:13 PM
I have a problem with one of Cp's treemods. The problem is that now when I plant trees I get some weird mixtures of small CP trees and maxis trees. This happens in the same city where I succesfully planted the correct trees before, and I haven't (as far as I know) changed anything in my plugins folder.The tree controller im using is CPT_No7_TreeController_Generic_Andreas.dat, located in Plugins\Columbus Terain Mod\. Any ideas?

Title: Re: Problem with one of CP's tree mods, starts altering all of the sudden?
Post by: Andreas on October 04, 2009, 06:00:48 AM
By any chance, did you switch back to the desktop by minimizing the game, pressing the Windows key or something like that? I noticed that after switching back to the game, the trees that are planted in certain elevations are completely different, as if the game was using a wrong elevation setting. I have no idea why it happens, and if you restart the game, it's working correctly again. Maybe some kind of weird bug in SC4.
Title: Re: Problem with one of CP's tree mods, starts altering all of the sudden?
Post by: metasmurf on October 04, 2009, 09:19:06 AM
That might be it, since I often do that by accident. Anyway, I put the tree controller in a ZZMod folder and now it works again.
Title: Re: Problem with one of CP's tree mods, starts altering all of the sudden?
Post by: Andreas on October 04, 2009, 10:16:08 AM
Quote from: metasmurf on October 04, 2009, 09:19:06 AM
That might be it, since I often do that by accident.

Let me guess: because you want to press [Ctrl] and [Alt] for zoning options? What I did on my system was disabling the left Windows key with this registry hack:

REGEDIT4

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
@=""
"Scancode Map"=hex:00,00,00,00,00,00,00,00,02,00,00,00,00,00,5b,e0,00,00,00,00


You still have a fully functional right Windows key, which should be enough. I can't guarantee that it works in Windows Vista or 7, but it works fine in my WinXP.
Title: Re: Problem with one of CP's tree mods, starts altering all of the sudden?
Post by: turtle on October 12, 2009, 04:55:38 AM
That sounds like a neat trick, Andreas. Where should one put that piece of code?

I often do excactly that, so it would be a great help to disable it.
Title: Re: Problem with one of CP's tree mods, starts altering all of the sudden?
Post by: Andreas on October 12, 2009, 10:55:47 AM
You need to create a registry patch. Simply copy the code into an empty text file (created with Notepad) and save it as "disable Windows key.reg" or something like that (it's only important that you keep the *.reg extension). Then double-click said file, and Windows will ask you if you want to add the information to the registry. Click "yes", and after restarting Windows, it should be active (your left Windows key will be non-functional).
Title: Re: Problem with one of CP's tree mods, starts altering all of the sudden?
Post by: turtle on October 12, 2009, 11:46:53 AM
Thanks Andreas, I will try that.

btw is there a way to undo this registry patch, if I regret it?
Title: Re: Problem with one of CP's tree mods, starts altering all of the sudden?
Post by: Andreas on October 12, 2009, 12:35:34 PM
Well, you would have to start the registry editor (Start/Run... and then type regedit), find the path "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout" and delete the "Scancode Map" item again.
Title: Re: Problem with one of CP's tree mods, starts altering all of the sudden?
Post by: turtle on October 16, 2009, 05:10:47 AM
Thanks for your help Andreas.
I did as you suggested, but it didn't work, so I went ahead and deleted the specified item. Now I'm not sure if this caused a new problem, as the text on web pages, in documents and so on, are now shown in either bold or italics. Do you think there could be a connection to the scancode map or should I look somewhere else?
Title: Re: Problem with one of CP's tree mods, starts altering all of the sudden?
Post by: Andreas on October 16, 2009, 06:35:04 AM
No, the scancode entry shouldn't affect anything but the actual key on the keyboard.
Title: Re: Problem with one of CP's tree mods, starts altering all of the sudden?
Post by: turtle on October 16, 2009, 06:51:46 AM
I see. I will look for solutions elsewhere.  %confuso
Title: Re: Problem with one of CP's tree mods, starts altering all of the sudden?
Post by: SC4BOY on October 17, 2009, 08:34:08 AM
There are many things that are also affected by the "windows to desktop" kind of changes.. for example if I accidentally go from window to fullscreen, the "extracheats" window appears broken.. I'm sure there are other effects that simply haven't been formally verified. (sort of on topic, sort of off  ;) )