Vampire Survivors
0 of 0

File information

Last updated

Original upload

Created by

Kekos and Ren_Madalilng

Uploaded by

QKekos

Virus scan

Safe to use

About this mod

Powerful tool for modding which can work through the updates

Requirements
Permissions and credits
Donations
If you enjoy this mod you can support me here

Not sure if wiki will be done, if you are interested how it works you can check my other mods - qol mod and the castlevania one

Quick guide:

1.Each mod is a folder in mod_loader/mods directory
2.Each mod MUST contain .js file with the same name as the folder, so mod_loader/mods/SomeMod/SomeMod.js
SomeMod.js MUST export some class, which will accept mod loader as first argument in the constructor, and MUST contain init method(even if it will be empty)
3.Each mod can optionally have moduleKeys.json in its folder, so mod_loader/mods/SomeMod/moduleKeys.json
4.Module keys contains aliases for modules, for example this
So im writing in json "Trinacria": "0x154be" - i ve created an alias for this module now
5.Now i can use one of this hooks to modify any module with alias, this is the list of them
6.Now i need to point on a function, which i wanna modify, in this class we have quite a few methods - constructor, OnRecycle, Update, UpdateSprites, Disappear, Die and DeSpawn, right
7.Now i wanna modify for example constructor, right, you can use one of the hooks, ill use 'post' for the example, so i wanna inject some code AFTER(because its post hook) original body, so im writing inside SomeMod.js' class this.post = {'Trinacria.constructor': someFunction}

What is this function? it can be any function(just it must be method/function, arrow function wont work iirc), and code from this function will be literally copy pasted into the original main bundle on fly, so this would point not on the mod, but on the Trinacria's instance, right

And to get your mod's instance you have to use self

So result(yea i forgot to add init method lol, but literally init() {} will be enough), for more details check qol mod, it uses almost each single mod loader's feature

Installation guide