Skip to content

Instantly share code, notes, and snippets.

View TheLeftExit's full-sized avatar
👀

Norton TheLeftExit

👀
View GitHub Profile
@TheLeftExit
TheLeftExit / Source.pas
Created July 3, 2019 19:00
Tesla 2.0 source
// Written in Pascal ABC.NET (obscure Pascal variation with .NET features).
// Last edited: 10 Feb 2018.
// InputSimulator and WindowScrape are libraries that can be googled.
// sky.png is a 1x1366 BMP with Weather Machine: Warp Speed background colors as seen in-game.
// The bot would compare X pixels in front of player to sky colors, and count ones that wouldn't match.
// If more than Y pixels didn't match, player would stop. Otherwise, they'd move forward.
Program FarmBot2;
@TheLeftExit
TheLeftExit / item_definitions.txt
Created July 16, 2019 16:29
Growtopia v1.08 APK: /game/item_definitions.txt
//add_item|tile id|display name|eItemType| eTileVisualEffect| eTileStorage| frameX| frameY| filename| hash (0 for none)|0 layer|eCollisionType|HP|Seconds before healing|
//add_clothes|tile id|display name|eItemType|eTileVisualEffect| eTileStorage| frameX| frameY| filename| hash|body part (FACEITEM| PANTS| HAT| etc)|
//layer is always 0 for now
add_item|0|Blank|TYPE_NORMAL|MATERIAL_WOOD|VISUAL_EFFECT_NONE|STORAGE_SINGLE_FRAME_IN_TILESHEET|2|1|tileset_1.rttex|0|0|TILE_COLLISION_NONE|4|8|
setup_seed|1|seed1|0|seed2|0|seconds_to_bloom|0|max_fruit|0|bg_color|0,0,0,0|fg_color|0,0,0,0|
add_item|2|Dirt|TYPE_NORMAL|MATERIAL_WOOD|VISUAL_EFFECT_NONE|STORAGE_SMART_EDGE|0|0|dirt_tiles.rttex|0|0|TILE_COLLISION_SOLID|3|8|
setup_seed|3|seed1|0|seed2|0|seconds_to_bloom|0|max_fruit|0|bg_color|96,57,19,255|fg_color|166,124,82,255|
add_item|4|Lava|TYPE_LAVA|MATERIAL_WOOD|VISUAL_EFFECT_NONE|STORAGE_SINGLE_FRAME_IN_TILESHEET|0|0|tileset_1.rttex|0|0|TILE_COLLISION_SOLID|4|8|
@TheLeftExit
TheLeftExit / offsets.txt
Created July 31, 2019 23:14
Growtopia RAM address/offset collection
Format: tab-delimited list of (name, offsets[]).
First offset is relative to main module's base address.
Some values are written as just a single offset from another one.
Name list:
pX Player's X coordinate (float), in pixels, relative to left edge of the world.
pY Player's Y coordinate (float), in pixels, relative to top edge of the world.
pD Player's direction (byte); 0 for right, 1 for left.
FG Foreground block located at [0,0] (int16).
BG Background block located at [0,0] (int16).
@TheLeftExit
TheLeftExit / RTTI.cs
Created June 12, 2021 16:06
Standalone RTTI in C#
using System;
using System.Linq;
using System.Text;
using System.Diagnostics;
using System.Runtime.InteropServices;
namespace TheLeftExit.RTTI
{
static class ProcessManipulations
{
@TheLeftExit
TheLeftExit / ShittyTextEdit.cs
Last active November 10, 2022 12:59
DevExpress.XtraEditors.HtmlContentControl as a text editor
using DevExpress.XtraEditors;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
@TheLeftExit
TheLeftExit / obscenity.cs
Last active October 11, 2023 13:37
I had an epiphany at 12 AM
#pragma warning disable CS0183
#pragma warning disable CS0660
#pragma warning disable CS0661
long D = 12;
// if it compiles, it has to be true
var axiom = (My)8==D is long;
public class My {
@TheLeftExit
TheLeftExit / cswinloop.cs
Created February 14, 2023 17:23
C# window message loop generated by ChatGPT
using System;
using System.Runtime.InteropServices;
public static class Program
{
[DllImport("user32.dll")]
private static extern bool RegisterClassEx(ref WNDCLASSEX wcex);
[DllImport("user32.dll")]
private static extern IntPtr CreateWindowEx(
@TheLeftExit
TheLeftExit / UploadSimulatorvalueModel.cs
Created December 18, 2023 12:19
Upload Simulator 2 prestige point calculator
public class UploadSimulatorvalueModel(decimal? rawExponent = null)
{
public string Layer1 { get => this[1]; set => this[1] = value; }
public string Layer2 { get => this[2]; set => this[2] = value; }
public string Layer3 { get => this[3]; set => this[3] = value; }
public string Layer4 { get => this[4]; set => this[4] = value; }
public string this[int prestigeLayer]
{
get
@TheLeftExit
TheLeftExit / code.h
Created March 16, 2024 20:56
framework.h evaluation results
This file has been truncated, but you can view the full file.
__inner_fallthrough_dec
__ANNOTATION(SAL_analysisMode(__AuToQuOtE __In_impl_ char *mode);)
__ANNOTATION(SAL_functionClassNew(__In_impl_ char*);)
__PRIMOP(int, _In_function_class_(__In_impl_ char*);)
typedef unsigned int uintptr_t;
typedef char* va_list;
_CRT_BEGIN_C_HEADER
typedef unsigned int size_t;
typedef int ptrdiff_t;
typedef int intptr_t;