TransDEM Forum
https://forum.transdem.de/

Norwegian DEM
https://forum.transdem.de/viewtopic.php?f=7&t=630
Page 5 of 7

Author:  geophil [ 10 Mar 2024 19:22 ]
Post subject:  Re: Norwegian DEM

pdw2107 wrote:
I get to page 61/2 of the Part 3: Tutorials
Release 2.6.5 Tutorial 1: Using the TransDEM Trainz Exporters
[...]
But I cannot find these files in TRS2019.

Part 2 exports the UTM tiles, part 3 the vector data and only in part 4 we import the entire route in Trainz.

Author:  pdw2107 [ 11 Mar 2024 16:35 ]
Post subject:  Re: Norwegian DEM

Yes OK, but I wanted to check at stage one. There is an error according to TRansDem - it says "errors writing files exporting "(map files export)".

Does this tell you anything?

I'm sorry to take your time on this, but I do appreciate it!

Author:  geophil [ 11 Mar 2024 16:54 ]
Post subject:  Re: Norwegian DEM

Make sure your file location is writeable. Somewhere in your user files, Trainz may even have created a folder for you. Do not try to write to C:\Program Files

Author:  pdw2107 [ 12 Mar 2024 11:44 ]
Post subject:  Re: Norwegian DEM

OK I made the Trainz 2019 files writable.

I completed the first step. When I try Part 2, Export of UTM tiles (3D) I get the following message from TransDem:

"Errors writing file "(UTM overlay objects)"

Invalid lat/long location.
Not at centre of baseboard.
Error finding World Origin or invalid location.

Author:  geophil [ 12 Mar 2024 18:47 ]
Post subject:  Re: Norwegian DEM

pdw2107 wrote:
OK I made the Trainz 2019 files writable.
That does not sound like a good idea! What is the exact path of your export destination folder?

Author:  pdw2107 [ 13 Mar 2024 14:28 ]
Post subject:  Re: Norwegian DEM

C:\Program Files\N3V Games\Trainz Railroad Simulator 2019\editing

Author:  geophil [ 13 Mar 2024 19:39 ]
Post subject:  Re: Norwegian DEM

As I said, it's a bad idea. Never try to write anywhere in the path of C:\Program Files or C:\Program Files (x86). These entire trees are read-only, by intention. It's a huge security risk if anyone could write there, malware in particular. Windows was rather late to enforce this. You and every program needs elevated user rights to override the read-only rules. For good reason, TransDEM has no such rights.

Early versions of Trainz also did that wrong, a bad habit from Windows 95/98/ME development that unfortunately made it into XP. Later Trainz editions adhere to the modern concepts.

Define your import folder somewhere in your own user space, e.g. underneath the Documents root. Where did you store your geo data for TransDEM? A parallel folder to the geo data hierarchy would make sense. Of course, you can still use the dedicated export folder that Trainz creates. I think it's somewhere under C:\ProgramData (I have not installed any Trainz version at the moment, so I can't check myself.)

Author:  pdw2107 [ 14 Mar 2024 17:17 ]
Post subject:  Re: Norwegian DEM

OK, I have now moved TRS2019 to my D:/ drive.

Author:  geophil [ 14 Mar 2024 18:37 ]
Post subject:  Re: Norwegian DEM

Well, you haven't reinstalled Trainz to D:\, have you? That would work, but you'd lose the Windows built-in protection. The basic principle is simple:
  • Program files, everything from the exe, the DLLs and supportive read-only files go to C:\Program Files. But this is beyond your concern, the installer of the program will take care of that. That's why you need admin privileges during installation.
  • All program data, whether written by the program itself or the user for the program, go somewhere else. There are dedicates regions in the Windows file system for that, but, in our case, you don't need to use those.
Again, the key point is separation of read-only and read/write files. This is not specific to Windows. Other operation systems like Linux do the same.

As a long time Trainz user you may be confused a bit, because early versions of Trainz screwed up here, and some users recommended to install elsewhere.

Author:  pdw2107 [ 15 Mar 2024 11:54 ]
Post subject:  Re: Norwegian DEM

Yes I did put Trainz in D:/

Should I put it back in its original location?

The programme data is under Documnets:
"C:\Users\Peter\Documents\Arkiv (Peter)\TransDem"

Thanks
Peter

Page 5 of 7 All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/