Elvas Tower: Use Cab View as default start view - Elvas Tower

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Use Cab View as default start view Start as Cab view instead of outside front view Rate Topic: -----

#1 User is offline   BillonRail 

  • Apprentice
  • Group: Status: Inactive
  • Posts: 21
  • Joined: 20-January 12
  • Gender:Male
  • Simulator:OpenRail
  • Country:

Posted 10 April 2014 - 11:56 AM

Hi,

Does anyone know how to change the code/setting of the Open Rails so that by default it start with the "Cab View" (press 1) instead of the "Outside Front View" (press 2). I searched in the launcher options, but didn't find it. I tried change that in the source code, but quickly got lost as I am not so familiar with this project. Can somebody help me point it out or talk about the possible solution to this?

Thanks!

#2 User is offline   captain_bazza 

  • Chairman, Board of Directors
  • PipPipPipPipPipPipPipPipPipPipPip
  • Group: ET Admin
  • Posts: 13,927
  • Joined: 21-February 06
  • Gender:Male
  • Location:Way, way, way, South
  • Simulator:MSTS & OR
  • Country:

Posted 10 April 2014 - 08:10 PM

The cab view is just a click away. :thumbup3:

Cheers Bazza

#3 User is online   cjakeman 

  • Vice President
  • PipPipPipPipPipPipPipPip
  • Group: ET Admin
  • Posts: 2,870
  • Joined: 03-May 11
  • Gender:Male
  • Location:Peterborough, UK
  • Simulator:Open Rails
  • Country:

Posted 11 April 2014 - 10:35 AM

 BillonRail, on 10 April 2014 - 11:56 AM, said:

Does anyone know how to change the code/setting of the Open Rails so that by default it start with the "Cab View" (press 1) instead of the "Outside Front View" (press 2). I searched in the launcher options, but didn't find it. I tried change that in the source code, but quickly got lost as I am not so familiar with this project. Can somebody help me point it out or talk about the possible solution to this?

There is no such setting (yet), so you will have to change your code.

I suggest inserting the assignment
Camera = CabCamera;
in Viewer.cs at line 340 immediately before the call
CameraActivate();

Some locos do not have a cab interior at all, so the role of
CameraActivate();
is to change the camera but if the view is not available, then the Key 2 (Front Camera) view is used instead.

#4 User is offline   BillonRail 

  • Apprentice
  • Group: Status: Inactive
  • Posts: 21
  • Joined: 20-January 12
  • Gender:Male
  • Simulator:OpenRail
  • Country:

Posted 17 April 2014 - 11:08 AM

 cjakeman, on 11 April 2014 - 10:35 AM, said:

There is no such setting (yet), so you will have to change your code.

I suggest inserting the assignment
Camera = CabCamera;
in Viewer.cs at line 340 immediately before the call
CameraActivate();

Some locos do not have a cab interior at all, so the role of
CameraActivate();
is to change the camera but if the view is not available, then the Key 2 (Front Camera) view is used instead.

I found it by searching around in the source code, which is exact the function you mentioned. Thanks very much, I can save this click now LOL :D

#5 User is offline   Genma Saotome 

  • Owner Emeritus and Admin
  • PipPipPipPipPipPipPipPipPipPipPipPipPip
  • Group: ET Admin
  • Posts: 15,359
  • Joined: 11-January 04
  • Gender:Male
  • Location:United States
  • Simulator:Open Rails
  • Country:

Posted 17 April 2014 - 08:15 PM

Crhis, can you add to the Activity Editor the feature to specify starting camera position? Seems to me that's the most useful location... perhaps w/ a default setting in the routes *.trk file.

#6 User is offline   jan111 

  • Fireman
  • Group: Status: Active Member
  • Posts: 122
  • Joined: 11-November 13
  • Gender:Male
  • Location:Copenhagen
  • Simulator:OpenRails & MSTS
  • Country:

Posted 20 April 2014 - 09:50 AM

Where do I find the Viewer.cs?

#7 User is online   cjakeman 

  • Vice President
  • PipPipPipPipPipPipPipPip
  • Group: ET Admin
  • Posts: 2,870
  • Joined: 03-May 11
  • Gender:Male
  • Location:Peterborough, UK
  • Simulator:Open Rails
  • Country:

Posted 20 April 2014 - 10:39 AM

 jan111, on 20 April 2014 - 09:50 AM, said:

Where do I find the Viewer.cs?

It's in Source\RunActivity\Viewer3D

Instructions for getting the source code are at http://openrails.org/source.html

Hope that helps,

#8 User is offline   roeter 

  • Vice President
  • Group: Status: Elite Member
  • Posts: 2,426
  • Joined: 25-October 11
  • Gender:Male
  • Country:

Posted 22 April 2014 - 04:18 AM

There is one situation where I think something should be done.
When starting a train in a tunnel, the view will set to cab (camera 1), as view 2 is not available in a tunnel.
But on exiting the tunnel one suddenly jumps out in front of the train - it's quite unexpected, and, ofcourse, one never selects the cabview by pressing '1' when starting in the tunnel as that view is allready displayed.

Starting in a tunnel is not as strange as it may seem : apart from stations on metro networks, there are quite a few tunnel-stations for mainline or semi-mainline services in major cities, eg. New York (Penn Central Station), London (Moorgate, Farringdon), Glasgow (Low Level stations), Frankfurt and München (S-Bahn platforms), Schiphol Airport station (Netherlands), Antwerpen (new central station), Brussel Centraal etc. etc.

Regards,
Rob Roeterdink

:bravo: I have been promoted! This is my 1000th post! :D

#9 User is offline   R H Steele 

  • Executive Vice President
  • PipPipPipPipPipPipPipPipPip
  • Group: ET Admin
  • Posts: 3,447
  • Joined: 14-March 13
  • Gender:Male
  • Location:known universe
  • Simulator:Open Rails
  • Country:

Posted 22 April 2014 - 01:12 PM

 roeter, on 22 April 2014 - 04:18 AM, said:

:party: I have been promoted! This is my 1000th post! :)


Time to get you off the streets and behind a desk writing memos! Congrats, see you around the water cooler. :good2:

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users