Skip to content

Instantly share code, notes, and snippets.

View FransBouma's full-sized avatar

Frans Bouma FransBouma

View GitHub Profile
@FransBouma
FransBouma / hitman_abs.CT
Created December 21, 2017 08:25
Hitman Absolution CT (Jim2Point0)
<?xml version="1.0" encoding="utf-8"?>
<CheatTable CheatEngineTableVersion="18">
<CheatEntries>
<CheatEntry>
<ID>10287</ID>
<Description>"Free Camera + FOV [F2]"</Description>
<Options moHideChildren="1"/>
<LastState Activated="0"/>
<Color>000000</Color>
<VariableType>Auto Assembler Script</VariableType>
@FransBouma
FransBouma / StringBuilderCache.cs
Created December 4, 2017 15:00
Adjusted StringBuilderCache, which caches 4 string builders at once
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
/*============================================================
**
** Class: StringBuilderCache
**
** Purpose: provide a cached reusable instance of stringbuilder
@FransBouma
FransBouma / TestClass.cs
Last active August 15, 2017 14:56
NUnit v3+ Trace output to active test redirect for .NET core and .NET full
[TestFixture]
public class MyTests()
{
[OneTimeSetUp]
public void Init()
{
#if NETCOREAPP2_0
Trace.Listeners.Add(new TextWriterTraceListener(Console.Out));
#else
Trace.Listeners.Add(new ConsoleTraceListener());
@FransBouma
FransBouma / address.txt
Last active August 9, 2017 20:18
Hellblade: Senua's Sacrifice WIP
// Camera x/y/z/rotation writes: Disable to unlock free movement. Central copy constructor of UE camera manager.
// Used in-game and in photomode
// UE uses angles for rotation. In UE3 it uses packed 16 bit ints, in UE4 it uses floats, in degrees (0-360.0)
HellbladeGame-Win64-Shipping.exe+1940B77 - F2 0F11 87 80040000 - movsd [rdi+00000480],xmm0 // Write X & Y
HellbladeGame-Win64-Shipping.exe+1940B7F - F2 0F10 44 24 5C - movsd xmm0,[rsp+5C]
HellbladeGame-Win64-Shipping.exe+1940B85 - F2 0F11 87 8C040000 - movsd [rdi+0000048C],xmm0 // Write Rotation around X/ around Z
HellbladeGame-Win64-Shipping.exe+1940B8D - 0F10 44 24 68 - movups xmm0,[rsp+68]
HellbladeGame-Win64-Shipping.exe+1940B92 - 89 87 88040000 - mov [rdi+00000488],eax // Write Z (UP)
HellbladeGame-Win64-Shipping.exe+1940B98 - 8B 44 24 64 - mov eax,[rsp+64]
HellbladeGame-Win64-Shipping.exe+1940B9C - 89 87 94040000 - mov [rdi+00000494],eax // Write Rotation around Y (into the screen)
@FransBouma
FransBouma / Main.ini
Created June 29, 2017 20:11
Reshade 3 settings
KeyDeband=0,0,0,0
KeyGP65CJ042DOF=0,0,0,0
TechniqueSorting=Deband,DisplayDepth,RingDOF,MagicDOF,GP65CJ042DOF,MatsoDOF,MartyMcFlyDOF
KeyDisplayDepth=0,0,0,0
KeyRingDOF=0,0,0,0
KeyMagicDOF=0,0,0,0
KeyMartyMcFlyDOF=119,0,0,0
KeyMatsoDOF=0,0,0,0
Techniques=MartyMcFlyDOF
<?xml version="1.0" encoding="utf-8"?>
<!--LLBLGen Pro v5.2 project file. Do not manually edit this file. Incorrect references could lead to an unloadable project file.-->
<Project Version="5.2" TargetFrameworkName="LLBLGen Pro Runtime Framework" UseLegacyDefaults="false">
<Properties>
<Abbreviations />
<Property Name="AdditionalTaskPerformerFolder" Value="" />
<Property Name="AdditionalTasksFolder" Value="" />
<Property Name="AdditionalTemplatesFolder" Value="" />
<Property Name="AdditionalTypeConverterFolder" Value="" />
<Property Name="AddNewElementsAfterRefresh_v5" Value="false" />
;------------------------------------------------------------------------------------------------------
; Logging options.
; Comment line or set value to 0 for no logging.
;------------------------------------------------------------------------------------------------------
[Logging]
; Log all API usage
calls=0
; Log Input key actions
@FransBouma
FransBouma / DOF_With16_9Fix.fx
Created April 2, 2017 15:35
This is an updated DOF shader, which is usable for Watch_Dogs 2. It corrects (to a point) the depth buffer for cut scenes, on 16:10 monitors.
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//LICENSE AGREEMENT AND DISTRIBUTION RULES:
//1 Copyrights of the Master Effect exclusively belongs to author - Gilcher Pascal aka Marty McFly.
//2 Master Effect (the SOFTWARE) is DonateWare application, which means you may or may not pay for this software to the author as donation.
//3 If included in ENB presets, credit the author (Gilcher Pascal aka Marty McFly).
//4 Software provided "AS IS", without warranty of any kind, use it on your own risk.
//5 You may use and distribute software in commercial or non-commercial uses. For commercial use it is required to warn about using this software (in credits, on the box or other places). Commercial distribution of software as part of the games without author permission prohibited.
//6 Author can change license agreement for new versions of the software.
//7 All the rights, not described in this license agreement belongs to author.
//8 Using the Master Effect means that user accept the terms of
@FransBouma
FransBouma / gist:9ce4c6fc75dbff1bde0b7fd30b4a97f4
Last active March 16, 2017 18:07
DXMD camera location find how to
DXMD.NvOptimusEnablement+128EEBF - 0FC6 C2 49 - shufps xmm0,xmm2,49 { 73 }
DXMD.NvOptimusEnablement+128EEC3 - 0F29 4B 50 - movaps [rbx+50],xmm1 <<< WRITE matrix
DXMD.NvOptimusEnablement+128EEC7 - 0F28 CA - movaps xmm1,xmm2
DXMD.NvOptimusEnablement+128EECA - 0FC6 CD 0A - shufps xmm1,xmm5,0A { 10 }
DXMD.NvOptimusEnablement+128EECE - 0F29 43 60 - movaps [rbx+60],xmm0
DXMD.NvOptimusEnablement+128EED2 - 0FC6 CD 98 - shufps xmm1,xmm5,-68 { 152 }
DXMD.NvOptimusEnablement+128EED6 - 0F29 4B 70 - movaps [rbx+70],xmm1 <<< WRITE COORDS
DXMD.NvOptimusEnablement+128EEDA - C6 43 18 00 - mov byte ptr [rbx+18],00 { 0 }
DXMD.NvOptimusEnablement+157D4B0 - 0F2E 49 0C - ucomiss xmm1,[rcx+0C] <<<<< FOV READ
var qf = new QueryFactory();
var q = qf.Actor
.From(QueryTarget.InnerJoin(qf.FilmActor)
.On(ActorFields.ActorId.Equal(FilmActorFields.ActorId)))
.Where(ActorFields.FirstName.StartsWith("A"));
.Select(()=>new { FirstName = ActorFields.FirstName.ToValue<string>(),
LastName=ActorFields.LastName.ToValue<string>() });
var results = new DataAccessAdapter.FetchQuery(q);