This is a simple guide for changing the song the piano plays. steamapps\common\BeamNG.drive\content\vehicles\piano.zip\vehicles\piano\lua Within this folder will be a file called the Piano.lua, in this file will be the code that makes its play a certain song change this to the name of your new song. I suggest using .flac as I haven't tested other file types. steamapps\common\BeamNG.drive\gameengine.zip\art\sound Within this folder is where you will need to put the .flac sound file. and that's it. Use the attached music(dropbox) and lua files if you want. Credit to the songs author. https://www.dropbox.com/s/4v24xbcq9yyzu7c/Morning Walk - Soft Piano Music - Royalty Free.flac?dl=0 Cheers for the help discord guys.
Hopefully someone can use this knowledge to do so, just a little beyond my skills at the moment but thanks.
I'm not sure it's possible, as you have to put the files in a zip that's not in the content folder. Actually, I'm working on it now. To make a piano sound mod, use the paths "YOURMOD\art\sound\MUSAK.flac" and "YOURMOD\vehicles\piano\lua"
This is in mod form, so I confirm that it is possible to mod sounds in, though IDK how to use multiple.
Nice mate @BombBoy4 probably means everyone is gonna upload songs now lol @jetcoasterfan any sound will work just needs to be .Flac
Kind of a wild thought, but what if it would be possible to have a radio in the vehicles that you can listen to?
Actually, we could use the lua system and modify it to work at the press of a button. I'm not sure how to put the speaker in the right place or how to use multiple sounds, but it might be possible.
Oh wow didn't know there's an tutorial for this. I made this work in the usual modding format aswell but the mod overwrites the official piano.lua, so if an update to beamng comes that edits the offical piano.lua then this mod will conflict. I don't know lua well so I can't say if it's possible to make the mod so it doesn't overwrite anything? @BombBoy4 ?
@corvette81 I noticed you have Hotel California as your piano sound, where did you get the file, if you don't mind?
With Lua you can do a lot. Including make it compatible with a "piano_song" JBeam slot that specifies the song, for example. Which would allow people to upload as many songs as they want to the piano, while keeping compatibility with the original.
I cannot get this damn thing to work, it won't let me copy anything to the steamapps\common\BeamNG.drive\gameengine.zip\art\sound folder, and it won't let me edit the .lua. Please help as this is quite frustrating.