Help with music

Help with music

Postby watercolours » 18 Oct 2021, 02:31

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
my discord, for any purpose: watercolours#0234
User avatar
watercolours
 
Posts: 48
Joined: 02 Oct 2021, 07:05
Location: Russia

Re: Help with music

Postby Busybody64 » 18 Oct 2021, 03:20

It accepts .ogg and .music files.


You're meant to use VLC to convert the music.
Busybody64
 
Posts: 41
Joined: 12 Feb 2021, 15:25

Re: Help with music

Postby watercolours » 18 Oct 2021, 05:12

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
my discord, for any purpose: watercolours#0234
User avatar
watercolours
 
Posts: 48
Joined: 02 Oct 2021, 07:05
Location: Russia

Re: Help with music

Postby KiyanTheBluePenguin » 18 Oct 2021, 11:21

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.
User avatar
KiyanTheBluePenguin
 
Posts: 218
Joined: 15 Dec 2019, 15:15
Location: Antarctica. Obviously

Re: Help with music

Postby watercolours » 18 Oct 2021, 11:57

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
‌‌‍‌‌‍‍‎
my discord, for any purpose: watercolours#0234
User avatar
watercolours
 
Posts: 48
Joined: 02 Oct 2021, 07:05
Location: Russia

Re: Help with music

Postby watercolours » 18 Oct 2021, 13:57

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?
‌‌‍‌‌‍‍‎
my discord, for any purpose: watercolours#0234
User avatar
watercolours
 
Posts: 48
Joined: 02 Oct 2021, 07:05
Location: Russia

Re: Help with music

Postby Busybody64 » 18 Oct 2021, 20:07

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
 
Posts: 41
Joined: 12 Feb 2021, 15:25

Re: Help with music

Postby watercolours » 18 Oct 2021, 23:05

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?
my discord, for any purpose: watercolours#0234
User avatar
watercolours
 
Posts: 48
Joined: 02 Oct 2021, 07:05
Location: Russia

Re: Help with music

Postby watercolours » 21 Oct 2021, 01:53

mmmmm
any there?
my discord, for any purpose: watercolours#0234
User avatar
watercolours
 
Posts: 48
Joined: 02 Oct 2021, 07:05
Location: Russia

Re: Help with music

Postby Busybody64 » 22 Oct 2021, 01:26

That's a plants vs zombies song.
It's a bit risky, but I think it might be ok.
Busybody64
 
Posts: 41
Joined: 12 Feb 2021, 15:25

Re: Help with music

Postby watercolours » 22 Oct 2021, 10:45

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
‌‌‍‌‌‍‍‎
my discord, for any purpose: watercolours#0234
User avatar
watercolours
 
Posts: 48
Joined: 02 Oct 2021, 07:05
Location: Russia

Who is online

Users browsing this forum: No registered users and 0 guests