TransDEM Forum

TransDEM News, Support, Hints and Resources
It is currently 27 Apr 2024 20:31

All times are UTC + 1 hour




Post new topic Reply to topic  [ 69 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7  Next
Author Message
 Post subject: Re: Norwegian DEM
PostPosted: 10 Mar 2024 19:22 
Offline

Joined: 05 Jan 2011 16:45
Posts: 1465
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.


Top
 Profile  
 
 Post subject: Re: Norwegian DEM
PostPosted: 11 Mar 2024 16:35 
Offline

Joined: 05 Jan 2014 10:31
Posts: 48
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!


Top
 Profile  
 
 Post subject: Re: Norwegian DEM
PostPosted: 11 Mar 2024 16:54 
Offline

Joined: 05 Jan 2011 16:45
Posts: 1465
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


Top
 Profile  
 
 Post subject: Re: Norwegian DEM
PostPosted: 12 Mar 2024 11:44 
Offline

Joined: 05 Jan 2014 10:31
Posts: 48
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.


Top
 Profile  
 
 Post subject: Re: Norwegian DEM
PostPosted: 12 Mar 2024 18:47 
Offline

Joined: 05 Jan 2011 16:45
Posts: 1465
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?


Top
 Profile  
 
 Post subject: Re: Norwegian DEM
PostPosted: 13 Mar 2024 14:28 
Offline

Joined: 05 Jan 2014 10:31
Posts: 48
C:\Program Files\N3V Games\Trainz Railroad Simulator 2019\editing


Top
 Profile  
 
 Post subject: Re: Norwegian DEM
PostPosted: 13 Mar 2024 19:39 
Offline

Joined: 05 Jan 2011 16:45
Posts: 1465
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.)


Top
 Profile  
 
 Post subject: Re: Norwegian DEM
PostPosted: 14 Mar 2024 17:17 
Offline

Joined: 05 Jan 2014 10:31
Posts: 48
OK, I have now moved TRS2019 to my D:/ drive.


Top
 Profile  
 
 Post subject: Re: Norwegian DEM
PostPosted: 14 Mar 2024 18:37 
Offline

Joined: 05 Jan 2011 16:45
Posts: 1465
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.


Top
 Profile  
 
 Post subject: Re: Norwegian DEM
PostPosted: 15 Mar 2024 11:54 
Offline

Joined: 05 Jan 2014 10:31
Posts: 48
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 69 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 30 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

Imprint & Privacy

Powered by phpBB® Forum Software © phpBB Group