Overclock.net banner

sourceGL: RInput launcher + more for CS:GO/TF2

103K views 477 replies 109 participants last post by  trejser.zhenek 
#1 ·
EDIT: All new versions will now be released at the official site - http://sourcegl.sourceforge.net

button.png

What is RInput?
RInput is a program made by a programmer that goes by abort, that reads the raw input data from your mouse and feeds it directly to the cursor/crosshair position in game. It serves as an alternative to in-game raw input or allows for raw input in games that lack it. For games that have a raw input option, it should be turned off for RInput to work (m_rawinput 0 for Source games).

Why use RInput?
I believe the main issue with Source's m_rawinput 1, even though it collects true raw input data, is how it is buffered by the game. I've read somewhere before where someone who knew a lot more about it than me was talking about how it was related to m_rawinput 1 having poor time-stamping of the raw input data in relation to the framerate, so the buffering can be quite variable in comparison to the way frame-rendering is buffered. At sufficiently high refresh rates and FPS, this tends to make mouse movement feel 'disconnected' in a strange way with what you are seeing on screen. Many players including myself find using RInput (without an fps_max cap) to be better performing than Source's raw input implementation.

What is digital vibrance?
Digital vibrance is an NVIDIA option that is subtly different from a straight saturation adjustment. It can be best explained as something like, digital vibrance is the intelligent saturation (when increased) or desaturation (when decreased) of the display image on a pixel-by-pixel basis, based on a given pixel's original saturation value.

Why change digital vibrance?
Digital vibrance can be more useful for certain gaming situations than a plain scaled saturation adjustment because it will decrease the dynamic range of saturation for a given image, which can help make certain colors and shades more noticeable relative to their environment when compared to the unaltered image. As an example, for DV @ 100%, both Ts and CTs stand out much more to my eyes against the brown/yellow backgrounds and floor on Dust 2.

Is it VAC safe?
In a word, yes. But see the README for a longer discussion on VAC.
 
See less See more
1
#4 ·
Quote:
Originally Posted by TK421 View Post

Can you add insurgency into the launcher?
After the initial beta testing, I will look at other games to add.
Quote:
Originally Posted by ranseed View Post

Really handy thanks. Are we supposed to manually create the folder C:\CSGO\rinput\Rinput ? I get a windows error that it can't find it
Oops, I forgot to edit the batch files it creates. That was my original testing directory. I'll update the files and reupload momentarily. But if you copy RInput.exe and RInput.dll to that directory, it will run til I fix it. Sorry about that.

Fixed zipped installer now in OP. If reinstalling, run the uninstaller then the new installer. Thanks!
 
#5 ·
InB4 this causes clown cursor.

But seriously this is great. Just hope Valve doesn't blacklist the input injector in the future for VAC.
 
#6 ·
Quote:
Originally Posted by SmashTV View Post

InB4 this causes clown cursor.

But seriously this is great. Just hope Valve doesn't blacklist the input injector in the future for VAC.
I thought about making this the icon:



But RInput injector has been around since like CS:Source, so I see no reason they would decide to suddenly change their mind about it.
 
#7 ·
Quote:
Originally Posted by VolsAndJezuz View Post

I thought about making this the icon:



But RInput injector has been around since like CS:Source, so I see no reason they would decide to suddenly change their mind about it.
Classy icon.

As for my fear, it reminds me of open plug in. That was a lot more sketch (exploiting a loophole to play insecure) but I wouldn't put it past Valve to blacklist rinput. Not saying not to use it, just hope Valve doesn't mess it up.
 
#8 ·
Quote:
Originally Posted by SmashTV View Post

Classy icon.

As for my fear, it reminds me of open plug in. That was a lot more sketch (exploiting a loophole to play insecure) but I wouldn't put it past Valve to blacklist rinput. Not saying not to use it, just hope Valve doesn't mess it up.
I have been using rinput injector for years. I have been using it for GO since the game came out. I have a batch script that sets affinity, launch options and starts rinput v1.31 for GO. The downside, it brings me out of the game when rinput v1.31 launches, the problem with that is it seems alt tabbing decreases FPS in GO.
 
#9 ·
Quote:
Originally Posted by TK421 View Post

Can you add insurgency into the launcher?
Updated to allow launching other programs. Uninstall the previous version and delete the settings.txt file in the install directory (the uninstaller doesn't delete this). See OP for example of using other program.
Quote:
Originally Posted by popups View Post

I have been using rinput injector for years. I have been using it for GO since the game came out. I have a batch script that sets affinity, launch options and starts rinput v1.31 for GO. The downside, it brings me out of the game when rinput v1.31 launches, the problem with that is it seems alt tabbing decreases FPS in GO.
My program launches the game and inserts RInput silently in the backgrond (i.e., doesn't take you to the desktop). You can just set your launch options in Properties of CS:GO in Steam, using the -high launch option to set to run as high priority. Then launching through sourceGL should take care of everything you were accomplishing with your batch file and alleviate the alt-tab problem.
 
#11 ·
Yes, if you tick Use RInput for a game, then you should have m_rawinput set to 0 (probably most easily accomplished by setting it in your autoexec.cfg file).
 
#12 ·
Quote:
Originally Posted by TK421 View Post

You need to turn off in game raw mouse input? (sorry, noob at tweaking these kinda games)
If you do not turn off m_rawinput you cannot move your crosshair when you have already injected rinput.

If the game fails to load before rinput is injected you won't be able to move your crosshair. This happens when my game takes too long to load up all the way. This is why I use TIMEOUT in my bat file.
 
#13 ·
Exactly.

sourceGL has a 10 second delay between launching the target program and attempting to inject the RInput DLL.
 
#15 ·
Edit: I looked at it again since I've learned several tricks since I first started writing the GUI, and it might not be too hard after all. I'll see if I can work it out here quickly.

Thanks for the feedback. Even small requests like that help to figure out what features people would find the most useful.
 
#16 ·
OP updated with v1.2 which adds drop down menu to pick 'Do not minimize'/'Minimize to taskbar'/'Minimize to system tray' when a game is launched. Hitting X to close the GUI now minimizes to tray and the application can be exited altogether by right-clicking on the tray icon>Exit sourceGL, while the GUI is restored by double-clicking the tray icon or right-clicking>Restore GUI. Also the txt and About files were updated.
 
#19 ·
Yeah that's in the plans down the road. Off the top of my head, I currently plan on working on (in approximate order of priority):

-Options to specify program behavior on pressing Esc and clicking X to close (exit immediately, prompt, minimize to tray)
-Trimming and cleaning the GUI, perhaps either having the individual game settings collapse/expand or as different tabs
-Check for updates button and option to check for updates on program launch, then autoupdate (if I can figure out how to code it... it seems complex)
-Make toggleable hotkeys to adjust the digital vibrance +1/-1 incrementally to test different DV in game on-the-fly

But it will probably be at least a few days until I will have time to work on it a lot again.
 
#22 ·
Quote:
Originally Posted by Crymore13 View Post

How about ESEA?
can be bannable?
I'm fairly sure it is safe with ESEA/CEVO software, though I have not personally tried it and cannot guarantee it. I'm pretty sure people, including pros like ChrisJ, have used RInput with every form of CS anti-cheat detection and it has to date yet to produce a false positive. sourceGL is no more risky than RInput because injecting the RInput DLL into the running csgo.exe process is easily the most "cheat-like" action that sourceGL would make.
Quote:
Originally Posted by c0dy View Post

So it looks like it only looks in the Steam-Subfolders for the games, correct?

That's probably why it doesnt find my games.
Do you have either TF2 or CS:GO installed? sourceGL scans the registry for entries Steam makes for TF2/CS:GO in order to check for installation, as Steam users can install games in any location on their computer. If it doesn't find these registry entries, it greys out the options. I wasn't sure whether this was a foolproof way to detect TF2/CS:GO installation or not, but it may very well not be. In which case the next release will either find an alternate way to detect their installation or just skip detection altogether and instead display an error if a user tries to launch them through Steam with sourceGL and it fails. Thanks for your feedback
 
#25 ·
Quote:
Originally Posted by VolsAndJezuz View Post

I'm fairly sure it is safe with ESEA/CEVO software, though I have not personally tried it and cannot guarantee it. I'm pretty sure people, including pros like ChrisJ, have used RInput with every form of CS anti-cheat detection and it has to date yet to produce a false positive. sourceGL is no more risky than RInput because injecting the RInput DLL into the running csgo.exe process is easily the most "cheat-like" action that sourceGL would make.
Do you have either TF2 or CS:GO installed? sourceGL scans the registry for entries Steam makes for TF2/CS:GO in order to check for installation, as Steam users can install games in any location on their computer. If it doesn't find these registry entries, it greys out the options. I wasn't sure whether this was a foolproof way to detect TF2/CS:GO installation or not, but it may very well not be. In which case the next release will either find an alternate way to detect their installation or just skip detection altogether and instead display an error if a user tries to launch them through Steam with sourceGL and it fails. Thanks for your feedback
I have both installed. I've been using this http://www.stefanjones.ca/steam/ to transfer steamgames easily to my ssd. I had some problems with moving/reinstalling them via steam and if steam tried to update them, it didnt work.

With these NTFS Junctions it worked since then and I've been doing it like that. So that's probably the issue.
 
This is an older thread, you may not receive a response, and could be reviving an old thread. Please consider creating a new thread.
Top