Skip to content

Instantly share code, notes, and snippets.

View wanwanvxt's full-sized avatar
:shipit:
^_____^

Vũ Xuân Trường wanwanvxt

:shipit:
^_____^
View GitHub Profile
@its-truce
its-truce / DecompileMods.md
Last active December 1, 2024 19:52
[tModLoader] How To Decompile Mods

[tModLoader] How To Decompile Mods

NOTE: Please don't copy other people's code unless you have permission. Respect other people's wishes about distributing code. Copying code is plagiarism. This tutorial is only to teach you how to do it.

This is a bite-sized tutorial on how to decompile Terraria mods. If you want to replicate a certain effect that you saw in a mod of your own, you can decompile that mod. Here's how you can do it:

Obtaining the DLL

To obtain the .dll file, we have to use a TML.Patcher, a 3rd party tool for decompiling mods. Here's how you can install and use it:

  • Open Command Prompt.
  • Run dotnet tool install -g Tomat.TML.Patcher to install it.
  • Run tmlpatcher extract "Path/To/The/Mod.tmod" to extract the mod file at Path/To/The/Mod.tmod.
@AndrewMast
AndrewMast / disable_vanguard.vbs
Last active April 24, 2025 13:26
Commands to disable Riot Vanguard when you aren't playing Valorant
' Disables Vanguard from starting when you boot your computer
Call CreateObject("Shell.Application").ShellExecute("cmd.exe", "/c ""sc config vgc start= disabled & sc config vgk start= disabled""", "", "runas")
@raysan5
raysan5 / custom_game_engines_small_study.md
Last active April 24, 2025 05:27
A small state-of-the-art study on custom engines

CUSTOM GAME ENGINES: A Small Study

a_plague_tale

A couple of weeks ago I played (and finished) A Plague Tale, a game by Asobo Studio. I was really captivated by the game, not only by the beautiful graphics but also by the story and the locations in the game. I decided to investigate a bit about the game tech and I was surprised to see it was developed with a custom engine by a relatively small studio. I know there are some companies using custom engines but it's very difficult to find a detailed market study with that kind of information curated and updated. So this article.

Nowadays lots of companies choose engines like Unreal or Unity for their games (or that's what lot of people think) because d

@darktable
darktable / MiniJSON.cs
Created November 30, 2011 23:08
Unity3D: MiniJSON Decodes and encodes simple JSON strings. Not intended for use with massive JSON strings, probably < 32k preferred. Handy for parsing JSON from inside Unity3d.
/*
* Copyright (c) 2013 Calvin Rien
*
* Based on the JSON parser by Patrick van Bergen
* http://techblog.procurios.nl/k/618/news/view/14605/14863/How-do-I-write-my-own-parser-for-JSON.html
*
* Simplified it so that it doesn't throw exceptions
* and can be used in Unity iPhone with maximum code stripping.
*
* Permission is hereby granted, free of charge, to any person obtaining