Solst1c3 / SharedItemPickup

RoR2 - Gives a copy of each picked up item to every live player.
MIT License
21 stars 13 forks source link

How do you edit the dll? #2

Open hlista opened 5 years ago

hlista commented 5 years ago

From what I understand a dll is a binary. How are you putting new code into it? I would like to try to make a mod that adds a /give command into the chat box

Something like: /give [item] (count) [playername]

Wondering if this is feasible with the current state of the game.

Solst1c3 commented 5 years ago

You use DnSpy to edit Assembly-CSharp.dll in the /managed folder, which stores a majority of the game's code in it. DnSpy can decompile and recompile classes. You can definitely add console commands, however I have never done so. Best bet is to join the modding discord at https://discord.gg/hMdjd9y

musteaf commented 5 years ago

Hello Sols1c3 could you share the new dll for new update?

Cellhawk commented 5 years ago

Hello there @musteaf , I went ahead and edited the new updated dll file. Tested successfully yesterday. Assembly-CSharp.zip

Random tip: Although my dll version is safe (as long as the game creators themselves did not put something harmful in it), always take care when downloading dlls from random people on the internet. Google Chrome gives you a warning for a reason.