Jump to content




[MC 1.2.5] ccSpeaker 1.0


  • This topic is locked This topic is locked
34 replies to this topic

#1 Cloudy

    Ex-Developer

  • Members
  • 2,543 posts

Posted 04 May 2012 - 11:33 AM

Introduction
ccSpeaker is a mod which allows you to play sounds from the MineCraft world using a computer. It supports different sound speeds, from 0.5 (half) to 2.0 (double speed).

Crafting
Simply put a note block and an Iron Ingot together in the crafting window in whatever order you choose (it is a shapeless recipe). Example:

Posted Image

Configuration
The config file supports two options (defaults shown below).

blockID=185
recipeEnabled=1

blockID is the block ID (duh!) and recipeEnabled is whether the crafting recipe is enabled. It may be useful on servers to disable the crafting, if you want only OPs to use it. As usual, the config will be in configsmod_ccSpeaker.cfg.

Download and Install
Client download: ccSpeaker-Client-1.0.zip
Server download: ccSpeaker-Server-1.0.zip

Forge version at least 100 is recommended on the server so that the config feature works. Please extract the ccSpeaker folder out of the zip file and place it in your mods folder.

Changelog
v1.0 - First public release.

Upcoming features (maybe)
Custom sound support
Square wave generation

Getting started
The usage of the peripheral is simple. Upon being placed next to a computer, the speaker will create a new API called "speaker". Once the API is loaded (either by os.loadAPI("/rom/apis/speaker") or on bootup, you can use the command as follows:
speaker.playSound("random.fuse")
This will play the familiar "Oh #@$£ a creeper is about to blow up" sound.

You can also call playSound with an optional pitch argument, as follows:
speaker.playSound("mob.cow", 2)
This will play a high pitched cow sound. The full list of sounds is in your .minecraftresources in the sound and newsound folders. If the sound was in the "mob" folder in "newsound", and it was called "chicken" which a number on the end, ignore the number and just do:
speaker.playSound("mob.chicken")
This will play a random chicken sound.

Conclusion
I hope you enjoy this mod that I put together in a couple of days :)/> If you have any feature suggestions or problems, feel free to let me know and I will do my best to try and fix it.

#2 Holofire

  • Members
  • 18 posts

Posted 04 May 2012 - 04:31 PM

This is awesome!

#3 cant_delete_account

  • Members
  • 484 posts

Posted 04 May 2012 - 06:41 PM

Totally awesome!! Now to start work on my text to speech mod...
Sounds + Speech = Awesome

#4 LazerRay

  • New Members
  • 18 posts

Posted 05 May 2012 - 07:13 PM

I installed the mod exactly how you have it written, but when I try to use one of your example commands I get "No such program"

#5 Cloudy

    Ex-Developer

  • Members
  • 2,543 posts

Posted 05 May 2012 - 07:59 PM

They are Lua commands to be used in a program :-) type "lua" then enter the functions.

#6 LazerRay

  • New Members
  • 18 posts

Posted 05 May 2012 - 08:48 PM

Thanks, it works now.

A possible suggestion, have the API look in other folders besides just Sound and Newsound, three other folders also contain sounds you could use, Music, New music, and Mod. This way you have access to more sounds, including ones various mods put in, even the ability to add custom sounds to one of the five folders.

#7 coolblockj

  • Members
  • 84 posts

Posted 07 May 2012 - 01:40 AM

So does this not support other sounds being put into the NewSound folder? Because i've been trying and can't seem to get it to accept it.

#8 LazerRay

  • New Members
  • 18 posts

Posted 07 May 2012 - 03:17 AM

I checked another thread were this add-on was mentioned, he is working on being able to have it play custom sounds.

#9 Cloudy

    Ex-Developer

  • Members
  • 2,543 posts

Posted 07 May 2012 - 03:03 PM

View PostLazerRay, on 05 May 2012 - 08:48 PM, said:

Thanks, it works now.

A possible suggestion, have the API look in other folders besides just Sound and Newsound, three other folders also contain sounds you could use, Music, New music, and Mod. This way you have access to more sounds, including ones various mods put in, even the ability to add custom sounds to one of the five folders.

I use the Minecraft sound effect playing functions - playing music would be a separate function. I will add that in though :)/>


View Postcoolblockj, on 07 May 2012 - 01:40 AM, said:

So does this not support other sounds being put into the NewSound folder? Because i've been trying and can't seem to get it to accept it.

No custom sound support as of yet - but I'll work on a way to get them working. Most likely you'll add the sounds to a folder inside the mod folder - and obviously every client that is to play the sound will have to do the same in an SMP environment.

#10 FuzzyPurp

    Part-Time Ninja

  • Members
  • 510 posts
  • LocationHarlem, NY

Posted 14 May 2012 - 04:57 AM

Nice work Cloudy :P/>

#11 kamnxt

  • New Members
  • 80 posts

Posted 14 May 2012 - 04:54 PM

Maybe you could make it download sounds from the server? The server stores all the sounds and the client downloads them when connecting, so every client would be able to play them.

#12 Kane Hart

    Donator

  • Members
  • 38 posts

Posted 31 May 2012 - 04:39 AM

Cloudy this is a pretty kick ass mod. I hope to see this on Bukkit soon. Custom sounds is something were looking forward too. Maybe some how stream sound/music.

#13 ags131

  • New Members
  • 19 posts

Posted 31 May 2012 - 09:36 PM

Hey cloudy, I've responded on my SuperNoteBlock thread, In short, you can merge the code into yours If you want :)/> Super Noteblock is actually very simple, I am surprised it hasn't been done before.

#14 blipman17

  • Members
  • 92 posts

Posted 25 June 2012 - 11:13 AM

are you also going to make a record block?
i don't see any use for it, but i think someone can make something of it

#15 FuzzyPurp

    Part-Time Ninja

  • Members
  • 510 posts
  • LocationHarlem, NY

Posted 16 August 2012 - 11:36 AM

When do we get new features? :(/>

#16 Cloudy

    Ex-Developer

  • Members
  • 2,543 posts

Posted 16 August 2012 - 01:01 PM

I'll try and add new ones once I port to 1.3.1 :(/>

#17 FuzzyPurp

    Part-Time Ninja

  • Members
  • 510 posts
  • LocationHarlem, NY

Posted 18 August 2012 - 12:09 AM

I made Sphax support for this addon

Posted Image

#18 ETHANATOR360

  • Members
  • 423 posts
  • Locationyour hardrive

Posted 18 August 2012 - 11:50 PM

what went wrong? i also removed it from the mods folder but it still crashes
Spoiler


#19 FuzzyPurp

    Part-Time Ninja

  • Members
  • 510 posts
  • LocationHarlem, NY

Posted 19 August 2012 - 06:06 AM

View PostETHANATOR360, on 18 August 2012 - 11:50 PM, said:

what went wrong? i also removed it from the mods folder but it still crashes
Spoiler

I have every mod you have plus a boatload more, including this. You've done something wrong. Post the FML log

#20 ChrisCj

  • New Members
  • 4 posts

Posted 20 August 2012 - 12:08 PM

View Postthesbros, on 04 May 2012 - 06:41 PM, said:

Totally awesome!! Now to start work on my text to speech mod...
Sounds + Speech = Awesome

Cool i'll Download this too! I hope there will be a german Voice.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users