Jump to content

Steam and Swtor


llloyd

Recommended Posts

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 by llloyd
Link to comment
Share on other sites

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

:ph_danger:

could be worth the risk

Link to comment
Share on other sites

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

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

×
×
  • Create New...