Is there a possible way to play a 7th music?
Is there a possible way to play a 7th music?
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.
- MyNameIsKooky
- Rainbow Spirit Master
- Posts: 9712
- Joined: Mon Dec 01, 2008 10:18 pm
- DEEMAN223344
- Rainbow MegaStar
- Posts: 3145
- Joined: Tue Dec 04, 2007 8:07 pm
-
- Rainbow AllStar
- Posts: 4548
- Joined: Fri Dec 26, 2008 4:56 pm
- MyNameIsKooky
- Rainbow Spirit Master
- Posts: 9712
- Joined: Mon Dec 01, 2008 10:18 pm
- DEEMAN223344
- Rainbow MegaStar
- Posts: 3145
- Joined: Tue Dec 04, 2007 8:07 pm
- MyNameIsKooky
- Rainbow Spirit Master
- Posts: 9712
- Joined: Mon Dec 01, 2008 10:18 pm
- DEEMAN223344
- Rainbow MegaStar
- Posts: 3145
- Joined: Tue Dec 04, 2007 8:07 pm
copied from cbloopy's post:
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.cbloopy wrote: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.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?
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.