Elvas Tower: Route Riter & Open Rails - Elvas Tower

Jump to content

  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

Route Riter & Open Rails Rate Topic: -----

#1 User is offline   Genma Saotome 

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

Posted 18 January 2015 - 11:15 AM

Jeff,

I understand you've been given a copy of the Route Riter source code, w/ permission to enhance it... is that right?

I can think of one thing right off that would be good to add: .Engs and .wags now have a command word "Include()" that is a pointer to another text file (type .inc). Any test for file completeness that doesn't deal with these Include files will fail. I can provide some files for testing if needed.

Something old: RR never tested the logical integrity of water layer levels across a range of tiles -- are all four corners equal where 4 tiles touch?
Something new: Test for untextured polys.

#2 User is offline   Jeffrey Kraus-Yao 

  • Banned
  • PipPipPipPip
  • Group: Status: Fired
  • Posts: 282
  • Joined: 25-July 08
  • Gender:Male
  • Location:Madison
  • Simulator:Microsoft Train Simulator
  • Country:

Posted 18 January 2015 - 11:39 AM

Erased.

#3 User is offline   Genma Saotome 

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

Posted 18 January 2015 - 12:07 PM

The include file is unique to OR and yeah, fixing the SU exporter is proper; I've been asking for help in that regard for years but nobody takes up the task. FWIW Ruby is pretty interesting... it was inspired by Smalltalk so it's quite OO.

A list of shapes that are not used would also be useful but only at the very end when you're cleaning things up. That may already be there.

Something else (I hesitate to mention it): it seems that RE allocates memory from record 0 to the largest value UiD() of the 4 tiles currently displayed -- in full, w/o regard to the fact that many of those UiD() values are not actually in use. This can lead to RE aborting while trying to save to a world file. I've found that renumbering the UiD() values to a tight range -- no gaps in the list of numbers used) both fixes that problem and leaves RE more well behaved / faster/smoother than before. Naturally renumbering UiD's is fraught with risk... leaving to this suggestion: AFAIK the UiD() values for static objects can be safely changed. Taking those objects are renumbering them from the known gaps can drop the max UiD() value by several thousand. It's something you might consider addessing.

A second suggestion, also w/ some hesitation: I assign a StaticDetailLevel() value to every object I use. This leads to the sorting of entries in the world file. Anything from the \global\shapes directory gets zero. Track bridges, etc. get 1, Berms 2, Buildings 3, vegetation and all other items are 4-9 with 10 reserved for tools. Aside from the utility of making it a bit easier to work with having all of the world file entries located in one continuous block and everything else in another means only 2 system calls are needed to change the read directory whereas w/o it leads to hundreds, perhaps thousands of such calls per tile. I would expect similar benefit were identical static shapes sorted into sequential order. It's a small thing when done... a sure amount of complexity while doing, but it might make a noticeable difference in the tile loading phase of train.exe.

#4 User is offline   R H Steele 

  • Executive Vice President
  • PipPipPipPipPipPipPipPipPip
  • Group: ET Admin
  • Posts: 3,445
  • Joined: 14-March 13
  • Gender:Male
  • Location:known universe
  • Simulator:Open Rails
  • Country:

Posted 18 January 2015 - 12:17 PM

This is an extremely interesting prospect. I've been following this thread over at Train Sim. I have found RouteRiter to be an exremely valuable tool and extending it's usefulness to ORTS and also adding functions is a very good idea.
:rotfl: to Mike for releasing the code to Jeffrey and much thanks to Jeffrey for taking on the task.

#5 User is offline   Jeffrey Kraus-Yao 

  • Banned
  • PipPipPipPip
  • Group: Status: Fired
  • Posts: 282
  • Joined: 25-July 08
  • Gender:Male
  • Location:Madison
  • Simulator:Microsoft Train Simulator
  • Country:

Posted 18 January 2015 - 12:33 PM

Erased.

#6 User is offline   conductorchris 

  • Vice President
  • Group: Status: First Class
  • Posts: 2,345
  • Joined: 24-March 10
  • Gender:Male
  • Simulator:Open Rails - MSTS
  • Country:

Posted 18 January 2015 - 01:02 PM

Route-Riter is a great tool and I am grateful to you Jeffrey for taking it on to keep it integrated with Open Rails. And grateful that Mike Simpson has given that possibility life through his donation of his code.

I wonder if it is worth some rethinking of it's format for the future? For example, many of the functions to help route-builders might profitably be integrated into a future route builder. The consist builder might go well with a future activity builder.

Likewise, some functions might be better tucked away a bit for beginners to find later. Or appropriate warnings and explanations added.

I also wonder if there is a possibility of working with Mike Warren and merging the consist builder with YardMaster making them part of open rails.

Christopher

#7 User is offline   Jeffrey Kraus-Yao 

  • Banned
  • PipPipPipPip
  • Group: Status: Fired
  • Posts: 282
  • Joined: 25-July 08
  • Gender:Male
  • Location:Madison
  • Simulator:Microsoft Train Simulator
  • Country:

Posted 18 January 2015 - 01:15 PM

Erased.

#8 User is offline   copperpen 

  • Executive Vice President
  • Group: Status: Elite Member
  • Posts: 3,144
  • Joined: 08-August 05
  • Gender:Male
  • Simulator:MSTS & OR
  • Country:

Posted 18 January 2015 - 01:42 PM

View PostJeffrey Kraus-Yao, on 18 January 2015 - 01:15 PM, said:


One integration I have in mind for Open Rails is if an .eng or .wag file has an Include statement but is missing elements required for Train Simulator that these required elements will be copied from the included file.




Not sure what you actually mean here. An include statement in an OR style eng or wag file is there so that many can utilise the include, with only one file to edit to make a change to the include. So brakes and couplings to mention just two items, will be absent from an OR eng/wag file. To then copy these from the include into the eng/wag will defeat the object of using includes.

#9 User is offline   Jeffrey Kraus-Yao 

  • Banned
  • PipPipPipPip
  • Group: Status: Fired
  • Posts: 282
  • Joined: 25-July 08
  • Gender:Male
  • Location:Madison
  • Simulator:Microsoft Train Simulator
  • Country:

Posted 18 January 2015 - 01:57 PM

Erased.

#10 User is offline   conductorchris 

  • Vice President
  • Group: Status: First Class
  • Posts: 2,345
  • Joined: 24-March 10
  • Gender:Male
  • Simulator:Open Rails - MSTS
  • Country:

Posted 18 January 2015 - 05:29 PM

Jeffrey, I am really happy to hear what you are writing.

An advantage of folding this into open rails is that it doesn't depend so much on one person. When one person burns out or moves on, it is there for others (like yourself) to pick up. A similar advantage is that different people have different talents. For example, many open source projects have usability groups that improve what the main coders have done.

Christopher

  • 2 Pages +
  • 1
  • 2
  • 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