Skip to content

Instantly share code, notes, and snippets.

View NanoAi's full-sized avatar
🏠
Working from home

NanoAi NanoAi

🏠
Working from home
View GitHub Profile
/* customize things here */
:root {
/* font, change to 'gg sans' for default discord font*/
--font: 'FiraMono Nerd Font';
/* color of online status dot, change to #23a55a for default green */
// --online-indicator: var(--accent-2);
--online-indicator: hsl(145, 65%, 39%);
/* top left text */
[02/06/2023 00:00:04 a.m.] [Render thread/ERROR] Something went wrong during mod setup, exiting
[02/06/2023 00:00:04 a.m.] [Render thread/ERROR]
[02/06/2023 00:00:05 a.m.] at TRANSFORMER/minecraft@1.19.2/net.minecraft.client.gui.screens.Screen.m_96579_(Screen.java:529)
[02/06/2023 00:00:05 a.m.] at TRANSFORMER/minecraft@1.19.2/net.minecraft.client.MouseHandler.m_91530_(MouseHandler.java:85)
[02/06/2023 00:00:05 a.m.] at TRANSFORMER/minecraft@1.19.2/net.minecraft.client.MouseHandler.m_168091_(MouseHandler.java:185)
[02/06/2023 00:00:05 a.m.] at TRANSFORMER/minecraft@1.19.2/net.minecraft.util.thread.BlockableEventLoop.execute(BlockableEventLoop.java:103)
[02/06/2023 00:00:05 a.m.] at TRANSFORMER/minecraft@1.19.2/net.minecraft.client.MouseHandler.m_91565_(MouseHandler.java:184)
[02/06/2023 00:00:05 a.m.] at MC-BOOTSTRAP/org.lwjgl.glfw@3.3.1+7/org.lwjgl.glfw.GLFWMouseButtonCallbackI.callback(GLFWMouseButtonCallbackI.java:43)
[02/06/2023 00:00:05 a.m.] at MC-BOOTSTRAP/org.lwjgl@3.3.1+7/org.lwjgl.system.JNI

All tentative weapon changes on the server so far.

You can join and try them out for yourself via tf2.boxfox.org. Link: steam://connect/tf2.boxfox.org

[!! ALL BASE STATS ARE UNCHANGED UNLESS EXPLICITLY STATED !!]
  • Backburner: removed air blast cost increase.
@NanoAi
NanoAi / tf2_weaponEdit.nut
Last active December 17, 2022 05:37
A simple vscript for finding and editing weapons based on their Item Definition in TF2.
function processWeapon( weapon ) {
//ref: https://wiki.alliedmods.net/Team_fortress_2_item_definition_indexes
//ref: https://wiki.teamfortress.com/wiki/List_of_item_attributes
local itemIndex = NetProps.GetPropInt(weapon, "m_AttributeManager.m_Item.m_iItemDefinitionIndex");
if ( itemIndex == 40 ) {
weapon.AddAttribute("airblast cost decreased", 0.4, -1)
}
}
function OnGameEvent_post_inventory_application(p) {
@NanoAi
NanoAi / mvm_in_2fort.nut
Created December 13, 2022 00:21
Put it in `tf/scripts/vscripts/force_mvm_ups.nut` and run it with `script_execute force_mvm_ups.nut`.
local ent = null;
local cashGain = 50;
local cashLose = 25;
local cashScaler = 0.10
ShowMessage("Loading ForceEnableUpgrades VScript...");
ForceEnableUpgrades(2);
while( ent = Entities.FindByClassname(ent, "func_upgradestation") )
@NanoAi
NanoAi / wishlist.md
Created January 3, 2022 07:47
My Wishlist
  • Rusk (3D Model) @ [link] via booth.pm.
  • XSOverlay (Application) @ [link] via steampowered.com.
@NanoAi
NanoAi / LeagueFriendsCleaner.py
Last active June 30, 2021 17:59
This requires lcu_driver from https://github.com/sousa-andre/lcu-driver to work, if it doesn't work you're probably missing that requirement.
from lcu_driver import Connector
import sys, time
# WARNING: THIS WILL START CLEANING WHEN YOU RUN IT!
# For friends you want to keep, just add any note to them.
# You can also put them in a category called "Friends".
def out(string):
print(string, flush=True)
[14:36:57 ERROR]: Could not pass event PlayerJoinEvent to SpawnSystems v1.0-SNAPSHOT
java.lang.IllegalStateException: Error during execution.
at red.mirai.spawnsystems.util.DataSource.execute(DataSource.java:38) ~[?:?]
at red.mirai.spawnsystems.events.BedControl.removeBedLocation(BedControl.java:139) ~[?:?]
at red.mirai.spawnsystems.events.BedControl.lambda$onPlayerConnect$4(BedControl.java:299) ~[?:?]
at red.mirai.spawnsystems.util.DataSource.execute(DataSource.java:36) ~[?:?]
at red.mirai.spawnsystems.events.BedControl.onPlayerConnect(BedControl.java:268) ~[?:?]
at com.destroystokyo.paper.event.executor.MethodHandleEventExecutor.execute(MethodHandleEventExecutor.java:37) ~[patched_1.16.5.jar:git-Paper-466]
at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:80) ~[patched_1.16.5.jar:git-Paper-466]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[patched_1.16.5.jar:git-Paper-466]
@NanoAi
NanoAi / LeagueListener.py
Last active April 3, 2022 08:08
A Python Script that uses League APIs to attempt to close the process when the game ends, without playing out the ending animation. Because alt+f4 is now disabled... READ THE FIRST COMMENT!
from lcu_driver import Connector
import requests, webbrowser, psutil, asyncio, re
# This will automatically open porofessor & League of Graphs in champ select.
# -- ALSO --
# This will poll the League In-Game API, and watch the GameFlow sockets
# to automatically end the process of your game when the game ends.
### Comment out as you see fit!
## However: I still think using autohotkey to just kill the process with a key
## press is better...
@NanoAi
NanoAi / StopItTwitchAds.js
Last active October 30, 2020 23:03
Twitch bypassing ublock yet again... let's fix that.
// ==UserScript==
// @name Twitch Ad Things
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://www.twitch.tv/*
// @grant unsafeWindow
// @run-at document-start
// ==/UserScript==