Page 1 of 1

Help with music

PostPosted: 18 Oct 2021, 02:31
by watercolours
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
Image

Re: Help with music

PostPosted: 18 Oct 2021, 03:20
by Busybody64
It accepts .ogg and .music files.


You're meant to use VLC to convert the music.

Re: Help with music

PostPosted: 18 Oct 2021, 05:12
by watercolours
Busybody64 {l Wrote}:It accepts .ogg and .music files.


You're meant to use VLC to convert the music.


nah, still doesn't work.
game doesn't accept .ogg format audiofiles

Re: Help with music

PostPosted: 18 Oct 2021, 11:21
by KiyanTheBluePenguin
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.

Re: Help with music

PostPosted: 18 Oct 2021, 11:57
by watercolours
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.

‌‌‍‌‌‍‍‎
yay thx it worked
‌‌‍‌‌‍‍‎

Re: Help with music

PostPosted: 18 Oct 2021, 13:57
by watercolours
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.

‌‌‍‌‌‍‍‎
ummmm what if i will put a copyright music for my levels?
‌‌‍‌‌‍‍‎

Re: Help with music

PostPosted: 18 Oct 2021, 20:07
by Busybody64
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.

Re: Help with music

PostPosted: 18 Oct 2021, 23:05
by watercolours
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.

‌‌‍‌‌‍‍‎
laura shigihara, rigor mormist, any problems?

Re: Help with music

PostPosted: 21 Oct 2021, 01:53
by watercolours
mmmmm
any there?

Re: Help with music

PostPosted: 22 Oct 2021, 01:26
by Busybody64
That's a plants vs zombies song.
It's a bit risky, but I think it might be ok.

Re: Help with music

PostPosted: 22 Oct 2021, 10:45
by watercolours
Busybody64 {l Wrote}:That's a plants vs zombies song.
It's a bit risky, but I think it might be ok.

‌‌‍‌‌‍‍‎
also this is an original song, not in-game
‌‌‍‌‌‍‍‎