Skip to content

Instantly share code, notes, and snippets.

View udoprog's full-sized avatar

John-John Tedro udoprog

View GitHub Profile
state("DyingLightGame")
{
string255 mission: "gamedll_x64_rwdi.dll", 0x01D6D488, 0x0, 0x90, 0x50, 0x18, 0x0;
int loading: "rd3d11_x64_rwdi.dll", 0x7D108;
}
startup
{
settings.Add("quests", true, "Quests");
use async_std::{
net::{TcpListener, TcpStream},
task,
};
use failure::Error;
use futures::{future, prelude::*, stream::FuturesUnordered};
/// Handle incoming connections.
async fn handle(socket: TcpStream, remote: &str) -> Result<(), Error> {
let remote = TcpStream::connect(remote).await?;
@udoprog
udoprog / DowngradeUpgrade.ps1
Created June 14, 2019 16:42
Handle upgrading and downgrading GTA V
param([switch] $Downgrade=$false)
$Profile = "$env:USERPROFILE\Documents\Rockstar Games\GTA V"
$Game = "D:\Steam\steamapps\common\Grand Theft Auto V"
$SocialClub = "C:\Program Files\Rockstar Games\Social Club"
if (!(Test-Path -Path $Profile)) {
exit
}
@udoprog
udoprog / rtss_limiter.ahk
Last active August 18, 2019 08:32
AHK script to toggle between two different FPS limits in RTSS
; Inputs two different FPS values into RivaTunerStatisticsServer when toggled.
#SingleInstance force
values := [144, 116]
stage := 1
focus_row := 1
FOCUS_TOP := 163
FOCUS_LEFT := 18
diff --git a/bot/src/module/countdown.rs b/bot/src/module/countdown.rs
index 632d68d..b87f0ba 100644
--- a/bot/src/module/countdown.rs
+++ b/bot/src/module/countdown.rs
@@ -87,6 +87,8 @@ impl super::Module for Module {
handlers.insert("countdown", Handler { sender });
+ let path = self.path.clone();
+
using System;
using GTA;
using GTA.Native;
using System.Windows.Forms;
namespace Chaos
{
enum Speed
{
Normal,
using System;
using GTA;
namespace ChaosMod
{
public class BlockCutsceneSkips : Script
{
public BlockCutsceneSkips()
{
this.Tick += OnTick;
test_fixed:
movl 112(%rdi), %eax
movl 116(%rdi), %edx
retq
test_array:
movl 116(%rdi), %edx
xorl %eax, %eax
cmpl $1, 112(%rdi)
sete %al
Compiling asteroids-amethyst v0.1.0 (/home/udoprog/repo/asteroids-amethyst)
error[E0412]: cannot find type `RandomGe` in this scope
--> src/systems.rs:128:24
|
128 | ReadExpect<'s, RandomGe>,
| ^^^^^^^^ did you mean `RandomGen`?
error[E0275]: overflow evaluating the requirement `<_ as specs::world::comp::Component>::Storage`
|
= help: consider adding a `#![recursion_limit="128"]` attribute to your crate
#include <stdlib.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <string.h>
#include <errno.h>
#include <unistd.h>
#define panic(EXPR, MSG) \