coal wagons? splines or scenery items?

misterchugg

Active member
hi all

are there any australian coal wagons as scenery objects or maybe even as splines?
i need some to fill a few yards up with

thanks
ron
 
There is a way to do it, you could try this:

Rolling stock as scenery
Disables the physics of wagons until there are coupled.

code:--------------------------------------------------------------------------------
// staticwagon.gs
//
//© Wulf_9, 2005
include "Vehicle.gs"
class Static_Wagon isclass Vehicle {
Train myTrain;
public void Disable(void) {
Sleep(10.0);
myTrain = me.GetMyTrain();
if (myTrain) myTrain.EnablePhysics(false);
}
public void Init(void) {
inherited();
Disable();
}
};
--------------------------------------------------------------------------------
which will cause the consist to behave as scenery until it's coupled to (when this happens, physics are re-enabled automatically).
If you want a BIG consist, either :
increase the Sleep() delay (seconds) in the Disable() function (gives you more time to couple the wagons up)
OR
place as many as you want (and not worry about the time) then save the consist in the surveyor list and delete it off the track. Next time you place it, all the wagons will be present and the 10-second timeout will be enough.
Config.txt entries :
script "staticwagon"
class "Static_Wagon"
Copy the code into a file and save it in the vehicle folder - MUST make sure it's got .gs extension! Add the lines to the config and presto, job done

Dennis
 
I Thought the Polys Came From the Shape?!?

Dennis,

The idea of disabiling the rolling stock's physics until cuppled is very interesting. But how much computing power do you save? I thought the PC power hungrey polys came form the shape of the object not the physics until you moved it. I hope that I am wrong.

Very interesting idea. Needs some research.

Thanks
 
Dennis,

The idea of disabling the rolling stock's physics until coupled is very interesting. But how much computing power do you save? I thought the PC power hungry polys came from the shape of the object not the physics until you moved it. I hope that I am wrong.

Very interesting idea. Needs some research.

Thanks

Exactly what I was just going to ask!
 
Yes, Dennis, Wulf_9's script is brilliant, but ... what are the advantages of disabling physics? How does it affect to usual yard procedures?

Wagons are there, idle but there.

I confess I'm lost on this.

Thank you for any further explanation.

Alberte :wave:
 
Last edited:
Well, since the idea seemed very interesting to me, I did some research.

For rolling stock, I still see no advantage. But it's a brilliant idea for creating scrapped, out-of-order or simply old locos in a yard (engineless and driverless).

The script doesn't allow TRS driver setup to associate a driver to the loco, so it remains idle unattended at the beginning of a session. If coupled to another running loco, then it comes to life again. You can even move a driver from a living loco to it.

A solution to make it seem complete 'dead' is by changing:

engine 1

into:

engine 0

on the config.txt to make it lose traction power.

Of course, if realistic shunting is intended, any smoke effects should be removed since we are pretending the loco is 'dead'. Also, remove all enginesound references.

I have just done it on one of my old RENFE 333's. :hehe: and reskinning it to almost salvaging state.

Of course, when made from scratch, if low-poly meshes are used, our goal to save computing power will be achieved.

I will keep on researching on this. Very interesting approach.

Alberte :wave:
 
Last edited:
I must confess that I kep that piece of script to try out, but never got around to it.

I do remember having a spline of scenery boxcars once, can't remember the name now.

If you could find it and then convert the required wagons config to use it then you would have your string of scenery wagons.

Dennis
 
I do remember having a spline of scenery boxcars once, can't remember the name now.

Of course, Dennis. My good friend Ray, wiley4, has made several packs of spline boxcars. You can find all of them at the DS and info at his website:

http://www.auran.com/TRS2004/DLS.ph...4=1&DLS_TrainzVersion3=1&DLS_TrainzVersion2=1

http://wileystrainz.proboards32.com/index.cgi?board=tql&action=display&thread=1184049151

(Picture by Ray (wiley4))

BCsplines.jpg


Alberte :wave:
 
hi all
great replies.
i tried that thing dennis said, but the poly count is way up too high when i have 6 roads full in my yard.

does wiley4 have any coal wagon splines at all?

i cannot get into his username on the dls

thanks all
ron
 
I have just done it on one of my old RENFE 333's. :hehe: and reskinning it to almost salvaging state.

Of course, when made from scratch, if low-poly meshes are used, our goal to save computing power will be achieved.

I will keep on researching on this. Very interesting approach.

Alberte :wave:

:hehe: Done! Scenery/movable/coupleable locos! No engine, no light, no sound, just ready to be shunted and salvaged or scrapped.

waitforscrap.jpg


waitforscrap_2.jpg


ultimo_viaje_3.jpg

Available here --> http://www.ibertrainz.eu/noticias/?p=404

Alberte :wave:
 
Back
Top