Newtilla is the newest library made by Loafiat for the Gorilla Tag modding. In short, it is a rewrite of the Utilla – a must-have utility (hence the name) for players who are into GTAG mods.
FEATURES
- Custom gamemode support
- Dynamically changing modded modes
- Lobby parity with Utilla (Modded lobbies are the same between the two)
How to fix an error:
Enable HideManagerGameObject in your bepinex config.
Examples
Below are examples of using Newtilla:
Mod support
using BepInEx;
using Newtilla;
public class TestMod : BaseUnityPlugin
{
void Start()
{
//These events will run when a modded is joined or left.
Newtilla.Newtilla.OnJoinModded += OnModdedJoined;
Newtilla.Newtilla.OnLeaveModded += OnModdedLeft;
}
void OnModdedJoined(string modeName)
{
//Run mod init
}
void OnModdedLeft(string modeName)
{
//Run mod deinit
}
}
Custom game mode
using BepInEx;
using Newtilla;
public class TestMod : BaseUnityPlugin
{
void Start()
{
//This creates and adds the mode to the mode selector, OnModeJoined and OnModeLeft aren’t required.
Newtilla.Newtilla.AddGameMode(“TESTMODE”, “TESTMODE”, BaseGamemode.HUNT, false, OnModeJoined, OnModeLeft);
}
void OnModeJoined()
{
//Run mode init stuff
}
void OnModeLeft()
{
//Run mode deinit stuff
}
}
Advanced game mode
using BepInEx;
using Newtilla;
public class TestMod : BaseUnityPlugin
{
void Start()
{
//This creates and adds the mode to the mode selector, the base gamemode is replaced with “GHOST” here.
//This is because it’s a temporary gamemode so it’s not included by default to avoid issues in the future
//currently “AMBUSH” works too.
Newtilla.Newtilla.AddGameMode(“TESTMODE”, “TESTMODE”, “GHOST”, false, OnModeJoined, OnModeLeft);
}
void OnModeJoined()
{
//Run mode init stuff
}
void OnModeLeft()
{
//Run mode deinit stuff
}
}
Other useful Gorilla Tag utilities/libraries include:
Replacement library for Newtilla is:
How to Install
- Download Newtilla (link below).
- Extract to Steam\steamapps\common\Gorilla Tag\BepInEx\Plugins.