Elvas Tower: Overall File System and Data Structure - Elvas Tower

Jump to content

Posting Rules

All new threads will be started by members of the Open Rails team, Staff, and/or Admins. Existing threads started in other forums may get moved here when it makes sense to do so.

Once a thread is started any member may post replies to it.
  • 17 Pages +
  • « First
  • 2
  • 3
  • 4
  • 5
  • 6
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

Overall File System and Data Structure Rate Topic: ***** 1 Votes

#31 User is offline   James Ross 

  • Open Rails Developer
  • Group: Status: Elite Member
  • Posts: 5,491
  • Joined: 30-June 10
  • Gender:Not Telling
  • Simulator:Open Rails
  • Country:

Posted 12 December 2011 - 08:03 AM

View Postwacampbell, on 12 December 2011 - 07:40 AM, said:

1. We have an import process where they are brought in, validated and converted to the OR file structure


Unless you're proposing we convert the files to the OR file formats, I don't really see how you can sensibly deal with file links from MSTS content in the new structure - it certainly wasn't meant in any way to operate with MSTS content.

#32 User is offline   wacampbell 

  • Member since Nov. 2003
  • Group: Fan: Traction Nuts
  • Posts: 2,347
  • Joined: 22-November 03
  • Gender:Male
  • Location:British Columbia, Canada
  • Country:

Posted 12 December 2011 - 08:11 AM

View PostJames Ross, on 12 December 2011 - 08:03 AM, said:

Unless you're proposing we convert the files to the OR file formats, I don't really see how you can sensibly deal with file links from MSTS content in the new structure - it certainly wasn't meant in any way to operate with MSTS content.


So are you thinking we don't support MSTS content?

#33 User is offline   James Ross 

  • Open Rails Developer
  • Group: Status: Elite Member
  • Posts: 5,491
  • Joined: 30-June 10
  • Gender:Not Telling
  • Simulator:Open Rails
  • Country:

Posted 12 December 2011 - 08:56 AM

View Postwacampbell, on 12 December 2011 - 08:11 AM, said:

So are you thinking we don't support MSTS content?


Existing content, with this system, yes. There's nothing to stop it being used for new content that happens to use the MSTS file formats, if that's useful, but one of the important points is how it arranges the files - that poses problems to importing some MSTS content, at least, because of the relative paths involved. Maybe the majority of things would work, but it wasn't designed with that in mind.

#34 User is online   Genma Saotome 

  • Owner Emeritus and Admin
  • PipPipPipPipPipPipPipPipPipPipPipPipPip
  • Group: ET Admin
  • Posts: 15,350
  • Joined: 11-January 04
  • Gender:Male
  • Location:United States
  • Simulator:Open Rails
  • Country:

Posted 12 December 2011 - 09:24 AM

WRT Waynes's comments: Being able to name the level attached / right below \Content is a very god thing because then then each end user can self-organize (and re-organize, as the need arises). When such re-organization occurs, the string that forms the path name changes, or the file name itself changes, or both. A change applied directly to those strings will work of course... and then the question occurs of where else do the original strings occur? A dbms could handle that, tho the devil is always in the details. An alternative that might also work is the tilde / %name% idea that is, partially, not just a short cut but a set of foreign keys between master (the string in the tilde / %name% path record and the dependent records, which simply holds the shortcut value. It covers renaming the paths but not the files themselves.

WRT James's comments: One may hope the person providing the patch / revisions includes the original name and one may hope it's still known by that name on each PC, but I wouldn't count on that. As for everything you have in mind as a predefined directory, (1) why not simple use that?, and (2) What does that list of predefined names contain?

What it looks like is you've taken MSTS \routes, put two levels above that, and shuffled some directories that are in MSTS \routes up a level effectively making them \global\shapes, while leaving others alone. All in all, it's a bit like a series of MSTS mini-routes.

Anyway, at this point the concern I'm trying to express is first about clarity... how is thing going to be managed long term, and second to ask how is it going to be better than any other idea that pops up? I'm not trying to discourage the proposal but instead am probing for understanding. Hope you can bear with me as I ask questions.

#35 User is offline   wacampbell 

  • Member since Nov. 2003
  • Group: Fan: Traction Nuts
  • Posts: 2,347
  • Joined: 22-November 03
  • Gender:Male
  • Location:British Columbia, Canada
  • Country:

Posted 12 December 2011 - 09:42 AM

View PostGenma Saotome, on 12 December 2011 - 09:24 AM, said:

such re-organization occurs, the string that forms the path name changes,


Lets say we retain 'wag' type configuration files at least for the purposes of this explanation.
In that file there may be a link to a cab view file.
With the proposed file structure, that file reference would never contain a full path to the cab view file. It would reference the package by name, and the filename.
The actual location of the package can be in any content directory anywhere on any disk. And in a different location on different users computers. And in fact be freely moved by the end user should he want to reorganize his content folders. The only thing that must remain constant is the package name.

We leave it to OpenRails to search for the referenced package and complete the link at run time.

#36 User is offline   James Ross 

  • Open Rails Developer
  • Group: Status: Elite Member
  • Posts: 5,491
  • Joined: 30-June 10
  • Gender:Not Telling
  • Simulator:Open Rails
  • Country:

Posted 12 December 2011 - 09:43 AM

View PostGenma Saotome, on 12 December 2011 - 09:24 AM, said:

As for everything you have in mind as a predefined directory, (1) why not simple use that?, and (2) What does that list of predefined names contain?


For (1), I have no idea what you're asking.

For (2), the list isn't finalised but the idea is that every major file/object type has its own pre-defined directory, with exceptions for groups like the route example. It's hard to finalise the list without knowing what we're going to be having as OR file formats, so I've tried to use MSTS names when I can, but that's not set in stone or anything.

View PostGenma Saotome, on 12 December 2011 - 09:24 AM, said:

What it looks like is you've taken MSTS \routes, put two levels above that, and shuffled some directories that are in MSTS \routes up a level effectively making them \global\shapes, while leaving others alone. All in all, it's a bit like a series of MSTS mini-routes.


That's basically what I said in an earlier post. It's an attempt to improve upon the structure found in MSTS; shapes and textures, for example, don't need to be locked inside a route, so they're moved up. It also equalises the level of things, so there's no "global" involved - just what type of thing it is. You should certainly be able to include everything needed for a route (or multiple routes) in a single package - but it's not limited to that either.

#37 User is offline   longiron 

  • Open Rails Developer
  • Group: Status: Elite Member
  • Posts: 3,179
  • Joined: 25-July 08
  • Gender:Male
  • Location:Manasquan, NJ
  • Simulator:Open Rails, MSTS editors
  • Country:

Posted 19 December 2011 - 11:07 AM

Sorry for so many questions :>)

Does Open Rails require ENG files to have the two sections ENGINE & WAGON?
Does it mean anything to Open Rails where a parameter is located in the file, or section of file?
Is there an ideal order that parameters should be in?
Does the software just look for the PARAMETER NAME no matter where it resides in the file and loop to find the next one?

thanks

#38 User is offline   James Ross 

  • Open Rails Developer
  • Group: Status: Elite Member
  • Posts: 5,491
  • Joined: 30-June 10
  • Gender:Not Telling
  • Simulator:Open Rails
  • Country:

Posted 19 December 2011 - 12:30 PM

View Postlongiron, on 19 December 2011 - 11:07 AM, said:

Does Open Rails require ENG files to have the two sections ENGINE & WAGON?
Does it mean anything to Open Rails where a parameter is located in the file, or section of file?
Is there an ideal order that parameters should be in?
Does the software just look for the PARAMETER NAME no matter where it resides in the file and loop to find the next one?


The order of the parameters should not matter, but they must be nested correctly; this means they need to be in the expected section (engine vs wagon) and not inside any random other blocks.

#39 User is offline   longiron 

  • Open Rails Developer
  • Group: Status: Elite Member
  • Posts: 3,179
  • Joined: 25-July 08
  • Gender:Male
  • Location:Manasquan, NJ
  • Simulator:Open Rails, MSTS editors
  • Country:

Posted 19 December 2011 - 12:51 PM

View PostJames Ross, on 19 December 2011 - 12:30 PM, said:

The order of the parameters should not matter, but they must be nested correctly; this means they need to be in the expected section (engine vs wagon) and not inside any random other blocks.


Thank you. So they DO need to be in the expected section, that's an "ah ha". Do you believe there's any performance improvement by having an established order of parameters?

#40 User is offline   James Ross 

  • Open Rails Developer
  • Group: Status: Elite Member
  • Posts: 5,491
  • Joined: 30-June 10
  • Gender:Not Telling
  • Simulator:Open Rails
  • Country:

Posted 19 December 2011 - 01:42 PM

View Postlongiron, on 19 December 2011 - 12:51 PM, said:

Do you believe there's any performance improvement by having an established order of parameters?


No; the parser has to munch through the same number of characters and the same processing gets called for each no matter the order so it should not make any difference.

  • 17 Pages +
  • « First
  • 2
  • 3
  • 4
  • 5
  • 6
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users