Removing an object from a shape file?

General MSTS related discussion that doesn't really fit into any of the other specific forums.

Moderator: Moderators

User avatar
J94Fan
Been on the forums for a while
Posts: 294
Joined: Sun Dec 23, 2001 12:00 am

Removing an object from a shape file?

Post by J94Fan »

Hello :)

I'm trying to remove an object from a station's shape file. The object is a trackside vehicle, which looks out of place. Is there any way to find the object in the shape file, and remove it?

:)
User avatar
douglee
Very Active Forum Member
Posts: 5230
Joined: Sun Jan 18, 2004 11:09 am
Location: Isle of Man

Re: Removing an object from a shape file?

Post by douglee »

Hi J94Fan,
Any changes you make must be for your own use only. Do not distribute the amended files.

One way.

First BackUp the Shapes,Textures folders and the Ref file for the route to change.

In the folder Routes/(your route)/SHAPES search the file name of the object use short descriptions eg. 'trolley' 'till you find a likely shape.
Check, with ShapeViewer, it's the one you want cut the .s and .sd files and paste into a folder on the Desktop.
While in ShapeViewer look at the Textures required for the shape and note them.
Then go to the Texture file for the same route and find them, this time copy the files to the Desktop folder. They might be used by another shape.
Now open the Ref file for the route find the entry for the shape and cut that into the Desktop folder, be careful to cut only the file you want to remove. Take away a '(' or a ')' from another entry and the route won't work.
If the object is a moving vehicle on the roads. Do the same as for the Ref file in the CarSpawner file but also decrease the number at the top of the Spawner list by the total number you remove. Put that in the Desktop folder.

You now have a usable copy of the object in the Desktop folder. Only use it for your own enjoyment.

Second way.

Open the route editor fly to the object and delete it from the route, then save the route. Then it's gone for good.

A £1 will get you two there is an easier way, and I'm sure it will appear here soon. :D
"If it is not broke do not try to fix it"
Rest in Peace Doug L, you will be missed by many, many members of the Forum.
Least We Forget.
Doug L
User avatar
J94Fan
Been on the forums for a while
Posts: 294
Joined: Sun Dec 23, 2001 12:00 am

Re: Removing an object from a shape file?

Post by J94Fan »

Thanks for taking the time to reply, but the object is embedded within a station's shape file e.g.

Station.S

Station.s contains the platform, fences, buildings, and the offending object.

How do I remove the object's "polygons" from the S file? :)
User avatar
douglee
Very Active Forum Member
Posts: 5230
Joined: Sun Jan 18, 2004 11:09 am
Location: Isle of Man

Re: Removing an object from a shape file?

Post by douglee »

Hi J94Fan?,
Short answer?

No idea. :D

I don't think reverse engineering of content is allowed.

Remove the station and replace it wih another one that fits?

Don't look as you pass. :D Now I'm getting silly.
"If it is not broke do not try to fix it"
Rest in Peace Doug L, you will be missed by many, many members of the Forum.
Least We Forget.
Doug L
User avatar
Bigant
Very Active Forum Member
Posts: 1220
Joined: Sat Mar 23, 2002 12:00 am
Location: Midlands, CC5 and Burton Derby Author

Re: Removing an object from a shape file?

Post by Bigant »

Not sure but you could try 'shap file manager'

Don
Author Cannock Chase, Black Country 1,
Burton, Derby & District route, co-author Scottish Central plus route. Now working on Stoke - Nottingham route an upgrade to Burton Derby route
User avatar
ianmacmillan
Very Active Forum Member
Posts: 9588
Joined: Fri Feb 28, 2003 12:39 pm
Location: N. Lanarkshire Scotland

Re: Removing an object from a shape file?

Post by ianmacmillan »

It is almost impossible to track down which of the thousands of lines in a shape file refers to the part you wish to delete.

One solution to your problem is to place a larger object over it to hide it.
[album 80489 WWCo.jpg]
If it's got buffers it's Chain.
User avatar
J94Fan
Been on the forums for a while
Posts: 294
Joined: Sun Dec 23, 2001 12:00 am

Re: Removing an object from a shape file?

Post by J94Fan »

Thanks for the replies above!

I've noticed that you can view the "model hierarchy" in Shape Viewer. It breaks down the shape file into the various sections ....... I must find a way of tapping into that info ;)
User avatar
mikesimpson
Very Active Forum Member
Posts: 6361
Joined: Mon Dec 03, 2001 12:00 am
Location: Southern Hemisphere Penal Colonies
Contact:

Re: Removing an object from a shape file?

Post by mikesimpson »

You might be able to find the object in the Station's .ace files and change its colour to match the background of the platform or whatever it is standing on so that it would almost disappear,
Mike in OZ - Author of TS-Tools & Route-Riter.
http://www.agenetools.com
I'm not arguing (just explaining why I'm right).
User avatar
J94Fan
Been on the forums for a while
Posts: 294
Joined: Sun Dec 23, 2001 12:00 am

Re: Removing an object from a shape file?

Post by J94Fan »

Hi

The object is quite large, and so it wouldn't blend in ..... thanks for the idea anyway!
User avatar
WSR2005
Very Active Forum Member
Posts: 1359
Joined: Wed Oct 05, 2005 6:22 pm
Location: South Devon
Contact:

Re: Removing an object from a shape file?

Post by WSR2005 »

Couldn't you make the object invisible using an alpha channel? Either if it has it's own .ace file, or finding it in a larger .ace file.

Just a thought.

Tim
Tim McLennan (WSR2005)

Alderney Railway WIP - Donationware pack for MSTS
http://forums.uktrainsim.com/viewtopic. ... 40&t=82125
http://mstsalderney.webs.com
User avatar
J94Fan
Been on the forums for a while
Posts: 294
Joined: Sun Dec 23, 2001 12:00 am

Re: Removing an object from a shape file?

Post by J94Fan »

Good idea .... do I use white or black in the alpha channel? :)
User avatar
WSR2005
Very Active Forum Member
Posts: 1359
Joined: Wed Oct 05, 2005 6:22 pm
Location: South Devon
Contact:

Re: Removing an object from a shape file?

Post by WSR2005 »

J94Fan wrote:Good idea .... do I use white or black in the alpha channel? :)
Black makes the texture transparent 8)
Tim McLennan (WSR2005)

Alderney Railway WIP - Donationware pack for MSTS
http://forums.uktrainsim.com/viewtopic. ... 40&t=82125
http://mstsalderney.webs.com
User avatar
J94Fan
Been on the forums for a while
Posts: 294
Joined: Sun Dec 23, 2001 12:00 am

Re: Removing an object from a shape file?

Post by J94Fan »

:drinking:

Adding a black alpha channel does nothing - the texture still appears as normal?!
User avatar
WSR2005
Very Active Forum Member
Posts: 1359
Joined: Wed Oct 05, 2005 6:22 pm
Location: South Devon
Contact:

Re: Removing an object from a shape file?

Post by WSR2005 »

I presume you have selected Export .ace with alpha?

If so, make sure the .ace file is 'transnorm' - I must admit I'm not quite sure about this part so have a look around the forums, or maybe a more knowledgeable person will help us out :)

Tim
Tim McLennan (WSR2005)

Alderney Railway WIP - Donationware pack for MSTS
http://forums.uktrainsim.com/viewtopic. ... 40&t=82125
http://mstsalderney.webs.com
User avatar
J94Fan
Been on the forums for a while
Posts: 294
Joined: Sun Dec 23, 2001 12:00 am

Re: Removing an object from a shape file?

Post by J94Fan »

Ok, thanks! ;)
Locked

Return to “[MSTS1] General MSTS Discussion”