Help with MSTS2Loco

Discuss, get help with, or post new modifications, graphics or related tools for Locomotion in this forum.

Moderator: Locomotion Moderators

Post Reply
User avatar
glenjimen
Traffic Manager
Traffic Manager
Posts: 139
Joined: 16 Aug 2013 00:44

Help with MSTS2Loco

Post by glenjimen »

I feel like I am digging up an old topic here, but here goes:

I have made a 3D model in sketch-up 7, and using the "Train Simulator" Plug-in, I can create a .S file to be used in MSTS. The problem I have is when I run MSTS2Loco and open the .S file, I get "Error 5 - Invalid procedure call or argument", then "Run-time error '5' Invalid procedure call or argument", then the program closes.

I get this error every time I make a model with textures. When I try to open a model in MSTS2Loco without textures, nothing happens. I messed with the distance and Y offset tools thinking the object was just out of view, nope...

I have searched all over the forums and the web using Google, with no luck.

I can make the .XML code fine, so I feel like this is the only thing stopping me from adding new objects to the game.

Any help would be greatly appreciated!
Visit the Directory --> Loco-Dat-Directory
lsbc
Engineer
Engineer
Posts: 92
Joined: 06 May 2012 03:21

Re: Help with MSTS2Loco

Post by lsbc »

Although I have no experience with sketch up I have had the same error with MSTS2Loco with models made with TS modeler. My guess would me a surface on your model has either a texture missing or a texture that wasn't converted right. With TSM there is a convertion text made for every conversion and it points to the missing or troubled area. Most times with TSM it is a texture that has too many colors and the make ace conversion fouls the whole works. With TSM the texture file has to be one of the following 16x16, 32x32, 64x64 128x128 256x256 or 512x512 pixels in either bmp or tga file format.

Try decreasing the number of colors in the texture. Also with models I've made with TSM a test of the texture I plan on using helps prevent the problem. I make a cube and texture it and if converts right to a s file I run thru MSTS2Loco, when both work fine I know that I can use the texture.

Again I do not us sketch up so these might not help you but perhaps a TSM user will read this and it'll help them
User avatar
Walter1940
Tycoon
Tycoon
Posts: 989
Joined: 19 Mar 2007 01:30
Location: Munich, Germany
Contact:

Re: Help with MSTS2Loco

Post by Walter1940 »

@glenjimen
Short question: Can you open your vehicle with the Shape Viewer?
http://www.walter1940.de
Vehicles for Locomotion

Tutorials in english
- From MSTS to Locomotion ---> http://www.walter1940.de/tutorial/msts2loco/
- Wally ---> http://www.walter1940.de/tutorial/wally/
- xml-modding ---> http://www.walter1940.de/tutorial/xml-modding/
User avatar
glenjimen
Traffic Manager
Traffic Manager
Posts: 139
Joined: 16 Aug 2013 00:44

Re: Help with MSTS2Loco

Post by glenjimen »

@Isbc : I have tried making simple shapes like cubes with no success. The texture I am using is a 64x64 black .bmp (I also tried a .TGA). Every time I try to load a .S file into MSTS2Loco, it fails, but with no texture it either works, but is invisible, or does nothing (they both look the same).

@Walter1940 : In Shape Viewer i cannot open .S files with textures I have imported.
I can open .S files that have been painted using sketchup's paint-bucket tool (one solid color).

I know this model is way too detailed for loco, I was just having fun :)
sketchupScreen1.JPG
sketchupScreen1.JPG (96.65 KiB) Viewed 418 times
shapeVeiwerScreen1.JPG
shapeVeiwerScreen1.JPG (35.45 KiB) Viewed 2202 times
Visit the Directory --> Loco-Dat-Directory
lsbc
Engineer
Engineer
Posts: 92
Joined: 06 May 2012 03:21

Re: Help with MSTS2Loco

Post by lsbc »

http://www.trainsim.com/vbts/search.php ... id=2009628

A lot of sketch up topics at train sim. You might take the time to read them for those guys/gals do some amazing things for MSTS. Also Walter does have a bunch of knowledge with converting MSTS models. I get the same error with TSM but having read the forums about TSM at train sin com most times it a texture problem. It's a great site if you also play MSTS (as I do), but beware when downloading, they do NOT like their models converted to loco without permission.
User avatar
Walter1940
Tycoon
Tycoon
Posts: 989
Joined: 19 Mar 2007 01:30
Location: Munich, Germany
Contact:

Re: Help with MSTS2Loco

Post by Walter1940 »

glenjimen wrote: @Walter1940 : In Shape Viewer i cannot open .S files with textures I have imported.
I can open .S files that have been painted using sketchup's paint-bucket tool (one solid color).
Exactly that is the problem. You can not use textures of Skechup. The textures you need to recreate it with tgatool and MakeAceWin.
On wisim-community.net, there were a Quick Start Guide. But in German and unfortunately now incomplete.
But you can write the user AZUWSK. He creates its models successfully with Sketchup.
http://www.walter1940.de
Vehicles for Locomotion

Tutorials in english
- From MSTS to Locomotion ---> http://www.walter1940.de/tutorial/msts2loco/
- Wally ---> http://www.walter1940.de/tutorial/wally/
- xml-modding ---> http://www.walter1940.de/tutorial/xml-modding/
User avatar
glenjimen
Traffic Manager
Traffic Manager
Posts: 139
Joined: 16 Aug 2013 00:44

Re: Help with MSTS2Loco

Post by glenjimen »

Walter1940 wrote:The textures you need to recreate it with tgatool and MakeAceWin.
OH, there is a special tool that I need to create the textures, I was just using Photo-Shop. Thank you Walter1940, this may solve every thing? :D

Another thing that may really help is; could someone could post a texture they know works in MSTS2Loco? If I had an example of what I need to create, it would be much easier to create it!
Visit the Directory --> Loco-Dat-Directory
lsbc
Engineer
Engineer
Posts: 92
Joined: 06 May 2012 03:21

Re: Help with MSTS2Loco

Post by lsbc »

It comes with MSTS
Attachments
US2LewisHotel.ace
(170.96 KiB) Downloaded 71 times
User avatar
glenjimen
Traffic Manager
Traffic Manager
Posts: 139
Joined: 16 Aug 2013 00:44

Re: Help with MSTS2Loco

Post by glenjimen »

The texture didn't work, I applied it to a simple cube.
I got Run-time error 6. Overflow.
It does work in shape viewer, meaning the problem is probably somewhere in my 3D modeling process.
Visit the Directory --> Loco-Dat-Directory
Post Reply

Return to “Locomotion Graphics, Modifications & Tools”

Who is online

Users browsing this forum: No registered users and 22 guests