Elvas Tower: Scriptable train control system - Elvas Tower

Jump to content

Posting Rules

All new threads will be started by members of the Open Rails team, Staff, and/or Admins. Existing threads started in other forums may get moved here when it makes sense to do so.

Once a thread is started any member may post replies to it.
  • 32 Pages +
  • « First
  • 30
  • 31
  • 32
  • You cannot start a new topic
  • You cannot reply to this topic

Scriptable train control system Rate Topic: -----

#311 User is offline   James Ross 

  • Open Rails Developer
  • Group: Status: Elite Member
  • Posts: 5,490
  • Joined: 30-June 10
  • Gender:Not Telling
  • Simulator:Open Rails
  • Country:

Posted 13 June 2014 - 01:23 AM

View Postgpz, on 13 June 2014 - 01:05 AM, said:



Good to see you've missed the point again! We have many choices of version control and hosting - though we did put quite some effort in to finding Launchpad as the best choice in the first place.

#312 User is offline   gpz 

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

Posted 13 June 2014 - 01:29 AM

Using Git doesn't mean the using of launchpad should be abandoned. The integration of lp with bzr might be just a possibility of clicking on a bug number in bzr log, which launches the bug's webpage. This same functionality can be achieved in TortoiseGit with a plugin, for example. Such plugins might be available for other Git UI-s too.

#313 User is offline   Csantucci 

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

Posted 13 June 2014 - 01:07 PM

I suspend for a moment this discussion with this picture showing the application of gpz's ETCS speedo in an Italian HST that effectively uses it.
Apart of the actual speed, the actual max speed can be seen (90 Km/h) as well as next max speed reduction (30 Km/h).
Attached Image: ETCS_speedo.jpg

Thanks Peter!

#314 User is offline   James Ross 

  • Open Rails Developer
  • Group: Status: Elite Member
  • Posts: 5,490
  • Joined: 30-June 10
  • Gender:Not Telling
  • Simulator:Open Rails
  • Country:

Posted 22 July 2014 - 02:48 PM

View Postgpz, on 20 May 2014 - 05:08 AM, said:

Currently the .NET compiler in OpenRails is configured to compile directly into memory. Due to a bug (unimplemented feature?) in .NET in this case the debug info cannot be utilized. The compiler can be configured to compile to file instead, but in this case we must tell it where to save this file. This way the debug information could be used.


Not sure where you thought there was a bug, but the debugging problem is easily fixed: CompileAssemblyFromFile, not CompileAssemblyFromSource. :oldstry:

I've made this change and also adjusted the CompilerParameters so that we only generate debug information if you're running Open Rails under a debugger. It would be okay to always generate it because it is automatically deleted if you are not using a debugger, but it seems unnecessary to create it and then immediately delete it. It may be worth not always generating it when using a debugger though, as it'll leave a small temp file around (which can't be deleted because Visual Studio loads it), but I'm not hugely fussed.

To use this version in the debugger, the following works for me:

  • Open Visual Studio
  • Open the ORTS project
  • Open the TCS script (File > Open > File... or Control-O)
  • Set any breakpoints
  • Run with debugging (F5)


#315 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 21 November 2014 - 02:39 PM

Hi,

It's been a long time since I created a new script, but now I have some problems in debug mode.

When there are several scripts used in a locomotive, the CompileAssemblyFromFile function tries to compile all of them in the same part of the memory and fails to do it since the memory space is already in use (a class in the assembly has been instanciated).

#316 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 22 November 2014 - 07:47 AM

Ok, I've found the bug.

The C# compiler needs a new CompilerParameters object, otherwise, it tries to write the debug information in the same file.

I will commit the modification I did.

#317 User is offline   Citarofahrer 

  • Apprentice
  • Group: Status: Dispatcher
  • Posts: 29
  • Joined: 14-July 14
  • Gender:Male
  • Simulator:MSTS, OR
  • Country:

Posted 06 December 2014 - 07:24 AM

Good Afternoon, i read about the ETCS etc.
I have the software from the SBB witch is used by Traindrivers to learn how ETCS in the Switzerland works. (Look on Wikipedia:Only aviable in German Language)

If someone want it, pleas send me a pn, but don't share it. It's SBB intern.
You can change the language between German and Français.

I wish you a nice day!

Greets!

#318 User is offline   darwins 

  • Superintendant
  • Group: Status: Elite Member
  • Posts: 1,231
  • Joined: 25-September 17
  • Gender:Male
  • Simulator:Open Rails
  • Country:

Posted 04 July 2019 - 08:38 AM

Going back to more basic systems...

...has anyone yet got a working version of the GWR ATC or BR AWS?

  • 32 Pages +
  • « First
  • 30
  • 31
  • 32
  • 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