Beat generating
1
Upload Music
Upload your desired music in .ogg format to the dh_cardance/html/song folder.
2
Restart the Server
3
Join the server
-
In the server console, enter the following command to generate beats for your music file:
Shellgenerate_beat file_name.ogg -
Do not exit the server until you see the message "Beat finished successfully".
4Navigate to the
Navigate to the configs/shared.lua file
Add your song to Shared.Sounds with the following format:
Lua
{ name = "SONG_DISPLAY_NAME", time = "SONG:DURATION", url = "file_name.ogg", diff5
Restart the Script
Your Car Dancing script should now be fully functional.
Example Configuration
Example of configuration entry for shared.lua:
Lua
Shared.Sounds = {
{ name = "Song Display Name", time = "3:45", url = "song_file.ogg", difficulty = "easy" },
-- Add more songs here
}