Skip to content

Instantly share code, notes, and snippets.

View notfood's full-sized avatar
🔥
Supernova!

Meru notfood

🔥
Supernova!
View GitHub Profile
@notfood
notfood / yayo_spam.log
Created August 25, 2021 22:49
yayo animation spams this and then crashes the game
C
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Verse.Log:Message (string)
yayoAni.core:getRot (UnityEngine.Vector3,Verse.Rot4)
yayoAni.yayo:ani1 (Verse.Pawn,UnityEngine.Vector3&,Verse.Rot4)
yayoAni.yayo:checkAni (Verse.Pawn,UnityEngine.Vector3&,Verse.Rot4)
yayoAni.Patch_PawnRenderer_RenderPawnAt:Prefix (Verse.PawnRenderer,Verse.Pawn,UnityEngine.Vector3&,System.Nullable`1<Verse.Rot4>,bool)
(wrapper dynamic-method) Verse.PawnRenderer:Verse.PawnRenderer.RenderPawnAt_Patch3 (Verse.PawnRenderer,UnityEngine.Vector3,System.Nullable`1<Verse.Rot4>,bool)
Verse.Pawn_DrawTracker:DrawAt (UnityEngine.Vector3)
Verse.Pawn:DrawAt (UnityEngine.Vector3,bool)
<?xml version="1.0" encoding="utf-8"?>
<Patch>
<!-- Add inspectorTabs if there are no inspectorTabs yet. -->
<!-- Add ResearchInfo.RI_ITab either way -->
<Operation Class="PatchOperationConditional">
<xpath>/Defs/ThingDef[thingClass="Building_ResearchBench"]/inspectorTabs</xpath>
<nomatch Class="PatchOperationAdd">
<xpath>/Defs/ThingDef[thingClass="Building_ResearchBench"]</xpath>
<value>
<inspectorTabs>
cd
sudo yum -y install npm
git clone https://github.com/drawpile/dpwebadmin Drawpile-Web-Admin
cd Drawpile-Web-Admin
cat <<EOF | tee .env
REACT_APP_BASENAME=/admin
REACT_APP_APIROOT=/admin/api
REACT_APP_AUTHMODE=basic
EOF
mv package.json package-orig.json
@notfood
notfood / Patch_Balance.xml
Created August 15, 2020 01:43
Ceramics + FertileFields
<?xml version="1.0" encoding="utf-8"?>
<Patch>
<Operation Class="PatchOperationFindMod">
<mods>
<li>Fertile Fields [1.1]</li>
</mods>
<match Class="PatchOperationSequence">
<operations>
<AlienRace.BackstoryDef>
<baseDescription>
</baseDescription>
<slot>Childhood</slot>
<spawnCategories>
<li>AvaliBackstory</li>
</spawnCategories>
</AlienRace.BackstoryDef>
<AlienRace.BackstoryDef>
<spawnCategories>
Only in /media/Mayohiga/opt/SteamLibrary/steamapps/common/RimWorld/Workshop/1752864297/1.1/Assemblies: Multiplayer .dll
Only in /media/Mayohiga/opt/SteamLibrary/steamapps/common/RimWorld/ModsDev/Multiplayer-Release/1.1/Assemblies: Multiplayer.dll
diff -ur /media/Mayohiga/opt/SteamLibrary/steamapps/common/RimWorld/ModsDev/Multiplayer-Release/About/About.xml /media/Mayohiga/opt/SteamLibrary/steamapps/common/RimWorld/Workshop/1752864297/About/About.xml
--- /media/Mayohiga/opt/SteamLibrary/steamapps/common/RimWorld/ModsDev/Multiplayer-Release/About/About.xml 2020-07-14 23:08:07.358671759 -0500
+++ /media/Mayohiga/opt/SteamLibrary/steamapps/common/RimWorld/Workshop/1752864297/About/About.xml 2020-07-15 02:30:51.062317548 -0500
@@ -9,16 +9,17 @@
<author>Zetrith</author>
<url>https://github.com/rwmt/Multiplayer</url>
<description>&lt;color=red&gt;&lt;b&gt;Important: &lt;/b&gt; This mod should be loaded as early as possible to work properly!
-Requires >= Rimworld v1.1.2609&lt;/color&gt;\n
diff --git a/BepInEx/ConsoleUtil/Kon.cs b/BepInEx/ConsoleUtil/Kon.cs
index 6166ea9..4f94237 100644
--- a/BepInEx/ConsoleUtil/Kon.cs
+++ b/BepInEx/ConsoleUtil/Kon.cs
@@ -64,20 +64,23 @@ namespace BepInEx.ConsoleUtil
succeeded = false;
if (!(conOut == INVALID_HANDLE_VALUE))
{
- CONSOLE_SCREEN_BUFFER_INFO console_SCREEN_BUFFER_INFO;
- if (!GetConsoleScreenBufferInfo(conOut, out console_SCREEN_BUFFER_INFO))
FAIL: Multiplayer.Client.CanPlaceBlueprintAtPatch2 with System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentException: opcode
FAIL: Multiplayer.Client.WipeExistingThingsPatch with System.FormatException: Method static System.Void Verse.GenSpawn WipeExistingThings(Verse.IntVec3, Verse.Rot4, Verse.BuildableDef, Verse.Map, Verse.DestroyMode) cannot be patched. Reason: Invalid IL code in (wrapper dynamic-method) Verse.GenSpawn:DMD<DMD<WipeExistingThings_Patch0>?-1403803648::WipeExistingThings_Patch0> (Verse.IntVec3,Verse.Rot4,Verse.BuildableDef,Verse.Map,Verse.DestroyMode): IL_0051: call 0x00000017
FAIL: Multiplayer.Client.WipeAndRefundExistingThingsPatch with System.FormatException: Method static System.Void Verse.GenSpawn WipeAndRefundExistingThings(Verse.IntVec3, Verse.Rot4, Verse.BuildableDef, Verse.Map) cannot be patched. Reason: Invalid IL code in (wrapper dynamic-method) Verse.GenSpawn:DMD<DMD<WipeAndRefundExistingThings_Patch0>?-4
#### Important settings #####
# HTTP server listening address port
listen = "127.0.0.1:8081"
# The database connection string
# Possible values:
# "none" - listserver will be in read-only mode (includeservers must be set)
# "memory" - sessions will be lost if server is restarted, but no database needed
# "postgres://..." - keep sessions in a PostgreSQL database
@notfood
notfood / drawpile-archives-process.sh
Last active February 16, 2020 01:40
Makes a preview of recent archived sessions available
#!/bin/sh
export XDG_RUNTIME_DIR=/tmp/runtime-root
SESSIONS=/var/lib/drawpile/sessions
ARCHIVES=/var/lib/drawpile/archived
cp $SESSIONS/*.session $ARCHIVES 2>/dev/null
mv $SESSIONS/*.session.archived $ARCHIVES 2>/dev/null