SUBSIM Radio Room Forums

SUBSIM Radio Room Forums (https://www.subsim.com/radioroom/index.php)
-   Wolfpack (https://www.subsim.com/radioroom/forumdisplay.php?f=277)
-   -   This is a "custom music loader" mod for Wolfpack 0.23b (https://www.subsim.com/radioroom/showthread.php?t=245834)

Pedram 07-10-20 09:44 AM

(Update)This is a "custom music loader" mod for Wolfpack 0.24b
 
**(The mod files are outdated BUT! There is a tutorial in this thread that will teach you how to mod the game by yourself!Look for my last message below)**

I was bored with the 4 tracks in record player so I created a mod to load my own tracks into the game.


This mod will only work on Wolfpack 0.24b.


I included an album "RMKCD 001 - Das Dritte Reich 1 - SA" in the mod download link which I use it myself in the game.


Here is a link if you want to use the mod for your game.


CustomMusicLoader1.0 (0.23b dll) + RMKCD 001 (20 tracks) : (You may need this for the folder structures and the example tracks)


https://mega.nz/file/wwQnjQBb#e2NK9x...SN2uFS9E9atHng



**CustomMusicLoader1.0 (dll only) for Wolfpack 0.24b:** -700KB-


https://mega.nz/file/cwpDgCZZ#uZS-S9...9OBd43zQ-I6voo


(Its better to get a copy of your original "Assembly-CSharp.dll" first to have a backup of the unmodified dll)


:salute:

https://i.postimg.cc/7Yrj6NvF/index.jpg
https://imgur.com/OtKXUBq

Aktungbby 07-10-20 12:48 PM

Welcome aboard!
 
Pedram!:Kaleun_Salute: your mod looks interesting.

Onkel Neal 07-10-20 02:42 PM

Nice! :Kaleun_Cheers:

Pedram 07-13-20 09:17 AM

I'm glad that you guys are interested in this mod. So tell me if anyone found a bug or something. I will update this mod for future game updates and I may add more features to it. :up: I don't know if you like the old Reichsmusikkammer tracks so if you want more I have 17 albums of these tracks and I like to share it.

Gali 08-01-20 01:13 PM

:Kaleun_Applaud:
That's really cool ! Thanks Pedram but already need 0.24b version now !
it would be nice if you could update .... just the dll ... thanks :Kaleun_Salute:

Pedram 08-05-20 11:22 AM

Update 0.24b
 
Hey guys.I edited the first post above and there is link right there for 0.24b.
(The mod need to be tested as I don't really own the game to test it.I just got the 0.24b dll from one of users)
Sorry for the late update. Some of you guys sent me messages about the new update and I tell them how to modify the game on their own and gave them the code for the music loader. So if anyone is interested in modding this game I can send you my guide to make your own mods.Maybe I will post a thread about the modding tools and a post the code for the music loader.

Rsslone 10-16-20 01:00 PM

Update to 0.24c?
 
Update to 0.24c?

Aktungbby 10-16-20 01:13 PM

Welcome aboard!
 
Rsslone!:Kaleun_Salute:I see the infamous :subsim: 7-year-itch has brought you to the surface, ending a looong silent run!:yeah:

Pedram 02-05-21 08:23 AM

Hi everyone. I didn't check this forum for a long time.
Of course I do the modding if anyone send me the latest .dll file in

...\Wolfpack\Wolfpack_Data\Managed\
(Assembly-CSharp.dll)


I modify it and send it back for testing and then I'm gonna post it in forum.
Tell me if you have any other mod idea.I would do it if its possible.
:Kaleun_Wink:

Spuky05 04-27-21 05:56 AM

Hey Pedram,
I want to download this mod, but unfortunately the newest version isn't available on mega anymore. Would be cool if you could reupload it or something, given it still works in 0.24c (current version i believe)

Greetings Spuky05

Pedram 05-04-21 05:55 PM

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):Kaleun_Thumbs_Up:
**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!

Spuky05 05-05-21 06:38 AM

Hey Pedram,
This really helps thanks!!

Pedram 05-12-21 05:58 AM

Your welcome!
I hope the code work for the latest version of the game.
If anyone succeed at making the modded dll file , please consider at sending the modded dll to this thread so others can easily use the latest mod file.

Flesch76 10-13-23 04:15 PM

Hi! Anybody knows how to mod 0.26 wolfpack? Game files changed and i cannot find assembly-csharp.dll. Thanks for help!

Manulyori 12-15-23 12:41 PM

I think since Wolfpack's build method has changed (to IL2), you will need to dump the GameAssembley.dll file with IL2cppdumper to extract the Assembly-CSharp.dll file and then modify the class and build it again. However, my attempt shows that the code in CustomMusicLoader 1.0 no longer works, so I think we need to modify the code.


All times are GMT -5. The time now is 10:45 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 1995- 2024 Subsim®
"Subsim" is a registered trademark, all rights reserved.