Log in to reply
 

How to compile two source files into one dll ?



  • I have no experience yet about programming with C#, but have some in Java, and their codes look pretty similar each other.

    Anyway, now I'm enjoying the 'Hitman Mod Updated/Reloaded 1.2.1 (https://www.gta5-mods.com/scripts/hitman-mod-updated-reloaded)'. I like everything with it except the pizzaman's face on notification because it just copies someone else's already existing face (see char_hunter at https://wiki.gtanet.work/index.php?title=Notification_Pictures)

    Fortunately the developer also included two source (.cs) files in the zip file, and I could find out and change the data value for his face to be really 'anonymous' by replacing its previous value 'char_hunter' with 'char_blank_entry'.

    But now with the two .cs files, as one modified, I just don't know how to compile these two files into a one complete .dll file that I can copy into the script folder.

    Is there easier way to do this conversion (compilation)? I don't want to download the MS Visual Studio for its big size, and failed to find out any proper online compiler.

    Any help ? :D


  • MODERATOR

    With dnSpy you can make your edits directly in the .dll and recompile it; you just need the .NET framework installed which you already do since you're running scripts.



  • @stillhere Thanks for the info. I downloaded and tried the dnSpy, but it seems like there's no way to change the value I want to modify. Or I might not know how to do it yet. :D


  • MODERATOR

    With dnSpy you have to make sure you have required assemblies in the same directory as the assembly you are opening (in this case: ScriptHookVDotNet2.dll and iFruitAddon2.dll), and to edit you have to right-click the code area and click Edit Class or Edit Method.

    I edited the assembly for you (untested): https://mega.nz/#!dfJTWSxC!9LHq6O1Jpq-mgBsnJioz_4bcG9f5IhHQFX_L9lnhDLU


Log in to reply
 

Looks like your connection to GTA5-Mods.com Forums was lost, please wait while we try to reconnect.