Elvas Tower: Restoring the MASTER_KEY variables does not work correctly - Elvas Tower

Jump to content

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

Restoring the MASTER_KEY variables does not work correctly Rate Topic: -----

#1 User is offline   Csantucci 

  • Member, Board of Directors
  • Group: Status: Elite Member
  • Posts: 7,000
  • Joined: 31-December 11
  • Gender:Male
  • Country:

Posted 09 August 2021 - 12:40 AM

The MASTER_KEY variables (CommandSwitch and On) aren't restored correctly in the actual Testing release. When resuming the game, first the Masterkey.Restore() method is executed, which correctly restores the variables, and then the MasterKey.Initialize() method, that re-initializes them at the startup value. Therefore this occurs:
1) I have set the Mode to Manual in the .eng file and perform a first game run and switch the master key to on and then save;
2) I resume the game and the master key state is off instead of on.

I assume this is true also for other PowerSupply variables.

#2 User is offline   Serana 

  • Conductor
  • Group: Status: Contributing Member
  • Posts: 489
  • Joined: 21-February 13
  • Gender:Male
  • Location:St Cyr l'Ecole (France)
  • Simulator:Open Rails
  • Country:

Posted 16 August 2021 - 12:13 PM

Hi,

I sent a fix: https://github.com/o...nrails/pull/451
Could you tell me if it works on your side?

Thank you.

#3 User is offline   Csantucci 

  • Member, Board of Directors
  • Group: Status: Elite Member
  • Posts: 7,000
  • Joined: 31-December 11
  • Gender:Male
  • Country:

Posted 17 August 2021 - 12:00 AM

Hi Cédric,
Yes, it works correctly, thank you.

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