Please upgrade your browser for the best possible experience.

Chrome Firefox Internet Explorer
×

Steam and Swtor

llloyd's Avatar


llloyd
01.10.2013 , 02:47 AM | #1
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.

maqlic's Avatar


maqlic
01.10.2013 , 02:56 AM | #2
And do that why?

potatman's Avatar


potatman
01.10.2013 , 03:43 AM | #3
Quote: Originally Posted by maqlic View Post
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.

llloyd's Avatar


llloyd
01.10.2013 , 05:52 AM | #4
Quote: Originally Posted by maqlic View Post
And do that why?
Some people use it to talk to friends and use the voice chat as well while in game.

Shadow_Assasin's Avatar


Shadow_Assasin
01.10.2013 , 05:59 AM | #5
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
No one could live without the other, or crumble before an unbalance of power.

macumba's Avatar


macumba
01.10.2013 , 06:24 AM | #6
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.)
Just because you're not paranoid, doesn't mean they're not out to get you.

Massamo's Avatar


Massamo
01.10.2013 , 06:59 AM | #7
open notepad
Code:
' 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