Elvas Tower: Cablight? - Elvas Tower

Jump to content

  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

Cablight? Rate Topic: -----

#11 User is online   cjakeman 

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

Posted 22 February 2014 - 12:18 PM

Hi Peter,

View Postgpz, on 12 February 2014 - 11:06 PM, said:

The reading of cablight folder was commented out by Chris some time ago (year, or so).

Not sure where you mean or why I did that. Can you give me the location and perhaps that will jog a brain-cell?

#12 User is offline   gpz 

  • Superintendant
  • Group: Status: Elite Member
  • Posts: 1,772
  • Joined: 27-October 12
  • Gender:Male
  • Location:Budapest
  • Simulator:OpenRails
  • Country:

Posted 22 February 2014 - 01:59 PM

After some investigation I found out the textures are getting read into memory, but never used. The reading of them was introduced in r1323, but the line supposed to return the readed textures is commented out since the beginnig. See MSTSLocomotive.cs line 3194:
                if (isLight)
                {
                    //tmp = PLightTextures[FileName];
                    tmp = PDayTextures[FileName];

and line 3246:
                if (isLight)
                {
                    //retval = LightTextures[FileName];
                    retval = DayTextures[FileName];


#13 User is online   cjakeman 

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

Posted 23 February 2014 - 06:05 AM

Hi Peter,

View Postgpz, on 22 February 2014 - 01:59 PM, said:

The reading of them was introduced in r1323, but the line supposed to return the readed textures is commented out since the beginning.

Thanks for the more detailed reference.

I still don't remember anything about why this is commented out. Certainly I've no skill in the graphics aspect of OR, so please go ahead and correct it if you can.

Best wishes,

  • 2 Pages +
  • 1
  • 2
  • 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