View Single Post
Old 05-04-2021, 05:55 PM   #11
Pedram
Swabbie
 
Join Date: Jul 2020
Posts: 6
Downloads: 0
Uploads: 0
gear An easy tutorial to mod the game dll file by yourself.

Hi everyone.
I will teach you how to fish! Its much better than giving you the fish everytime!!(You don't need any programming skill for this)
**This is how to mod Wolfpack_data\Managed\Assembly-CSharp.dll file by yourself (Make the Custom Music Loader)**



1- First download dnspy (It's a tool for modding Unity3D games Scripts. Read it yourself: https://github.com/dnSpy/dnSpy/")

Download link: https://github.com/dnSpy/dnSpy/releases | download "dnSpy-net-win64.zip"

or a suitable version.

2-You should have the .net framework 4.7.2 installed. I think you have that.

3-Open dnSpy application

4-From the File tab select open , go to Wolfpack_data\Managed\ and select "Assembly-CSharp.dll"

5-From the left side click on the "Assembly-Csharp (0.0.0.0)"

6-Then Click on the " - "

7-Then you can see all the developers codes Script by Script

8-Find RecordPlayer (list is sorted so its in the R section) and click on it

9-Right click on the codes that shows up on the right side, then click on the "Edit Class"

10-Replace all the codes with this code: https://pastebin.com/e4D0Umsu
11-Click on the compile

12-Get a backup of the "Assembly-CSharp.dll" (get a copy of that file and paste it somewhere else so you have a backup of the main clear codes.

13-Then from the File tab click on the Save Module then press on OK.

14-Its done.Test the game.(Remember to copy and paste 0.23b mod files and folders too ,the codes use them as the directory and the list.txt as the list of tracks.
15.This should work if developers had not changed record player UI hierarchy and record player codes from the last time I wrote the code.



The code can get improved to read mp3 files and managing directories and providing easy recognition of tracks instead of using a list.txt and other stuff.
It all depends on if unity3d have such a functionality or you may can add this functionality yourself through dnspy.


At the end I should say if you are interested in game programming you can start by downloading unity and start messing with editor and codes.You may make your own submarine game in no time!!


Find me on discord: Petros#6549
Feel free to message me!

Last edited by Pedram; 05-12-2021 at 06:01 AM.
Pedram is offline   Reply With Quote