Created
November 29, 2019 21:28
-
-
Save NeKzor/3ceb7ef77b8307bf8d5f593a294961eb to your computer and use it in GitHub Desktop.
Play Portal 2 Sixense Perceptual Pack without Senz3D camera.
This file contains hidden or 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
const fs = require('fs'); | |
const client_sixense = process.argv[2] || './portal2_sixense/bin/client_sixense.dll'; | |
const module = fs.readFileSync(client_sixense); | |
const patch = [ | |
[ | |
// Fix crash in init | |
// cmp ecx 69 | |
0x401F66, [0x83, 0xF9, 0x45], | |
], | |
[ | |
// Fix in-game menu | |
// jz short loc_5163FC43 | |
0x3FF027, [0x74, 0x1A], | |
], | |
[ | |
// Set cam frame rate to anything else than 30/60 to prevent further crashes | |
// push offset a10 | |
0x736B15, [0x68, 0xB4, 0xE9, 0x7A, 0x10], | |
], | |
]; | |
patch.forEach((p) => p[1].forEach((b, i) => module[p[0] + i] = b)); | |
fs.writeFileSync(client_sixense, module); | |
console.log('patched'); |
@SatisfactoryBug It is pretty much pointless to play the game with keyboard and mouse only as you cannot complete it without the required hardware. This is only a script that I quickly hacked together so you would need some knowledge about NodeJs if you want to run and test this yourself.
okay but how to install it
SyntaxError: Identifier 'module' has already been declared
@AlexanderTheGreat26 This sounds like a NodeJs version issue. Try renaming the variable 'module' into anything else.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
May i ask how to use it or install it ?? as i like to play without Camera as it wont let it run without any camera i think