Planetside Software Forums

General => Terragen Discussion => Topic started by: mindsap on January 01, 2011, 07:17:09 PM

Title: Editing tgd
Post by: mindsap on January 01, 2011, 07:17:09 PM
I have a problem with a paint shader that when I started to use the erase tool it caused TG to crash.  Then when I went to reload my tgd it caused TG to crash again.  I read someware that if I edit my tgd file (go in and edit the TGD and remove the Painted Shader stroke data.) It may fix this.   My problem is  how do you do this if you can't open the tgd file?
Title: Re: Editing tgd
Post by: jaf on January 01, 2011, 08:42:39 PM
Open it with a text editor -- notepad will work fine.  Search for this: "<painted_shader" without the quotes.  Highlite from that, the start of the painted shader, to the end "</painted_shader>" (again, without the quotes) and delete.

I'm doing this from memory since I'm running a render right now.
Title: Re: Editing tgd
Post by: choronr on January 02, 2011, 12:47:34 AM
Another thought; after you first open the .tgd again, immediately 'pause' the 'preview window'. Then, go to your node view; select the painted shader and delete it. Hope this works.
Title: Re: Editing tgd
Post by: mindsap on January 02, 2011, 06:03:25 PM
I tried what you said jaf and when I opened up the tgd it was empty. Very strange.  I don't know what happened to the content.  But you were right about using notepad to edit the tgd file.  It worked fine on other tgds I have.  I guess I will have to start over again from scratch.  Thanks for you help.
Title: Re: Editing tgd
Post by: Dune on January 03, 2011, 02:57:53 AM
If you post your tgd, maybe someone else can save it without the painted shader...