SthephanShinkufag / bytebeat-composer

Bytebeat player with a collection of many formulas from around the internet.
https://dollchan.net/bytebeat/
MIT License
85 stars 26 forks source link

Offline version? #76

Closed Epictyphlosion closed 11 months ago

Epictyphlosion commented 11 months ago

Is it possible for there to be an offline version of the site? I've downloaded the repo and have tried to run it, but none of the scripts work.

SthephanShinkufag commented 11 months ago

No.

SArpnt commented 11 months ago

you need to run a local web server

Chasyxx commented 9 months ago

you need to run a local web server

you would also need to remove what's touched on in #77

codermannnnnnn commented 5 months ago

how do i run a local web server

Epictyphlosion commented 1 month ago

@SArpnt After a long time, I've finally gotten around to installing XAMPP. Running it through there still gives me the same issues when trying to run it from the HTML file: The audio won't start and all of the library entries are empty. I also run into a globalThis.bytebeat is undefined error, attributed to character 350715 of codemirror.min.mjs None of this should be happening, as all the files are exactly the same as the ones on the website.

SArpnt commented 1 month ago

@SArpnt After a long time, I've finally gotten around to installing XAMPP. Running it through there still gives me the same issues when trying to run it from the HTML file: The audio won't start and all of the library entries are empty. I also run into a globalThis.bytebeat is undefined error, attributed to character 350715 of codemirror.min.mjs None of this should be happening, as all the files are exactly the same as the ones on the website.

xampp has way more stuff than you need (mostly old stuff that most websites don't even use anymore too). it isn't mentioned anywhere in the link i said which provides multiple methods to set up a local web server.

the error happens because of what chasyxx mentioned, the code does a lazy check to see if it's on dollchan. easy to remove if you know what to look for, but still annoying especially considering it's unclear if you even have the website running properly.

my own bytebeat website has no such check, and the repository has clear documentation on how to work with the code (assuming you already know how to use a cli). the local web server already comes with the rest of the tooling.