how to add a custom music for the worldmap, game doesn't accept mp3 files, i tried to change format by just renaming file, music is bruh silent.
i tried to use terminal for this, but it gives an error
Busybody64 {l Wrote}:It accepts .ogg and .music files.
You're meant to use VLC to convert the music.
KiyanTheBluePenguin {l Wrote}:Alright So Since I Know How To Do This, Let Me Explain.
Firstly, You've Got To Go To The Map File. Should Be In ".local/share/supertux2/levels/YOUR_LEVELSET"
Then, I Recommend You Make A File For The Music.
Put Your OGG File In The Folder. Now Here's The Part That Allows You To Use It In The Game:
Make A Music File. Then Open It, And Type In Something Like This:
"(supertux-music
(file "YOUR_MUSIC_FILE.ogg")
(loop-begin 0)
(loop-at This One Depends On How Long Your Song File Is)
)"
Oh Yeah Don't Forget The Fact That There Shouldn't Be Any Spaces.
Let's Look At The "loop-at" Thing A Bit More Closely.
Keep In Mind I'm Not A Dev And I'm Just Someone Who THINKS This Is How It Works.
Let's Say You Have A File That's 1 Minute Long. The Way You Tell The Music File That It Is 1 Minute Is By Typing In "60".
Yes, The File Does Go Off Of Seconds, Not Minutes.
So If You Wanted To Have A Song That's Two Minutes Long, You'd Have To Type In 120.
If You Have An Extra Ten Seconds In Your Two Minute Song, It'd Be 130.
Lastly, To Implement This Into The Game You'd Have To Go Into The Level, And Then Press The Music Button At The Bottom, Then Go To "levels/YOUR_LEVELSET/WHERE_YOU_STORED_YOUR_SONG" And It Should Work. Though I Use Windows SuperTux So If The Linux Version IS Different, Then You Can Tell Me.
KiyanTheBluePenguin {l Wrote}:Alright So Since I Know How To Do This, Let Me Explain.
Firstly, You've Got To Go To The Map File. Should Be In ".local/share/supertux2/levels/YOUR_LEVELSET"
Then, I Recommend You Make A File For The Music.
Put Your OGG File In The Folder. Now Here's The Part That Allows You To Use It In The Game:
Make A Music File. Then Open It, And Type In Something Like This:
"(supertux-music
(file "YOUR_MUSIC_FILE.ogg")
(loop-begin 0)
(loop-at This One Depends On How Long Your Song File Is)
)"
Oh Yeah Don't Forget The Fact That There Shouldn't Be Any Spaces.
Let's Look At The "loop-at" Thing A Bit More Closely.
Keep In Mind I'm Not A Dev And I'm Just Someone Who THINKS This Is How It Works.
Let's Say You Have A File That's 1 Minute Long. The Way You Tell The Music File That It Is 1 Minute Is By Typing In "60".
Yes, The File Does Go Off Of Seconds, Not Minutes.
So If You Wanted To Have A Song That's Two Minutes Long, You'd Have To Type In 120.
If You Have An Extra Ten Seconds In Your Two Minute Song, It'd Be 130.
Lastly, To Implement This Into The Game You'd Have To Go Into The Level, And Then Press The Music Button At The Bottom, Then Go To "levels/YOUR_LEVELSET/WHERE_YOU_STORED_YOUR_SONG" And It Should Work. Though I Use Windows SuperTux So If The Linux Version IS Different, Then You Can Tell Me.
Busybody64 {l Wrote}:That's ok. (Unless it's a song that triggers YT's copyright claim system. Then we have a problem.)
Just make sure to group the music with the levels so that it'll be grouped with the addon when published.
Busybody64 {l Wrote}:That's a plants vs zombies song.
It's a bit risky, but I think it might be ok.
Users browsing this forum: No registered users and 0 guests