Welcome, Guest. Please login or register.

Author Topic: Custom Music Tutorial: Part 2: The Sequel  (Read 10607 times)

allisonTopic starter

  • tOLP Contributor
  • Hyper Captain
  • *******
  • Posts: 1208
  • monolithic since 2012???
    • View Profile
    • Allison Fleischer
Custom Music Tutorial: Part 2: The Sequel
« on: 5 Jan 2017, 18:21 (5 years and 5 months ago) »
NOTE: A much simpler GUI-based solution for Windows users has emerged. You no longer have to set up a VM or Bash on Windows unless you really want to!

What's this?
About a year ago, I put together a tutorial for putting custom music into VVVVVV (by generating a vvvvvvmusic.vvv file). The technique used in that tutorial has a serious limitation: it only allows customizing one song, instead of all 16.

However, after that tutorial was made, people figured out how to customize all available song slots! Info Teddy put together a video tutorial together for this, but it's not especially comprehensive; it only really shows the last step of the process. To most people, generating a complete custom music file seems impenetrable, so I hope to clear things up a bit (for Windows users especially).

The basics
Generating a custom music file is done using a script written by FIQ, found here. The bad news is, this script was written to only work on Linux. The good news is, you can still run it on some versions of Windows without using a VM (after installing some prerequisites).

The source music files must have the following names:
Code: [Select]
0levelcomplete.ogg
1pushingonwards.ogg
2positiveforce.ogg
3potentialforanything.ogg
4passionforexploring.ogg
5intermission.ogg
6presentingvvvvvv.ogg
7gamecomplete.ogg
8predestinedfate.ogg
9positiveforcereversed.ogg
10popularpotpourri.ogg
11pipedream.ogg
12pressurecooker.ogg
13pacedenergy.ogg
14piercingthesky.ogg
predestinedfatefinallevel.ogg
They must be in Ogg Vorbis format. 0levelcomplete and 7gamecomplete are hardcoded by the game not to loop (unless an mmmmmm.vvv file is present due to a bug). You don't have to include every song.

Difficulty-wise, this is more difficult to initially set up than the old technique, but easier to use once that's over with.

Instructions
Windows (10 Anniversary Update or above)
  • If you haven't already, install Bash on Ubuntu on Windows.
  • Download FIQ's script (again, if you haven't already).
  • Create a folder next to binary called "data", and another folder inside that called "music". Place music files in here, but make sure they're in Ogg Vorbis format, and make sure they follow the naming convention above!
  • Open a command prompt, and navigate to the FIQ script folder where "binary" is.
  • Type bash to launch the bash prompt. The format of the directory display should change ("[username]@[machinename]", forward slashes, dollar sign)
  • Type sudo apt-get install libphysfs-dev to install a library used by the script. The terminal will ask for your Bash password. If you've done this before, you can skip it.
  • Finally, type ./binary (or sudo ./binary if that doesn't work). If you did everything right, a vvvvvvmusic.vvv will be generated into the data folder!
If you don't want to type "bash" and "sudo ./binary" every time you want to generate the file, you can use this simple batch file (right click->save as, move next to binary). From there, simply double click "launch.cmd" to run the script. You still have to have everything installed, though; this only automates steps 5 and 7.
Windows (before 10 Anniversary Update)
Coming soon. The really short version: Install a Linux VM and follow the instructions under the Linux tab.
Linux
  • If you haven't already, download FIQ's script.
  • Create a folder next to binary called "data", and another folder inside that called "music". Place music files in here, but make sure they're in Ogg Vorbis format, and make sure they follow the naming convention above!
  • Open a command prompt, and navigate to the FIQ script folder where "binary" is.
  • Type sudo apt-get install libphysfs-dev to install a library used by the script. The terminal will ask for your password. If you've done this before, you can skip it.
  • Finally, type ./binary (or sudo ./binary if that doesn't work). If you did everything right, a vvvvvvmusic.vvv will be generated into the data folder!
macOS
Unfortunately, I'm not certain how to do this on macOS. I suspect the instructions under the Linux tab might work, but I'm not certain; if anyone could verify this that would be great!

Not all of these are complete yet, but I figured I should post what I have in the meantime.
« Last Edit: 2 Oct 2017, 16:58 by crazya »

Info Teddy

  • Ultra Captain
  • ********
  • Posts: 3138
    • View Profile
Is this thread going to be pinned or what?
« Reply #1 on: 5 Jan 2017, 18:37 (5 years and 5 months ago) »
my name is spelled “Info Teddy” not “Infoteddy”
and that’s technically not a script FIQ made


I’m working on how to get more than sixteen songs in a music file, so stay tuned!

Also, mention the bug in the game with vvvvvvmusic.vvv while a mmmmmm.vvv exists. Apparently, the game will loop all songs (even songs 0 and 7) when using the vvvvvvmusic.vvv file, if a mmmmmm.vvv file exists.

Ally 🌠

  • tOLP Contributor
  • Hyper Captain
  • *******
  • Posts: 1354
  • <3
    • View Profile
    • Ally 🌠
So basically it's useless.
« Reply #2 on: 6 Jan 2017, 07:16 (5 years and 5 months ago) »
There's also a music unpacker to get the original music, but it's Python 2.7.
Anyways, the unpacker is helpful if you only want certain songs to be changed.

IanBoy141

  • tOLP2 Tester
  • Crewmate
  • **
  • Posts: 33
    • View Profile
Re: Custom Music Tutorial: Part 2: The Sequel
« Reply #3 on: 6 Jan 2017, 12:06 (5 years and 5 months ago) »
So thats why tOLP2 had the unique tracks.
Show content
And i love them.

Shiny K

  • tOLP Contributor
  • Hyper Captain
  • *******
  • Posts: 1087
    • View Profile
how can you not know this shit
« Reply #4 on: 6 Jan 2017, 12:23 (5 years and 5 months ago) »
So thats why tOLP2 had the unique tracks.
Show content
And i love them.
how long have you been living under a rock

Info Teddy

  • Ultra Captain
  • ********
  • Posts: 3138
    • View Profile
Also, this is probably an Open2v2 spoiler.
« Reply #5 on: 6 Jan 2017, 15:28 (5 years and 5 months ago) »
Why didn’t you ask earlier how Open2v2 had custom music?

@Kreator

  • Banned
  • tOLP Contributor
  • Hyper Captain
  • *******
  • Posts: 1503
  • ravioli ravioli we got the lucasoli
    • View Profile
    • ravioli ravioli c6f is backioli
Re: Custom Music Tutorial: Part 2: The Sequel
« Reply #6 on: 6 Jan 2017, 16:23 (5 years and 5 months ago) »
I tried to get this to work on my Mac and failed, since OS X doesn't have the apt-get command. Homebrew wouldn't install the required package either.

Info Teddy

  • Ultra Captain
  • ********
  • Posts: 3138
    • View Profile
What’s the default PM of Mac OS X, again?
« Reply #7 on: 6 Jan 2017, 16:27 (5 years and 5 months ago) »
Then I just just install libphysfs-dev manually.

pattoo1234

  • Crewmate
  • *
  • Posts: 19
    • View Profile
Re: Custom Music Tutorial: Part 2: The Sequel
« Reply #8 on: 3 May 2017, 07:36 (5 years and 1 month ago) »
What version of Linux do I need?

Star

  • tOLP Contributor
  • Super Captain
  • ******
  • Posts: 557
    • View Profile
Re: Custom Music Tutorial: Part 2: The Sequel
« Reply #9 on: 3 May 2017, 09:13 (5 years and 1 month ago) »
What version of Linux do I need?

Not the best with Linux, but if you're going for a graphical user interface, I highly recommend Ubuntu, and they also just released 17.04.

pattoo1234

  • Crewmate
  • *
  • Posts: 19
    • View Profile
Re: Custom Music Tutorial: Part 2: The Sequel
« Reply #10 on: 3 May 2017, 09:23 (5 years and 1 month ago) »
Desktop, Server, Cloud, Kylin, or Core?

Ally 🌠

  • tOLP Contributor
  • Hyper Captain
  • *******
  • Posts: 1354
  • <3
    • View Profile
    • Ally 🌠
Re: Custom Music Tutorial: Part 2: The Sequel
« Reply #11 on: 3 May 2017, 12:29 (5 years and 1 month ago) »
Do you know the meaning of any of those words? It's pretty apperent.

pattoo1234

  • Crewmate
  • *
  • Posts: 19
    • View Profile
Re: Custom Music Tutorial: Part 2: The Sequel
« Reply #12 on: 4 May 2017, 07:12 (5 years and 1 month ago) »
When I typed sudo apt-get install libphysfs-dev, I got the following error: E: Unable to locate package libphysfs-dev

Ally 🌠

  • tOLP Contributor
  • Hyper Captain
  • *******
  • Posts: 1354
  • <3
    • View Profile
    • Ally 🌠
Re: Custom Music Tutorial: Part 2: The Sequel
« Reply #13 on: 4 May 2017, 11:26 (5 years and 1 month ago) »
try libphysfs

pattoo1234

  • Crewmate
  • *
  • Posts: 19
    • View Profile
Re: Custom Music Tutorial: Part 2: The Sequel
« Reply #14 on: 4 May 2017, 11:50 (5 years and 1 month ago) »
I did. Same thing.

Dav999

  • Administrator
  • Hyper Captain
  • *
  • Posts: 1604
    • View Profile
Re: Custom Music Tutorial: Part 2: The Sequel
« Reply #15 on: 4 May 2017, 13:48 (5 years and 1 month ago) »
Random thought: is it connected to the internet? Unless you're running it in a VM (and it's not configured to have the network disconnected) or have an ethernet cable plugged in, it won't still be connected to your WiFi network if you run a new operating system natively.

Also might want to try sudo apt-get update first.

pattoo1234

  • Crewmate
  • *
  • Posts: 19
    • View Profile
Re: Custom Music Tutorial: Part 2: The Sequel
« Reply #16 on: 4 May 2017, 13:59 (5 years and 1 month ago) »
I figured it out before you said that: no internet. Will try on library computer tomorrow.

Info Teddy

  • Ultra Captain
  • ********
  • Posts: 3138
    • View Profile
Which library do you go to?
« Reply #17 on: 6 May 2017, 09:45 (5 years and 1 month ago) »
Will try on library computer tomorrow.
Wait, you’re telling me your library computer has Linux?

Lollers will devour you

  • Banned
  • tOLP2 Tester
  • Captain
  • *****
  • Posts: 391
  • [Abandoned account]
    • View Profile
    • WEASWASAWASEWASWAEWEASAWWEWASWEASDW3ASWASQASASASWASEWASDWSWASDFYRTBR5T5 BW4YHSB6W4BWSHGGJGHNBNBNVJYGHBJBGYUBY UFBHJFNBJKLFGHJDF,HBKHGFJKHJFK,SHGJKDF,GHG,SHGS,H,SHS,HH,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,GGGG,,,,,,,,,,,,,,,,,
Re: Custom Music Tutorial: Part 2: The Sequel
« Reply #18 on: 6 May 2017, 09:56 (5 years and 1 month ago) »
I figured it out before you said that: no internet. Will try on library computer tomorrow.
Well, now the next person that goes on that computer will have VVVVVV custom music

Info Teddy

  • Ultra Captain
  • ********
  • Posts: 3138
    • View Profile
Probably not.
« Reply #19 on: 6 May 2017, 11:07 (5 years and 1 month ago) »
Well, now the next person that goes on that computer will have VVVVVV custom music
Anything wrong with that?