-
Notifications
You must be signed in to change notification settings - Fork 61
WIP: MSTS consist / vehicle parser #684
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Have picked out the fixes to the format parser, through piped brake type and the renderer tweaks and rebased this back onto the head of master. |
|
Took a little more bashing, but we can now load a MSTS consist into the main game. Large detailed consists are rather slower than I'd like though, although this is poly-count related as opposed to anything else. We still need to find some speedups in the GL3 renderer. Further Thoughts:
|
|
A little more work done. Cabviews now load, but need a lot of components integrating. Camera restriction also appears to be broken. If wheelspin is disabled, we can actually move our trains. No sound, brakes or power notch simulation at the minute mind, so not exactly useful. |
|
Animation changes really want pulling to master when completed & working- This is a common method of doing things. Haven't tested performance yet, perhaps this would be better in shader when completed?! Unsure how complete the rest of this is at the minute.... |
|
API changes pulled out and merged into master, just to try and keep things in better sync. |
|
This branch will now load the new hierarchy objects. However, it doesn't get them into train exteriors, as the CarSection is tied to the current animated object. Still fiddling, heavy WIP. |
5f23a6d to
a53fd14
Compare
|
If this were to create, and I were able to create my own MSTS object, would it be possible to move the rod of a SL like this? bigboy.mp4 |
|
Abolutely. If we add an appropriate controller (for valve gear, this would primarily be the wheel radius), then the animations actually work correctly in the current build. (It'd be reasonably simple to add the wheel radii to train.xml so that a MSTS shape had working wheel animations, but the issue is that wheels can be attached to parent objects and stuff, which isn't yet really there) Unfortunately though, we don't yet have many of the actual controllers implemented in-game. MSTS has a reasonably readable textual format, and I'm basically currently using it to start to implement these missing systems, as a known working prototype. |
Build fix
Use helper function for digit mapping
Presumably MSTS is silently discarding values which make no sense
Because some stuff omits things....

This PR contains a parser for the MSTS consist / vehicle format, along with a lot of associated changes to backend systems.
Relevant changes are being cherry-picked into master and this PR rebased relatively regularly.
OpenRails content / physics is not targetted, but is passively supported (recognised as valid but otherwise ignored).
Currently Working:
Partially Working:
Not Currently Implemented:
Working Animations:
Unfortunately, the inbuilt consist / vehicle parser seems to have been very forgiving of errors in the textual block, which means that I'm still very much rehacking the base parser as I go along.....
Proabably want to cherry-pick the parser changes into the mainline branch.
30-odd van train from the 3DTS Cambrian route.
Class 47 & TEA tankers from Making Tracks' Network South East route.