Previous Thread
Next Thread
Print Thread
Rate This Thread
Hop To
#4341539 - 03/02/17 05:25 PM While messing with trains....  
Joined: Apr 2002
Posts: 12,497
MrJelly Offline
Veteran
MrJelly  Offline
Veteran

Joined: Apr 2002
Posts: 12,497
Montagnac, L'Herault, France
From programming the source code I have learned a few tricks, including making the rendering of rail tracks and the appearance of MGOs conditional. A couple of days ago I added some rail lines to my "Little Bob" theatre, which s using the "Smooth hilly" height map. Some of the tracks ran up quite steep hills, and it brought the possibility of tunnels into play.
The upshot was a new exe with code that made it only display the track and the train if the height was below a set maximum.
It actually worked, but there is no tunnel graphic and if there are bends in the track it is very difficult to find where the track and train will emerge.
The trains and tracks actually reappeared out of hillsides, but miles from where they entered.
It is totally impractical, but I got a kick from being able to get it to work.
The spin-off is that today I did more work on the railway editor, getting it to use a height map, so that the tracks can be located so that steep hills are avoided wink


Fly EAW online at GameRanger: GameRanger Site

FaceBook Pages
UAW 160 downloads
EAW Club

Mark Twain: I am quite sure now that often, very often, in matters concerning religion and politics a man's reasoning powers are not above the monkey's.

I am now of an age at which I no longer need to suffer fools gladly
Inline advert (2nd and 3rd post)

#4341545 - 03/02/17 05:44 PM Re: While messing with trains.... [Re: MrJelly]  
Joined: Apr 2002
Posts: 12,497
MrJelly Offline
Veteran
MrJelly  Offline
Veteran

Joined: Apr 2002
Posts: 12,497
Montagnac, L'Herault, France
I just tried it again, the track graphic is a road and not a rail track. The first picture shows it's disappearance, the second its re-appearance, and the third has the target convoy on the track

Attached Files tun1.jpgtun2.jpgtun3.jpg

Fly EAW online at GameRanger: GameRanger Site

FaceBook Pages
UAW 160 downloads
EAW Club

Mark Twain: I am quite sure now that often, very often, in matters concerning religion and politics a man's reasoning powers are not above the monkey's.

I am now of an age at which I no longer need to suffer fools gladly

Moderated by  RacerGT 

Quick Search
Recent Articles
Support SimHQ

If you shop on Amazon use this Amazon link to support SimHQ
.
Social


Recent Topics
Actors portraying British Prime Ministers
by Tarnsman. 04/24/24 01:11 AM
Roy Cross is 100 Years Old
by F4UDash4. 04/23/24 11:22 AM
Actors portraying US Presidents
by PanzerMeyer. 04/19/24 12:19 PM
Dickey Betts was 80
by Rick_Rawlings. 04/19/24 01:11 AM
Exodus
by RedOneAlpha. 04/18/24 05:46 PM
Grumman Wildcat unique landing gear
by Coot. 04/17/24 03:54 PM
Peter Higgs was 94
by Rick_Rawlings. 04/17/24 12:28 AM
Whitey Herzog was 92
by F4UDash4. 04/16/24 04:41 PM
Copyright 1997-2016, SimHQ Inc. All Rights Reserved.

Powered by UBB.threads™ PHP Forum Software 7.6.0