If i remember correctly, if you use numbers you simply have to not use them in the script
Playsound(custom.party) will play any of the following, randomly picked
party1
party2
party3
That will be handy (assuming you're 100% correct here), for making a "Jukebox!" key, so I can press a button and add some music. I already had success with a two minute long song I wanted to load in... so a Jukebox is the next logical step in the learning curve.
I should have mentioned, in my earlier post, that you can't just use the "Stop!" command, to stop the music/sound you started playing... you just have to ride it out, until it's finished. And, I'm going to need to add a time delay between having the Song of Time trigger to play, and the actual time jump happen. I want it to be just like in Legend of Zelda, because I'm retro like that.
Thanks again man, and have another +1 to your rep for the added information.
Edit: And now, I've got something nice for people who want to use my script...
1) A revised version, that ~waits~ until you've played the full Song of Time:
$${IF(TICKS>12000); PLAYSOUND("custom.songoftime"); WAIT(10); ECHO(/time day); WAIT(1); LOG("Dawn of Next Day"); endif;}$$
Oh, and if you do NOT want to have to wait until 18:00 to trigger the time change script, you'd only need this:
$${PLAYSOUND("custom.songoftime"); WAIT(10); ECHO(/time day); WAIT(1); LOG("Dawn of Next Day"); endif;}$$
This will work for anyone who wishes to use it. I'm also using a "Song of Double Time" script, that advances the time to sunset. Just replace "/time day" with "time night". Works quite nicely, though you do need to edit the wait time to match the play time of your songofdoubletime.ogg file.
Mumfrey you forgot the PROMPT() window in the text file area. The one that helps you remember the params
You mean the context help? That's on purpose since PROMPT is experimental right now and it's a use-at-own-risk command. If you want the help for it then change the hidden="true" to false on the relevant node in /lang/macros/scripting/en_GB.xml inside the mod file. I'll make it visible in release once the issues are worked out.
You mean the context help? That's on purpose since PROMPT is experimental right now and it's a use-at-own-risk command. If you want the help for it then change the hidden="true" to false on the relevant node in /lang/macros/scripting/en_GB.xml inside the mod file. I'll make it visible in release once the issues are worked out.
Ah.
Also, you pretty much broke negative yaws and pitches in LOOK(yaw,pitch,time) by adding relative. Kind of like GETID() and GETIDREL()
Sweet freaking party! You get a +1 rep for this, because I got it working perfectly with only a tiny bit of extra research.
So for anyone (especially OneGoodReason) who wants to know what to do:
1) You need to ensure that your sound file is a .ogg audio file. You can use any number of conversion tools to do this, but I prefer to use Foobar 2000.
You'll need to, of course, download the oggenc.exe file to allow you to convert files with Foobar. You can find that, here: http://www.vorbis.co...1.0.1-win32.zip
2) Place the converted .ogg music file in this folder:
C:\Users\<yournamehere>\AppData\Roaming\.minecraft\mods\macros\sounds
3) Assign the following to ~any~ key, OnEvent macro, or Button:
$${PLAYSOUND("custom.test");}$$
4) Enjoy being able to play your own music, with the press of a button!
For those who want to have events occur while playing music, it works quite simply. I've already done the script required for a "Play the Song of Time, and return to Dawn of Next Day" macro, which you can find here:
$${IF(TICKS>12000); PLAYSOUND("custom.songoftime"); ECHO(/time day); WAIT(1); LOG("Dawn of Next Day"); endif;}$$
From what I read earlier, you should NOT use ~any~ numbers in your filename! So don't do "test1.ogg" and "test2.ogg", because it likely won't work.
Enjoy!
Awesome! I currently have it set up with the bass.ogg from the Minecraft files for now, but once I think of a better sound I'll try your method to make a custom sound.
Just to clarify one thing that confused me at first, if you were to name the file "mysound.ogg" you should type it like:
I apologize if this was already discussed, but apparently this mod blocks out all my minecraft sounds. I've done several troubleshooting tests, such as clearing my minecraft jar and testing to see if other mods cause this, however, the results show that this mod does block out all minecraft sounds. I can't really provide any evidence or error messages. It just blocks it out. Is there anyway this could possibly be investigated?
I apologize if this was already discussed, but apparently this mod blocks out all my minecraft sounds. I've done several troubleshooting tests, such as clearing my minecraft jar and testing to see if other mods cause this, however, the results show that this mod does block out all minecraft sounds. I can't really provide any evidence or error messages. It just blocks it out. Is there anyway this could possibly be investigated?
This was not the mod's fault, it is mac's.
backup your minecraft.jar, force update. Open both jars and put the fresh com folder into the modded com folder.
Rollback Post to RevisionRollBack
Thanks to Mumfrey for creating this awesome mod! The Macro / Keybind Mod. If you ever need to contact me asap, go to the server: mc.synapsehlp.com
This was not the mod's fault, it is mac's.
backup your minecraft.jar, force update. Open both jars and put the fresh com folder into the modded com folder.
By modded com folder, do you mean the com folder within the zip file of the mod?
You don't need negative yaws or pitches, just add 360.
Yay! You just answered a question I was about to ask. I'm making a "If the light level is below 10, turn to the left, place a Torch, then face forward again" script, so I can be even lazier than I already was being.
I should point out that this doesn't check if a player is returning/entering "Vanish", so you might end up annoying the Server Owner, and his/her Admins and Moderators if they use Vanish regularly. And, no, this isn't a failing of Macro / Keybind, it's just how Vanish operates.
Awesome! I currently have it set up with the bass.ogg from the Minecraft files for now, but once I think of a better sound I'll try your method to make a custom sound.
Just to clarify one thing that confused me at first, if you were to name the file "mysound.ogg" you should type it like:
$${PLAYSOUND("custom.mysound");}$$
Sorry for the delay, but yes, that's exactly correct. The reason you are putting "custom.mysound", is because "custom" tells your client to go directly to the sounds folder, instead of having to type out the entire directory path. I think the reason you don't need to type in: "custom.mysound.ogg", is because Macro / Keybind already knows it's looking only for .ogg audio files, and thus you don't need the extension, either.
I wish you luck, in making your custom sounds. I've gone nuts with making more "Audio Scripts" (I have even made a "Summon the Piggy!" script that spawns a Pig, and gives you both a Saddle and Carrot on a Stick, after the game plays "Epona's Song")... so I'm more than happy to assist with further questions.
Especially because your question is what got this all started, in the first place.
I should have mentioned, in my earlier post, that you can't just use the "Stop!" command, to stop the music/sound you started playing... you just have to ride it out, until it's finished. And, I'm going to need to add a time delay between having the Song of Time trigger to play, and the actual time jump happen. I want it to be just like in Legend of Zelda, because I'm retro like that.
Thanks again man, and have another +1 to your rep for the added information.
Edit: And now, I've got something nice for people who want to use my script...
1) A revised version, that ~waits~ until you've played the full Song of Time:
2) A direct MediaFire download for "songoftime.ogg", for anyone who wishes to use it:
http://www.mediafire.com/?tdz7bary5567r04
Oh, and if you do NOT want to have to wait until 18:00 to trigger the time change script, you'd only need this:
This will work for anyone who wishes to use it. I'm also using a "Song of Double Time" script, that advances the time to sunset. Just replace "/time day" with "time night". Works quite nicely, though you do need to edit the wait time to match the play time of your songofdoubletime.ogg file.
Man... this is some amazingly fun stuff!
You mean the context help? That's on purpose since PROMPT is experimental right now and it's a use-at-own-risk command. If you want the help for it then change the hidden="true" to false on the relevant node in /lang/macros/scripting/en_GB.xml inside the mod file. I'll make it visible in release once the issues are worked out.
Ah.
Also, you pretty much broke negative yaws and pitches in LOOK(yaw,pitch,time) by adding relative. Kind of like GETID() and GETIDREL()
You don't need negative yaws or pitches, just add 360.
onPlayerJoin
$${Echo("Hello, %JOINEDPLAYER%")}$$
why do you want to spam a chat message >=/?
bind it to the hold state of a key hold macro
'Cause tomorrow spring is here
Awesome! I currently have it set up with the bass.ogg from the Minecraft files for now, but once I think of a better sound I'll try your method to make a custom sound.
Just to clarify one thing that confused me at first, if you were to name the file "mysound.ogg" you should type it like:
Thanks. Can you explain more on num 2? I'm bad at this lol
bind <the chat message> to [the "hold" state] of a <<key state> macro>
in other words:
'Cause tomorrow spring is here
And a question, while I'm here. When in chat, I right click somewhere and a little menu pops up. What do these features do?
This was not the mod's fault, it is mac's.
backup your minecraft.jar, force update. Open both jars and put the fresh com folder into the modded com folder.
It doesn't matter, they don't overlap at all.
By modded com folder, do you mean the com folder within the zip file of the mod?
I should point out that this doesn't check if a player is returning/entering "Vanish", so you might end up annoying the Server Owner, and his/her Admins and Moderators if they use Vanish regularly. And, no, this isn't a failing of Macro / Keybind, it's just how Vanish operates.
Sorry for the delay, but yes, that's exactly correct. The reason you are putting "custom.mysound", is because "custom" tells your client to go directly to the sounds folder, instead of having to type out the entire directory path. I think the reason you don't need to type in: "custom.mysound.ogg", is because Macro / Keybind already knows it's looking only for .ogg audio files, and thus you don't need the extension, either.
I wish you luck, in making your custom sounds. I've gone nuts with making more "Audio Scripts" (I have even made a "Summon the Piggy!" script that spawns a Pig, and gives you both a Saddle and Carrot on a Stick, after the game plays "Epona's Song")... so I'm more than happy to assist with further questions.
Especially because your question is what got this all started, in the first place.
No, the com folder of the minecraft.jar
Please help asap
Ban me, I dare you
Minecraft seems to freeze on the loading screen when I do this. Hmm. I'm assuming you've done this procedure before?