*Update* AHK Scripts -> AdminLogin, LowGraphMod

Post » Tue Jul 26, 2011 12:20 pm

AutoLogin

1. Here is a script for a faster (a one-click) login into the Crysis 2 Pro - External Admin Interface 0.6.1. I think it is really usefull as long the program doesn't support profiles.

Run, C:\Downloads\c2EAI\c2EAI.exe (has to be the path to your c2EAI.exe)
sleep, 6001
Send, {ENTER}
WinWait, Crysis 2 Pro - External Admin Interface 0.6.1,
IfWinNotActive, Crysis 2 Pro - External Admin Interface 0.6.1, , WinActivate, Crysis 2 Pro - External Admin Interface 0.6.1,
WinWaitActive, Crysis 2 Pro - External Admin Interface 0.6.1,
Send, {TAB}85{TAB}114155169{TAB}64000{TAB}{TAB}64200{TAB }HTTP-Passwort{TAB}{SPACE}

How to use it? You need about 3 minutes by following these instructions:

1. Download and install AutoHotKey http://www.autohotkey.com/download/AutoHotkeyInstall.exe

2. Right click on your desktop - new - AutoHotKey Script

3. Right click on the script - Edit Script

4. Change the IP, ports and http-password according to your server -> edit the following line:
{TAB}85{TAB}114156168{TAB}64000{TAB}{TAB}64200{TAB }HTTP-password{TAB}{SPACE}

Put the complete quote with the modified line (4.) into the opened script (3.). Attention: You have to put it into an empty line!

Save and exit the script.

5. Right click on your script - Compile Script -> a .exe file originates

6. Execute the exe. The file should work on every pc as long the path to the c2EAI.exe is the same. You dont need AutoHotKey anymore, so feel free to deinstall it.


LowGraphicsMod

2. The second script helps you turning on/off some of the graphical effects of the game. This might help you to improve your framerate a little bit.
It gives me about 10-30 frames, but usually my frames are on a high level, so please test if you got a low end system.

Here you got some example pics: http://fy98hijx.multipic.de/

You can use it instantly -> Download it here: https://rapidshare.com/files/3324550363/LowGraphScript.exe

Instructions:

1. Execute the file and start crysis
2. Ingame (after spawning!) you can use:
- F9 to turn colorgrading (only) off and F10 to turn it back on (makes the game brighter)
- F11 to turn off effects (see below) F12 to turn them back on (makes it faster/not very pretty)


Effects beeing modified:

e_ShadowsMaxTexRes = 128
r_TexMaxAnisotropy = 0
r_colorgrading = 0
r_UseEdgeAA = 0
r_postmsaa = 0
r_SSAO = 0
e_GI = 0
r_HDRBloomMul = 0
r_HDRBrightLevel = 0

If you want to make changes in the script feel free to edit:

WinWait, ahk_class CryENGINE,
IfWinNotActive, ahk_class CryENGINE, , WinActivate, ahk_class CryENGINE,
WinWaitActive, ahk_class CryENGINE,

*F9::
Send {^}{BACKSPACE}
sleep, 500
SendInput r_colorgrading{SPACE}={SPACE}0
sleep, 500
Send {ENTER}
sleep, 500
Send {^}
return

*F10::
Send {^}{BACKSPACE}
sleep, 500
SendInput r_colorgrading{SPACE}={SPACE}1
sleep, 500
Send {ENTER}
sleep, 500
Send {^}
return

*F11::
SendInput {^}
sleep, 400
SendInput r_TexMaxAnisotropy{SPACE}={SPACE}0
sleep, 100
Send {ENTER}
sleep, 100
SendInput r_colorgrading{SPACE}={SPACE}0
sleep, 100
Send {ENTER}
sleep, 100
SendInput e_ShadowsMaxTexRes{SPACE}={SPACE}128
sleep, 100
Send {ENTER}
sleep, 100
SendInput r_UseEdgeAA{SPACE}={SPACE}0
sleep, 100
Send {ENTER}
sleep, 100
SendInput r_postmsaa{SPACE}={SPACE}0
sleep, 100
Send {ENTER}
sleep, 100
SendInput r_SSAO{SPACE}={SPACE}0
sleep, 100
Send {ENTER}
sleep, 100
SendInput e_GI{SPACE}={SPACE}0
sleep, 100
Send {ENTER}
sleep, 100
SendInput r_HDRBloomMul{SPACE}={SPACE}0
sleep, 100
Send {ENTER}
sleep, 100
Sendinput r_HDRBrightLevel{SPACE}={SPACE}0
sleep, 100
Send {ENTER}
sleep, 100
Send {^}
return

*F12::
SendInput {^}
sleep, 400
SendInput r_TexMaxAnisotropy{SPACE}={SPACE}8
sleep, 100
Send {ENTER}
sleep, 100
SendInput r_colorgrading{SPACE}={SPACE}1
sleep, 100
Send {ENTER}
sleep, 100
SendInput e_ShadowsMaxTexRes{SPACE}={SPACE}512
sleep, 100
Send {ENTER}
sleep, 100
SendInput r_UseEdgeAA{SPACE}={SPACE}0
sleep, 100
Send {ENTER}
sleep, 100
SendInput r_postmsaa{SPACE}={SPACE}1
sleep, 100
Send {ENTER}
sleep, 100
SendInput r_SSAO{SPACE}={SPACE}4
sleep, 100
Send {ENTER}
sleep, 100
SendInput e_GI{SPACE}={SPACE}1
sleep, 100
Send {ENTER}
sleep, 100
SendInput r_HDRBloomMul{SPACE}={SPACE}1
sleep, 100
Send {ENTER}
sleep, 100
Sendinput r_HDRBrightLevel{SPACE}={SPACE}0.85
sleep, 100
Send {ENTER}
sleep, 100
Send {^}
return


To improve the script you can discuss some cvars here.

Feedback is welcome!

User avatar
Andrew Tarango
 
Posts: 3454
Joined: Wed Oct 17, 2007 10:07 am

Post » Tue Jul 26, 2011 1:14 pm

I will add e_ShadowsMaxTexRes = 256 and r_DrawNearFoV = 55 and I will test d3d9_TextureFilter [bilinear] in the next days.
User avatar
Maeva
 
Posts: 3349
Joined: Mon Mar 26, 2007 11:27 pm

Post » Tue Jul 26, 2011 11:53 am

lol
You recordet them with the Recorder, right?
I don't think this will work for everyone ;)
User avatar
Chloe Botham
 
Posts: 3537
Joined: Wed Aug 30, 2006 12:11 am

Post » Tue Jul 26, 2011 2:51 pm

Yeah, the first one is recorded except for the waiting time. The second one was a bit difficult and cant be recorded easily ;)

lol
You recordet them with the Recorder, right?
I don't think this will work for everyone ;)

For now, both scripts work for 5 different computers including various cpu, gpu and os (win xp, vista 32bit, win 7 64bit).
So test it and tell me if it works ;)

I am not a professional programmer, i just want to help people with low end machines because i had one too at the launch of the game.
User avatar
Rachel Tyson
 
Posts: 3434
Joined: Sat Oct 07, 2006 4:42 pm

Post » Tue Jul 26, 2011 3:35 pm

*Update* added e_ShadowsMaxTexRes = 128 and r_TexMaxAnisotropy = 0 -> gives me a real framerate boost, just look at the example pics.

Known Bug: Sometimes if you press F11 it does not type in the first command correctly, it adds an additional ^. I dont know why ;( Pressing F11 a second or a third time solves that problem.
User avatar
Dylan Markese
 
Posts: 3513
Joined: Sat Dec 01, 2007 11:58 am

Post » Tue Jul 26, 2011 12:45 pm

tested the script on a low end pc (X2 4800+, NV 8800Gts, 4Gb Ram, Win XP) and was able to bring the system up from 25-30 fps to 30-50 fps :)

In my next update I will try to include a screenshot function (via paint) and a function to slightly improve graphics in dx11 ultra. And then I am going to drink some beer...
User avatar
Minako
 
Posts: 3379
Joined: Sun Mar 18, 2007 9:50 pm

Post » Tue Jul 26, 2011 4:29 pm

does this work for multiplayer?
it doesnt seem to work...
User avatar
Harry Hearing
 
Posts: 3366
Joined: Sun Jul 22, 2007 6:19 am

Post » Tue Jul 26, 2011 10:10 am

Yes it works in MP, it should do this:

1. open up the console automatically
2. paste in the cvars and execute them automatically
3. close the console automatically

The whole script should run only for about 1 second.

Does it open up the ingame console? Are you playing with a gamepad?
User avatar
Samantha Mitchell
 
Posts: 3459
Joined: Mon Nov 13, 2006 8:33 pm

Post » Tue Jul 26, 2011 4:49 pm

Yes it works in MP, it should do this:

1. open up the console automatically
2. paste in the cvars and execute them automatically
3. close the console automatically

The whole script should run only for about 1 second.

Does it open up the ingame console? Are you playing with a gamepad?
im using a mouse.. i might have the button to open up console assigned to a different button? or something..
all it does is jumps 2x, nano vision and uses the binoculars...
my FPS doesnt change, the F11 commmand does that^^^
the F9 (or W/E) one does same thing but not binoculars...
hmm...
(doesnt open up command)
User avatar
Tha King o Geekz
 
Posts: 3556
Joined: Mon May 07, 2007 9:14 pm

Post » Tue Jul 26, 2011 10:18 am

Pardon my ignorance but what is this?
User avatar
Emma Pennington
 
Posts: 3346
Joined: Tue Oct 17, 2006 8:41 am

Post » Tue Jul 26, 2011 1:54 pm

Pardon my ignorance but what is this?
It's a script/macro to send many inputs all at once. So you can tie a string of commands or actions to one key, which when pressed will automatically send them.
User avatar
cutiecute
 
Posts: 3432
Joined: Wed Sep 27, 2006 9:51 am

Post » Tue Jul 26, 2011 7:46 am

Yes it works in MP, it should do this:

1. open up the console automatically
2. paste in the cvars and execute them automatically
3. close the console automatically

The whole script should run only for about 1 second.

Does it open up the ingame console? Are you playing with a gamepad?
im using a mouse.. i might have the button to open up console assigned to a different button? or something..
all it does is jumps 2x, nano vision and uses the binoculars...
my FPS doesnt change, the F11 commmand does that^^^
the F9 (or W/E) one does same thing but not binoculars...
hmm...
(doesnt open up command)

Ok i see, so you clearly have a different key to open up the console thats because the commands which should be written into the console are sent to the game (space = jump for example). If you could tell me which button opens up your console, I would change it for you and give you a download link.

If you dont know which key to use, maybe my answer from the other thread helps you:

Ok, so it does not open up the console. With what key do you open up the console? The script uses circumflex (^) - i think steam users have different key bindings...

Edit: Depends on your region as to what symbol the key will represent. On a UK layout for example the key is ` and ?, located directly below the key, where as ~ on a UK layout is on the right next to the enter key and shares a spot with #.

So try pressing one of the keys to open the console, press F11-> this should paste in the cvars, then close the console.

I will make a new version of the script including several options for different keyboard layouts - otherwise feel free to modify my script ;)


Pardon my ignorance but what is this?
It's a script/macro to send many inputs all at once. So you can tie a string of commands or actions to one key, which when pressed will automatically send them.

Yeah, thats it. It is not a "hardcoe programmer" way but It works great fr most of the testers...
User avatar
Astargoth Rockin' Design
 
Posts: 3450
Joined: Mon Apr 02, 2007 2:51 pm

Post » Tue Jul 26, 2011 3:55 pm

Can you program a little script that on event Right Mouse button down it reduces sensitivity to set amount and on event right mouse button up it changes it back to normal?
User avatar
joseluis perez
 
Posts: 3507
Joined: Thu Nov 22, 2007 7:51 am

Post » Tue Jul 26, 2011 6:22 pm

Basically thats possible, but if you are thinking for using it for aiming down sight/scope there are some problems.

1. The commands to change mouse speed have to be written in console, and the c2 console is a bit lame and buggy - so I dont know what happens if you are pressing and releasing the button very fast multiple times.

2. Ahk isnt that fast too, a command needs to be written to -> takes about 0.1s

So time and stability will be the main problems...but I will test it and look if its possible.
User avatar
Damned_Queen
 
Posts: 3425
Joined: Fri Apr 20, 2007 5:18 pm


Return to Crysis