BVE WorldWide
Would you like to react to this message? Create an account in a few clicks or log in to continue.

New Feature: MSTS Shape Parser

+2
ecreek
SP1900
6 posters

Go down

New Feature: MSTS Shape Parser Empty New Feature: MSTS Shape Parser

Post by leezer3 Wed May 16, 2018 2:02 pm

https://vps.bvecornwall.co.uk/OpenBVE/Builds/OpenBVE-2018-05-16.zip

Today's build of openBVE introduces a major new feature: A parser for MSTS models in the .S format.

Both compressed binary and uncompressed textual models are supported.

Limitations:

  • Animations are not supported.
  • Lighting is not supported.
  • Luminance / reflection is not supported.
  • RouteViewer is not supported, only Object Viewer and the main simulation.
  • Minimal error checking!


A couple of screenshots next, both from the default content:
New Feature: MSTS Shape Parser 39972290-f23f7da2-5703-11e8-9338-9778339e1ae5

New Feature: MSTS Shape Parser 39992836-efda5254-576b-11e8-956b-ad18744646d7

Whilst this represents a massive opportunity, please be considerate and respect the rights of those who have created models for MSTS-
This *will* be being enforced by the moderating team.

Thanks Smile

leezer3

Posts : 1955
Join date : 2011-08-23

http://www.bvecornwall.co.uk

Back to top Go down

New Feature: MSTS Shape Parser Empty Re: New Feature: MSTS Shape Parser

Post by SP1900 Wed May 16, 2018 6:56 pm

Wow. Thank you so much. I think this could really help a lot
SP1900
SP1900

Posts : 301
Join date : 2017-12-08
Age : 21

Back to top Go down

New Feature: MSTS Shape Parser Empty Re: New Feature: MSTS Shape Parser

Post by ecreek Fri May 18, 2018 5:25 am

I got this error message in the object viewer on a fresh install of MSTS -

An unexpected error occured (Could not load file or assembly 'Formats.Msts, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.) while attempting to load the file H:\Program Files (x86)\Microsoft Games\Train Simulator\TRAINS\TRAINSET\ACELA\acela.s

ecreek

Posts : 62
Join date : 2011-08-23

Back to top Go down

New Feature: MSTS Shape Parser Empty Re: New Feature: MSTS Shape Parser

Post by leezer3 Fri May 18, 2018 11:36 am

No idea why these things always work locally, but not in the automatically built copies Razz

https://vps.bvecornwall.co.uk/OpenBVE/Builds/OpenBVE-2018-05-18.zip


Tested and working on a clean machine Smile
(Note: Testing the acela.s file, I think the rotation on the windscreen wipers may be glitched, but that's likely related to the lack of animations. Pantograph is also permanently down)

leezer3

Posts : 1955
Join date : 2011-08-23

http://www.bvecornwall.co.uk

Back to top Go down

New Feature: MSTS Shape Parser Empty Re: New Feature: MSTS Shape Parser

Post by ecreek Fri May 18, 2018 12:18 pm

Thanks Chris. Working now.

ecreek

Posts : 62
Join date : 2011-08-23

Back to top Go down

New Feature: MSTS Shape Parser Empty Re: New Feature: MSTS Shape Parser

Post by HijauKuda Tue Jun 05, 2018 4:56 am

Sir Chris
I did try use of a microsoft train with the S file for a lokomotif
though I am having problem with object backwards on the track
and the rotateyfunction not allowed the turning to correct direction.  How do I use the s shape and rotateyfunction?

Good day and night for you
Hijau

HijauKuda

Posts : 102
Join date : 2012-01-18

Back to top Go down

New Feature: MSTS Shape Parser Empty Re: New Feature: MSTS Shape Parser

Post by leezer3 Tue Jun 05, 2018 10:18 am

Use the following in extensions.cfg:
Code:
Reversed=true

leezer3

Posts : 1955
Join date : 2011-08-23

http://www.bvecornwall.co.uk

Back to top Go down

New Feature: MSTS Shape Parser Empty Re: New Feature: MSTS Shape Parser

Post by HijauKuda Tue Jun 05, 2018 11:02 am

Sir Chris
In making the lokomotif have the head lamps working b3d with animated
to the animated combination file with the shape s that is backwards
I must think again how to do this?

Good day and night for you
Hijau

HijauKuda

Posts : 102
Join date : 2012-01-18

Back to top Go down

New Feature: MSTS Shape Parser Empty Re: New Feature: MSTS Shape Parser

Post by Delsin Thu Jul 26, 2018 2:07 am

Checked it out and looks promising. Oddly though, animated pantographs are raised while other animated parts (doors, mirrors etc) remains in "stowed" positions.
Will the animations be supported later?
Delsin
Delsin

Posts : 313
Join date : 2016-08-20

Back to top Go down

New Feature: MSTS Shape Parser Empty Re: New Feature: MSTS Shape Parser

Post by leezer3 Thu Jul 26, 2018 11:57 am

Don't know Razz

To be more specific:

MSTS animations are based upon a set of keyframes defined by quaternions. Our first problem is that the internal animation system isn't written around keyframes, but rather straight linear interpolation between values.
This isn't insurmountable in and of itself, just a pain in the neck I haven't thought about yet.

However, if we get the function itself working, most of the useful animation targets aren't something we currently support; For example, openBVE has no internal concept of a wheel or it's rotation position per-se, you've instead got to manually work out the wheel position / offsets yourself from the supplied data. (Animating the valve gear on the Manor, I ended up writing an entire set of plugin functions to do this)

All in all, there may be some of the more generic ones at some stage, but nothing promised quickly.

leezer3

Posts : 1955
Join date : 2011-08-23

http://www.bvecornwall.co.uk

Back to top Go down

New Feature: MSTS Shape Parser Empty Re: New Feature: MSTS Shape Parser

Post by ap1991 Sun Nov 25, 2018 11:16 pm

Quick question in regards to using MSTS objects, I'm just trying something, I've downloaded a train from UKTS, I've found the objects for it and can get the .s files to open in Object Viewer but I've tried to add a .s file into a route and use is an a train exterior but can't get it to work, do I need to do anything to the .s file or any part of the MSTS train file for it to work as it should?
ap1991
ap1991

Posts : 296
Join date : 2014-07-25
Age : 32
Location : Warwickshire

https://adamp19914.wixsite.com/bvecentral

Back to top Go down

New Feature: MSTS Shape Parser Empty Re: New Feature: MSTS Shape Parser

Post by ap1991 Tue May 19, 2020 6:03 pm

Digging up a two year old thread here I know, but I've finally had some look using MSTS train external objects, I've used the FGW 180 paired with the BVE4Trains class 180 and I must say it looks rather tasty.

I know this could turn into a potential minefield in regards to copyright but for personal use I can't see any issues.

I think the biggest stumbling block would be getting in contact with the original MSTS developers as most of the content is approaching 20 years old...

New Feature: MSTS Shape Parser 119
ap1991
ap1991

Posts : 296
Join date : 2014-07-25
Age : 32
Location : Warwickshire

https://adamp19914.wixsite.com/bvecentral

Back to top Go down

New Feature: MSTS Shape Parser Empty Re: New Feature: MSTS Shape Parser

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum