Vehicles that crash MSTSbin

A fantastic patch for MSTS 1 that adds immense extra capabilities and fixes. See more at http://mstsbin.uktrainsim.com

Moderator: Moderators

Vehicles that crash MSTSbin

Postby ianmacmillan on Mon Dec 18, 2006 10:07 pm

Some models have animations which MSTS bin dosn't like.
The usual reason is the use of Wheels1 and Wheels2 as part names in the shape file.

The cure is to remove the animation section at the end of the shape file and to change the Wheels1 and Wheels2 entries in the Matrix section to read Wheels11 and Wheels21.

So far I have found.....

Mike Simpson's breakdown crane runner wagon.
Crane1 (black), Crane1_red and Crane_Yellow

Tim Courts original class 124 DMU.
Now replaced by a new version avaliable from the BATS site.

If anyone finds any others please post here.
Last edited by ianmacmillan on Wed Dec 20, 2006 11:55 am, edited 1 time in total.
[album 80489 exterminate.jpg]
Why won't my picture work?
User avatar
ianmacmillan
Very Active Forum Member
 
Posts: 9565
Joined: Fri Feb 28, 2003 12:39 pm
Location: N. Lanarkshire Scotland

Postby Easilyconfused on Mon Dec 18, 2006 10:57 pm

I am going to make this a sticky thread right now.

Cheers

John
User avatar
Easilyconfused
Building a Model Railway
 
Posts: 9931
Joined: Tue Dec 31, 2002 9:06 am
Location: Bristol

Postby mikesimpson on Mon Dec 18, 2006 10:59 pm

Hi Ian,

I think you refer to the file Matchwaggon.s in my Cranes, there is no animation section in those .s files? However, I agree renaming Wheel1,Wheel2 to Wheel11,Wheel12 should fix the problem.

Mike
Mike in OZ - Author of RW_Tools & Route-Riter.
Image
User avatar
mikesimpson
Very Active Forum Member
 
Posts: 4004
Joined: Mon Dec 03, 2001 12:00 am
Location: Southern Hemisphere Penal Colonies

Postby ianmacmillan on Tue Dec 19, 2006 1:29 am

I've been meaning to send you the modified files Mike.

Just not got around to it.

Now sent.
[album 80489 exterminate.jpg]
Why won't my picture work?
User avatar
ianmacmillan
Very Active Forum Member
 
Posts: 9565
Joined: Fri Feb 28, 2003 12:39 pm
Location: N. Lanarkshire Scotland

Vehicle errors that crash bin

Postby alanch on Tue Dec 19, 2006 7:41 pm

Hi Ian

Is there any way that ordinary punters like me can edit the Wheels entries so that the rolling stock works with Bin 6.1? Is it just a question of uncompressing the .s file with Shape Fixer, editing the text file, and recompressing it, or does it have to be done with the original 3D model?

Alan
User avatar
alanch
Very Active Forum Member
 
Posts: 2776
Joined: Mon Feb 27, 2006 6:07 pm
Location: Leeds, England

Postby systema on Tue Dec 19, 2006 8:19 pm

YES,

Its just the shape file that is faulty, so the process you outlined should work. Don't forget to recompress when your happy its working OK. Make sure you identify all the entries with wheels and change them as explained above.

Mick Clarke
User avatar
systema
Very Active Forum Member
 
Posts: 2933
Joined: Mon Sep 08, 2003 8:00 pm
Location: The Heart of Cheshire

Postby ianmacmillan on Tue Dec 19, 2006 8:20 pm

Yes. you can edit in SFM.

But remember to back up first.

I have sent Mike the modified files for the cranes. Hopefully he will upload them.

For the 124, download the updated version from the BATS site. It's freeware.
[album 80489 exterminate.jpg]
Why won't my picture work?
User avatar
ianmacmillan
Very Active Forum Member
 
Posts: 9565
Joined: Fri Feb 28, 2003 12:39 pm
Location: N. Lanarkshire Scotland

Editing Wheels in .s files

Postby alanch on Tue Dec 19, 2006 8:44 pm

OK - I'll give it a go with the Swiss wagon that started me down this road.

I've found three sections of the .s file that have Wheels in them:

matrices ( 5
matrix Main ( 1 0 0 0 1 0 0 0 1 0 0 0 )
matrix Wheels2 ( 1 0 0 0 1 0 0 0 1 -0.789 0.48 1.889 )
matrix Wheels1 ( 1 0 0 0 1 0 0 0 1 0.789 0.48 1.904 )
matrix Wheels3 ( 1 0 0 0 1 0 0 0 1 0.789 0.48 -1.658 )
matrix Wheels4 ( 1 0 0 0 1 0 0 0 1 -0.789 0.48 -1.654 )
)

prim_states ( 8
prim_state Main_SolidNorm ( 00000000 0
tex_idxs ( 1 0 ) 0 0 0 0 1
)
prim_state Main_SolidNorm ( 00000000 0
tex_idxs ( 1 1 ) 0 0 0 0 1
)
prim_state Wheels2_SolidNorm ( 00000000 0
tex_idxs ( 1 0 ) 0 1 0 0 1
)
prim_state Main_TransNorm ( 00000000 1
tex_idxs ( 1 0 ) 0 0 1 0 1
)
prim_state Main_TransNorm ( 00000000 1
tex_idxs ( 1 1 ) 0 0 1 0 1
)
prim_state Wheels1_TransNorm ( 00000000 1
tex_idxs ( 1 0 ) 0 2 1 0 1
)
prim_state Wheels3_TransNorm ( 00000000 1
tex_idxs ( 1 0 ) 0 3 1 0 1
)
prim_state Wheels4_TransNorm ( 00000000 1
tex_idxs ( 1 0 ) 0 4 1 0 1
)
)

animations ( 1
animation ( 7 30
anim_nodes ( 5
anim_node Main (
controllers ( 0 )
)
anim_node Wheels12 (
controllers ( 0 )
)
anim_node Wheels11 (
controllers ( 0 )
)
anim_node Wheels13 (
controllers ( 0 )
)
anim_node Wheels14 (
controllers ( 0 )
)
)
)
)

It looks like just the first two need editing so they match the Animations section - is that right? I'm assuming that all sections should say Wheels11, Wheels12, Wheels13, and Wheels14 to match the Animations.

Alan
User avatar
alanch
Very Active Forum Member
 
Posts: 2776
Joined: Mon Feb 27, 2006 6:07 pm
Location: Leeds, England

Editing Wheels in .s files

Postby alanch on Tue Dec 19, 2006 9:24 pm

Eureka - that worked! I've answered my own questions. If you need to know, the wagon in questions is RhB-Uce8067.wag from the Albula stock pack, which installs into the RhB-Uce-8067-8086 folder. I'll sort out the other 3 wagons in the folder as well.

Now all I have to do is find the rest of the rolling stock with the errors, and fix them all! We could do with a tool to do this - uncompress the shape file, search for Wheels1 to Wheels4, replace and recompress. Beyond my skills, I'm afraid.

Alan
User avatar
alanch
Very Active Forum Member
 
Posts: 2776
Joined: Mon Feb 27, 2006 6:07 pm
Location: Leeds, England

Postby ianmacmillan on Tue Dec 19, 2006 10:17 pm

Can you post the folder and file names of any wagons you find to help others.
[album 80489 exterminate.jpg]
Why won't my picture work?
User avatar
ianmacmillan
Very Active Forum Member
 
Posts: 9565
Joined: Fri Feb 28, 2003 12:39 pm
Location: N. Lanarkshire Scotland

Vehicles that crash MSTSbin

Postby alanch on Wed Dec 20, 2006 8:55 am

I certainly will post details as I find them, though the words needle and haystack come to mind.

Best wishes for Christmas and the New Year
Alan
User avatar
alanch
Very Active Forum Member
 
Posts: 2776
Joined: Mon Feb 27, 2006 6:07 pm
Location: Leeds, England

Postby systema on Wed Dec 20, 2006 10:54 am

I don't think there are that many.

The only one I personally came across was the Green 124 from Tim Court which is quite old and no longer downloadable from UKTS. The may be locos with the problem but it doesn't lseem to ock MSTS up if the shapes are related to eng files.

Mick Clarke
User avatar
systema
Very Active Forum Member
 
Posts: 2933
Joined: Mon Sep 08, 2003 8:00 pm
Location: The Heart of Cheshire

Re: Vehicles that crash MSTSbin

Postby dforrest on Wed Dec 20, 2006 11:50 am

ianmacmillan wrote:The cure is to remove the animation section at the end of the shape file and to change the Wheels1 and Wheels2 entries in the Matrix section to read Wheels11 and Wheels21.


Just to be absolutely clear on this, are you saying remove all of the "Animation" section from the end of the file and change the number suffix of the "Wheels" entries in the "Matrix" section earlier in the file?

And that this applies to "Matchwaggon.s" only?

David
User avatar
dforrest
Very Active Forum Member
 
Posts: 4331
Joined: Wed Jun 05, 2002 12:00 am
Location: Mustique, St. Vincent and the Grenadines (and in an earlier life, Hull)

Vehicles that crash MSTSbin

Postby alanch on Wed Dec 20, 2006 5:35 pm

OK - I've found and corrected another one, used in Wupper Express 10, which I think Otto has already mentioned. For the sake of completeness I'll add it to this sticky thread.

Folder DB_Talent_643.2 Files DB_Talent_643.2_1.s, DB_Talent_643.2_2.s and DB_Talent_643.2_bogie.s. The first two are .eng shapes and the last a .wag shape.

Wheels1 and Wheels2 appear in the Matrices and Animations sections - I've edited them in both sections to Wheels11 and Wheels 12, and it now works.

Alan
User avatar
alanch
Very Active Forum Member
 
Posts: 2776
Joined: Mon Feb 27, 2006 6:07 pm
Location: Leeds, England

Correcting faulty shape files

Postby alanch on Wed Dec 20, 2006 6:29 pm

I've just posted a lengthy description of how I've beeen correcting shape files in a thread in the General MSTS forum which I thought might be useful here. If any one finds anything dangerously wrong with this, tell me and I'll correct it.

--------------------------------------------------------------------------------------

I've worked out a method of doing this for myself, but the biggest problem is finding which item of rolling stock is faulty (if that is your problem).

You need Shape File Manager (not Shape Viewer) because that lets you uncompress and recompress the .s files so you can edit them with a text editor - I can't remember where I got Shape File Manager from but a search should find it. I use Context as my text editor (lots of mentions in this Forum so search if you want it, and get the add in to highlight MSTS files), but Wordpad will do the job.

This is what I do:

Run the Activity in question through Trainstore - this narrows down the rolling stock you have to search through.

Then run Conbuilder to list all the carriages/tenders/wagons - I think the light version should work.

Then find the folders with each item of stock - this is the hard bit, but easier for me because I've created a database of every item of rolling stock I have installed using data exported by Routeriter. Copy (not move) these folders to somewhere else on your hard disk. It might be a good idea to back them up to a third location as well. And if that fails, I hope you have kept your download files somewhere safe.

Open up Shape File Manager and point it at the folders you have just created, uncompress each shape file in turn, and open the .s file in your text editor. Search for Wheels and see if there are any Wheels1, Wheels2, Wheels3 or Wheels4 entries. If not, then that item of stock should be OK. If there are, I've edited them to say Wheels11, Wheels12, Wheels13 and Wheels14 and that has worked. I'm not sure whether this would be different if the wheels are parts of different bogies.

Once you have finished editing all the .s files in the folder, and saved them, compress them with Shape File Manager, and copy them back to their original folder.

I steadily work through each folder, looking for faulty .s files, and when I have found and corrected them, I test the activity again, and see if it works. So far they have.

Alan
User avatar
alanch
Very Active Forum Member
 
Posts: 2776
Joined: Mon Feb 27, 2006 6:07 pm
Location: Leeds, England

Next

Return to [MSTS1] MSTSbin

Who is online

Users browsing this forum: Google [Bot] and 0 guests