Planetside Software Forums

Support => Terragen Support => Topic started by: N-drju on December 03, 2016, 09:23:27 AM

Title: Diacritic marks
Post by: N-drju on December 03, 2016, 09:23:27 AM
I was really careful so far (I should not even care about this kind of stuff but I have to!) but it happened again - please do something with diacritic marks ruining the project loading!!
Title: Re: Diacritic marks
Post by: Dune on December 03, 2016, 10:10:31 AM
So you have the same problem, huh. I always have to take care to put something in a box and delete it again, or a pop may end up having 0 instances or something worse. Always this ' when I start up TG.
Title: Re: Diacritic marks
Post by: N-drju on December 03, 2016, 02:01:00 PM
This time it got really annoying. I made some very meticulous adjustments to my current project and then added an object. Located in a folder that had Polish "รณ" and "ł" in its name. I got parse error (something like this) and everything in that save increment got wrecked. ::) I didn't loose much, but my adjustments before the save took quite long so I was pissed - plain and simple. I don't know, why hasn't this issue been addressed yet?
Title: Re: Diacritic marks
Post by: Oshyan on December 03, 2016, 02:53:33 PM
As far as I understand it's actually a fairly significant amount of work to add Unicode support. Unless I'm mistaken it also should not totally ruin the project, you ought to be able to just go in with a text editor and remove that specific file/path reference and load it just fine.

- Oshyan
Title: Re: Diacritic marks
Post by: N-drju on December 04, 2016, 03:32:18 PM
No, no, it does mess the file from top to bottom. Trust me. Also editing the file name post factum does not repair the problem - I did that. Upon another loading the project is still dysfunctional.

I just don't get it why after so many updates diacritic marks are still not supported... I imagine glass shader, render layers, and populating on objects also required significant amount of work... Maybe even more. And alphabet is still TG's Achilles' heel...? ::)
Title: Re: Diacritic marks
Post by: Matt on December 06, 2016, 12:42:09 AM
I'm looking at this now. I'll see if there's some way we can improve this soon.

At the moment, project files with these characters won't load properly, but it should then give you an error. If you see the "Parse error: not well-formed (invalid token)" error, don't save the project afterwards. I have never seen TG3 or TG4 corrupt the project at save time, unless it's already loaded incorrectly. So I think what happened is that you loaded the project and the error message was hidden from you somehow (the Errors and Warnings window doesn't always pop up at load time, I've noticed), so you didn't know there was a problem, and then you saved the corrupted project. Terragen needs to get better at preventing this from happening.

Matt
Title: Re: Diacritic marks
Post by: N-drju on December 08, 2016, 05:02:54 AM
Thanks for the answer Matt. I am afraid though that your description of the problem is not necessarily the case.

The "Parse error" indeed does appear but only after loading of the project that has reference to the folder or file with diacritic marks. No warnings or errors appear just by adding the object named, for instance, "Dąb Bezszypułkowy". Terragen does not react when loading such an object.

I always pay attention to the error and warning window. Besides, even if it is hidden it still flashes. I don't think I could miss that. Maybe I'll try tomorrow and let you know.
Title: Re: Diacritic marks
Post by: Matt on December 08, 2016, 02:01:35 PM
Yes, that's what I meant. If it gives you that error when loading the project, you can edit the .tgd in a text editor to change the names that are causing problems, then you should have a project that loads properly again. You said that didn't work when you tried it, which makes me think you saved the project again after it was loading with that error. If you re-save it's more difficult to recover the project. If you didn't do this, it is recoverable.

Matt
Title: Re: Diacritic marks
Post by: Matt on December 08, 2016, 02:05:32 PM
Quote from: N-drju on December 08, 2016, 05:02:54 AM
No warnings or errors appear just by adding the object named, for instance, "Dąb Bezszypułkowy". Terragen does not react when loading such an object.

That is true. It is only discovered after reloading the project or copy-pasting the object.

Matt
Title: Re: Diacritic marks
Post by: N-drju on December 11, 2016, 03:33:35 PM
Matt,

I did not catch that at first - "repairing" the file via text editor! Yes, that might probably work alright...