What's this?

Go down

What's this?

Post by graymac on Wed Feb 28, 2018 2:19 pm

I've been revisiting and improving some older stuff I haven't looked at for ages. I've noticed an odd thing when I load a route - there seems to be a copy of the loco in front of the cab window. Only visible in F1 (cabview) mode, F2,F3 & F4 cameras don't show it. I  get it with earlier versions of program, so its not a program problem, must be something I've cocked up.
Any ideas what's gone wrong?

(pic of error  - Route:  Ballyfeckin - WVDocks5A  218 container train)

avatar
graymac

Posts : 1876
Join date : 2011-08-28
Location : Co Mayo, Eire

http://www.celtictrainsim.com

Back to top Go down

Re: What's this?

Post by leezer3 on Wed Feb 28, 2018 3:43 pm

It's because you've set the driver car to Car #1, not Car #0 (Remember, zero-based indexing....)

Interesting little glitch though, it shouldn't be doing this, will have to look into exactly why. At a guess, something somewhere is assuming the driver car is always Car #0.
Edit: Specifically, it's hiding the object for the driver car. but keeping all others visible on first load. This is broken.....

leezer3

Posts : 1115
Join date : 2011-08-23

http://www.bvecornwall.co.uk

Back to top Go down

Re: What's this?

Post by graymac on Wed Feb 28, 2018 4:07 pm

Extracts from train.dat:
Code:
#CAR
117            ; MotorCarMass
1              ; NumberOfMotorCars
25             ; TrailerCarMass
18              ; NumberOfTrailerCars
24.6           ; LengthOfACar
1              ; FrontCarIsAMotorCar
 and extensions.cfg:
Code:
[car0]
Object = ..\218_IE\218.ANIMATED
length = 21
Axles = -6.8, 6.8
Reversed = false

[car1]
Object = ..\..\Container_Wagon\CW-ned.b3d
length = 15.25
Axles = -4.75, 4.75
Reversed = false

[car2]
Object = ..\..\Container_Wagon\CW-ned.b3d
length = 15.25
Axles = -4.75, 4.75
Reversed = false

   ......etc for further 16 cars

Is it the train or extensions file that is in error?
avatar
graymac

Posts : 1876
Join date : 2011-08-28
Location : Co Mayo, Eire

http://www.celtictrainsim.com

Back to top Go down

Re: What's this?

Post by leezer3 on Wed Feb 28, 2018 4:29 pm

Neither of those.

In the #COCKPIT section of train.dat, change the last number to zero, e.g.
Code:

#COCKPIT
-700
2750
-1000
0

leezer3

Posts : 1115
Join date : 2011-08-23

http://www.bvecornwall.co.uk

Back to top Go down

Re: What's this?

Post by graymac on Wed Feb 28, 2018 4:35 pm

That's done the trick!   Míle buoichas!!  A thousand thanks Smile
avatar
graymac

Posts : 1876
Join date : 2011-08-28
Location : Co Mayo, Eire

http://www.celtictrainsim.com

Back to top Go down

Re: What's this?

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum