Planetside Software Forums

Support => Terragen Support => Topic started by: gerryR on December 21, 2006, 08:35:02 AM

Title: program crash (re producable)
Post by: gerryR on December 21, 2006, 08:35:02 AM
Heres one that crashes my app every time.  Maybe I shouldn't be doing this  :o  but if not I reckon it should give an error message and not a crash.

In Terrain Tab highlight the "heightfield shader 01"
below that rename the 1st item to whatever you want "Heightfield Shader 01" to HS1 for example
then rename the item below that to the same thing "Heightfield generate 01" to HS1
insta crash

note if you rename the bottom one 1st then the top one to the same thing it dowsn't crash.
Title: Re: program crash (re producable)
Post by: Oshyan on December 21, 2006, 02:06:08 PM
Nodes *must* have unique names so don't name two nodes the same. You're right that this should just produce an error message though.

- Oshyan
Title: Re: program crash (re producable)
Post by: gerryR on December 21, 2006, 04:23:56 PM
that makes sense all right (guess I was just lookin for trouble  ;) )

thanks for the info
gr
Title: Re: program crash (re producable)
Post by: Matt on December 22, 2006, 12:07:35 AM
The second line that you are editing is a link to another node. When you edit this you are not renaming the other node, you are telling it to point to a different node. In your example, you're telling the Heightfield Shader HS1 to link to itself. This results in an infinite loop which (in current versions) is not deteced by Terragen and causes a crash.

We will do something to stop this from happening. But remember that it is only the first line, labeled "Name" that is the name of a node. All others are links to other nodes.

Matt
Title: Re: program crash (re producable)
Post by: gerryR on December 22, 2006, 08:11:36 AM
thanks Matt, I'll refrain from naming them the same from now on  8)

gr