Author Topic: Diacritic marks  (Read 456 times)

Offline N-drju

  • Member
  • *
  • Posts: 712
  • Changes, changes, changes...
Diacritic marks
« on: December 03, 2016, 01:23:27 PM »
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!!
"I don't know what 'pokygon' is but I like it."

Offline Dune

  • Member
  • *
  • Posts: 11817
  • Corkscrew Bird
    • www.ulco-art.nl
Re: Diacritic marks
« Reply #1 on: December 03, 2016, 02:10:31 PM »
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.
In case you still haven't seen enough of my work: www.ulco-art.nl

Offline N-drju

  • Member
  • *
  • Posts: 712
  • Changes, changes, changes...
Re: Diacritic marks
« Reply #2 on: December 03, 2016, 06: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?
"I don't know what 'pokygon' is but I like it."

Offline Oshyan

  • Planetside Staff
  • *
  • Posts: 11260
  • Holy snagging ducks!
Re: Diacritic marks
« Reply #3 on: December 03, 2016, 06: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

Offline N-drju

  • Member
  • *
  • Posts: 712
  • Changes, changes, changes...
Re: Diacritic marks
« Reply #4 on: December 04, 2016, 07: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...? ::)
"I don't know what 'pokygon' is but I like it."

Offline Matt

  • Planetside Staff
  • *
  • Posts: 2772
  • I'm the crazy one
Re: Diacritic marks
« Reply #5 on: December 06, 2016, 04: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
Just because milk is white doesn't mean that clouds are made of milk.

Offline N-drju

  • Member
  • *
  • Posts: 712
  • Changes, changes, changes...
Re: Diacritic marks
« Reply #6 on: December 08, 2016, 09: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.
"I don't know what 'pokygon' is but I like it."

Offline Matt

  • Planetside Staff
  • *
  • Posts: 2772
  • I'm the crazy one
Re: Diacritic marks
« Reply #7 on: December 08, 2016, 06: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
« Last Edit: December 08, 2016, 06:06:34 PM by Matt »
Just because milk is white doesn't mean that clouds are made of milk.

Offline Matt

  • Planetside Staff
  • *
  • Posts: 2772
  • I'm the crazy one
Re: Diacritic marks
« Reply #8 on: December 08, 2016, 06:05:32 PM »
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
Just because milk is white doesn't mean that clouds are made of milk.

Offline N-drju

  • Member
  • *
  • Posts: 712
  • Changes, changes, changes...
Re: Diacritic marks
« Reply #9 on: December 11, 2016, 07:33:35 PM »
Matt,

I did not catch that at first - "repairing" the file via text editor! Yes, that might probably work alright...
"I don't know what 'pokygon' is but I like it."