- ComputerCraft | Programmable Computers for Minecraft
- → reububble's Content
reububble's Content
There have been 81 items by reububble (Search limited from 10-February 22)
#148198 Command Block Music Composition
Posted by
reububble
on 07 October 2013 - 04:34 AM
in
Media
I would make a simple installer, but currently I am going to my final year of secondary schooling, and that means after today - the last day of holidays before the term begins - I will be in study mode.
Also my laptop I use is crummy but I expect a replacement under warranty sometime this week...
So sometime after November 21st, I might be able to work on CC.
LBPHacker, if by 'last' music format you mean the latest to be developed, I might own that title with the file format that the music is all converted to, FROM nbs and midi.
Buggy is not an unfamiliar word to me but I know my program parses the files correctly with how I've programmed it.
Glad to see people actually use some of my stuff.
#143966 Ctracker - Minecraft Music Maker
Posted by
reububble
on 08 September 2013 - 05:33 AM
in
Programs
Curious, how many different timbres does it do? Please say more than one!
I could implement some of this mod into my music composition software.
Currently it only has a range of 2 octaves, because that's minecraft's range of noteblock sounds.
#143962 Computer.isturnedon
Posted by
reububble
on 08 September 2013 - 05:16 AM
in
Suggestions
#142172 Function Help!
Posted by
reububble
on 29 August 2013 - 12:34 AM
in
Ask a Pro
Use A() after you define it to actually call the function
To make Last1Here's comment more distinguished, I left out the giant quote, but basically I'm repeating what they said.
#142165 Multiple Flashing Monitors
Posted by
reububble
on 29 August 2013 - 12:18 AM
in
Ask a Pro
Make a loop around your process that will sleep AFTER cycling through each monitor.
Try a similar code to this
for j = 1, X do for i = 1, #t do t[i].setBackgroundColor(colors.red) t[i].clear() end sleep(0.5) for i = 1, #t do t[i].setBackgroundColor(colors.black) t[i].clear() end sleep(0.5) endYou could shorten this but for your understanding I've left in most of your original code.
#141047 War.
Posted by
reububble
on 21 August 2013 - 07:24 AM
in
Forum Games
#140708 Listening To Custom Music In Cc
#140705 Command Block Music Composition
Posted by
reububble
on 19 August 2013 - 02:30 AM
in
Media
PixelToast, on 18 August 2013 - 02:33 PM, said:
/me gets a bunch of cave story midis to convert
some things you should be aware of:
localization -- you wont think it makes your program faster, but it does
string.format("%X",number) -- number to hex
paintutils -- built in library, makes drawing things way easier
notepad++ -- the tabbing
Thanks for those tipppss.
When I started writing the darn thing I didn't use localization, and I've been going through lately trying to fix up my mistakes.
as for hex - THANKS! I'm terrible at the whole knowing every function available to me thing. But I always find a way, normally an ugly one.
I think I used the paintutils, by memory. Edited it and inserted it in the code...
Notepad++? Well, whatever floats your boat!
If anybody else can point out something that can be made actually better, I'd REALLY appreciate it.
#140704 Modify The Terminal?
Posted by
reububble
on 19 August 2013 - 02:19 AM
in
Ask a Pro
making the OS as you've suggested it be done, would mean changing the ACTUAL files, not adding your own versions. My point with not using the functions was because of what they do, not taking into account what you might decide to change them into doing.
In my opinion,
I don't need to say in my opinion before I state an opinion. If I say "green is good" everybody knows that it's an opinion. The same goes for how I'm accustomed to using the word 'should'.
And another thing, why are you arguing about this so much!? Gosh, I'm trying to help, you're trying to help, and apparently we're trying to say the other is wrong, without even knowing who the OP is understanding.
#140591 Text Doesn't Want To Be Colored.
Posted by
reububble
on 18 August 2013 - 06:11 AM
in
Ask a Pro
You don't change the text colour at all, so I assume you want to change the background colour.
It does change, it prints out a blue bar, then you tell it to change back to black before you write the (text) on lines 56-59
#140578 Listening To Custom Music In Cc
Posted by
reububble
on 18 August 2013 - 04:55 AM
in
Tutorials
Recently Minecraft has updated to allow for a new type of command.
This command is
/playsound <sound> <player> [x y z] [volume] [velocity] [minimum volume]
Don't worry about all of the parameters just yet. Let's start at the VERY beginning.
You will want a command block, the id is 137. Use the command /give 'yourname' 137
Now you should have the command block, when you right click on the placed block you are able to enter the desired command.
Let's suppose you want to creep out one of your friends. As all good friends do.
We want to find a good creepy sound to play.
I've got an Idea! Why not use a creeper sound!
Good suggestion, lets go find that file.
Your sounds folder will be in your .minecraft/ directory under /assets/sounds/
From here you can see a folder called random which contains the sound we desire.
Lets use minecraft/assets/sounds/random/fuse which sounds like a creeper nearly exploding!
The <sound> parameter is filled with the file path separating directories with a period "."
Our parameter will be
random.fuse
To target your friend we will use the call of
@p[name=Reububble]
Reububble is the name of your friend!
To position the sound we will use the [x y z] coords of
~1 ~0 ~0
This will be 1 x coordinate away from Reububble's position! The ~ signs indicate relative position
We want the [Volume]to be LOUD so we set this value to the highest possible,
2
rather than the lowest value, 0 and not any number in between.
I like a creepy LOW sounding fuse, so we use the lowest pitch, and the slowest [velocity]
0
rather than the higher pitches ranging up to 2 maximum.
I don't mind what the [minimum volume] is, so I'll leave it.
Now we have the command
/playsound random.fuse @p[name=Reububble] ~1 ~0 ~0 2 0
Attach the command block up to a trip-wire or other redstone wires, and let Reububble become freaked out by the invisible creeper!
------------------------------------------
CUSTOM SOUNDS
It is possible, all you need to do is have your sound in .ogg format, which is supported by many audio softwares such as audacity. So you can convert from mp3 using this software.
The tricky part is replacing the sounds which already exist, as this is the only way it can be implemented.
You need to create a resource pack or replace a current resource pack sound folder. The name you use in the replacement should be the same as the name of the sound you are replacing, and remember this means you cannot listen to that sound normally anymore, and whenever the sound would normally be heard, you will hear the new sound instead.
Watch a short youtube video explaining how this is achieved!
Thanks, please send me any questions, comments, concerns, theories, queries, or death threats you may have!
EDIT: this is good code
args = {...}
for i,side in ipairs(rs.getSides()) do
if peripheral.getType(side) == 'command' then
man=peripheral.wrap(side)
break
end
end
local params = ''
for i=1,#args do
params = params..' '..args[i]
end
man.setCommand('/playsound'..params)
print('current command is : '..man.getCommand())
man.runCommand()
And those are the 3 functions available, along with the peripheral name. Make sure the command peripheral is enabled in config
#140575 Modify The Terminal?
Posted by
reububble
on 18 August 2013 - 04:11 AM
in
Ask a Pro
I'll agree that the OS can be simple or advanced. I do not agree that my statement was "False". I simply said, and I purposely said, that the OS "should" be advanced. This cannot be proven, and exists as an opinion based on the wording I've used.
But still, my advice stands quite well. If the OP wants to not print on the top and bottom lines, then that is entirely up to the way that they code the program. The only reason the program would print in the top or bottom lines is because the OP scripted it to work that way.
It's like asking the checkout assistant to make sure you don't buy any cheese.
The only person who can make sure of that is yourself... Just, don't buy cheese.
I like the replacement of the function, but I know that there are more efficient ways to make sure you don't write the wrong code.
Maybe you should draw out how you want your OS to look, and label all the important locations with their coordinates.
I suggest you stay away from the print() function for this reason: it changes the y position. This can and will eventually result in the bottom line being written over.
I suggest you stay away from the clear() function for this reason: it colours the entire screen with the selected background colour. This can result in only the string you place over the line to be the correct colour.
I suggest you stay away from the scroll() function for this reason: it scrolls the entire screen. This can result in the bottom and top lines becoming distorted, as the function does not disclude them from the scroll.
#140540 Modify The Terminal?
Posted by
reububble
on 17 August 2013 - 10:31 PM
in
Ask a Pro
I hear term.scroll(), print() and term.clear() are ones to stay away from also.
Either that or you'll have to ensure your clock prints over the top of anything else that prints there.
An OS should be an advanced program/s and will require you to really know how to do this.
#140538 Simple Chunk Loader Turtle Question
Posted by
reububble
on 17 August 2013 - 10:11 PM
in
Ask a Pro
Could you do a check to see if that is true?
The good news is the turtle only needs to be stationary. I would assume the turtle needs to be turned on too.
#140534 Music
Posted by
reububble
on 17 August 2013 - 09:59 PM
in
Ask a Pro
Bubba, on 17 August 2013 - 09:26 PM, said:
I read in forums that I should search for a topic before posting about it. That is what I have done and this is the page I found which covered my topic. I saw that the answer seems to no longer be correct so I decided I would prevent anybody else who follows the rules from being confused. If they come to this page they would get the wrong information. I didn't see my comment as much of an advertisement because the main idea was that you can play mp3s, and that's not what my program does. I added the second section, about my program, as help. If I was to direct them to the wiki page for the only existing program which will fulfill their task, it would not be considered advertising. I simply want people to know that the days of no music support is over now that the command block allows you to /playsound.
</rant>
It's not THAT old of a topic is it?
#140524 Music
Posted by
reububble
on 17 August 2013 - 08:09 PM
in
Ask a Pro
You want to play mp3 files?
Convert them to ogg files and run them through the command block via a 'disco' computer.
Want to play midi files?
Use my music program. http://www.computercraft.info/forums2/index.php?/topic/14793-command-block-music-composition/
#140520 music?
Posted by
reububble
on 17 August 2013 - 07:31 PM
in
Ask a Pro
You can listen to .ogg files now.
/playsound <filepath>
mp3s can be converted to oggs. Thus mp3s can be effectively be played.
In minecraft without ComputerCraft even!
If you're interested in some good music programs in CC I have a list I'm making, here it is so far
Iron_NoteBlock_Sequencer
Command_Block_Music_Composition
NoteBlocks_MusicMaker
Snged-v10_MiscPeripherals
Iron_Noteblock_NBS_music
ModTrack_Music_Creator
CCTunes_&_NoteBlock-Hero
Aperture_Science_Jukebox
Iron_NoteBlock_API
The ONLY one which doesn't require any extension or a large scale piano structure, is mine, the 2nd from the top.
#140435 (MiscPeripherals) Music Composition! MIDI(&NBS) conversion
Posted by
reububble
on 17 August 2013 - 11:26 AM
in
Media
Feel free to mumbo jumbo if you feel like it and this page isn't closed
- ComputerCraft | Programmable Computers for Minecraft
- → reububble's Content


