Planetside Software Forums

Support => Terragen Support => Topic started by: reck on June 30, 2008, 03:12:35 PM

Title: Errors after installing new update, what have I done wrong!
Post by: reck on June 30, 2008, 03:12:35 PM
Hi,

Just updated to the latest build but when I tried to run it I get the following errors. I'm running Vista 32 bit.
I've tried uninstalling and reinstalling but it didn't fix the problem.
Title: Re: Errors after installing new update, what have I done wrong!
Post by: Oshyan on June 30, 2008, 03:14:55 PM
Did you completely uninstall the previous version before installing the new one? This is a strongly recommended part of the upgrade process.

- Oshyan
Title: Re: Errors after installing new update, what have I done wrong!
Post by: reck on June 30, 2008, 03:24:32 PM
I went into add/remove programs (or whatever its called under vista) and selected uninstall. Then I checked the program Files\terragen 2 folder and the only file left was my key file. I deleted the key file and folder and then rebooted the computer. Then tried to install again and i've got the same error :(

I'm going to try and download again in case the download is corrupted.
Title: Re: Errors after installing new update, what have I done wrong!
Post by: Oshyan on June 30, 2008, 03:41:53 PM
Very strange. We have done a lot of install/uninstall testing on various operating systems and I've never seen problems like this. We've tested on Vista, too. A corrupted download is a possibility, although it should have let you know of any corruption prior to the installation. Is it possible you're using an old shortcut? Do you have any backup programs in place that might be interfering? Do let us know if you come up with a solution.

- Oshyan
Title: Re: Errors after installing new update, what have I done wrong!
Post by: reck on June 30, 2008, 03:49:55 PM
Hi Oshyan,

Yes it is strange. I've installed all the updates since the very first preview on this machine and never had any problems.

I'm just test testing different things at the moment trying to get it to work. I've re-downloaded the update but that didn't work. I've tried to install it on another account on this machine, that didn't work. I've uninstalled, removed the TG2 folder and removed any shortcuts and then reinstalled, this didn't work either. After reinstalling I tried running the .exe directly from the TG2 folder but still no joy.

I'm struggling to think what else I can try. Any other ideas?
Title: Re: Errors after installing new update, what have I done wrong!
Post by: Oshyan on June 30, 2008, 04:08:02 PM
The errors seem to indicate a mismatch between the TG2 exe and dependency DLL files. I'm not sure exactly why that would happen, but one thought that occurs is that Vista has a built-in system files protection system that might somehow be coming into play. Since there are DLL's involved, it might think it has to protect and replace them if they get changed.

Have you tried installing as Administrator? Or "Run as administrator" on the install file?

- Oshyan
Title: Re: Errors after installing new update, what have I done wrong!
Post by: reck on June 30, 2008, 05:57:18 PM
Yeah i've tried running under an admin account. After it installs I try and run it but nothing happens, I double click the file and no error or anything. But when I install under my normal account I get all those error messages.

Most of the error messages talk about trlib.dll so it seems the problem might be with this file. I've just tried to register this dll using regsvr32 but I get an error message even doing this. Could this be the reason that Terragen is now not working?



Title: Re: Errors after installing new update, what have I done wrong!
Post by: Matt on June 30, 2008, 06:33:31 PM
I think your trlib.dll is probably OK. The functions in these errors no longer exist in those forms, so this suggests that it's another file that is looking for the wrong functions.

Can you check the version numbers for each of the following files? (Right click -> Properties -> "Version" tab)

trlib.dll
tglib.dll
Plugins/tgbase.tgp
Plugins/tgstd.tgp

They should all say File version: 1.9.98.1

Please also check Plugins/tgimg.tgp. It doesn't have a version number but the file size for 1.9.98.1 should be 700,416 bytes (about 684 Kb)

Matt
Title: Re: Errors after installing new update, what have I done wrong!
Post by: Matt on June 30, 2008, 06:38:20 PM
Also, have you set up an environment variable for Terragen? That will fool Terragen into looking somewhere else, so you should remove the environment variable or update it.

Matt
Title: Re: Errors after installing new update, what have I done wrong!
Post by: reck on June 30, 2008, 06:53:59 PM
I've just uninstalled again and then did a search for "terragen" and "planetside". I found quite a few files and folders under virtualstore as well as a couple of other folders under my users folder. So I went through and deleted every instance of terragen and planetside I could find. I then opened regedit and did the same thing.

Now I get no error messages at all when I try and run it, in fact nothing happens at all, I just double click the shortcut of the .exe in the terragen 2 folder and nothing happens, no message or anything. Since clearing out the computer of all references i've reinstalled a couple of times but it just won't run.

Matt here are the details. I couldn't see any version numbers for any of the files in the plugins folder so I just recorded their sizes. The two dll files were 1.9.98.1.

trlib.dll - 1.9.98.1
tglib.dll - 1.9.98.1
Plugins/tgbase.tgp - 324kb
Plugins/tgstd.tgp - 5.27MB
Plugins/tgimg.tgp - 684kb

Also I just my env variables and there doesn't appear to be any variables for Terragen, I certainly didn't create any.

This is all very strange.
Title: Re: Errors after installing new update, what have I done wrong!
Post by: Oshyan on June 30, 2008, 07:12:07 PM
The Virtualstore entries suggest that Vista is caching the dll files and may be referring to older cache versions instead of the newly installed ones. You might try turning off System Restore, doing an uninstall, then reinstalling, and finally turning system restore back on. I don't know if there is a way to turn off the caching functions or exclude a particular directory or dll. The odd thing is I haven't encountered this on my Vista install and I am installing/uninstalling on a regular basis. It's possible however that I have turned something off (such as User Account Control - UAC) that is a factor in this issue.

- Oshyan
Title: Re: Errors after installing new update, what have I done wrong!
Post by: Matt on June 30, 2008, 07:40:40 PM
Quote from: reck on June 30, 2008, 06:53:59 PM
Matt here are the details. I couldn't see any version numbers for any of the files in the plugins folder so I just recorded their sizes. The two dll files were 1.9.98.1.

On XP you can find this information if you right click on the file, select Properties from the menu and then go to the Version tab, and I would think there's something similar on Vista. Detailed file sizes in bytes are also available. Nevertheless, the file sizes appear to be correct.

Matt
Title: Re: Errors after installing new update, what have I done wrong!
Post by: Matt on June 30, 2008, 07:44:58 PM
Quote from: Oshyan on June 30, 2008, 07:12:07 PM
The Virtualstore entries suggest that Vista is caching the dll files and may be referring to older cache versions instead of the newly installed ones. You might try turning off System Restore, doing an uninstall, then reinstalling, and finally turning system restore back on. I don't know if there is a way to turn off the caching functions or exclude a particular directory or dll. The odd thing is I haven't encountered this on my Vista install and I am installing/uninstalling on a regular basis. It's possible however that I have turned something off (such as User Account Control - UAC) that is a factor in this issue.

- Oshyan

What kind of OS does this? How are developers/users supposed to deal with this nonsense?

Matt
Title: Re: Errors after installing new update, what have I done wrong!
Post by: rcallicotte on June 30, 2008, 08:04:01 PM
Vista was Microsoft's best attempt to ruin their retail stronghold.
Title: Re: Errors after installing new update, what have I done wrong!
Post by: Oshyan on June 30, 2008, 09:09:39 PM
Normally the dll cache isn't supposed to cause such problems of course. This would be an abnormal circumstance and like any system those will occur. It's not necessarily a bad idea to cache files - it's supposed to improve performance of course - but it's true that it's not terribly transparent for troubleshooting purposes should a problem come up. Admittedly my knowledge of the caching systems is limited, and this would be the first I'd heard of it caching one of our DLL's, but nonetheless it does seem to be doing so and possibly the source of the problem.

- Oshyan
Title: Re: Errors after installing new update, what have I done wrong!
Post by: reck on July 01, 2008, 02:47:05 AM
Quote from: Matt on June 30, 2008, 07:40:40 PM
Quote from: reck on June 30, 2008, 06:53:59 PM
Matt here are the details. I couldn't see any version numbers for any of the files in the plugins folder so I just recorded their sizes. The two dll files were 1.9.98.1.

On XP you can find this information if you right click on the file, select Properties from the menu and then go to the Version tab, and I would think there's something similar on Vista. Detailed file sizes in bytes are also available. Nevertheless, the file sizes appear to be correct.

Matt


It looks like this information is found under the details tab under vista. I've screen grabbed the details tab for each file for you to see, the plugin files don't seem to have version number information.

Oshyan, I will try turning off system restore when I get home from work.

Title: Re: Errors after installing new update, what have I done wrong!
Post by: reck on July 01, 2008, 05:33:36 PM
Well guys i'm not having much look with this.

I've disabled system restore, UAC and my virus checker. I then uninstalled TG and then reinstalled it. I double click to run it and nothing happens.
Title: Re: Errors after installing new update, what have I done wrong!
Post by: reck on July 02, 2008, 03:43:04 PM
I've tried to install preview 3, which was working before, and it now has the same problem as version 4, i.e. nothing happens when I double-click the Terragen2 icon. So the problem I have isn't to do with a change in the latest version, something has changed on my system to prevent terragen from working.

I suddenly feared then that my vista computer was not able to install anything. So i've downloaded a couple of applications and installed them and they appear to work fine. So whatever this issue is it appears isolated to Terragen.

Matt is there any chance you can provide me with a list of files that are installed with Terragen2? For instance any dll files that may be copied over to Windows(/system32), application data folder etc or any registry entries I should check for. Thanks.

reck
Title: Re: Errors after installing new update, what have I done wrong!
Post by: Oshyan on July 02, 2008, 03:48:50 PM
As far as I know we do not install any dll files to system folders. But I'll try to get a definitive file list together for you.

Are you consistently installing to the same directory? Have you tried installing to a different hard drive, if you have one available?

- Oshyan
Title: Re: Errors after installing new update, what have I done wrong!
Post by: reck on July 02, 2008, 04:02:40 PM
I've fixed it!!!!!!!

You'll never believe what it was.

The first problem I had, with the error messages at the start of the thread was caused because not all the files were removed when I uninstalled terragen preview 3 for some reason. It left some files in the virtualstore and a couple of other places.

Once I'd totally removed all the files and installed preview 4 the new problem I had was that the software just wouldn't run, no message or anything, this is what had me stumped......until now.

The problem was that I hadn't copied back over my licence key to the Terragen folder after removing everything when I had the first set of problems. I was reinstalling so many times I just thought to myself I won't keep copying over the licence key until I can get the software to open. I assumed, and this is where my problem lay, that if I tried to run Terragen without a key I would at least get some message saying that the software requires a valid key or something. If I had received some kind of feedback stating that the key was missing the problem would have been solved in 5 mins, so maybe this could get added for numpties like me :)

Just thought i'd share in case anyone else comes across this.
Title: Re: Errors after installing new update, what have I done wrong!
Post by: Oshyan on July 02, 2008, 04:14:37 PM
 ::) I had thought we put a message in about this. I'll have to check on it. I'm glad you got it resolved at any rate! :)

- Oshyan