Adding Child Objects to existing content?

General discussion about RailWorks, your thoughts, questions, news and views!

Moderator: Moderators

Locked
User avatar
DazDood
Been on the forums for a while
Posts: 298
Joined: Mon Jan 14, 2008 11:29 pm
Location: Crewe, Cheshire

Adding Child Objects to existing content?

Post by DazDood »

Hi all, mods please feel free to move this if its in the wrong forum

As stated in the topic, is it possible to add a child object to an existing object in the such as one of the default wagons for example.

Am I not much mistaken that extra headlights (albeit none working ones) were added to the class 47 for some reskins?

If so how can I go about adding to default models?

Regards

Daz
Riding the rails till journey's end!

Creating North West Rail - A Route for RailWorks! - http://forums.uktrainsim.com/viewtopic. ... 4&t=105858
Kariban
Very Active Forum Member
Posts: 4478
Joined: Sun Nov 07, 2010 4:10 am

Re: Adding Child Objects to existing content?

Post by Kariban »

* Make new child model
* Export as scenery
* Clone existing child entry - eg the sound child - and insert path to your scenery item
* spend an hour reloading a scenario to get it positioned ( scenario, not the whole game ) as you fiddle with the position matrix.
* Smile.
My posts are my opinion, and should be read as such.
User avatar
DazDood
Been on the forums for a while
Posts: 298
Joined: Mon Jan 14, 2008 11:29 pm
Location: Crewe, Cheshire

Re: Adding Child Objects to existing content?

Post by DazDood »

Ok, I have made a simple box as a test and want to attach to a wagon. I have exported as a scenery object but am clueless to what you mean by "Clone existing child entry - eg the sound child - and insert path to your scenery item"

Also having done a search through the forum I should be able to visually position the object in the Asset Editor? - But if is the case how can I load a default asset to position it on?

Regards

Daz
Riding the rails till journey's end!

Creating North West Rail - A Route for RailWorks! - http://forums.uktrainsim.com/viewtopic. ... 4&t=105858
User avatar
bdy26
Very Active Forum Member
Posts: 3854
Joined: Thu Oct 07, 2004 8:34 pm
Location: Manchester, rain.

Re: Adding Child Objects to existing content?

Post by bdy26 »

Search the bin file for "child" - the driver, sounds, lights are all referred to as children. Each will show the path to the object, plus a set of figures that set the position. Essentially you need to copy an entry, and then change it to refer to your new object. The hour is to tweak the figures to get it in the right place!

B
http://bdy26.co.uk/sbhh/

Builder of The Cockermouth Keswick and Penrith Railway and Lancaster to Carlisle for RW; purveyor of dirty diesels to Vulcan Productions.
User avatar
DazDood
Been on the forums for a while
Posts: 298
Joined: Mon Jan 14, 2008 11:29 pm
Location: Crewe, Cheshire

Re: Adding Child Objects to existing content?

Post by DazDood »

bdy26 wrote:Search the bin file for "child" - the driver, sounds, lights are all referred to as children. Each will show the path to the object, plus a set of figures that set the position. Essentially you need to copy an entry, and then change it to refer to your new object. The hour is to tweak the figures to get it in the right place!

B
I've copied the reference to driver from one of the default locos and changed the path to the object to reference my box object but it doesn't even show up when I place the wagon.

Am I doing something wrong? and I'm quite surprised there isn't a tutorial on this.
Riding the rails till journey's end!

Creating North West Rail - A Route for RailWorks! - http://forums.uktrainsim.com/viewtopic. ... 4&t=105858
Kariban
Very Active Forum Member
Posts: 4478
Joined: Sun Nov 07, 2010 4:10 am

Re: Adding Child Objects to existing content?

Post by Kariban »

It's quite possibly inside the wagon - you'll have to adjust the position, which is the last three numbers but 1 in the Matrix section.
My posts are my opinion, and should be read as such.
User avatar
DazDood
Been on the forums for a while
Posts: 298
Joined: Mon Jan 14, 2008 11:29 pm
Location: Crewe, Cheshire

Re: Adding Child Objects to existing content?

Post by DazDood »

Kariban wrote:It's quite possibly inside the wagon - you'll have to adjust the position, which is the last three numbers but 1 in the Matrix section.
Well I have managed to coppy the dummy light model that was added to some of the class 37 reskins and have managed to get that to appear several meteres infront of my wagon. However when changing to reference my box it still displays the light.
Riding the rails till journey's end!

Creating North West Rail - A Route for RailWorks! - http://forums.uktrainsim.com/viewtopic. ... 4&t=105858
User avatar
Shadders
Established Forum Member
Posts: 322
Joined: Sun Oct 14, 2007 7:58 pm

Re: Adding Child Objects to existing content?

Post by Shadders »

Fun isn't it? :-?

A child objects position, rotation etc is controlled by a 4x4 matrix. Adjusting the position relative to the centre of the parent object is relatively easy but it get a little more complex if you need to rotate the child.

Kariban's post's here was really helpful for me:
http://forums.uktrainsim.com/viewtopic. ... 4x4+matrix

Good luck.
Locked

Return to “[RW] General RW Discussion”