Up and running again, plus senstool source/portable

Hi again!
It has been a while since i wrote something.
Since I’v been away for the holidays visiting family, I did turn of the server for a while, but now I’m back.

When I was gone I didn’t think about people needing the senstool that I wrote.
iamdaniel from esreality.com ask me to make a portable version that can be used if my server is down again, so why not, I’m not gonna be sneaky with the source code. I was gonna release it anyways, but I just thought it looked so messy, and then I kinda forgot about it.

Just copy this code (same as below) into a .html file, save, and you should be good to go.
Then just open in your favorite web browser.

<!doctype html>
<html>
	<head>
		<meta charset="utf-8">
		<title>Sensitivity calculation for Quake Live </title>
		<script>
			function calc(){
		
				// get info from forms
				var old_dpi=document.getElementById('old_dpi').value;
				var new_dpi=document.getElementById('new_dpi').value;
				var sens=document.getElementById('sens').value;
				var accel=document.getElementById('accel').value;
				var yaw=document.getElementById('yaw').value;
				
			
				// calculate new accel and sens
				var bas = old_dpi/new_dpi;
				var exponent = 2;	
				var newint = Math.pow(bas, exponent);

				var new_sens=sens*(old_dpi/new_dpi);
				var new_accel=accel*newint;
				var new_cm = (360/ (yaw*new_dpi*1*new_sens )) * 2.54;
				


				document.getElementById('result').innerHTML="<b>New sens: </b>" + new_sens + "</br><b> New accel: </b>" + 	new_accel + "</br><b>CM/360: </b>" + new_cm ;
				return false;
			}
		</script>
	</head>
	<body>	
		<b>Quake Live sensitivity and acceleration calculation:</b>

<form>

<div title="Your old mouse dpi"><b>old dpi: </b><input type="text" onChange="calc()" id="old_dpi" value="400" onblur="if(this.value==''){ this.value='400'; this.style.color='#BBB';}" onfocus="if(this.value=='400'){ this.value=''; this.style.color='#000';}" style="color:#BBB;"/></div>


<div title="Your new mouse dpi."><b>new dpi: </b><input type="text" onChange="calc()" id="new_dpi" value="500" onblur="if(this.value==''){ this.value='500'; this.style.color='#BBB';}" onfocus="if(this.value=='500'){ this.value=''; this.style.color='#000';}" style="color:#BBB;" /></div>


<div title="Default 4"><b>sensitivity:  </b><input type="text" onChange="calc()" id="sens" value="4" onblur="if(this.value==''){ this.value='4'; this.style.color='#BBB';}" onfocus="if(this.value=='4'){ this.value=''; this.style.color='#000';}" style="color:#BBB;" /></div>


<div title="Default 0.0"><b>cl_mouseAccel:  </b><input type="text" onChange="calc()" id="accel" value="0.0" onblur="if(this.value==''){ this.value='0.0'; this.style.color='#BBB';}" onfocus="if(this.value=='0.0'){ this.value=''; this.style.color='#000';}" style="color:#BBB;" /></div>


<div title="Default 0.0222"><b>m_yaw: </b><input type="text" onChange="calc()" id="yaw" value="0.022" onblur="if(this.value==''){ this.value='0.022'; this.style.color='#BBB';}" onfocus="if(this.value=='0.022'){ this.value=''; this.style.color='#000';}" style="color:#BBB;" /></div>



<b>Windows multiplier: </b><input type="text" onChange="calc()" id="yaw" value="1" onblur="if(this.value==''){ this.value='1'; this.style.color='#BBB';}" onfocus="if(this.value=='1'){ this.value=''; this.style.color='#000';}" style="color:#BBB;" />

 


			<input type="button" onClick="calc()" value="Calculate" />
		</form>


<div id="result"></div>

	</body>
</html>

Quake Live sensitivity and acceleration calculation

Hey!
You know the feeling when you just bought a new mouse and you want to use the same sensitivity and/or acceleration as before, but don’t wanna do the math yourself?
Then I have a solution for you!

old dpi:
new dpi:
sensitivity:
cl_mouseAccel:
m_yaw:

Windows multiplier:




Default values:
Windows multiplier: 1
cl_mouseAccel: 0
sensitivity: 4
m_yaw: 0.022


Volume script

A volume script for your quake live config.
Just add these lines to your quake live config and you can change volume on the up and down arrows.

mikul.cfg

mikul.cfg

I know this is a real mess, but its kinda nice and a steady work in progress.
You may wanna have to change some stuff if you want to use this one. For example sound and graphic settings.
If you use another dpi then I do, you can kinda easily calculate the new mouse settings with a calculator.

[code]]czoxNDU6XCJuZXdfc2VucyA9IG9sZF9zZW5zICogKG9sZF9kcGkgLyBuZXdfZHBpKQ0KbmV3X2FjY2VsID0gb2xkX2FjY2VsICogWyB7WyYqJl19KG9sZF9kcGkgLyBuZXdfZHBpKSBeIDIgXQ0KbmV3X3NlbnNjYXAgPSBvbGRfc2Vuc2NhcCAqIChvbGRfZHBpIC8gbmV3X2RwaSkNCntbJiomXX1cIjt7WyYqJl19[[/code]

For example sensitivity 1.5, 1000dpi to 800dpi

[code]]czozNzpcIm5ldyBzZW5zID0gMS41ICogKDEwMDAgLyA4MDApID0gMS44NzVcIjt7WyYqJl19[[/code]

I also made a crosshair script for easy crosshair testing that is kinda interesting if you take a look and testrun.
For the moment I am running a different crosshair on my lg, so you may wanna change that if you want to use the same on all weapons.

[code]]czoxMDY6XCJzZXRhIGNnX3dlYXBvbkNvbmZpZ19sZyBcImNnX2RyYXdndW4gMzsgdnN0ciBjaGNoYW5nZTI7dnN0ciBjYmNoYW5nZTsge1smKiZdfXZzdHIgY3NpemUyOyBjZ19jcm9zc2hhaXJIaXRTdHlsZSAxO1wiXCI7e1smKiZdfQ==[[/code]
to:
[code]]czoxMDU6XCJzZXRhIGNnX3dlYXBvbkNvbmZpZ19sZyBcImNnX2RyYXdndW4gMzsgdnN0ciBjaGNoYW5nZTt2c3RyIGNiY2hhbmdlOyB2e1smKiZdfXN0ciBjc2l6ZTM7IGNnX2Nyb3NzaGFpckhpdFN0eWxlIDE7XCJcIjt7WyYqJl19[[/code]

There is probably a lot of shit that could be taken away from this mess but I’m a bit lazy.. and probably a bit of a hoarder.

And cheers to The Cypher for the HUD.

mikul.cfg

asg.sh

yo!

Since i run xubuntu on my desktop at the moment i’v thought it was a bit annoying type apt-cache search every time i wanted to search for a package. So i made a short alias for a bash script i wrote for “apt-cache search” with color highlighting.

Lets start with the bash script named asg.sh

After that you need to make the script executable. Do that with this command:

Now lets use this script. For easy access i made a short alias for my new script.

This is how my  .bash_aliases looks like: (nano .bash_aliases)

when you finished creating those 2 files in your home directory, you can start using asg and ai commands in a new terminal/tab.

To change color use asg command like this:

Quake Live crosshair script

Yo bitches!

I just wrote myself a quake script for changing Chrosshair, Crosshair Size and Crosshair Brightness for the soul purpose of making it easier to try different Crosshairs.

Since i’m an open source guy i would like to share :)
Here is an example of it and some short bits about how to use it:

Save the script in your quake live directory (c:/users/YOURUSERNAME/Application Data/id Software/quakelive/home/baseq3 in windows and for linux:  ~.wine/dosdevices/c:/users/YOURUSERNAME/Application Data/id Software/quakelive/home/baseq3) as crosshair_script.cfg

Then just add this line of code to your own cfg or type it in the quake live console:  /exec crosshair_script.cfg
and in quake live console: /exec crosshair_script.cfg

The default binds can be found at the top of the script.

GL & HF!