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
| #macro GMEE_PRELOAD true | |
| // This script references UndertaleModTool for data file parsing | |
| // https://github.com/UnderminersTeam/UndertaleModTool/blob/master/UndertaleModLib/Models/UndertaleExtension.cs | |
| /// Parses a Gamemaker game WAD for extension information | |
| /// | |
| /// @param [filepath] the path to the WAD. If not provided, one is guessed based on platform/command-line arguments. | |
| /// | |
| /// @returns {Array<Struct>} an array containing extension information parsed from the WAD |
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
| escape = InstanceContext() | |
| funcs = escape.funcs | |
| obj_news = funcs.asset_get_index("obj_news") | |
| obj_example = funcs.asset_get_index("obj_example") | |
| obj_sprite_downloader = funcs.asset_get_index("obj_sprite_downloader") | |
| startDownload = escape.getScript("spr_sprite_downloader_fetch") | |
| downloadFile = func(url, progressCallback, finishCallback) { | |
| if !funcs.os_is_network_connected() { |
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
| -- You are about to witness war crimes. | |
| -- I stopped commenting at some point because I myself | |
| -- can't fully explain what's going on without writing a | |
| -- whole essay on the topic (which I'll probably do in the near future anyway). | |
| ObjectCreate("patcher") | |
| ObjectSetScript("patcher", "create_event", func(obj) { | |
| let check = ObjectGetAllInstances(obj_mod_generic) | |
| if ArrayLength(check) > 0 { | |
| ShowDebugMessage("Functions are already working, no need to patch") |
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
| __get_default_datafile = function() { | |
| switch(os_type) { | |
| case os_windows: return "data.win"; | |
| case os_linux: return "game.unx"; | |
| default: throw $"Unsupported OS {os_type}"; | |
| } | |
| } | |
| __get_event_table = function() { | |
| static event_table = undefined; |
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
| /*: | |
| @plugindesc Fix 'cannot read property "width" of null' crash in Olivia_AnimatedPictures. | |
| @author Benjamin Urquhart | |
| */ | |
| { | |
| // Add functions that causes the crash here. | |
| let functions = ["resetFrame", "updateAnimatedPictureFrame"] |
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
| // Helper stuff | |
| // Learning Javascript using Notepad++ is not ideal but it works I guess. | |
| // Could be worse. | |
| clone = function(obj) { | |
| return JSON.parse(JSON.stringify(obj)) | |
| } | |
| var ReviveMod = {} |
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
| import java.util.HashMap; | |
| import java.util.HashSet; | |
| import java.util.Map; | |
| import java.util.Set; | |
| import java.util.concurrent.atomic.AtomicInteger; | |
| import org.json.JSONArray; | |
| import org.json.JSONObject; | |
| public class JsonEx { |
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
| // ==UserScript== | |
| // @name Always Maraca | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.1 | |
| // @description Always get the maraca dog on Deltarune's 404 page | |
| // @author Benjamin Urquhart | |
| // @match *://deltarune.com/* | |
| // @icon https://www.google.com/s2/favicons?sz=64&domain=deltarune.com | |
| // @grant none | |
| // ==/UserScript== |
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
| #include <Windows.h> | |
| #include <iostream> | |
| #include <string> | |
| #define func extern "C" __declspec(dllexport) | |
| // Some boilerplate code | |
| // Taken from https://github.com/Archie-osu/YYToolkit | |
| #define TRoutine void* |
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
| import java.io.ByteArrayInputStream; | |
| import java.io.File; | |
| import java.io.FileNotFoundException; | |
| import java.io.IOException; | |
| import java.io.InputStream; | |
| import java.nio.ByteBuffer; | |
| import java.nio.ByteOrder; | |
| import java.nio.file.Files; | |
| import java.util.ArrayList; | |
| import java.util.Arrays; |
NewerOlder