Forum Fighters: Rewritten (Discontinued)

maybe the login screen could hold your save data

1 Like

we just gotta compress the audio… a lot. maybe we can also make the song cut off somewhere and loop so it doesn’t restart weirdly.

I can prolly do that though i exported it on medium which is the most audacity can compress in the export menu

What’s the kpbs on it? You only need 96 or 128

145-185kbps

1 Like

Guys, I have an idea - audio files are kinda… “large,” so how bout we upload the music elsewhere and play it from a link rather than upload it into the project. This will help compress the file size…

EX:

link="https://forum.fighters.repl.co/TEST.mp3"; // This is the Link
async function playAudio() {
var audio=new Audio(link);
audio.type="audio/mp3";
await audio.play();
audio.addEventListener('ended', function(){
if(A===new Date().getSeconds()){
playAudio();
}
});
}
playAudio();
onEvent('update', function () {
window.A=new Date().getSeconds();
});

I had to use some online help to know how to run the audio in the project. But I don’t know if there’s a shortcut to loop the sound, so the method I used above might not be the best.

However, this will help reduce the file size for now

Audio I used in the example:

(made with beepbox)

Can we use GitHub instead? You just have to add ?raw at the end of the link

I didn’t try it with GitHub, so Idk if it works

But you can give it a try

Nice, I didn’t know that (will try it sometime)

1 Like
link="https://github.com/nuggetofwisdom/ForumFighters/raw/main/Jazz%20Improv%20No.%201.mp3"; // This is the Link
async function playAudio() {
var audio=new Audio(link);
audio.type="audio/mp3";
await audio.play();
audio.addEventListener('ended', function(){
if(A===new Date().getSeconds()){
playAudio();
}
});
}
playAudio();
onEvent('update', function () {
window.A=new Date().getSeconds();
});
2 Likes

FFR 1.3.25 v24-26-2021_13-03-51.wick (577.2 KB)
I made it play the audio from the internet so now it’s back down to 600kb!

1 Like

where is the music? i can’t find or hear it.

edit:

new file: FFR 1.3.25 v24-26-2021_10-08-37.wick (577.2 KB)

the difference is where the character clip update is. look at picture.

i did it this way the first time and then someone put it after everything. their idea was good on paper because it’s fewer lines and less repetition, but the order does matter.

1 Like

How do i upload audio to github

Make a repo, then upload the audio to the repository

There’s only space for code

Instead of clicking make file click upload file

I tried putting the link in and it still doesnt work

Oh right click download on the audio file and then click copy link

I uploaded the file to github

got it, try now
FFR 1.3.25 v24-26-2021_13-18-02.wick (577.1 KB)

when you stop the project, the music keeps playing…

oh yeah, what happened to the end of the song? i looked at the github file and at the end it has like 1 second of the beginning of the song but earrape