H1Z1 - Render distance.

Post gaming related scripts
zg3g

H1Z1 - Render distance.

21 Feb 2016, 09:04

I'm not good with Ahk, so i'm asking you if it's possible to make a script who can change the render distance in game.
exemple:
f1 : render distance = 300
f2 : render distance = 1700

Sorry for my bad english, thanks.
FloowSnaake9k

Re: H1Z1 - Render distance.

21 Feb 2016, 10:06

Hey

You could do a script that read the games INI/settings file then when you press a key it would change, i don't own the game myself so i don't know if it would work.

UserOptions.ini
RenderDistance=2250.000000
zg3g

Re: H1Z1 - Render distance.

21 Feb 2016, 10:27

Ok i see what you are saying, but i don't know how to do that :)
I'm not good at all with script etc... :)
Thanks for your answer i'll search around this !
zg3g

Re: H1Z1 - Render distance.

21 Feb 2016, 11:26

Ok so i have now 2 .ahk file that do :
IniWrite, 450, C:\Program Files (x86)\Steam\steamapps\common\H1Z1 King of the Kill\UserOptions.ini, Rendering, RenderDistance
and
IniWrite, 1900, C:\Program Files (x86)\Steam\steamapps\common\H1Z1 King of the Kill\UserOptions.ini, Rendering, RenderDistance

when i double click on it, it change the UserOptions.
Now i have to find a way to put the ahk1 on "f1" and the ahk2 on "f2". :)
FloowSnaake9k

Re: H1Z1 - Render distance.

21 Feb 2016, 15:14

This should work and if it doesn't remove the " " around the path.
also you might not need to run it as admin so run the Admin

Code: Select all

IF NOT A_IsAdmin
{
   Run *RunAs "%A_ScriptFullPath%"
   ExitApp
}

#SingleInstance Force
#Persistent

ini_Path = "C:\Program Files (x86)\Steam\steamapps\common\H1Z1 King of the Kill\UserOptions.ini"
 
 F1::
IniWrite, 450, %ini_Path%, Rendering, RenderDistance
return

F2::
IniWrite, 1900, %ini_Path%, Rendering, RenderDistance
return
zg3g

Re: H1Z1 - Render distance.

23 Feb 2016, 05:37

FloowSnaake9k wrote:This should work and if it doesn't remove the " " around the path.
also you might not need to run it as admin so run the Admin

Code: Select all

IF NOT A_IsAdmin
{
   Run *RunAs "%A_ScriptFullPath%"
   ExitApp
}

#SingleInstance Force
#Persistent

ini_Path = "C:\Program Files (x86)\Steam\steamapps\common\H1Z1 King of the Kill\UserOptions.ini"
 
 F1::
IniWrite, 450, %ini_Path%, Rendering, RenderDistance
return

F2::
IniWrite, 1900, %ini_Path%, Rendering, RenderDistance
return
Thanks, it do exactly what i want, but it's not enough to change the render while i'm in game.
It edit the .ini, but the game have to be restart to take the new ini.
I think it cant work that way :(
So i did it in click script :

Code: Select all

PgUp::Render600()

Render600(){
        BlockInput On
        SetDefaultMouseSpeed 0
        sendinput {esc}
        Sleep 400
        MouseClick, left, 959, 523, 1, 1
        Sleep 400
        MouseClick, left, 990, 505, 1, 1
        Sleep 400
        MouseClick, left, 895, 833, 1, 1
        Sleep 400
        sendinput {esc}
        BlockInput Off
        return
}

PgDn::Render1900()

Render1900(){
        BlockInput On
        SetDefaultMouseSpeed 0
        sendinput {esc}
        Sleep 400
        MouseClick, left, 959, 523, 1, 1
        Sleep 400
        MouseClick, left, 1088, 505, 1, 1
        Sleep 400
        MouseClick, left, 895, 833, 1, 1
        Sleep 400
        sendinput {esc}
        BlockInput Off
        return
}

End::Suspend


So the script go by itself to the setting in game and change the render then press "ok".
I don't know if there is another way to do it :)

Return to “Gaming Scripts (v1)”

Who is online

Users browsing this forum: No registered users and 60 guests