Bypassing the launcher

Discussion in 'Technical & Support' started by Seven Smiles, Jul 23, 2018.

  1. Seven Smiles

    Seven Smiles Registered

    Joined:
    Oct 5, 2010
    Messages:
    1,099
    Likes Received:
    1,152
    (I searched and found https://forum.studio-397.com/index....through-command-line-avoiding-launcher.31294/ but it was never replied to.)

    I'm the sort that hates doing things manually so I don't want to load the launcher, click multiplayer, find the same server I always use (My Favourites forgets my favourites with depressing promptness) and enter the password. I've tried
    Code:
    rFactor2.exe +autojoin="server_name" +pass=password +multiplayer
    in Bin64\ (Steam pops up "Allow game launch?" with the parameters) and the same in SET LAUNCH OPTIONS but both just start up the launcher. (server_name and password are replacing the real things obviously.)

    Does any of the stuff in Support\CLI.txt work? I can't be the only one who wants this, the popularity of AC's Content Manager shows people love to bypass the slow, repetitive, limited standard launcher.
     
  2. ceecee

    ceecee Registered

    Joined:
    Jan 10, 2012
    Messages:
    691
    Likes Received:
    286
  3. Rui Santos

    Rui Santos Registered

    Joined:
    Jan 8, 2012
    Messages:
    1,083
    Likes Received:
    1,210
    I was almost posting something about this, lately rF2 launcher is taking loads synchronizing with Steam Workshop, for those who're late for a race it's a pain...

    I really hope the new UI will solve most problems, the wait is getting annoying...
     
  4. pace_car

    pace_car Registered

    Joined:
    Dec 30, 2011
    Messages:
    36
    Likes Received:
    14
    when i run this

    "C:\Program Files (x86)\Steam\steamapps\common\rFactor 2\Bin64\rfactor2.exe" +autojoin="SERVERNAME" +connect=:SERVER_PASSWORD@IP_ADRES:SERVER_PORTNUMBER +multiplayer +path=".."

    i am getting the steam warning message as mentioned by seven Smiles
    but then it takes me all the way into the server :) ...right to the screen where i need to select my car

    NB i have found this with the help off running a trace
     
  5. pace_car

    pace_car Registered

    Joined:
    Dec 30, 2011
    Messages:
    36
    Likes Received:
    14
    found how to bypass the steam message as well (on a forum)

    now this takes me straight to carselection screen in server
    (thanks Seven for the idea)

    C:\Program Files (x86)\Steam\steam.exe" -applaunch 365960 +autojoin="SERVERNAME" +connect=:PASSWORD@IP_ADRES:PORTNUMBER +multiplayer +path=".."

    replace SERVERNAME , PASSWORD, IP_ADRES and PORTNUMBER with the actual values of the server you want to join
     
    Alex72, ceecee and Seven Smiles like this.
  6. ceecee

    ceecee Registered

    Joined:
    Jan 10, 2012
    Messages:
    691
    Likes Received:
    286
    @pace_car , this is very interesting !
    Can you be a bit more specific as to where you add the above ?
     
  7. MarcG

    MarcG Registered

    Joined:
    Oct 4, 2010
    Messages:
    6,854
    Likes Received:
    2,234
    If the sync is taking a long time then you may have a lot of content, every now and then I remove some of the redundant (no longer using) content and this speeds up the sync. Of course if you want the content to remain then I agree a faster Sync would be useful, but for now it is what it is.
     
  8. Seven Smiles

    Seven Smiles Registered

    Joined:
    Oct 5, 2010
    Messages:
    1,099
    Likes Received:
    1,152
    It's a Windows command so Run cmd
    Code:
    Microsoft Windows [Version 10.0.17134.165]
    (c) 2018 Microsoft Corporation. All rights reserved.
    
    C:\Users\ceecee>
    
    then enter
    Code:
    "C:\Program Files (x86)\Steam\steam.exe" -applaunch 365960 +autojoin="SERVERNAME" +connect=:PASSWORD@IP_ADRES:PORTNUMBER +multiplayer +path=".."
    
    I'm still trying to work out where to find out IP_ADRES and PORTNUMBER.
     
  9. ceecee

    ceecee Registered

    Joined:
    Jan 10, 2012
    Messages:
    691
    Likes Received:
    286
    Ok thanks @Seven Smiles !
    I would think that if you first connect to your desired server and then run Nirsoft CurrPorts v2.51, this should tell you IP address and port.
    https://www.nirsoft.net/utils/cports.html
    https://www.nirsoft.net/utils/cports-x64.zip
    I have blacked out my IP address but look under Remote IP address and Remote Port for your online server IP and port number.
     

    Attached Files:

    Last edited: Jul 23, 2018
  10. pace_car

    pace_car Registered

    Joined:
    Dec 30, 2011
    Messages:
    36
    Likes Received:
    14
    it can be runned from the command prompt
    something like a cmd file
    or add it to a windows shortcut (like i have done now) rf2.jpg
     
    Alex72 and ceecee like this.
  11. ceecee

    ceecee Registered

    Joined:
    Jan 10, 2012
    Messages:
    691
    Likes Received:
    286
    Thanks @pace_car , still trying to sort out the port number. ;)
     
  12. pace_car

    pace_car Registered

    Joined:
    Dec 30, 2011
    Messages:
    36
    Likes Received:
    14
    in 95% from the servers that is port 64297
     
  13. pace_car

    pace_car Registered

    Joined:
    Dec 30, 2011
    Messages:
    36
    Likes Received:
    14
    i used RF2 trace on MP to get both ip and portnumber
     
    ceecee likes this.
  14. ceecee

    ceecee Registered

    Joined:
    Jan 10, 2012
    Messages:
    691
    Likes Received:
    286
    Yep, 64297 it is here :)
     
  15. ceecee

    ceecee Registered

    Joined:
    Jan 10, 2012
    Messages:
    691
    Likes Received:
    286
    Yeah ! Great @pace_car ! It works :D
    Great find, we get thrown out regularly so this will diminish the irritation of logging back in (does not take long but you know how simmers are when their game is suddenly taken away from them :))
    Nice find and thank you very much ;)
     
  16. pace_car

    pace_car Registered

    Joined:
    Dec 30, 2011
    Messages:
    36
    Likes Received:
    14
    good.... are we sorted then ?
    great news ! :) @ceecee
     
    ceecee likes this.
  17. ceecee

    ceecee Registered

    Joined:
    Jan 10, 2012
    Messages:
    691
    Likes Received:
    286
    For sure @pace_car ,
    Just restarted client to try fresh and logs into the car selection without a problem :D
     
  18. Filip

    Filip Registered

    Joined:
    Feb 9, 2017
    Messages:
    1,208
    Likes Received:
    937
    Also SSD disk speeds this up significantly
     
    Christos Segkounas likes this.
  19. Seven Smiles

    Seven Smiles Registered

    Joined:
    Oct 5, 2010
    Messages:
    1,099
    Likes Received:
    1,152
    Thanks @pace_car, it's working now. For some reason the software I've written using the Valve API returns 64299 for the port so I was using that which got stuck at ATTEMPTING TO DIRECT CONNECT. Once I changed to 64297 it worked.

    If I can get to the bottom of the port problem I can edit my code to look up the IP address/port from the server name, assemble the command and execute it.
     
  20. pace_car

    pace_car Registered

    Joined:
    Dec 30, 2011
    Messages:
    36
    Likes Received:
    14
    glad it helped!

    but yes can have multiple instances of RF2 running on a single server sharing a single IP adress
    each instance of RF2 will use a different portnumber to indentify the instance

    Good Luck with your developments
     

Share This Page