The Dink Network

about stopping music and general scripting

August 14th 2012, 01:50 PM
old.gif
swampbag
Peasant She/Her Sweden
Git offa ma property! 
Ah, once again the search bar has failed to work in my favor...
I need the procedure to stop - or rather pause - the music in a script.
Otherwise, I don't have much information about more advanced scripting, but just what is available in an introduction to Dmod making, so my big question is: where do I get the rest? At least some more involved stuff (and don't get me wrong, that tutorial was great for beginners).
Right, thanks for the help.
August 14th 2012, 01:54 PM
pq_knight.gif
ExDeathEvn
Peasant He/Him New Zealand rumble
"Skinny Legend" 
stopmidi();
playmidi("thetune.mid");
loopmidi(1);

Try the official DinkC reference. I use the actual book, but theres a text/help file somewhere.
And theres a loop function post I remembered seeing for the music to.
August 14th 2012, 01:55 PM
old.gif
swampbag
Peasant She/Her Sweden
Git offa ma property! 
Of course...
thanks, should add for good effect
August 14th 2012, 01:56 PM
pq_knight.gif
ExDeathEvn
Peasant He/Him New Zealand rumble
"Skinny Legend" 
Editing post, underscores are incorrect >_<
(just woke up, need cawfeh).
August 14th 2012, 02:00 PM
wizardg.gif
leprochaun
Peasant He/Him Japan bloop
Responsible for making things not look like ass 
I'm pretty sure when you download dink or windinkedit, you also get the DinkC reference guide. If you don't have it…

FANCY LINK THAT IS ALSO FANCY!

That's a very helpful file, it's been very kind to me, so don't you hurt it.
August 14th 2012, 02:04 PM
wizardb.gif
Kyle
Peasant He/Him Belgium
 
I swear by the physical copy of the reference guide. I sometimes read it on the toilet for fun and inspiration.........
August 14th 2012, 02:09 PM
old.gif
swampbag
Peasant She/Her Sweden
Git offa ma property! 
Ok, so it seems I can't altogether stop the music if I have it on loop...that sucks since I want to be able to loop music.
August 14th 2012, 02:15 PM
old.gif
swampbag
Peasant She/Her Sweden
Git offa ma property! 
I noticed. Hehe, enjoying the comments,,,thanks for that info, Kyle.
August 14th 2012, 02:26 PM
pq_knight.gif
ExDeathEvn
Peasant He/Him New Zealand rumble
"Skinny Legend" 
No, if its on loop and you try to stop it (as mentioned in my link) it basically resets the midi to the start instead. Its one way to do that, however.

Just read Sparrowhawks post that I linked to and you'll have that issue fixed.
August 14th 2012, 02:30 PM
old.gif
swampbag
Peasant She/Her Sweden
Git offa ma property! 
So you mean I just spent all that time editing the function to end the music every second? Fifteen minutes of my time wasted...
Well, that'll simplify things.
August 14th 2012, 02:35 PM
custom_skull.gif
Skull
Peasant He/Him Finland bloop
A Disembodied Sod 
One thing you are going to find out about creating D-Mods is that you'll end up wasting a looooooot of time.
August 14th 2012, 02:43 PM
custom_robj.png
Robj
Jester He/Him Australia
You feed the madness, and it feeds on you. 
"Fifteen minutes of my time wasted..."

Fifteen minutes of my time wasted as well... while you were scripting this, I crawled in through your chimney and made my way to the kitchen, only to find that you're cookie tin was empty.. that only took 2 minutes though, because I'm a ninja... but it seems it's much more difficult to make my way up your chimney, than down.
August 14th 2012, 02:49 PM
custom_skull.gif
Skull
Peasant He/Him Finland bloop
A Disembodied Sod 
So you're saying you're a ninja when you can get down a chimney but not up? I thought anyone can get down a chimney but only ninjas can get back up.
August 14th 2012, 02:53 PM
old.gif
swampbag
Peasant She/Her Sweden
Git offa ma property! 
Allright, everything's working fine!

In regards to your comment, Skull, I hope to be wasting a lot of time on dmods in the future, just as long as they work in the end.
Oh, and we have no chimney, you must have the wrong house (hah, my address is safe from ninjas...for now). Also, you would have had to have been veeeery sneaky, considering I'm sitting with my lappy in the kitchen now.
August 14th 2012, 03:00 PM
wizardg.gif
leprochaun
Peasant He/Him Japan bloop
Responsible for making things not look like ass 
Robj actually hypnotizes his prey so they forget he was ever there.
August 14th 2012, 03:34 PM
pillbug.gif
Pillbug
Peasant He/Him United States
Love! True love! 
Note: Robj has been known to build chimneys into houses and then deconstruct them after stealing your cookies.
August 14th 2012, 03:39 PM
old.gif
swampbag
Peasant She/Her Sweden
Git offa ma property! 
Heh, I see - throughout the rest of the floors of the building as well, then?
August 14th 2012, 03:41 PM
pillbug.gif
Pillbug
Peasant He/Him United States
Love! True love! 
He's very persistent.
August 14th 2012, 03:58 PM
custom_marpro.png
Marpro
Peasant He/Him bloop
 
You might find these tutorials handy as well - if you haven't noticed them already.

Sorry for going on-topic again... /Party pooper
August 14th 2012, 04:04 PM
old.gif
swampbag
Peasant She/Her Sweden
Git offa ma property! 
Ah, awesome stuff, but I'll have to check it out when I'm not too tired to be bothered to try to think.
August 14th 2012, 04:19 PM
wizardg.gif
Paul
Peasant He/Him United States
 
I've noticed that in some versions of Dink (Aural+), you can stop a looping midi. So on the off chance someone wants to create the effect of resenting to beginning of the track, they shouldn't rely on that trick. And I guess you already figured this out, but just for clarity sake, all you have to do is loopmidi(0); before stopping the music, then loopmidi(1); after you start playing music again.
August 15th 2012, 09:53 AM
custom_iplaydink.gif
iplaydink
Peasant He/Him Sweden
Hmm.. 
Wow, another swedish dmodder!
Well.. they are the best after all
August 15th 2012, 03:55 PM
custom_marpro.png
Marpro
Peasant He/Him bloop
 
Well.. they are the best after all

Elementary, my dear Watson.

<Sipping on a pipe>
August 15th 2012, 06:53 PM
dragon.gif
Quiztis
Peasant He/Him Sweden bloop
Life? What's that? Can I download it?! 
This is quite the occasion, gentlemen.
August 16th 2012, 04:01 AM
slimeg.gif
metatarasal
Bard He/Him Netherlands
I object 
Hello, nice to hear you found my introduction to DMOD making useful. It's always nice to recieve compliments. To really learn more about DMODing I'm afraid you really have to do it the old fashioned way: By learning while doing and consulting the DinkC reference. And looking at other DMODs to see how they did things, of course.

And of course a warm welcome here, always nice to see new people.

EDIT: And, of course, you can always ask.