Skip to content

Instantly share code, notes, and snippets.

View steviegt6's full-sized avatar
💭
be sure not to lose your head

Stephen Thiebaud steviegt6

💭
be sure not to lose your head
View GitHub Profile
public static Rectangle GetDrawHitbox(int type, Player user)
{
if (Main.dedServ)
{
return Rectangle.Empty;
}
Main.instance.LoadItem(type);
if (ItemID.Sets.IsFood[type])
{
return TextureAssets.Item[type].Frame(1, 3, 0, 1);
C:\Users\stephen\Documents\GitHub\trpv\src\Tomat.TRPV.CLI>dotnet run -- "C:\Users\stephen\Downloads\CalamityTexturePack"
Calamity Texture Pack failed with 38 error(s) and 5 warning(s) (1.0722188s)
C:\Users\stephen\Downloads\CalamityTexturePack\pack.json: info TRPV0008: Parsed resource pack metadata; name: 'Calamity Texture Pack', author: 'Calamity Texture Pack', description: 'Brings to your world the look and feel of the Calamity Mod.\n\nSpriters, Testers and
Contributors: Ada, Aleksh, Aloevera, Altalyra, Beg, Ben / TK, Blanc, Cen, Chillynuts, Cooper, Daddy, Darkpuppey, Enreden, Felipe350, GramofSalt, IbanPlay, JaceDaDorito, LordMetarex, MarieArk, Nao, Niorin,
Nitro, Potat, Runefield, Seasalt, Shucks, Skeletony, Sok, Swamon3, Tinymanx, Twilith, V1tell, Vaikyia and Xelo.\n\nThank you to all others who have helped and contributed to this pack!', version: 1.53
info TRPV0012: Icon 'C:\Users\stephen\Downloads\CalamityTexturePack\icon.png' is a valid PNG file
info TRPV0009: C:\Users\stephen\Downloads\Ca
.editor-group-watermark > .letterpress {
background-image: url("https://raw.githubusercontent.com/Aikoyori/ProgrammingVTuberLogos/main/VSCode/VSCode-Thick.png") !important;
width: 150% !important;
}

HoloCure is moving to YYC

Just to be clear: Kay Yu isn't trying to kill modding, this is all just a result of an otherwise beneficial change.

HoloCure, which is made in GameMaker, is moving from targeting the GameMaker virtual machine (VM) to the YoYo Compiler (YYC). This is a big deal.

VM? YYC?

HoloCure currently uses the VM target, which includes compiled bytecode[^1]. In the upcoming 0.6 update, Kay Yu has made the decision to switch to targeting YYC, which compiles GML to machine code (through means not important in this discussion).

{
"version": "0.1.0",
"notes": "See the assets to download this version and install.",
"pub_date": "2023-05-27T21:34:13.789Z",
"platforms": {
"darwin-x86_64": {
"signature": "dW50cnVzdGVkIGNvbW1lbnQ6IHNpZ25hdHVyZSBmcm9tIHRhdXJpIHNlY3JldCBrZXkKUlVTcnB5cU5ON1M0UVljNFo0RGdmZDBacUpYMVZZZjlZN2NLM096cVpNRnEzL3IwK21tYm1PZjYyQ1E4N2VtbU13ZTF6MC9KUkhHcmRJemNXMnNVWHNNTmVtUFp5SFFycUFVPQp0cnVzdGVkIGNvbW1lbnQ6IHRpbWVzdGFtcDoxNjg1MjIzMDM3CWZpbGU6VEVUUk9OLmFwcC50YXIuZ3oKSlVjaU0zUUs5NkxvN0N2RVRMU24xRG45enVRVjlLNTRGUkc5Q25oakQ4S1lYWm9BMFBnMzlsWFNldzBpM3RjaTJkcFMzR3ZPOW1VOUZpbnA1STROQ0E9PQo=",
"url": "https://github.com/steviegt6/tetron/releases/download/tetron-v0.1.0/TETRON_x64.app.tar.gz"
},
"linux-x86_64": {
@steviegt6
steviegt6 / ExtraAccSlots.patch
Last active April 11, 2023 19:18
ExtraAccSlots patch
diff --git a/ExtraAccSlotsOld/AccSlotConfig.cs b/ExtraAccSlots/AccSlotConfig.cs
index 8ba9f90..008fd53 100644
--- a/ExtraAccSlotsOld/AccSlotConfig.cs
+++ b/ExtraAccSlots/AccSlotConfig.cs
@@ -151,6 +151,124 @@ public class AccSlotConfig : ModConfig
[DefaultValue(true)]
[ReloadRequired]
public bool StardustToggle;
+
+ [Header("Calamity Boss Slots")]
.class private auto ansi '<Module>'
{
}
.class private sequential ansi sealed beforefieldinit MyVoid
extends [System.Runtime]System.Void
{
}
.class public auto ansi beforefieldinit Generic`1<T>
@steviegt6
steviegt6 / irule_modding.md
Last active February 17, 2022 06:08
Notes on modding I.RULE (https://doctorhummer.itch.io/irule).

This information is up-to-date as of alpha release v0.1.6.0!

I.RULE

I.RULE is a PvZ/TBoI fan-game. It is a roguelike tower defense game with heavy PvZ elements, themed both artistically and content-wise around The Binding of Isaac.

Modding

I.RULE is a GameMaker (lmao L) game. It is packaged as an executable, but its content files (sounds, language file, and data.(win/whatever) files are written to a temporary folder when the game is open.

Obtaining Files

  1. Open I.RULE.
@steviegt6
steviegt6 / RateMyCode.cs
Created July 7, 2021 06:35
Some simple C# code I made. Please rate it out of 10 as I am still learning! Be sure to give feedback in the comments. :D
using sys = System;
using temp = TemporaryRedundants;
using myMod = SteviesModRedux;
using cecil = Mono.Cecil;
using monoMod = MonoMod;
using modLoader = Terraria.ModLoader;
namespace TemporaryRedundants
{
public class OverridenMethodAttribute : sys::Attribute
@steviegt6
steviegt6 / Program.cs
Last active October 14, 2021 19:15
FizzBuzzEnterpriseEdition-inspirted short .NET program displaying an over-engineered a FizzBuzz program. Made in a geography class because I was bored.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class Language
{
public Container<string> LanguageKey { get; }
public Language(string languageKey)