New Route Editor for Open Rails Build routes without msts
#1
Posted 16 May 2015 - 08:09 AM
NEW VERSION ->
http://www.elvastowe...post__p__229639
Older ->
EXE IS ONLY AN UPDATE. YOU NEED TO DOWNLOAD ZIP VERSION AND REPLACE EXE FILES!!!!!!!!!
http://www.elvastowe...post__p__198133
http://www.elvastowe...878#entry190878
(first version)
=================================================================================================
I made a simple route editor this winter. I think someone would be intrested.
It allows to create and edit routes for OR and MSTS. It's also very fast route viewer.
It's written in c++, OpenGL and QT, based on my own TS engine I made a few years ago. No other dependencies, so all you need is Windows with OpenGL. Possibility to compile for linux/mac. No MSTS needed at all. Only Global and Routes folders.
=================================================================================================
Launching:
1. Download: http://koniec.org/ts...SRE5_v0.501.zip
2. Unzip
3. Run TSRE5.exe
After start you have to choose MSTS root directory or OR installation profile.
http://i.imgur.com/2mfXqOq.png
If you don't want to choose it every time, edit this line in settings.txt:
gameRoot = C:/train simulator
Next you can select existing route or create new one:
http://i.imgur.com/dDGuibS.png
If you don't want to select route every time, edit this line in settings.txt:
routeName = cmk
If createNewIfNotExist is set to true, new routes with routeName will be created automatically.
New routes will work only with OR. MSTS requires more magic for terrain etc.
=================================================================================================
Controls in Editor:
[move]
AWSD, arrows, mouse - move
Q, space - up
E, shift - fast
[select]
R - rotation tool
T - translation tool
Y - resize tool (works only with transfer objects)
1,2,3,4,5,6,7,8,9 - use tool R/T/Y ( numpad required :rotfl: )
Alt - change step
[placement]
P - pick placement settings from selected object
C - clone object
X - change track end (use before Z)
Z - insert into TDB
Delete - delete object
[route]
M - save
B - create new tile at current position
0 - (zero) delete old and create new paths
=================================================================================================
How to use - simplest route:
http://i.imgur.com/oGMmoMY.png
1, 2 - select track section
3 - click 'place new'
4 - left click on the ground to add new object
5 - press 'Z' to add track to TDB.
6 - repeat
7, 8 - select tree1.s
9 - left click on the ground to add trees
10 - press 'M' or Route->Save to save the route
10 - press '0' or Route->Save Paths to create and save new Paths
10 - remember endNode number where you want to start OR game
11 - choose this endnode in OR
12 - enjoy your own OR route!
More complex route? Add new shapes and textures to route and new entries to .ref file.
=================================================================================================
Route viever:
I've tested this software with success on huge routes: http://i.imgur.com/9SlRiCj.png , it takes one second to load route from SSD.
If you want to only explore MSTS routes, it's required to set those options in settings.txt
writeEnabled = false
writeTDB = false
toolsHidden = true
Misc:
If you prefer bright theme / system theme, set
systemTheme = true
=================================================================================================
What works:
- all world tile objects are properly loaded and saved
- only shapes works in binary and text mode. other files only text mode
- only static obj, track obj and transfer obj can be placed ( can place almost infinite number of objects on one tile ). Nothing more at the moment
- track items in TDB are not supported. If you want to edit existing MSTS route with track items, set writeTDB = false or delete track items
- placing tracks sometimes doesn't work as expected
I don't know if without track items it's useful at all as route editor, but it's lots of fun with making route even for 'explore route' mode.
I'll add dynamic track placing and terrain editing later.
Sources also later :)
#2
Posted 16 May 2015 - 09:36 AM
#5
Posted 16 May 2015 - 12:11 PM
Not all routes will open in it either
EDIT: Removed speculation involving aliased shapes.
#6
Posted 16 May 2015 - 12:42 PM
Genma Saotome, on 16 May 2015 - 12:11 PM, said:
What you mean?
Genma Saotome, on 16 May 2015 - 12:11 PM, said:
If aliased global filenames are ../../../ (?) then everything works fine. I checked lots of routes and only original kuju routes don't work becouse of binary world .w files.
#7
Posted 16 May 2015 - 12:46 PM
Now, it COULD be a good thing, A couple of points though,
At the moment there's no source code so without that it's a dead end.
As far as I am concerned using OpenGL and the QT libraries is good news, but its not what OR is currently using so along with no source there's no posibilty of out side help. So its probably of little use to the OR developers and THEY ARE THE PEOPLE THAT MATTER.
Lindsay
#8
Posted 16 May 2015 - 12:56 PM
On this computer running an o/c i5 the scrolling is very smooth. When interactives can be placed I think we have a usable tool here. Thankyou Goku.
#9
Posted 16 May 2015 - 01:25 PM
Lindsayts, on 16 May 2015 - 12:46 PM, said:
It's more for OR users, not developers. Although I found today one bug in OR thanks to the editor :)
copperpen, on 16 May 2015 - 12:56 PM, said:
Interactives are on far end of development because it's only part of route I know nothing about.
#10
Posted 16 May 2015 - 01:30 PM
Goku, on 16 May 2015 - 12:42 PM, said:
If aliased global filenames are ../../../ (?) then everything works fine. I checked lots of routes and only original kuju routes don't work becouse of binary world .w files.
This:

Number of downloads: 120

Number of downloads: 112
Obviously there is a lot of work still to be done so what follows is not complaining but observation: There is a lot of moire showing... I know that's always hard to deal with but as it stands right now it's showing many times more than either MSTS or Open Rails. The blue pin looks perfectly flat instead of the sphere it actually is; I expect that's because you've not had a chance to do much w/ shadows.
Every route I've opened has no terrain displayed.
Several routes cause the program to crash and disappear... it's like click on open and before you can blink the program window is gone. I'll try again.
I don't mean any of this to be discouraging... just pointing a couple of things that come to mind as open issues.
Also, you are correct about the aliasing.
#11
Posted 16 May 2015 - 01:50 PM
Genma Saotome, on 16 May 2015 - 01:30 PM, said:
All this is easy to do and I did it two years earlier (just AA and normals disabled), but in editor functionality is far more important than graphics quality.
Genma Saotome, on 16 May 2015 - 01:30 PM, said:
Several routes cause the program to crash and disappear... it's like click on open and before you can blink the program window is gone. I'll try again.
It could be some system specific issue or maybe routes from other world side doesn't work. No one tested it before excluding me.
You can give me some route with no terrain issue for testing.
#12
Posted 16 May 2015 - 02:03 PM
EDIT. Having read the above post, I reconsidered what I was seeing. The routes that displayed terrain were European. The routes that did not were USA.
In a lot of cases where terrain is missing it starts at a point well below any track that is there. Actually when only track is shown it is hard to decide if it is above or below the viewpoint.
Do not get put off by all this criticism, but there is a long way to go yet before this becomes a fully functional editor. I think you should get together with some of the Open rails development team coders and see how this would fit in.
#13
Posted 16 May 2015 - 02:48 PM
copperpen, on 16 May 2015 - 02:03 PM, said:
Fixed now - link replaced. Was very small bug, easy to fix. I had only european routes so I missed that :)
Fixed.
Random rare crashes also fixed.
#14
Posted 16 May 2015 - 04:46 PM
I echo what other people say -- the best course is to coordinate with the open rails team. You've done the easy part . . . putting what you've done out there for community push-back is hard. But the benefits are large and the result is a product that would have the benefit of broad support, in both senses of the word -- you'd have lots of help as well as lots of grateful users.
It might make sense to recruit a few other people to help you, to make the work easier (and maybe less lonely).
I have been putting off starting to create routes because I've been waiting for an open rails route editor. In the meantime I can't use MSTS tools any more because my main computer is now windows 8 and my previous one lost its motherboard. I have what a dozen, two dozen routes I really want to dive in and make. But I've been waiting, holding back. So the appearance of this route editor is a terrific excitement. I look forward to when it is ready for me to jump in!
For example . . . Dave was just asking about a nice B&O route. We need one of those . . .
Christopher
#15
Posted 16 May 2015 - 04:49 PM