New Route Editor for Open Rails Build routes without msts
#1321
Posted 29 January 2017 - 11:46 AM
But .ref editor is good idea to do in the future.
#1322
Posted 29 January 2017 - 05:41 PM
Christopher
#1323
Posted 30 January 2017 - 05:04 AM
Goku, on 29 January 2017 - 11:46 AM, said:
But .ref editor is good idea to do in the future.
Ho Thank you! As usual it is good idea. But....
Do we will can continue to customize CLASS?
Regards
#1324
Posted 30 January 2017 - 06:46 AM
#1325
Posted 30 January 2017 - 07:11 AM
Goku, on 29 January 2017 - 11:46 AM, said:
I think more sub-folders is a bad idea. And it sounds like you're proposing a sub-folder for every individual shape or collection of shapes. Maybe if this were some sort of global repository that all routes could draw from I could see it, but for each individual route? Nah. A central repository for Reference information that all routes could use to identify whatever arbitrary .s files they have in their Shapes folders would be a good idea. But if the user wants to add a shape to the route, the Editor can 1) let the user browse for an .s file 2) look for a .ref file in the same or parent path as the shape being added. 3) locate the .ref entries for the shape in that .ref file 4) automatically import that information into the route being edited's .ref file 5) copy the shape's files (.s, .sd, .ace) to the route's folders 6) make the shape immediately available for use. If .ref file data is not available, the Editor can prompt the user to fill in the information (e.g. Type [Static, LevelCr, etc.], Class, Shadow, Description, etc.) and then proceed with step #4. If other shape data files (.s, .sd, .ace) are missing, the operation fails with an error. If the .sd file calls for extended, seasonal textures that do not exist, the user gets warned or the operation fails with an error.
#1326
Posted 30 January 2017 - 07:44 AM
Directories are much easier than .REF file. Directory name is .REF class name. Each directory can contain any number of .s files. Each directory has one settings file that define type of world object.
Of course it is only Alternative solution suggestion, not .REF replacement.
#1327
Posted 30 January 2017 - 11:10 AM
- more advanced and intuitive "stick to track"
- gui fixes, better behaviour
- pos & rot tools for groupObj
- better app themes
#1328
Posted 30 January 2017 - 11:56 AM
Goku, on 30 January 2017 - 07:44 AM, said:
Yes it does increase the file count. As far as the file system is concerned, folders are files. I would say MSTS installations with millions of files are already stressful enough on the file system.
It makes it harder to find and manage shape files in a route. "Hmmm which folder are _those_ in, again?"
It breaks software like Shape Viewer which is coded to look for textures in the shape's folder, or a peer folder called Textures.
It makes backing-up and manually archiving routes more complicated because of having to manage the sub-folders.
It could help prevent one type of file name collision but introduces folder name collisions.
#1329
Posted 30 January 2017 - 12:15 PM
Jovet, on 30 January 2017 - 11:56 AM, said:
No it doesn't incrase. Ok, it increase but by constant value of only several files (1-100 fies/route). One directory = one ref class, not one .s file.
Jovet, on 30 January 2017 - 11:56 AM, said:
Harder? Finding shape in directory containing 99999 files is almost impossible by hand. You need to use "search". Subdirectories is the way to make it more user friendly.
Jovet, on 30 January 2017 - 11:56 AM, said:
It breaks nothing. Textures are still where they are.
Jovet, on 30 January 2017 - 11:56 AM, said:
?? You just copy or ignore Shapes directory like now.
Jovet, on 30 January 2017 - 11:56 AM, said:
Folder name collisions. How?
Maybe you don't understand the idea ...
#1330
Posted 30 January 2017 - 12:36 PM
thank you again this work you are doing is some of the most important work done since the start of OR.
:sign_thanks: :sign_thanks: :sign_thanks:
Chris
#1331
Posted 30 January 2017 - 03:11 PM
WRT the route builders perspective, what concerns me is there is parametric data in each line of the *.ref file that will need to be relocated. Moving that concept to a "class" directory ref file is, IMO not good enough because the change will accomplish nothing of value for the route builder. IMO most, if not all of the data in each line of the *.ref file belongs in the shapes own .sd file. Its Shape Description file. If not KUJU's .sd file then an OR defined replacement for the .sd file. There are lots of proposed new features that could be added there as well.
WRT these .sd files... basically what we're dealing with here is all of the game specific data that are required but cannot be recorded in any of the 3d modeling tools. Examples beyond the .sd include .eng and .wag files... they're bigger of course, but their purpose is also game data you cannot record in the 3d modeling tools. That sort of data must be recorded somewhere and that's exactly what KUJU had in mind when the defined all of those. So either extend their design and enhance the .sd file or design a full and comprehensive replacement for it and then for starters flesh it out with the data from the lines in the *.ref file.
Do that and Goku's proposed directories could hold the .s, .sd (or its replacement) and possibly extraneous files such as a uniquely named readme/credit file for each of those shapes. If someone has 20 shapes for various trees, they're going to call them trees, whether it's in a ref file or a directory name. They're not going to set them up as Tom's Tree, Dick's tree, and Harry's tree, etc. etc. 20 different classes. On doing that I expect we'd usually see 10-30 directories created for this purpose. Having done that it becomes a bit easier to grab a directory and move it to a different project, or send it to a friend, that how we do things today.
Route builders will probably consolidate many shapes into these directories, much as they've done with class names
IMO it's VERY important that the proposed directories DO NOT include texture files as there are lots and lots of textures that are shared by many shapes -- track and roads for two examples. Leave textu5res where they are.
#1332
Posted 30 January 2017 - 03:26 PM
Genma Saotome, on 30 January 2017 - 03:11 PM, said:
What calls?, what directory change? OR and MSTS doesn't use .REF file.
There is no difference in performance at all. Maybe it is 0.0000001% because of longer file paths. Code is the same. As I told, many routes already use this approach, for Dynatrack tracks and other common objects. It is nothing new ... however I don't like this approach because of ugly file names and that is why it is still not available in TSRE. But I like the idea.
Genma Saotome, on 30 January 2017 - 03:11 PM, said:
Nothing? Now if route builder wants to import object to route, he needs to:
1. Find .s and .ace files and Copy & Paste them.
2. Open .ref file and find proper entry.
3. Open .ref file and paste the entry.
If it is one file, then not that bad. But inporting 50 objects is a pain.
Using subdirectories you need only Copy & Paste files. And if you want one class, Copy & Paste one directory.
Genma Saotome, on 30 January 2017 - 03:11 PM, said:
It would require loading all .sd files on app startup, so it isn't good idea ( but something to think about in the future ).
#1333
Posted 30 January 2017 - 06:42 PM
- fixed satellite bug
- save map images to disk (to load from disk just click "show/h map"),
- tracks are not placed outside tile border
- dynamic track .W file values fix
#1334
Posted 30 January 2017 - 07:12 PM
Goku, on 30 January 2017 - 03:26 PM, said:
Perhaps I misunderstood your intentions. Where are you placing these directories you propose? I assumed under <routename>\shapes.
Goku, on 30 January 2017 - 03:26 PM, said:
You could wait until first use. Do you load every .s file right now, just in case it is to be placed somewhere? But that's not really all that important, what is important is that data from the *.ref lines has to be recorded somewhere, right? What are you proposing to do with it? Throw it away?
#1335
Posted 30 January 2017 - 07:15 PM
Genma Saotome, on 30 January 2017 - 07:12 PM, said:
But if .sd files will be replacement for .ref file, all should be loaded on startup to make list of classes and objects.
Genma Saotome, on 30 January 2017 - 07:12 PM, said:
No, because there is .ref file with basic object info.
Genma Saotome, on 30 January 2017 - 07:12 PM, said:
I don't want to throw .ref file away now. Subdirectory is only solution to extend this file. I think it is not right time to think about .ref file functionality replacement.