Running the game directly

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • NuclearBanana
    New Member
    • Mar 2016
    • 3

    #1

    Running the game directly

    Hello, first of all please forgive my english. I´m from Czech Rep.

    So I recieved some executable file from my friend to improve graphics and some more things.
    but that .exe file wants to run the game directly. I think the friend´s .exe file wants something like "RunActivity.exe" but it doesn´t work. Standard OpenRails runs just menu and then launches RunActivity.exe ( i think )
    Can anyone help me with it?
    Regards,
    David.
  • baldwin
    6000 Post Veteran


    • Nov 1999
    • 6358
    • Chippenham, Wiltshire, UK.
    • ORTS

    #2
    Hello David

    If you go to http://openrails.org/ you will see a green banner. Click on that to download the official Open Rails installer. This will install it onto your computer. Then run the Open Rails exe file to get to the menu. Runactivity will not run until you have chosen your route and activity and then clicked Start.
    Beer is not a matter of life or death, it is much more serious than that.

    Comment

    • NuclearBanana
      New Member
      • Mar 2016
      • 3

      #3
      Yes, I installed it. but all I need is run the "RunActivityLAA.exe" with right arguments in it.
      This friend´s file have just file path line and "launch" button.
      Currently I need help with arguments. (like: -start -exlorer... etc. to be able run this)

      Comment

      • baldwin
        6000 Post Veteran


        • Nov 1999
        • 6358
        • Chippenham, Wiltshire, UK.
        • ORTS

        #4
        You do not run the runactivity through a command line.
        Open Rails is designed to run like a normal Windows program. You run OpenRails.exe which calls Menu.exe. There you make your selection of route and activity, or explore route, consist and start point, then click on Start. This will call and run Runactivity, or RunactivityLAA.exe.
        Beer is not a matter of life or death, it is much more serious than that.

        Comment

        • sidp
          Member
          • May 2007
          • 78
          • Canada

          #5
          I believe that the OP is trying to run a version that he compiled from the source code.
          He is correct, you have to enter the command string into the Debug window and set Runactivity as the start project.

          He can find samples of the arguments in the OpenRailsLog.txt - it is then broken down as a set of arguments to Runactivity.
          for instance, this is a typical entry into the "command Line arguments" of Runactivity in Microsoft Visual Studio:
          "-start" "-explorer" " E:\Program Files 2\Microsoft Games\Train Simulator\ROUTES\USA2\PATHS\setout.pat" "E:\Program Files 2\Microsoft Games\Train Simulator\TRAINS\CONSISTS\gp38.con" "12:00" "1" "0"
          This runs an "Explore" in "Marias Pass" using the path "setout.pat", and the consist "...gp38.con", with the time, starting weather, etc.
          Be sure to set Runactivity as the "set as startup Project" by right clicking on it in the Solution Explorer.

          Cheers,
          Sid P.sigpic

          Comment

          • baldwin
            6000 Post Veteran


            • Nov 1999
            • 6358
            • Chippenham, Wiltshire, UK.
            • ORTS

            #6
            Ah. Thanks Sid. I had not considered that option because it needs such a long set of arguments to get going. Ok for the odd test run once in a while, but hardly acceptable for frequent use on different routes.
            Beer is not a matter of life or death, it is much more serious than that.

            Comment

            • NuclearBanana
              New Member
              • Mar 2016
              • 3

              #7
              Yes, it works! I found the right format of some arguments. So the command line looks follows:

              -start -explorer "c:\program files\microsoft games\train simulator\ROUTES\Breclav - Praha\PATHS\VstupCary.pat" "c:\program files\microsoft games\train simulator\TRAINS\CONSISTS\cd242.con" 12:00 1 0

              Thanks everyone for help!

              Comment

              Working...