Coder Social home page Coder Social logo

jukebox's Introduction

Minetest mod "Jukebox"

Version: 2.0

License of source code

       DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE 
                   Version 2, December 2004 

Copyright (C) 2004 Sam Hocevar <[email protected]> 

Everyone is permitted to copy and distribute verbatim or modified 
copies of this license document, and changing it is allowed as long 
as the name is changed. 

           DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE 
  TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 

 0. You just DO WHAT THE FUCK YOU WANT TO.

License of textures

(by Authors)

  • BlockMen (WTFPL):
    • jukebox_disc_*.png (added coulors by lightonflux)

License of music: CC0

The authors are (freesound.org):

  • cheesepuff (song1)
  • geerterig (song2)
  • rap2h (song3)
  • keffstay (song4)
  • usedtobe (song5)
  • zagi2 (song6)

Notice

This mod is only useable with Minetest 5.0 or above!

Description

In the Jukebox plus mod you've got 9 different music discs.

You can add music by copy your ogg file to the sounds folder and renaming them to e.g. this: jukebox_disc_2.0.ogg But pay attention that the sounds have to be mono, else you can hear the music all over the world.

There are 9 discs so there are the sound files jukebox_disc_1.*.ogg to jukebox_disc_9.*.ogg. The small star can be replaced by the numbers 0 to 9.

So you can have up to 9x10 (90) songs!

Using the mod

To use the jukebox, you have to craft one. You need 8 wood and 1 mese crystal to craft it following way:

wood      wood      wood
wood  mese crystal  wood
wood      wood      wood

Just rightclick with a music disc in your hand on the jukebox and it will play a random song from this disc. To stop the music rightclick the box again and it will drop the music disc.

API Documentation

The jukebox mod offers a simple API to register new discs. See here how to use it:

jukebox.register_disc("mymod:new_disc", {
	description = "New Disc",
	-- ^ The item description
	inventory_image = "mymod_new_disc.png",
	-- ^ The disc image / texture
	music_name = "mymod_new_disc",
	-- ^ This is the sound that'll be played if you insert the disc
	 
	-- if you want to you can add here more options as in minetest.register_craftitem (except stack_max)
})

Links

jukebox's People

Contributors

antumdeluge avatar jakubvanek avatar kingoscargames avatar lightonflux avatar lnjx avatar louies0623 avatar louisroyer avatar lunovox avatar mat9117 avatar pitchblack1 avatar srifqi avatar victorenator avatar weblate avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

jukebox's Issues

Memory Leak

Hello,I've noticed a repeated issue here. I think this mod is suffering from a memory leak because I notice that RAM usage spikes from 1GN in use up to 6 or 7GB in the loading screen alone(before I enter the world) and this has crashed my computer to the point where I had to hard reboot my computer several times already. I have also noticed that the RAM usage drops significantly once I disable the mod. I would appreciate if you could possibly do something about this because there seems to be nobody else reporting it.

Different disc colours

At the moment it is really hard to find the right disc, impossible without using the tooltips.

Could you make them use different colours? Optimally the same colours as the dye mod uses.

Own sounds and git updates

If you add your own sounds to the folder you taint your repo. This introduces problems for people that want to update the mod via git.

Suggestions:

  • Add audio files for some discs in the git ignore file. E.g. disc 6 10
  • Load custome music from another folder and ignore that folder

If the mod uses another folder you could change the structure so that players/admins don't have to rename the files.

E.g. a folder "ownsounds" with sub folders 6 - 10. Then choose the files randomly from these folders (which corresponds with the discs) without caring about the file names.

Memory Leak

This is an issue that has crashed my computer several times already. I noticed consistently that the mod would take at least 2.5GB of RAM. In my more mod heavy worlds,they with this mod disabled take up 2-3,maybe 4GB if they're really heavy. If i enable this mod,this single mod would make the load spike from 2 or 3GB to 5,6, and even 7GB of RAM used, which is out of my total 8GB in my system. This usually means that my computer would completely freeze to the point where my character and even entire system(desktop and keyboard buttons) stops responding. Thus, I have no option than to hard reboot my system. Something needs to be done like maybe optimizing the code somewhere or looking for openings that could lead to memory leaks. It won't say anything unless you're running Htop at the same time. You'll see the effects particularly when the loading screen says "Media 0%". Sometimes I didn't even enter the world before my computer freezes. I seriously don't know what to do and I really hope this gets fixed whenever possible.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.