Last active
May 13, 2023 19:23
-
-
Save heatray/cfbd1791277a0ef8c07c85ccd2a33fdc to your computer and use it in GitHub Desktop.
Q.U.B.E Achievements Grind (console commands & AutoHotKey scripts)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Notes & Using ; | |
; This script was created for grind some achievements in Q.U.B.E. Against the Qlock DLC and Q.U.B.E. Director's Cut | |
; Tested in AutoHotKey v1.1.32.00, works fine in the background | |
; For the script to work well, you need: | |
; 1. Place 'qube_grind.txt' to '<game>\Binaries' folder | |
; 2. Set launch options to 'MG-ExtraSector1 -nostartupmovies -nosound -windowed -exec=qube_grind.txt' | |
; 3. Run ahk file and game | |
; 4. Press hotkey for start grind | |
; Script does per play: | |
; - 4 moves | |
; - 30 pickups | |
; - 230 meters travel | |
; Time spent: | |
; - 1 play ~ 14 s | |
; - 500 plays ~ 2 h | |
; Hotkeys ; | |
; Numpad1 - Start/Pause Script | |
; Numpad0 - Stop/Reload Script | |
; NumpadDot - Close Script | |
; Achievement Description | |
; No Sweat! Make 1,000 moves | |
; If I Can Walk 10,000 Miles Travel 10,000 metres | |
; Then I Can Walk 90,000 More! Travel 100,000 metres | |
; Collector Collect 250 pickups | |
; Hoarder Collect 1,000 pickups | |
; You've Got A Problem Collect 10,000 pickups | |
; Repeat Offender Play the game 100 times | |
; Q.U.B.E. Master Play the game 500 times | |
#SingleInstance Force | |
#EscapeChar \ | |
#NoEnv | |
SetTitleMatchMode, 2 | |
SetBatchLines, -1 | |
SetKeyDelay, 100, 0 | |
SetMouseDelay, 100 | |
SendMode, Event | |
global WinTitle := "Q.U.B.E. (32-bit, DX9) ahk_class LaunchUnrealUWindowsClient" | |
GameClick(ByRef Button) { | |
ControlClick,, % WinTitle,, % Button | |
} | |
GameKey(ByRef Key) { | |
ControlSend,, % "{" Key "}", % WinTitle | |
} | |
GameMenu(ByRef Keys) { | |
ControlSend,, % Keys , % WinTitle | |
} | |
TrayTip, Numpad Controls, 1\tStart/Pause Script\n0\tStop/Reload Script\nDot\tClose Script | |
Pause | |
Loop, 500 { | |
; Emergency Restart | |
GameKey("L") | |
Sleep, 6000 | |
; Distance | |
Loop, 2 | |
GameKey("6") | |
; Pickups | |
Loop, 30 | |
GameKey("1") | |
; Moves | |
GameKey("=") | |
GameKey("7") | |
Loop, 4 { | |
GameClick("Left") | |
Sleep, 100 | |
} | |
Sleep, 1000 | |
GameKey("-") | |
; Speedway Finish | |
GameKey("8") | |
Sleep, 1600 | |
; Restart Level | |
GameMenu("{Enter}{Right}{Enter}") | |
Sleep, 1000 | |
} | |
Sleep, 2000 | |
GameKey("K") | |
TrayTip, Grind completed | |
Pause | |
Numpad1:: | |
Pause | |
SoundBeep, 900, 1000 | |
Return | |
Numpad0:: | |
Reload | |
SoundBeep, 500, 500 | |
Return | |
NumpadDot::ExitApp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Place this file in '<game>\Binaries' folder | |
# Add '-exec=qube_grind.txt' launch option | |
# Keybindings | |
# Up, Down, Left, Right - Lookup | |
# Q - Super speed & high jump | |
# F - FOV 106 | |
# C - Crouch | |
# J - Reexecute qube_grind.txt | |
# K - Instant quit | |
# L - Restart level | |
# 1 - Spawn Trap Door pickup | |
# 2 - Spawn Low Gravity pickup | |
# 3 - Spawn Speed pickup | |
# 4 - Spawn Shield pickup (also Speed) | |
# 5 - Spawn More Time pickup | |
# 6 - Teleport to void and super speed launch (Distance grind) | |
# 7 - Teleport at blue cube (Moves grind) | |
# 8 - Teleport to Speedway finish (Times Played grind) | |
# 0 - Default game speed | |
# - - 0.5x game speed | |
# = - 10x game speed | |
# Optimized graphics | |
Scale Set Fullscreen false | |
Scale LowEnd | |
# Useful Bindings | |
SetBind Up "Axis aLookup Speed=-0.2" | |
SetBind Down "Axis aLookup Speed=+0.2" | |
SetBind Left "GBA_TurnLeft" | |
SetBind Right "GBA_TurnRight" | |
SetBind Q "Set QubePawn GroundSpeed 2400 | Set QubePawn AirSpeed 2450 | SetJumpZ 1000" | |
SetBind F "Fov 106" | |
SetBind C "Duck" | |
SetBind J "Exec qube_grind.txt" | |
SetBind K "Exit" | |
SetBind L "RestartLevel" | |
## Slow motion / Game speed | |
SetBind Zero "Slomo 1" | |
SetBind Underscore "Slomo .5" | |
SetBind Equals "Slomo 10" | |
## Spawn Pickups | |
SetBind One "Summon Qube.QubeExtra_TrapDoorPickup" | |
SetBind Two "Summon Qube.QubeExtra_LowGravityPickup" | |
SetBind Three "Summon Qube.QubeExtra_SpeedPickup" | |
SetBind Four "Summon Qube.QubeExtra_ShieldPickup" | |
SetBind Five "Summon Qube.QubeExtra_MoreTimePickup" | |
## Teleports | |
SetBind Six "Set QubePawn Location (X=15000, Y=-3250, Z=2500) | OnRelease Set QubePawn Velocity (X=-100000, Y=0, Z=40000)" | |
SetBind Seven "Set QubePawn Velocity (X=0, Z=0) | Set QubePawn Location (X=-1020, Y=-3250, Z=550)" | |
SetBind Eight "StreamLevelIn s1-shortcut2 | Set QubePawn Velocity (X=0, Z=0) | Set QubePawn Location (X=-5300, Y=-6400, Z=2300)" | |
# Display Info | |
Stat FPS | |
DisplayClear | |
DisplayAll QubeTimeDLCGameInfo MovesTaken | |
DisplayAll QubePawn TotalDistance | |
DisplayAll QubeTimeDLCGameInfo Pickups | |
DisplayAll QubeTimeDLCGameInfo TotalMovesTaken | |
DisplayAll QubeTimeDLCGameInfo TotalDistance | |
DisplayAll QubeTimeDLCGameInfo TotalPickups | |
DisplayAll QubeTimeDLCGameInfo TotalTimesPlayed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment