Is there a possible way to play a 7th music?

Help Topics, Bug Reports, Feature Requests, etc.
Post Reply
User avatar
Technos72
Rainbow MegaStar
Posts: 3227
Joined: Thu Nov 26, 2009 12:20 am
Location: Usa
Contact:

Is there a possible way to play a 7th music?

Post by Technos72 » Fri Apr 09, 2010 7:45 pm

For my Wonderland Adventures Project Legends of the Rainbow I want to add more music. is there a possible way to add more .ogg musics so that there's a 7th song playing while in the adventure? If no then I'll wait for the MOFI editor.
User avatar
MyNameIsKooky
Rainbow Spirit Master
Posts: 9712
Joined: Mon Dec 01, 2008 10:18 pm

Post by MyNameIsKooky » Fri Apr 09, 2010 7:46 pm

There is. There's a byte by the end of the file that controls the music ID. You have to add another .ogg to music folder, though.
User avatar
Technos72
Rainbow MegaStar
Posts: 3227
Joined: Thu Nov 26, 2009 12:20 am
Location: Usa
Contact:

Post by Technos72 » Fri Apr 09, 2010 8:01 pm

Where is this music ID file? Is it on any room in an adventure? If so, show me where it is
User avatar
DEEMAN223344
Rainbow MegaStar
Posts: 3145
Joined: Tue Dec 04, 2007 8:07 pm

Post by DEEMAN223344 » Fri Apr 09, 2010 8:05 pm

Before asking these questions, head over to the WA editor hex editing topic,
that'll answer your questions.
User avatar
Technos72
Rainbow MegaStar
Posts: 3227
Joined: Thu Nov 26, 2009 12:20 am
Location: Usa
Contact:

Post by Technos72 » Fri Apr 09, 2010 8:13 pm

I can't seem to find it. Can you just tell me here or give me the URL?
Emerald141
Rainbow AllStar
Posts: 4548
Joined: Fri Dec 26, 2008 4:56 pm

Post by Emerald141 » Fri Apr 09, 2010 8:28 pm

Last edited by Emerald141 on Thu Sep 01, 2022 11:44 pm, edited 1 time in total.
User avatar
Technos72
Rainbow MegaStar
Posts: 3227
Joined: Thu Nov 26, 2009 12:20 am
Location: Usa
Contact:

Post by Technos72 » Fri Apr 09, 2010 8:41 pm

no I'm looking for the topic. What's it called?
User avatar
MyNameIsKooky
Rainbow Spirit Master
Posts: 9712
Joined: Mon Dec 01, 2008 10:18 pm

Post by MyNameIsKooky » Fri Apr 09, 2010 8:42 pm

Forum wrote:The Ultimate WA Editor Hex-Editing Topic! Take A Look!
User avatar
Technos72
Rainbow MegaStar
Posts: 3227
Joined: Thu Nov 26, 2009 12:20 am
Location: Usa
Contact:

Post by Technos72 » Fri Apr 09, 2010 8:50 pm

I checked that topic and couldn't find in on the second page. Can't you just tell me?
User avatar
DEEMAN223344
Rainbow MegaStar
Posts: 3145
Joined: Tue Dec 04, 2007 8:07 pm

Post by DEEMAN223344 » Fri Apr 09, 2010 8:54 pm

I don't remember what page it's on, I'll go check one of my posts in a second.
User avatar
MyNameIsKooky
Rainbow Spirit Master
Posts: 9712
Joined: Mon Dec 01, 2008 10:18 pm

Post by MyNameIsKooky » Fri Apr 09, 2010 8:55 pm

I bumped it to the first page. It's right below this one.
User avatar
DEEMAN223344
Rainbow MegaStar
Posts: 3145
Joined: Tue Dec 04, 2007 8:07 pm

Post by DEEMAN223344 » Fri Apr 09, 2010 8:58 pm

copied from cbloopy's post:

cbloopy wrote:
jdl wrote:Hey Cbloopy, how about a custom moosic feature? And we use moosic that is released to the public. So no worries about copyrights! But if you name it "7.ogg" I don't think it will show up. Can you make a load music thingy so we can name it "Example.ogg" and just type that in?
Custom music is supported, but the editor doesn't have any way of letting you enter an arbitrary file name for the music. In fact, the music is just stored as a number in the WLV file.

I can tell you how to hex-edit a WLV file to get music beyond "6":

1) download and install a suitable hex editor like xvi32. (link)
2) Backup the file you're about to hex edit, in case you make a mistake.
3) If you have the WA editor running, make sure you don't have the level you're about to hex edit opened, so you don't accidentally overwrite the changes of your hex edit when you go back to the WA editor.
4) in the hex editor, open the WLV file for the level you want the music to be changed.
5) go to the end of the file. You should see the adventure title in there.
6) Place the cursor at the first letter of the title.
7) Go back 12 bytes. For example in xvi32, press LEFT 12 times after placing the cursor at first letter of title.
8.) The cursor is now at the byte that selects the music.
9) Open up Windows Calculator (in Start Menu -> Accessories)
10) Go to the "View" menu and select "Scientific"
11) Make sure "Dec" (decimal) is selected in the upper-left area (as opposed to "hex", "oct", or "bin")
12) Enter the number you want to use for the music. Let's say you want your custom music to be 11.ogg. Enter 11 in the calculator.
13) Now select "hex" to convert from decimal to hex. For 11 this will convert to B.
14) Go back to the hex editor, and enter "0B" for the value of the music byte. For example in xvi32, click on where the cursor is on the left side of the window (where it shows the hex values), then type "0B".
15) save the file.

repeat for other level files.

Level files hex edited this way can still be opened and edited in the WA Editor, however you'll lose the ability to change the music from the editor for such levels. To restore that, just hex edit the music back to something between 0-6.

Your custom .ogg file needs to be placed where all the game's music are stored, namely C:\WA Editor v096\Data\Music. It doesn't actually have to be an OGG file; the game's music engine seems to support a bunch of other formats as well. But for the game to find the music it has to be named <number>.ogg even if the file type is not actually OGG. With the hex-edit instructions given above, <number> can be anything between 7 to 255.

Windows might hide the file extension (the .ogg or similar). So to change a file's extension, you need to tell Windows to never hide the file extension:

1) Copy your music file to the C:\WA Editor v096\Data\Music folder.
2) Go to the folder.
3) If you see the extension, then go ahead and rename as usual. Otherwise press the ALT key to bring up the menu bar.
4) Go to "Tools" menu and select "Folder Options..."
5) Click on "View" tab.
6) under "Advanced Settings", uncheck the checkbox that reads "hide extensions for known file types".
7) Click OK. Windows should now show the extension of your music file, so you can rename it to <number>.ogg.

Finally, it appears that if you change the music of a level file while the WA Player is running, sometimes the change might not take effect in the WA Player until you exit and rerun WA Player.
This post is copied from one of the topics i made, and I explained to Bround how to do this, so I copied Cbloopy's post.
User avatar
Technos72
Rainbow MegaStar
Posts: 3227
Joined: Thu Nov 26, 2009 12:20 am
Location: Usa
Contact:

Post by Technos72 » Fri Apr 09, 2010 9:17 pm

Thanks. :D Now I don't have to waste time lookig for it!
Post Reply