HOW TO MOD ANY UNITY GAME WITH MELONLOADER (2023)

Поделиться
HTML-код
  • Опубликовано: 24 дек 2024

Комментарии • 165

  • @1800denko
    @1800denko 2 года назад +28

    oof this game doesn't have inputlegacymodule, but I'll just try with the unity engine input dll and see if that works

    • @hazzyjc
      @hazzyjc  2 года назад +14

      Hey, sorry for not clearing this up the the video, but if your game doesn’t have inputlegacymodule, it means it’s already included in the normal unityenginecoremodule!

    • @hazzyjc
      @hazzyjc  2 года назад +12

      I’m just going to elaborate on this a bit more. Old unity versions (I think pre 2020) did not have an inputlegacymodule. A good way to see what version your game is is to open up the properties of the game’s exe file and look for a version number! Hope this helps

  • @Naaronn
    @Naaronn Год назад +21

    People like you who make videos like this just walking through a process that might seem very simple to an expert but is actually filled with a mountain of things immensely difficult to research are _genuinely_ MVPs. So, so, so much worth comes out of these things, and so many people will find even just a minor hobby they want to start that much more surmountable because of you. Thank you.

  • @hackedmixedreality
    @hackedmixedreality 2 года назад +6

    Amazing - Just what I was looking for. Thank you!

  • @Suke66-999
    @Suke66-999 2 года назад +4

    Thank you so much been looken for a video to help been wanting to do this for a while🙏

  • @KindhawkGaming
    @KindhawkGaming 2 года назад +9

    It'd be great if you did a tutorial on replacing/overriding methods

  • @wopperby549
    @wopperby549 9 месяцев назад +2

    im trying to mod slime rancher 2 but i can't find the unity engine.dll anybodt knows why

  • @BoplBattleBros
    @BoplBattleBros 11 месяцев назад +2

    Very good tutorial but when I try to load up the game it said "Internal Failure, Failed to load original dll". Does anyone know how to fix it?

  • @pastuh
    @pastuh Год назад +4

    Suggestion to create virtual link to mod file.
    So Game-Mods folder can be empty, real file will be located in your scripting mods directory.
    Example:
    mklink "C:\SteamGame\Mods\mod.dll" "C:\MyMods\Game\bin\Release\mod.dll"

  • @ZeoWorks
    @ZeoWorks Год назад +3

    Does this work for il2cpp also?

  • @Pepperboop
    @Pepperboop Год назад +1

    I cant find that class library thing on new project

  • @tripleey
    @tripleey Год назад +2

    does this also apply when making mods for lemonloader???

  • @euroaioncheats307
    @euroaioncheats307 9 дней назад

    When I open the game, the melonloader directory gets deleted (empty). Is there a way to bypass the launcher anticheat or something? I'm not sure if read-mode only is recommended

  • @swift5605
    @swift5605 Год назад +2

    How do you edit existing code in the game? For example in a game let’s say if I pull a leaver it will open a door but I want to change the existing code to not open a door and do something else

    • @o2_vr1
      @o2_vr1 8 месяцев назад

      make a new script, do: public class [ScriptName] : LeverScript
      and then you can override functions if they are public, for example:
      public override void ActivateLever()

    • @o2_vr1
      @o2_vr1 8 месяцев назад

      oh btw once you do that, make sure to delete the lever script from the object and add the new script you made

  • @TheAnyName
    @TheAnyName 3 месяца назад

    Installed. Told it the game. Farthest frontier. Went to nexus. had to manual DL. did search for game dir. no "mod" folder. the only thing melon wants to do is install and reinstall. Direction's unclear tongue stuck in ceiling fan. help?

  • @peanut-butter-e1r
    @peanut-butter-e1r 2 года назад +2

    how to make mod manager GUI? like checkbox or button for activating unlimited health or ammo ....

    • @hazzyjc
      @hazzyjc  2 года назад +1

      Great question! I’ve actually done this for a few games already, if you want a tutorial I’ll be happy to provide

    • @peanut-butter-e1r
      @peanut-butter-e1r 2 года назад

      @@hazzyjc yes , make a tutorial please

  • @bearimpaler101
    @bearimpaler101 9 месяцев назад +1

    What do you do if it says "invalid unity game selected?

  • @uliveulearnandregret
    @uliveulearnandregret 7 месяцев назад

    I need to find a video on making modded maps either making a whole new map or editing an original map scene

  • @JoltteamOfficial
    @JoltteamOfficial 2 года назад +2

    Is it possible to mod the code of mobile games with IL2CPP and code it in C# way?

    • @hazzyjc
      @hazzyjc  2 года назад

      You can mod IL2CPP games with this method, but mobile games I’m not sure of

    • @RinLovesYou
      @RinLovesYou 2 года назад +1

      Mobile is still being worked on, il2cpp is supported

  • @rakkorancata1124
    @rakkorancata1124 2 года назад +1

    I succesfully managed to install and run mods. My problem is that the game won't save any progress asap I close the game. Anyone know what to do?

    • @etcyl1539
      @etcyl1539 2 года назад

      late reply but you could always try writing your own save method. then you'd just load and save the extra mod data whenever you want

  • @ModeratorGT
    @ModeratorGT 11 месяцев назад +1

    Standalone Quest Mods for Gorilla Tag finally return under my grasp. 😹😹

  • @CJrupt
    @CJrupt 5 месяцев назад

    when i install melonloader into the game it doesnt start up, it starts up normally without melonloader, help please

  • @GAMEBR0VIP2462
    @GAMEBR0VIP2462 Год назад +1

    Is there any way i can get into contact with you, ive been struggling with tutorial after tutorial , this one by far is the easiest to follow and understand plus got me the most results , the only thing that's going on is after the console reads successful loaded mod , it doesn't do what its supposed to , (close game on F key ) il pay you to set this same plugin up for the game im trying to mod so i can take care of the rest . i just need a plug in to my game that is successfully reading my code.

  • @figaroftw
    @figaroftw 2 года назад +1

    The UnityEngine.*.dll files are not being generated. Any idea why?

    • @DizzeeY
      @DizzeeY 2 года назад

      my question too

    • @asdsad5059
      @asdsad5059 2 года назад

      check in the melon loader file then managed in melon loader file that's where mine was hope i helped.

  • @tetrathom5005
    @tetrathom5005 Год назад +1

    when i search for class library i dont have any of those. how do i get them?

    • @FARbutVR
      @FARbutVR 5 месяцев назад

      You have to add it via Visual studio installer

  • @IliasIliasIlias
    @IliasIliasIlias 2 года назад +4

    Hey, great tutorial! One question though, is it possible to see the game's code to know how to like, for example, add stuff to the map?

    • @hazzyjc
      @hazzyjc  2 года назад +5

      Yup! Look up “how to mod unity games” on yt and the first tutorial should be on how to do that! Make sure there one that you’re watching uses dnspy :)

  • @mateokladaric
    @mateokladaric 6 месяцев назад

    "Failed to load Melon Assembly" FileLoadException problems, I may have missed some part of the tutorial sorry

  • @Im2lazy4thisCrit
    @Im2lazy4thisCrit 8 месяцев назад

    1:23 what happens if you can’t find the EXE file?

  • @beatsbyadzia
    @beatsbyadzia 2 года назад +1

    Hey great vid, but i have one problem. when I build, I get the following error: "The type 'object' is defined in an assembly that is not referenced. You must add a reference to assembly 'Il2Cppmscorlib, version=4.0.0.0, culture=neutral, PublicKeyToken=null'". Do you have any ideas on how to fix it?

    • @hmm4493
      @hmm4493 2 года назад +1

      You need to add a reference for II2Cppmscorlib.dll and UnhollowerBaseLib.dll .

  • @ms10yt
    @ms10yt 2 года назад +1

    Good tutorial bro, but I have a problem: When I create a project and add a reference (DLL), the Visual Studio crashes and closes. Can you give me a solution? I correctly installed the program and its net framework, those would not be the problem.

  • @LucaDaBooka
    @LucaDaBooka Год назад

    How come when I put in the Solution next to "using" I still have the red line under the (typeof(TestMod),? At 6:55

    • @hazzyjc
      @hazzyjc  Год назад

      is "TestMod" the name of your class? if not then thats why. It needs to be set to the name of your class

    • @LucaDaBooka
      @LucaDaBooka Год назад

      @@hazzyjc how do i find the name of my class?

    • @LucaDaBooka
      @LucaDaBooka Год назад

      Im trying to make a mod for bloons td6

    • @hazzyjc
      @hazzyjc  Год назад

      @@LucaDaBooka its whatever you named your class...

    • @hazzyjc
      @hazzyjc  Год назад

      @@LucaDaBooka hey man. Found this for you. Its probably a lot easier/more helpful than melonloader and my video. ruclips.net/video/-FkgzHVxwQM/видео.html

  • @dhxl
    @dhxl 2 года назад +1

    Is it possible to replace the existing code with this?
    I've made a mod for Zompiercer that improves train movement. I simply opened the dll file with dnSpy, changed the code and saved. But it's not very handy to share with people. I want to do it as a mod.

    • @hazzyjc
      @hazzyjc  2 года назад +2

      you can patch into in-game scripts if you reference AssebmlyCsharp.dll in the games files. Theres documentation on the melonloader website

    • @dhxl
      @dhxl 2 года назад

      @@hazzyjc, thanks! I'll take a look.

    • @Swizzy755
      @Swizzy755 2 года назад

      @@hazzyjc hey can you help me it says its dangerous idk

  • @Verleihnix394
    @Verleihnix394 Год назад +3

    It doesn't work for me. The version is different :(

    • @akrilla5929
      @akrilla5929 10 месяцев назад +1

      Melon loader version 5.7 works

  • @linnickschlanter4712
    @linnickschlanter4712 2 года назад +2

    Hi, i don't know if you're still reading comments here or if someone else can answer me.
    You mention you could make the character jump etc, but how would one do that?
    How can i use the functions that are already in the game without knowing where to find them or how they're called?
    Help would be appreciated

    • @hazzyjc
      @hazzyjc  2 года назад +1

      You can find what they’re called with unity explorer or dnspy. Once you have the name of the class and the script they’re in, you need to reference your assemblycsharp.DLL file found in your games managed folder. Once you’ve done that, you can call any script inside the game, such as the jump script

    • @linnickschlanter4712
      @linnickschlanter4712 2 года назад +1

      @@hazzyjc cool, thank you! My goal is to add keyboard support to Super Auto Pets, in case you know the game! ^^

  • @ishadowspeedz4260
    @ishadowspeedz4260 Год назад

    i'm trying to put the sonic mod in spark so what do I type or add for that?

  • @toonlunk
    @toonlunk Год назад

    If I want to share a mod made with MelonLoader, does that person then have to use MelonLoader? I'm making a mod for WorldBox which many people use NCMS for, but I found NCMS to be too confusing. People also use BepInEx

  • @sansgasterovich6383
    @sansgasterovich6383 Месяц назад

    my game doesnt have managed folder

  • @pastuh
    @pastuh Год назад

    Can you help me.. I can't do basic rotation around specific axis.
    I used:
    float rotationAmount = Mathf.Lerp(0, -4.0f, Time.deltaTime * 0.6f);
    boat.transform.Rotate(rotationAmount, 0, 0);
    But every time I move farther away from starting point, my boat nose go UP.
    I just need roll to left or right, on X axis... But I can't solve this mystery.
    chatGPT from my view is 10yo kid who can't provide correct answer, so I'm stuck.

  • @Elunne345
    @Elunne345 2 года назад

    Hi, what if i want to change the current coins in a game, how ca i do that? (offline game)

  • @震彭
    @震彭 2 года назад

    Weakly asking you a little white question, why did I report an error according to the tutorial, Compiler Error CS0118

  • @th3Kun
    @th3Kun 2 года назад

    I will use bepinex but is it going to be the same references that are going to be used?

  • @Lolo_Antonio-FryEmUpFan
    @Lolo_Antonio-FryEmUpFan 8 месяцев назад

    mine is Il2Cpp and doesn't have references

  • @m.freedomlovingamerican2723
    @m.freedomlovingamerican2723 2 года назад

    So for Car Mechanic 2021, I’d need Visual Studio and .Net also?

  • @toonlunk
    @toonlunk Год назад

    If I want to share the mod, will they also need MelonLoader? I'm trying to mod WorldBox.

  • @zanderalberto3576
    @zanderalberto3576 Год назад

    Is there any way to replace models and copy/paste code or something without any knowledge? I made models/reskins and would like to just implement different looking things with the same function/code

  • @shlushie
    @shlushie 2 года назад

    is there a way to use custom server through melon loader? i am able to play it by putting the host file with the ip on my computer but when i open the game with melonloader it does not use the custom server.

    • @hazzyjc
      @hazzyjc  2 года назад

      Im not sure what you mean

    • @shlushie
      @shlushie 2 года назад

      i have a certificate downloaded and the server in the hosts file in my pc which is how they connect to the cutom server (if this helps someone answer my question)

  • @ChiNguyen-fn6ul
    @ChiNguyen-fn6ul 2 года назад

    can u help me to find managed folder of muse dash pls, that game is not have that folder

    • @hazzyjc
      @hazzyjc  2 года назад +1

      That means it’s an IL2CPP game. You can ask in the melonloader discord for help because idk how to mod those types of games

    • @ChiNguyen-fn6ul
      @ChiNguyen-fn6ul 2 года назад

      @@hazzyjc ty bro

  • @Summorial2
    @Summorial2 2 года назад

    is it possible to add remappable keybinds as a mod in a game? like instead of playing with arrow keys i can mod it so i can play with WASD

    • @hazzyjc
      @hazzyjc  2 года назад

      its possible! you'd need to patch into the movement method to see what happens when the keys are pressed but you'd be able to replicate it within your script

    • @Summorial2
      @Summorial2 2 года назад

      @@hazzyjc wow what a fast response thank you i might try tomorow.

    • @farianderson168
      @farianderson168 Год назад

      @@hazzyjc and how exactly should he patch into the movement method or any other methods just in case? and tnx for the great tutorial

    • @hazzyjc
      @hazzyjc  Год назад

      @@farianderson168 I have another tutorial on my page that covers patching

    • @farianderson168
      @farianderson168 Год назад

      @@hazzyjc do you mean the part2 of UNITY MODDING WITH MELONLOADER ?

  • @gamespro222
    @gamespro222 8 месяцев назад

    When I run MelonLoader my antivirus reports a virus, is there a virus or is it a false positive?

    • @hazzyjc
      @hazzyjc  8 месяцев назад +2

      false positive

    • @LilKutt
      @LilKutt 2 месяца назад

      Don't use any version past 6.1 ML

  • @fenfire3824
    @fenfire3824 2 года назад

    What if i want to override classes of the game? Can i only add my own stuff, or is there a way to access the sourcecode of the game and change anything i like?
    Unity is C#, so i guess it is all just interpreted stuff, so is it possible or does unitiy prevent it somehow?
    What if i wanted to change not just code but also assets, like changing the original animation of a skill of an actor. Something like that.

    • @hazzyjc
      @hazzyjc  2 года назад +1

      yeah this video is pretty old and I've learned a lot more since then. You can patch into methods and override the code thats already inside. You can look on melonwiki for that. To add game assets you can use unity asset bundles and import them into the game. I've never tried with animations but Im sure it would work if you do it all right.

    • @fenfire3824
      @fenfire3824 2 года назад

      @@hazzyjc Thanks for that, yeah i really hope i will find enough time. I actually want to implement some changes which might are tricky. I would like to override/implement an equivalent to blend spaces of unreal engine into a unity game i like. It has crappy animations and if i could use unity blend trees, it would feel much more fluent to play. Im pretty sure, the devs didn't use it. And i would also like to change some skills of the game, which i don't like. And at last, i would like to improve the AI of most monsters. Yeah it is actually a lot to do, so i will check, if it is worth the effort

  • @Ӝ̵̨̄ЖЗмЖЗ̵Ӝ̵̨̄
    @Ӝ̵̨̄ЖЗмЖЗ̵Ӝ̵̨̄ 10 месяцев назад

    Hey, really nice tutorial, i only have found a problem. I can't find the modloader.dll, do you know why? please, im really interested

  • @ancolia8772
    @ancolia8772 2 года назад +1

    Oh alright! just one other question. Does melon loader allow you to change other things other than just the scripts such as the scenes in the game?

    • @hazzyjc
      @hazzyjc  2 года назад

      Any script related scene management will work, but I'm not sure what you mean by "change scenes in the game". If you mean that literally, you can indeed change which scene the game is in with "using UnityEngine.SceneManagement;" :)

    • @ancolia8772
      @ancolia8772 2 года назад

      @@hazzyjc sorry for confusion, I meant if I could edit the UI and other parts of scenes

    • @hazzyjc
      @hazzyjc  2 года назад +3

      @@ancolia8772 Yes! You can! Sorry for the delay, but this is actually something I recently figured out how to do. If you create a gameobject like this: "public gameObject myObject = GameObject.Find("The name of the object in the scene");" You can directly access any gameobject in the scene, including UI elements!

  • @tPlayerioT
    @tPlayerioT Год назад +1

    if latest doesnt works(game does not open) just downgrade one version.

  • @ivqqnn
    @ivqqnn 2 года назад

    How to fix it does an error when I install a game:hklm software microsoft fusion! Enable log what to do

    • @hazzyjc
      @hazzyjc  2 года назад

      English please

    • @ivqqnn
      @ivqqnn 2 года назад

      @@hazzyjc when i choose a game and press "install" button, instead of doing stuff it need to(like adding Mods folder or something like that) it gets me an error on my screen. It has a lot of text on it, and at the bottom of the text it says:"HKLM/Software\Microsoft\Fusion!EnableLog (DWORD)", what do i need to do with this?

    • @hazzyjc
      @hazzyjc  2 года назад

      @@ivqqnn you should ask in the melonloader discord, I have no clue

    • @ivqqnn
      @ivqqnn 2 года назад

      @@hazzyjc ill try, i want a mod soo bad for 4 days already but always this error i was reinstalling too

  • @revenz2183
    @revenz2183 Год назад

    my game dosent have a maged file what do i do

  • @Doctore46
    @Doctore46 2 года назад

    what can i do if my game doesn't both unity .dll's? game is farthest frontier

    • @hazzyjc
      @hazzyjc  2 года назад +1

      Look at the pinned comment

  • @kgoeletsomashimphahlele7832
    @kgoeletsomashimphahlele7832 Год назад

    Can i use melonloader on modding Android apks.

  • @njgamer69
    @njgamer69 2 года назад

    waw this is cool for Wasteland 3

  • @ancolia8772
    @ancolia8772 2 года назад

    Hello, does melon loader work with the newer unity versions? Im really desperate since I deleted my assets folder instead of the library folder lol, any response would be nice

    • @hazzyjc
      @hazzyjc  2 года назад

      Everything up to the 2021 versions should work!

  • @dagreenboi
    @dagreenboi 8 месяцев назад

    Can you make a tutorial ´for with vs code

  • @DizzeeY
    @DizzeeY 2 года назад

    hey dude i cant seem to fing the managed folders or the unityengine file

    • @hazzyjc
      @hazzyjc  2 года назад +1

      The game might be IL2 you can find these files in the melonloader folder

    • @DizzeeY
      @DizzeeY 2 года назад

      I saw 2 in the melon loader but i didnt know which to pick because it didn’t say “unityengine” it had other stuff after it

  • @mortz__193
    @mortz__193 Год назад

    appreciate it rlly!

  • @Antik554
    @Antik554 2 года назад

    Is there a way to modify or have access to the source code of a unity game? I tried using dnSpy but the file containing source code can't be opened.

    • @peezoo3948
      @peezoo3948 2 года назад

      Use Il2cpp Dumper

    • @itookaonabookanyway7385
      @itookaonabookanyway7385 2 года назад

      yeah for il2cpp games (games that don't have assembly files) use il2cpp dumper, though because of the way the code has been compiled, you'll find most of it unreadable so to find out what things are you'll have to spend time messing around alot

  • @adamhm-s9y
    @adamhm-s9y Год назад +1

    Hey, awesome video! Are you also planning on making a video about loading custom assets using asset bundles? i tried to mess around with it a bit but couldnt get it to work in the standalone build, only in the editor...

  • @KotTheSillyOne
    @KotTheSillyOne Год назад

    How do I add like objects?

  • @jarosawkaminski8440
    @jarosawkaminski8440 2 года назад

    how to get the function that makes the gravity low to use it in the mod?

    • @hazzyjc
      @hazzyjc  2 года назад

      not a function but you can do Physics.gravity = new Vector3(0, 0 0); in an OnSceneWasLoaded

  • @ManiacStories
    @ManiacStories Год назад

    hey dude do you know how i can switch from melon loader dll to a normal dll

    • @hazzyjc
      @hazzyjc  Год назад

      they're normal dll files

  • @pastuh
    @pastuh Год назад

    And best way to extract functions or assets from game?

  • @boberzragadik
    @boberzragadik 2 года назад

    can i use melon loader to swap/replace any mesh in game?

    • @hazzyjc
      @hazzyjc  2 года назад

      Not that im aware of. But you can import your own custom models

  • @reiplushedicoes4368
    @reiplushedicoes4368 2 года назад

    i can change any sound file? i using fall guys game its unity game

    • @hazzyjc
      @hazzyjc  2 года назад

      You cannot mod fall guys as it is a multiplayer game

    • @reiplushedicoes4368
      @reiplushedicoes4368 2 года назад

      @@hazzyjc i see i trying tô find The fall guys music to change but i cannot and its hard to change for me

  • @Swizzy755
    @Swizzy755 2 года назад

    it says its not downloaded by too much people and its dangerous

  • @Aosa-mr5vk
    @Aosa-mr5vk Год назад

    It works with unity webgl?

  • @emilienheitzmann7859
    @emilienheitzmann7859 2 года назад

    how about vrchat why nobody made tutorial for vrchat

    • @hazzyjc
      @hazzyjc  2 года назад

      I dont play vrchat ask in the melonloader discord they'll help you

    • @emilienheitzmann7859
      @emilienheitzmann7859 2 года назад

      @@hazzyjc okay

  • @channel_._.
    @channel_._. Год назад

    This is for pc games only, not all unity games

    • @hazzyjc
      @hazzyjc  Год назад +5

      well yeah no shit

    • @channel_._.
      @channel_._. Год назад +1

      @@hazzyjc the title of the video says "how to mod ANY unity game"

  • @fathersonholyspirit7132
    @fathersonholyspirit7132 2 года назад

    works for il2cpp?

    • @hazzyjc
      @hazzyjc  2 года назад

      yeah but you may need to tweak it a bit I'm not sure

  • @Fogg.ground
    @Fogg.ground 2 года назад

    Can I use net.sdk?

    • @hazzyjc
      @hazzyjc  2 года назад

      using a dot net SDK should work

  • @AN707_4LLF4
    @AN707_4LLF4 Год назад

    this is hard i want it for roblox

  • @aboutyt3940
    @aboutyt3940 2 года назад

    how mod unity apk game

    • @hazzyjc
      @hazzyjc  2 года назад

      You can’t, at least with this method

  • @RandomlyQuestionsThings
    @RandomlyQuestionsThings 10 месяцев назад

    God so many steps as I just want to mod Signlis for the camera perspective

  • @sundowner_OG
    @sundowner_OG 2 года назад

    Just gave me a bunch of errors

    • @hazzyjc
      @hazzyjc  2 года назад

      Where are the errors?

  • @Mrstefaaaaaan
    @Mrstefaaaaaan 3 месяца назад +1

    Useless tutorial sadly, if you dont explain how to install Class Library the information can't be found. It's such a niche thing, and it cant be found in the visual studio installer.

    • @hazzyjc
      @hazzyjc  3 месяца назад

      @@Mrstefaaaaaan You don’t have .NET installed

    • @Mrstefaaaaaan
      @Mrstefaaaaaan 3 месяца назад

      @@hazzyjc Of course I have .NET installed, it has absolutely nothing to do with the problem.

    • @hazzyjc
      @hazzyjc  3 месяца назад

      A base install of .NET and visual studio includes the class library solution option. This isn't a "How to install .NET" tutorial, so look for one of those before you watch this one as I said at the start of the video

    • @Mrstefaaaaaan
      @Mrstefaaaaaan 3 месяца назад +1

      @@hazzyjc Well I have Visual Studio 2015/2017/2019/2022 and .NET 8, and it's not there!

  • @samuelebaldi6291
    @samuelebaldi6291 2 года назад

    tutorial for stumble guys???

    • @hazzyjc
      @hazzyjc  2 года назад +1

      cant/shouldt be modding online games