Planetside Software Forums

General => Terragen Discussion => Topic started by: neuspadrin on June 21, 2009, 05:45:29 PM

Title: File association
Post by: neuspadrin on June 21, 2009, 05:45:29 PM
It might be nice if you guys built in file association with the .tgd format to open up in terragen.  Just a thought. Also perhaps drag n drop tgd files onto terragen.
Title: Re: File association
Post by: Sp34k on June 21, 2009, 05:50:48 PM
Actually I tried the drag'n'drop function today and wondered "hm, why don't they make this available?" But then again, I don't know if I would really use it and if it would save me any time though..
Title: Re: File association
Post by: cyphyr on June 21, 2009, 06:36:07 PM
Drag n drop for clip files would be handy, also objects maybe .... not really a biggy tho :)
Richard
Title: Re: File association
Post by: choronr on June 21, 2009, 08:16:57 PM
I've been using the 'drag-n-drop' Windows function for quite awhile sometimes when I put a clip file or any other into TG2.
Title: Re: File association
Post by: jo on June 22, 2009, 12:04:24 AM
Hi,

Regarding file associations, I'll see if Matt can do something with the installer. Otherwise I'll have to mess with the Registry, which is something I've been trying to avoid :-).

As to drag and drop, I've just fixed an issue with drag and drop on Windows, so in the next release you'll be able to drag and drop files onto Choose File buttons in param views. You can already do this on the Mac. At some point I do hope to expand the drag and drop capabilities in TG2 further, for example allowing you to drop object files onto the 3D Preview or network view and have an appropriate action take place. It's not particularly high on the priority list right now though.

Regards,

Jo
Title: Re: File association
Post by: Jack on June 22, 2009, 12:07:23 AM
um I have always wondered about this too it would be great if we could double clock on the tgd file and it will open up in tg2
Title: Re: File association
Post by: PG on June 22, 2009, 01:21:25 PM
I'd like to be able to double click on it. Even if you associate the file with Terragen 2 through folder options and add an open command it still opens a blank scene.
Title: Re: File association
Post by: aymenk2003 on June 26, 2009, 08:09:14 PM
i've played with my registry ...and when i double click on a tgd file it lunches the tg2 and the file is opened right
Title: Re: File association
Post by: aymenk2003 on June 26, 2009, 08:24:28 PM
here is the registry entry:
***********************
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\tgd_auto_file]
@=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\tgd_auto_file\DefaultIcon]
@="D:\\WINNT\\Installed System Icons\\sysicon281.ico"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\tgd_auto_file\shell]

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\tgd_auto_file\shell\open]

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\tgd_auto_file\shell\open\command]
@="\"F:\\Graphics\\Terragen2\\tgd.exe\" \"%1\""

***********************
edit the last line by notepad in reg file associated.
Title: Re: File association
Post by: PG on June 27, 2009, 01:38:29 PM
Still asking me which program to open it with. Put it in exactly as you say.
Title: Re: File association
Post by: aymenk2003 on June 27, 2009, 05:16:04 PM
Quote from: PG on June 27, 2009, 01:38:29 PM
Still asking me which program to open it with. Put it in exactly as you say.
I'll track my registry and Try to find something missing...
'cos I've never got problem with that ...I just double click and terragen open the project ...
*EDIT: you have to the regfile joined then double click this regfile it will register itself ...
Title: Re: File association
Post by: PG on June 27, 2009, 06:08:50 PM
I've tried it manually as well and it doesn't work, I've tried every way on the internet in fact. It'll open Terragen but a blank scene, it won't open the scene in the TGD.
Title: Re: File association
Post by: Henry Blewer on June 27, 2009, 08:03:37 PM
You can change the default scene using preferences. Did you change the attributes in the icon itself? It would have to be done for every new save though.

I just checked the file associations in Vista. tgd files are associated with Terragen 2 on my computer.
Title: Re: File association
Post by: jo on June 28, 2009, 05:22:25 AM
Hi PG,

Quote from: PG on June 27, 2009, 06:08:50 PM
I've tried it manually as well and it doesn't work, I've tried every way on the internet in fact. It'll open Terragen but a blank scene, it won't open the scene in the TGD.

Yes, it isn't opening the file when it starts right now, but it will for the next release. That's a separate issue to setting up file associations though.

Regards,

Jo