Jump to content

[Tutorial] How to make Music Mod - Johto WIP


Recommended Posts

9 hours ago, budadeth said:

I was asking Eggplant but thanks man! very appreciated!

there are some songs missing but they are minor details

thanks again!

Yes, sorry, is the first time I am following a topic, I received a notification of your reaction and your message and mistakenly believed that it was for me, Anyway no problem for me to help the community ^^

Link to comment
6 hours ago, Atartik said:

Yes, sorry, is the first time I am following a topic, I received a notification of your reaction and your message and mistakenly believed that it was for me, Anyway no problem for me to help the community ^^

Yes, bro dont need to apologize, Im glad you did it because Im going offline some time now Im sure the list its ready to use, thanks again 🤝

Link to comment
  • 2 weeks later...
8 hours ago, Eggplant said:

@Atartik @budadeth

you absolute gigachads

 

i've been the usual amount of inactive

i will just have faith in the accuracy of your post and i will update OP soon with your info

NP 

Have faith I just beat Johto to colllect all the IDs I could, there are some missing like some dialogues, or "eyes meet" but the main songs are there, I ll try update soon about the battle with red and the silver mountain where he is, and the PVP ones, c ya soon

Link to comment
  • 3 weeks later...

Are the ID's for the login screen in the OP still accurate? I've made two files for the regular and special theme, but it still plays the official ones.
 

sounds/2/1157.ogg
sounds/2/1159.ogg

 

I've tried MP3 as well, neither seem to do anything.

Link to comment
54 minutes ago, Avellea said:

Are the ID's for the login screen in the OP still accurate? I've made two files for the regular and special theme, but it still plays the official ones.
 

sounds/2/1157.ogg
sounds/2/1159.ogg

 

I've tried MP3 as well, neither seem to do anything.

I believe 1159 still and the other one Is 2/1108

Link to comment
1 hour ago, Avellea said:

Copying my existing file and renaming it to 1108.ogg did not work.

Are you able to mod any other tracks?

Just to see if the issue actually lies with the IDs of those tracks, or with your modding in general.

Link to comment
9 minutes ago, Eggplant said:

Are you able to mod any other tracks?

Just to see if the issue actually lies with the IDs of those tracks, or with your modding in general.

Tried replacing 3/1042 (Eterna City), and that fails as well.

 

Found inside mod.log

[INFO 2024-02-26 12:38:02 CST] - Only .wav/.mp3/.ogg files supported for /sounds/

All the files are .ogg, so I'm not sure why it's giving this message.

 

EDIT:

Somehow the mod disabled itself... it seems to be working fine now... Sorry to waste your time, I appreciate the help!

Edited by Avellea
Link to comment
1 hour ago, budadeth said:

PVP battles have a lot of variants, sometimes it depends on the region, other the type of pvp, tier or even tournament

i am currently working on my own mod, i am gunna replace most of the battle themes w/ the track i want and see what happens, ill come back but i saw you post earlier saying 1168 works for you. Cheers

Link to comment
1 hour ago, zinstar said:

i am currently working on my own mod, i am gunna replace most of the battle themes w/ the track i want and see what happens, ill come back but i saw you post earlier saying 1168 works for you. Cheers

Use /bgm to recognize the song code, gl

Link to comment

Hey guys, I'm currently experimenting with making a music mod. So far I've made a track for Pokemon Centers in Unova, but whenever I enter one with the mod enabled I get the following message:

Error loading sound file sounds/2/1060.ogg. Please check any Mods for errors.

I've tried .mp3 as well, but no luck.

Here's the full error message from the console log:

Spoiler

[ERROR 2024-03-04 16:26:09 GMT][main] f.g9:-1 - Error loading sound sounds/2/1060.ogg. Please check any mods for errors.
f.hj0: Error creating music f.Om0 for file: sounds/2/1060.ogg
    at f.tC0.ri0(SourceFile:3)
    at f.Va0.<init>(SourceFile)
    at f.iR.Ai0(SourceFile:5)
    at f.iR.zi(SourceFile:5)
    at f.iR.m4(SourceFile)
    at f.aw.lW(SourceFile:10)
    at f.aw.<init>(SourceFile)
    at com.pokeemu.client.Client.main(SourceFile)
Caused by: java.lang.reflect.InvocationTargetException: null
    at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Unknown Source)
    at java.base/java.lang.reflect.Constructor.newInstance(Unknown Source)
    at f.tC0.ri0(SourceFile:1)
    ... 7 common frames omitted
Caused by: f.hj0: Ogg bitstream does not contain Vorbis audio data.
    at f.u20.hj0(SourceFile:41)
    at f.u20.wJ(SourceFile:2)
    at f.u20.<init>(SourceFile)
    at f.u20.<init>(SourceFile)
    at f.Om0.<init>(SourceFile)
    ... 13 common frames omitted
[ERROR 2024-03-04 16:26:09 GMT][main] f.iR:12 - Unable to load mod for 2 1060
java.lang.NullPointerException: Cannot invoke "f.He.b(boolean)" because "<local7>.JL0" is null
    at f.iR.Ai0(SourceFile:9)
    at f.iR.zi(SourceFile:5)
    at f.iR.m4(SourceFile)
    at f.aw.lW(SourceFile:10)
    at f.aw.<init>(SourceFile)
    at com.pokeemu.client.Client.main(SourceFile)

The file is a proper .ogg, I've attached it if that helps.

Anyone know what could be causing this?

Edited by fancyfinn9
Add file
Link to comment
1 hour ago, fancyfinn9 said:

Caused by: f.hj0: Ogg bitstream does not contain Vorbis audio data.

I just sent your error log to chat gpt, see what it says.

tldr:

 

"Try ensuring the file is correctly encoded using the Vorbis codec. Just being an OGG file doesn't necessarily mean it's encoded with Vorbis, as OGG is a container format that can include various types of data.
Use a reputable audio conversion tool to re-encode the file as Vorbis to ensure it's in the correct format. Tools like Audacity or FFmpeg can do this efficiently."

Link to comment
3 hours ago, fancyfinn9 said:

Hey guys, I'm currently experimenting with making a music mod. So far I've made a track for Pokemon Centers in Unova, but whenever I enter one with the mod enabled I get the following message:

Error loading sound file sounds/2/1060.ogg. Please check any Mods for errors.

I've tried .mp3 as well, but no luck.

Here's the full error message from the console log:

  Reveal hidden contents

[ERROR 2024-03-04 16:26:09 GMT][main] f.g9:-1 - Error loading sound sounds/2/1060.ogg. Please check any mods for errors.
f.hj0: Error creating music f.Om0 for file: sounds/2/1060.ogg
    at f.tC0.ri0(SourceFile:3)
    at f.Va0.<init>(SourceFile)
    at f.iR.Ai0(SourceFile:5)
    at f.iR.zi(SourceFile:5)
    at f.iR.m4(SourceFile)
    at f.aw.lW(SourceFile:10)
    at f.aw.<init>(SourceFile)
    at com.pokeemu.client.Client.main(SourceFile)
Caused by: java.lang.reflect.InvocationTargetException: null
    at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Unknown Source)
    at java.base/java.lang.reflect.Constructor.newInstance(Unknown Source)
    at f.tC0.ri0(SourceFile:1)
    ... 7 common frames omitted
Caused by: f.hj0: Ogg bitstream does not contain Vorbis audio data.
    at f.u20.hj0(SourceFile:41)
    at f.u20.wJ(SourceFile:2)
    at f.u20.<init>(SourceFile)
    at f.u20.<init>(SourceFile)
    at f.Om0.<init>(SourceFile)
    ... 13 common frames omitted
[ERROR 2024-03-04 16:26:09 GMT][main] f.iR:12 - Unable to load mod for 2 1060
java.lang.NullPointerException: Cannot invoke "f.He.b(boolean)" because "<local7>.JL0" is null
    at f.iR.Ai0(SourceFile:9)
    at f.iR.zi(SourceFile:5)
    at f.iR.m4(SourceFile)
    at f.aw.lW(SourceFile:10)
    at f.aw.<init>(SourceFile)
    at com.pokeemu.client.Client.main(SourceFile)

The file is a proper .ogg, I've attached it if that helps.

Anyone know what could be causing this?

try with .WAV

Just like eggplant said, I suggest you to use audacity with the FFMPEG codecs installed apart

Link to comment
  • 2 weeks later...
1 minute ago, oxydosa said:

The music wont play when im in the game 

are u creating the mod by PC, then use audacity, try format .wav 

if you are using mobile to create the mods, its will need to find a propper converter because not all works

Link to comment
20 minutes ago, oxydosa said:

does the quality matter? does it have to be mono or stereo?

the only thing that matters to make it compatible, its the format and the codecs, .wav should do the trick, if not then try audacitiy download the fmpeg codecs and convert to .OGG format 

Link to comment
1 hour ago, oxydosa said:

does the quality matter? does it have to be mono or stereo?

 

59 minutes ago, budadeth said:

the only thing that matters to make it compatible, its the format and the codecs, .wav should do the trick, if not then try audacitiy download the fmpeg codecs and convert to .OGG format 

Wait maybe you have a simplier error than the format

Like the how its been compiled, you can show me the file upload it somewhere for me to download I will find the error

Link to comment
  • 2 weeks later...
On 3/4/2024 at 6:03 PM, Eggplant said:

I just sent your error log to chat gpt, see what it says.

tldr:

 

"Try ensuring the file is correctly encoded using the Vorbis codec. Just being an OGG file doesn't necessarily mean it's encoded with Vorbis, as OGG is a container format that can include various types of data.
Use a reputable audio conversion tool to re-encode the file as Vorbis to ensure it's in the correct format. Tools like Audacity or FFmpeg can do this efficiently."

 

On 3/4/2024 at 8:00 PM, budadeth said:

try with .WAV

Just like eggplant said, I suggest you to use audacity with the FFMPEG codecs installed apart

Awesome, thanks a lot guys! I'll try this out later.

(Sorry for the late reply, I accidentally turned off email notifications...)

Link to comment
  • 3 weeks later...
On 4/13/2024 at 12:21 AM, lILucyIl said:

What is the id of the music used in the legendary beasts of Johto?

Try find someone in battle with legendary, watch the battle and meanwhile write on chat /bgm will give you the code of the music playing on the moment, I would try to find it next week or something when im free

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.