#Dev Tools / Mod Menu API - A Cheat Mod for Developers

74 messages ยท Page 1 of 1 (latest)

meager current
radiant lodge
#

What is this mod actually capable of?

meager current
copper lake
#

Please make sure this can't be used in public instances as Non-Host.

meager current
#

TestingLib itself does not do those checks though, but that's because:

  • Only mods can call it, it does not do anything by itself
  • If you know how to make a mod, you also know how to remove the check for host
meager current
#

Working on a in-game menu for this currently! Still very much WIP

meager current
#

I uploaded the new version, which now has a GUI!

meager current
mellow barn
#

would it be against the rules to allow it to run on non-hosts only on LAN? would be nice being able to teleport to the entrance on clients as well

#

great mod btw, this saves so much time

#

only issue seems to be that it forces the dungeon to be the haunted mansion, even though i'm on the first map

meager current
meager current
mellow barn
#

oddly enough, removing devtools makes the dungeon go back to normal for me.
also does toggle invincibility make you targetable/untargetable? i tried disabling invincibility and Patch.OnDeathHeal, but it seemed like i still couldn't die (to masked enemies at least)

mellow barn
meager current
meager current
mellow barn
meager current
#

just tested it and I can die to the masked

mellow barn
#

man i feel dumb rn LOL mb for false reports ๐Ÿ˜‚, i'll do more testing with less dev cheat tool mods on

tepid smelt
#

Oh sweet! I've been looking for something like this.

meager current
#

I now pushed a new version which should allow usage in LAN mode for all clients. Some patching methods don't work for non-host clients, but I will deal with that in a way or another later as I'm gonna go sleep now.

mellow barn
#

niceee thanks!

meager current
#

An Update on the State of This Tool

I am probably not going to be working on this in a while, if I'll even work on this anymore.

I would recommend using https://discord.com/channels/1168655651455639582/1225942840282976316 as it seems pretty nice, though I will not be deprecating this tool since it still works (or so I've heard).

However, if I'm going to continue working on development tools, which I probably will (since I'm much more interested in this than making content addition mods and stuff), I'm probably gonna then deprecate both DevTools and TestingLib in favour of a better designed system, of course porting TestingLib's functionality to a new mod using the better system.

I really do want to make something like a generic ModMenuAPI or something to easily make mod menus for unity games. Though I dunno how to prevent cheating, other than making a separate mod for each game to handle the permission system.

When will this happen though? No idea.

meager current
#

Another Update

I've made quite a bit of progress on the mod menu API I said was gonna do: https://github.com/Hamunii/ModMenuAPI

It's not on thunderstore yet, but soon it'll be ready for it! I've also got TestingLib ported over, the only thing that is missing really is a macro system to execute certain actions, like DevTools' limited actions from the config file. But also, the UI can't currently handle too many menus or it'll go out of screen lmao

GitHub

A mod menu API for (currently only) Unity Mono games. - Hamunii/ModMenuAPI

#

This is what the UI looks like. Blue-ish/grey buttons are toggle buttons, and green-ish buttons are action buttons, and the ones with > are context menu buttons that have even more buttons

meager current
#

DevTools/ModMenuAPI.Plugin.LC - A Cheat Mod for Developers

#

And also so it's absolutely clear what is equivalent to what now:

winged locust
#

is there a noclip option?

meager current
meager current
#

DevTools / Mod Menu API - A Cheat Mod for Developers

#

lol renaming this bumped the post

terse cobalt
#

Patch.OnDeathHeal doesn't work in v55

[Error  : Unity Log] InvalidOperationException: Stack empty.
Stack trace:
System.Collections.Generic.Stack`1[T].Pop () (at <787acc3c9a4c471ba7d971300105af24>:IL_0016)
MonoMod.RuntimeDetour.HookGen.HookEndpoint._Remove (System.Delegate hookDelegate) (at <4e2760c7517c4ea79c633d67e84b319f>:IL_0015)
MonoMod.RuntimeDetour.HookGen.HookEndpoint.Remove (System.Delegate hookDelegate) (at <4e2760c7517c4ea79c633d67e84b319f>:IL_0000)
MonoMod.RuntimeDetour.HookGen.HookEndpointManager.Remove (System.Reflection.MethodBase method, System.Delegate hookDelegate) (at <4e2760c7517c4ea79c633d67e84b319f>:IL_0028)
MonoMod.RuntimeDetour.HookGen.HookEndpointManager.Remove[T] (System.Reflection.MethodBase method, System.Delegate hookDelegate) (at <4e2760c7517c4ea79c633d67e84b319f>:IL_0000)
On.GameNetcodeStuff.PlayerControllerB.remove_KillPlayer (On.GameNetcodeStuff.PlayerControllerB+hook_KillPlayer ) (at <03c37681fca74629be3964e38a2ffb88>:IL_000A)
TestingLib.Patch.OnDeathHeal () (at /home/suni/Workspace/Lethal Company/HamuniiMods/TestingLib/src/Modules/Patch.cs:59)
System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <787acc3c9a4c471ba7d971300105af24>:IL_006A)
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <787acc3c9a4c471ba7d971300105af24>:IL_0083)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at <787acc3c9a4c471ba7d971300105af24>:IL_0000)
DevTools.GUI.ModMenu.OnGUI () (at /home/suni/Workspace/Lethal Company/HamuniiMods/DevTools/src/GUI.cs:116)
meager current
#

Not sure if I'll have time to fix it since technically devtools is supposed to be deprecated and replaced by ModMenuAPI(.Plugin.LC), though that one is missing a few features and I'm unfortunately too busy to work in it rn so uhh, I'd recommend using Imperium instead if possible

#

Or, if anyone would like, ModMenuAPI / ModMenuAPI.Plugin(.LC) are available for contribution, which really the only things missing are the ability to toggle on/off on the ModMenuAPI side, and cheating protection for ModMenuAPI.Plugin.LC for the Thunderstore release. Anyways, I'll get to these at some point

#

Another solution is to not use Patch.OnDeathHeal and use Imperium's, or the game's own invincibility toggles

meager current
terse cobalt
#

Okie, thanks

meager current
#

nvm I'm gonna update DevTools for v55 compatiblity anyways since enough people have been asking about it

#

in a bit I'll do it, that is

#

I technically did it already but I need to test if it works

bronze stream
#

wow s1ckboy

rigid trellis
#

mhhhhmmmm

#

she do be a badgirl tho PikaSmirk

bronze stream
#

shush

rigid trellis
meager current
#

owo

#

anyways I noticed my changes won't work yet lol

meager current
#

so if someone wants to try it and see if Patch.OnDeathHeal gets enabled and also can be disabled, then I can push it to Thunderstore

meager current
#

@bronze stream wanna try if this works? ^

bronze stream
#

fineee

meager current
#

yay

#

and then it doesn't work and then I have to debug it and test myself, I sure hope that doesn't happen

bronze stream
#

works on v50 so far

meager current
#

nice

#

also make sure to try disabling it to see if that works

bronze stream
#

works in v55

#

disabling and enabling

meager current
#

oke I'll push the update then, thanksies ๐Ÿ‘

bronze stream
#

nou

#

thanks cutie

terse cobalt
#

:3

rain wadi
#

Dev Tools / Mod Menu API - A Cheat Mod for Developers