llloyd Posted January 10, 2013 Share Posted January 10, 2013 (edited) In order to get steam to work with swtor what I did was add game launcher.exe and add game again swtor.exe but when you play the game use the launcher .exe and be sure to run steam as admin or it wont work! same with the launcher.exe and swtor.exe. They are both in your swtor folders. Your can rename launcher.exe and swtor.exe so you don't get confused on which to use. Edited January 10, 2013 by llloyd Link to comment Share on other sites More sharing options...
maqlic Posted January 10, 2013 Share Posted January 10, 2013 And do that why? Link to comment Share on other sites More sharing options...
potatman Posted January 10, 2013 Share Posted January 10, 2013 And do that why? I would presume he is doing it for the Steam overlays. You know the social stuff, such as the friends list, web browser, achievement tracker, etc. It would be pretty cool if does work for that, I'll have to try it. Link to comment Share on other sites More sharing options...
llloyd Posted January 10, 2013 Author Share Posted January 10, 2013 (edited) And do that why? Some people use it to talk to friends and use the voice chat as well while in game. Edited January 10, 2013 by llloyd Link to comment Share on other sites More sharing options...
Shadow_Assasin Posted January 10, 2013 Share Posted January 10, 2013 well i would hope that i wouldnt have to do this and that bioware or EA might negotiate a deal with steam to put it on so u could buy the subscriptions and cartels coins and all that from it, they would also be able to reach more ppl who dont trust websites but trust steam and might have more subs and such alot easier could be worth the risk Link to comment Share on other sites More sharing options...
macumba Posted January 10, 2013 Share Posted January 10, 2013 best thing would be that these platform, be it steam origin or uplay become optional and not imposed upon us on buying games in a retail store. (because I would really like to get mass effect4 and maybe dead space3 but since my computer is 100% origin free I won't have access to these titles.) Link to comment Share on other sites More sharing options...
Massamo Posted January 10, 2013 Share Posted January 10, 2013 open notepad ' if nothing was passed in, we are starting from scratch, so start the launcher If WScript.Arguments.length = 0 Then swtorHome = WScript.ScriptFullName swtorHome = Left(swtorHome, InStr(swtorHome, WScript.ScriptName)-1) 'run the launcher Set objShell = WScript.CreateObject("Shell.Application") objShell.ShellExecute "launcher.exe", "", swtorHome ' create the file that the elevated script will copy swtor's path and commandline to set fso = CreateObject("Scripting.FileSystemObject") set tempfolder = fso.GetSpecialFolder(2) tempname = tempfolder & "\" & "swtorsteam.tmp" set tempfile = fso.CreateTextFile(tempname) tempfile.close() 'run this script but signal that it needs to elevate by giving it the tempfile name as an argument Set objShell = CreateObject("Shell.Application") objShell.ShellExecute "cscript.exe", Chr(34) & WScript.ScriptFullName & Chr(34) & " " & tempname, "", "runas", 1 WScript.Echo "Waiting for other script to finish..." ' check every second if the temporary file has been updated with the commandline info Do While True 'check the filesize of the tempfile set tempfile = fso.GetFile(tempname) If tempfile.Size > 0 Then Exit Do WScript.Sleep 1000 Loop swtorExecutablePath = swtorHome + "swtor\retailclient" set tempfile = fso.OpenTextFile(tempname) swtorCommandLine = tempfile.ReadLine tempfile.close() Set objShell = CreateObject("Shell.Application") objShell.ShellExecute "swtor.exe", swtorCommandLine, swtorExecutablePath fso.DeleteFile tempname WScript.Quit Else ' we are elevated now WScript.Echo "Waiting for launcher to start swtor..." 'Get Windows Manager object Set objWMIService = GetObject("winmgmts:" & "{impersonationLevel=impersonate}!\\.\root\cimv2") ' check every second for swtor.exe that was launched by swtor's launcher While True 'Get info on processes named "swtor.exe" Set swtorInstanceList = objWMIService.ExecQuery _ ("Select * from Win32_Process Where Name =""swtor.exe""") for Each swtorInstance in swtorInstanceList cmdline = swtorInstance.CommandLine 'look for something only our swtor will have in it's commandline arguments If InStr(cmdline, "username") > 0 Then 'we found the swtor.exe we care about swtorInstance.Terminate() 'remove the exe path and name from the cmdline position = InStr(1, cmdline, """ ") + 1 cleanCmdLine = Right(cmdline, Len(cmdline) - position) tempname = WScript.Arguments(0) set fso = CreateObject("Scripting.FileSystemObject") set tempfile = fso.OpenTextFile(tempname, 2) tempfile.WriteLine(cleanCmdLine) tempfile.close() WScript.Quit End If Next WScript.Sleep 1000 Wend End If save as steamswtor.vbs in your swtor folder and then change exe you added in steam to steamswtor.vbs then your good to go Link to comment Share on other sites More sharing options...
Recommended Posts