Planetside Software Forums

General => Terragen Discussion => Topic started by: PorcupineFloyd on April 13, 2009, 08:16:37 AM

Title: Weird symbols in path - TG2 crash
Post by: PorcupineFloyd on April 13, 2009, 08:16:37 AM
I've been struggling with a weird error of TG2 crashing while I was trying to save .tgd after loading some models. I thought that it's a matter of new TG2 version, but after some research I've found that a "&" in directory name was causing this.

It looks like TG2 can't handle specific symbols in file or directory names and crashes while saving project file. That's weird as it opens the file, which is located under directories with weird characters, without any problem at all, but crashes into OS right after I try to save a .tgd.

I think that it might have something to do with xml structure or some internal saving mechanism. After all - it's not a problem as you just need to change a directory (or file) name so it doesn't contain any weird characters, but I think there should be some blocking mechanism so crashes won't occur.
Title: Re: Weird symbols in path - TG2 crash
Post by: rcallicotte on April 13, 2009, 08:32:58 AM
Is this happening in the latest patched version of the newest version?
Title: Re: Weird symbols in path - TG2 crash
Post by: PorcupineFloyd on April 13, 2009, 08:40:46 AM
It happened in 2.0.1.1 and it happens also in 2.0.2.1, however I'm pretty sure that this problem appeared also in beta or even pre-beta releases.

I thought that it's connected with TG2 final release but it looks like I was doing some HDD stuff cleaning at the same time when TG2 2.0.1.1 appeared. I moved some of my models to directory structure containing "&" sign and didn't realized that it could be a problem, but today I wanted to do some rendering in TG2 and I was absolutely mad with that error so I've decided to make a bit more researching in this matter and finally - I've found that this "&" was causing all the trouble.
Title: Re: Weird symbols in path - TG2 crash
Post by: sjefen on April 13, 2009, 10:25:25 AM
Yes. This was a problem with the earlier versions as well.
I remember this from way back.

- Terje
Title: Re: Weird symbols in path - TG2 crash
Post by: jo on April 13, 2009, 07:09:16 PM
Hi,

We have been aware of this for a while but weren't able to address this yet. I'll look into it soon.

Regards,

Jo
Title: Re: Weird symbols in path - TG2 crash
Post by: mogn on April 14, 2009, 12:13:07 AM
This certainly is an old error. Also don't use "/" in shader names, since this will confuse the internal name searching.
Title: Re: Weird symbols in path - TG2 crash
Post by: jo on April 14, 2009, 06:20:19 AM
Hi,

I've fixed the crash with ampersands.

The behaviour which mogn mentions with "/" is not a bug as such. Nodes are kept track of using paths similar to file paths, and the "/" character is used to break the path up into separate components. If you use "/" in a node name that will cause problems with the node network. We should really be filtering out the use of "/" characters in node names though.

Regards,

Jo
Title: Re: Weird symbols in path - TG2 crash
Post by: rcallicotte on April 14, 2009, 08:46:09 AM
I remember naming conventions for file names.  We only used '_'.  That's it.  And letters and numbers, of course.   ;D
Title: Re: Weird symbols in path - TG2 crash
Post by: PorcupineFloyd on April 14, 2009, 08:58:24 AM
This is great news Jo!

I'll keep my directory names clear anyway ;)
Title: Re: Weird symbols in path - TG2 crash
Post by: sjefen on April 14, 2009, 01:56:39 PM
Hi Jo,

This is a little bit of topic, but what about "dot" and "comma"?
I like to use comma instead of dot. It goes a lot faster, but right now that is not possible.

- Terje
Title: Re: Weird symbols in path - TG2 crash
Post by: Cyber-Angel on April 14, 2009, 07:37:32 PM
Am I correct in saying that in some language systems that it is common linguistic practice to use a comma rather than a dot for the separation of numbers? I am surprised that this is not supported already, maybe some thing for the future!  ;D

Regards to you.

Cyber-Angel   
Title: Re: Weird symbols in path - TG2 crash
Post by: jo on April 14, 2009, 08:38:15 PM
Hi Terje,

Quote from: sjefen on April 14, 2009, 01:56:39 PM
This is a little bit of topic, but what about "dot" and "comma"?
I like to use comma instead of dot. It goes a lot faster, but right now that is not possible.

Well, Matt chose it, but I believe it's a slash because it mirrors the file path concept. It's also not a character which is allowed in file names on Windows or the Mac OS, so that also matches that concept. I can't see it being changed at this point.

Regards,

Jo