Hi, I am UserR00T
I develop (and mostly break) software.
A framework designed to hook into and modify methods in unity games via dlls
License: MIT License
I develop (and mostly break) software.
I'm pretty confused on what the 3 inputs the UniversalUnityHooks.exe is looking for: my command is
.\UniversalUnityHooks.exe -t "C:\Program Files\Wizards of the Coast\MTGA\MTGA_Data\Managed\Assembly-CSharp.dll" -i "C:\Program Files\Wizards of the Coast\MTGA\MTGA_Data\Plugins\logger.dll" -o "C:\Program Files\Wizards of the Coast\MTGA\MTGA_Data\Managed\Assembly-CSharp-New.dll"
but it's giving me Cannot create "C:\Program Files\Wizards of the Coast\MTGA\MTGA_Data\Plugins\logger.dll" because a file or directory with the same name already exists., which makes me think I've incorrectly interpreted the -i, -o, and -t flags
I tried to make a plugin for Broke Protocol but UUH throws exception when I'm trying to run it with my plugin and BP-Essentials. If I use only one of them everything is ok.
Console output:
WAIT Loading in assembly BP_Essentials.dll..
WAIT No add method attributes were found. (63ms)
INFO Attributes found of type HookAttributes: 20 (65ms)
SUCCESS Loaded in assembly and 20 attribute(s) in 65ms
WAIT Loading in assembly NoApartmentsHiding.dll..
WAIT No add method attributes were found. (0ms)
INFO Attributes found of type HookAttributes: 2 (0ms)
ERROR Ссылка на объект не указывает на экземпляр объекта.
StackTrace: в UniversalUnityHooks.AssemblyHelper.FetchAndLoadAll()
SUCCESS Total of 20 attribute(s) have been loaded in.
My code (there is also Variables.cs but it is just some globals):
using UniversalUnityHooks;
namespace NoApartmentsHiding
{
public static class Hooks
{
[Hook("SvPlayer.SvEnterPlace")]
public static bool SvEnterPlace(SvPlayer svPlayer, ref int door, ref ShPlayer shPlayer)
{
if (shPlayer.wantedLevel > Variables.MaxWantedLevel && svPlayer.entity.manager.FindByID<ShDoor>(door) is ShApartment)
{
svPlayer.SendMessage($"<color={Variables.MessageColor}>{Variables.CantEnterMessage}</color>");
return true;
}
return false;
}
[Hook("SvPlayer.SvInvite")]
public static bool SvInvite(SvPlayer svPlayer, ref int targetId)
{
var target = svPlayer.entity.manager.FindByID<ShPlayer>(targetId);
if (target.wantedLevel > Variables.MaxWantedLevel)
{
svPlayer.SendMessage($"<color={Variables.MessageColor}>{string.Format(Variables.CantInviteMessage, target.username)}</color>");
return true;
}
return false;
}
}
}
Useful info:
Hi, i'm having an issue with my server using BP-Essentials (2.6.6)
I configured the settings.json inside the "Essentials" folder, it worked fine until now, every time that i open my server, the settings.json file gets renamed to "settings.json.2019_46_24_04_46_39.OLD" and a new files replaces it, which is the default one. I didn't change any config, it broke itself... i think?
It's very frustrating because, i can't configure my server, the configuration just resets :(
Thanks in advice!
Cheers!
Say I wanted to make a library for use with something like MonoInjector or SharpMonoInjector. Can I include my UUH code inside the same project as my main injected library? Like if I were to just include the game's DLL and Assembly files as well as the UUH ddl as references, would it still work when Injected into the game when the game has already started?
Is this work for il2cpp builds?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.