![]() |
#202 |
The Shark
(Forum King) |
Ok everyone, I have started making yet another script. I probably have everything wrong, because I did not have any other scripts to find code actions from, as I think this is the first of its kind. Can someone please help?
(it is to rotate a whole group) code: thanks, hh |
![]() |
![]() |
![]() |
#203 |
Senior Member
|
code: here is what it should look like, but the red highlighted action doesn't exist, to my knowledge. hammerhead, this is just a suggestion but why don't you look in std.mi when you start a script to see if what you are "coding" is even code? Blah! |
![]() |
![]() |
![]() |
#205 |
Senior Member
|
i just thought it might help you if you would look. when i start to code i have std.mi open, RhinoTrip's site , and any examples i can find. it make it easier to code if you can find what you're looking for and how to use it.
Blah! |
![]() |
![]() |
![]() |
#206 |
Guest
Posts: n/a
|
Okay, so, we've all seen the clever little script for MMD3 that does the snazzy vis. I was wondering if somebody felt like coding something a little simpler, something that reads the vu meter and then sets the alpha of a designated layer accordingly? The result desired is just a layer that flashes to the music. Like in hammerhead's moonkore skin, only done without those godforsaken anims. Anybody? Anybody at all??
|
![]() |
![]() |
#207 | |
Major Dude
Join Date: Sep 2002
Location: ?
Posts: 1,473
|
Quote:
layer.setalpha(system.getleftvumeter()); would that work? |
|
![]() |
![]() |
![]() |
#208 |
Guest
Posts: n/a
|
It looks right, but my biggest question is that of the scale on the VU? What's the max value? If it's 255, then that should work. What would trigger it tho? Set a variable that is equal to the current VU setting, and then have it compare that value to the VU itself?
if (vuvalue != getleftvumeter()){ layer.setalpha(system.getleftvumeter()); } I'm thinking a timer is needed somewhere too? Does this look remotely correct? |
![]() |
![]() |
#209 |
Major Dude
Join Date: Sep 2002
Location: ?
Posts: 1,473
|
max vu meter is 255 for each side(left/right)
timer.setdelay(30); system.onplay() {timer.start();} system.onstop() {timer.stop(); layer.setalpha(255); } timer.ontime() {layer.setalpha(system.getleftvumeter();} that seems about right. |
![]() |
![]() |
![]() |
#210 |
Major Dude
|
You should stop the timer on pause and start it on resume as well. There is no reason to keep checking if its paused.
|
![]() |
![]() |
![]() |
#211 | |
Junior Member
|
![]() Quote:
Anyway... I have a toggle button and want it to control an EQ drawer. I need to implement the following functionality. 1. Clicking toggles drawer. 2. Button toggle state stays in sync with drawer (e.g closed=image open=downImage) Here is my button xml: ------------- [XML] <togglebutton id="Eq" x="227" y="50" image="btn.player.winCall.eq" downImage="btn.down.player.winCall.eq" activeImage="btn.down.player.winCall.eq" tooltip="Equalizer" action="player.main.eq.onLeftButtonUp" param="Eq" />[/XML] ------------- As you can see I made a feeble attempt at defining an action in my button. Would this work if I defined the function as extern and recompiled drawer.m? I admit I am completely lost... ![]() |
|
![]() |
![]() |
![]() |
#212 | |
Junior Member
|
Quote:
From Internet Explorer, right click on a .m file Choose "open with" Then find mc.exe Then whenever you need to compile your scripts just choose "open with"|"mc" from the explorer right click menu. Winamp should have given this program an icon... ![]() |
|
![]() |
![]() |
![]() |
#213 |
Junior Member
|
Re: Mute script
I'm not sure how you might fix this (or if you care to).
If mute is activated while you shut down the player, the volume gets saved as zero. Then when you launch the player the volume is zero but the mute is not on and the old volume setting is lost. Really, it's nothing, but I thought I'd share. :hee: P.S. frisbeemonkey ![]() ![]() |
![]() |
![]() |
![]() |
#214 |
Senior Member
|
would you be able to make a dock and undock script for us fellas?
|
![]() |
![]() |
![]() |
#215 |
Major Dude
Join Date: Oct 2001
Location: At my house in a city in Canada
Posts: 1,336
|
I know how you could fix that mute problem
something to the effect of this code: hope that isn't too incoherent for you I don't know maki too well ![]() ![]() |
![]() |
![]() |
![]() |
#216 | |
Junior Member
|
Quote:
In the object you want to "dock" to just type code: replacing x and y coordinates with the snappoints for your components. Replace the id with something that makes sense for you. Then do the exact same for the second object. Be sure that the id's for objects that can snap into place are the same in both components. It automatically creates docking along those coordinate lines. Is that what you were looking for... For a better explanation see (http://www.winamp.com/nsdn/winamp3x/...appoints.jhtml) |
|
![]() |
![]() |
![]() |
#217 | |
Junior Member
|
Re: Re: Drawer
Quote:
code: One thing to watch out for. If you load your drawer group in your conatiner definition before you load the main group and drawer.maki is defined in the drawer group, the script won't see it... I had to change the script and point DrawerGrp to code: Then I declared the script after all three groups. To toggle the button when the drawer is closed I added the following line to Drawer.onLeftButtonUp open and close sections respectively. code: code: Anything I forgot? This seems to work perfectly. Thanks again frisbeemonkey for the original drawer script. i couldn't have started scripting without your help. Last edited by Thrasher; 16th December 2002 at 22:52. |
|
![]() |
![]() |
![]() |
#218 |
Member
|
how do i make a vis. a diffrent object? not like in mmd but like we do with volume n seek. just a diff image?
|
![]() |
![]() |
![]() |
#219 |
Major Dude
Join Date: Jun 2002
Posts: 851
|
Welcome to the forums, Thrasher. Glad you were able to figure out your drawer problem, sorry I haven't been around in awhile. Good catch on the mute script, I didn't even think of that. I think the best fix would be to set the volume back to where it was when the script unloads if mute is still on. Saving the mute status and the volume wouldn't help if you were switching to a skin without a mute button.
ezkiel, what do you mean by a docking script. If you want to set where things dock together, Thrasher was right, use snap-points. If you want to make two things dock when neither are the main player, look for a docking script by Gonzotek that did something like that. If you want a script that triggers an event when two things dock or undock, I think you are out of luck. As far as I have been able to tell, dock() and undock() don't do anything in 488. KornBizkit, you can either make a custom vis like in MMD or change the colors of the built-in vis. Unfortunately you cannot change the image any other way. Hope this helps, ~FrisbeeMonkey My Skins Skinning References: MAKI Scripts - GUIDs & Button Actions - Skinner's FAQ Skin Help: MAKI Cheats - Component Skinning - Skinning Tutorial |
![]() |
![]() |
![]() |
#220 | |
Guest
Posts: n/a
|
Quote:
|
|
![]() |
![]() |
#221 |
Senior Member
Join Date: Sep 2002
Location: Santa Cruz, Bolivia
Posts: 243
|
i'm using the animated volume control script and i don't know is there's a default number of frames in the animated layer or i can make the number of frames that i want, this thread is very helpfull
|
![]() |
![]() |
![]() |
#222 |
Senior Member
Join Date: Sep 2002
Location: Santa Cruz, Bolivia
Posts: 243
|
i search this thread and i think that a circular animated seek is not in the colection of scripts so i was wondering if anyone know how to to one???
|
![]() |
![]() |
![]() |
#223 |
Major Dude
Join Date: Jun 2002
Posts: 851
|
Both the animated seek and the seek-using-regions scripts can be used to achieve this. I'd suggest the region script. To make it circular, your gradient map should be done to look like the attached picture. Make it the same height and width of your seek graphic. The region script was made by Da_Pipe and is on page 5 of this thread.
My Skins Skinning References: MAKI Scripts - GUIDs & Button Actions - Skinner's FAQ Skin Help: MAKI Cheats - Component Skinning - Skinning Tutorial |
![]() |
![]() |
![]() |
#224 |
Major Dude
|
hey frisbee....i was wondering if there were anyway i could persuade you too make an animted eqalizer script. i saw the ideas posted a while back, but those just run an animation based on a slider, where as i need one that uses regions. i looked through the volume.m to see if i could figure it out, but this is a little much for me. it just needs to use one animation/map 10 times. i hope you can help me out (massive credits on the new skin!!)
Published: OvalAmp | Scythe | Simple Amp(code) | PAD(code) | Classix10k | LayerONE (code) WIP: Aeschere | Manta | Winamp 5 SingleGUI Need some help? How to write a MAKI script | Custom Vis Script | Add a Notifier to Your Skin |
![]() |
![]() |
![]() |
#225 |
Major Dude
Join Date: Jun 2002
Posts: 851
|
Yeah, I could do that. It may be awhile, not gonna be able to spend much time at my computer over the next couple of weeks. The volume script is a good place to start, though. It would really just be a combination of the eq and volume scripts. If you want it really soon, I'd say take a stab at it yourself(although I always recommend that anyways,) otherwise, I'll get to it as soon as I can.
~FrisbeeMonkey My Skins Skinning References: MAKI Scripts - GUIDs & Button Actions - Skinner's FAQ Skin Help: MAKI Cheats - Component Skinning - Skinning Tutorial |
![]() |
![]() |
![]() |
#226 |
Major Dude
|
awsome...il try, but thanks!
Published: OvalAmp | Scythe | Simple Amp(code) | PAD(code) | Classix10k | LayerONE (code) WIP: Aeschere | Manta | Winamp 5 SingleGUI Need some help? How to write a MAKI script | Custom Vis Script | Add a Notifier to Your Skin |
![]() |
![]() |
![]() |
#227 |
Junior Member
|
Hi
I am currently trying to make a skin of my own and in my skin i have a vumeter and i tried the script that DirtyLowMoFo put up and it works fine. However i would like to know how to remove the flicker. I never used MAKI before so still trying to learn what functions exist ![]() I know C++ well so that's no problem. Any ideas what to add? heres the script: code: BTW nice topic frisbeemonkey extremely usefull for us new ![]() ![]() |
![]() |
![]() |
![]() |
#228 |
Junior Member
|
hi mrrabbit,
you could have a look at my vu-script (based on dirtylomofo's), the script is located on page 5 of this thread and called toggle-vu.zip well i did a bargraph-style vu and put three layers with older values of the vu on top of each other (with decreasing alphas..), if you want to have a meter-like vu than you just have to collect more values of the vu, add them up, divide by the number of values and put this to the graphics. it should smoothen the display quite a lot. (it worked with the bargraph..) |
![]() |
![]() |
![]() |
#229 |
Junior Member
|
![]()
Hi
*sigh* server crashed on me while i submitted my post, oh well here goes again ![]() I tested your script and it works fine on MP3 files, however WMA seems to be a bit dodgy both the vu-meter will flick and go dsync for about 5 sec or so. ![]() Looked through the script and saw no alpha values of any kind, no "alpha decreasing" as u stated in ur post? Maybe i got the wrong version. Anyway is there a way to debug scripts in runtime? or debug them at all, i feel sitting with the mc correcting line by line takes a while ![]() BTW i like the error message you get in Winamp when there is an error in the script. Brings back old memories when i was still using my Amiga 500 ![]() Thanks! //Mattias |
![]() |
![]() |
![]() |
#230 |
Junior Member
|
mrrabbit,
your're right about the alpha-decreasing. well, in some way. being a photographer my natural tool is photoshop, so i did the alpha-stuff in the graphics. (thanks to the winamp-crew for using the PNG-format!) the desync might be a dataflow/calculation problem, the VU consumes quite some cpu-power (almost 80% on my P2-400), so if the cpu has to haul all the WMA-data through at the same time, winamp might give the priority to the music. which is okay i think. i haven't had that problem yet because i don't listen to WMA on winamp. |
![]() |
![]() |
![]() |
#231 |
Junior Member
|
Oh now i see the alpha feature, it was the damn WMA that did it
![]() Winamp use 10% of my 2Ghz P4 so CPU power is no problem for me. Thanks for the tips, though i think Winamp has slight problems with the WMA format, some files won't play and some will only play when doubleclicked from desktop ![]() ![]() |
![]() |
![]() |
![]() |
#232 |
Major Dude
|
Spectrum LayerVis
This is a demo made out of a mod I made for a skin. Its basicly a combination of the old vis from Mercury and Russ's Visdata library. It works just like a regular vis but now you can reduce the number of bars to as many as you want (instead of 18) unfortunately it has no fade out and thats the only drawback.
Peace. ![]() Website: Template vbulletin skins by exaltic.com[size=0.75] Skins/Coding: D-Shock, Nebular, Triton [/size] |
![]() |
![]() |
![]() |
#234 |
Forum Pirate
Beta Team Join Date: Oct 2001
Posts: 2,032
|
|
![]() |
![]() |
![]() |
#237 |
Senior Member
|
It was working ok when i posted it. no else has said anything about problems. did you get the one with the fixes? http://forums.winamp.com/attachment....&postid=773576
i'm not sure, if you want i'll take a look at it. i'm pm you my e-mail. Blah! |
![]() |
![]() |
![]() |
#238 |
Senior Member
|
There is an error in the Volume Using Regions. when it loads the map it's trying to load the wrong one. the problem is:
volMap.loadMap("player.shade.map.volume") it should be volMap.loadMap("player.map.volume");. Sorry about the error, i should have seen it earlier. Hammerhead, i e-mailed you back. Blah! |
![]() |
![]() |
![]() |
#240 |
Senior Member
Join Date: Jan 2002
Posts: 252
|
If you want to check which settings you need for your layer fx to work properly, or you just want to test it fast, you can use the addon I wrote for it.
For more info, check this thread: http://forums.winamp.com/showthread....hreadid=121551 PJay |
![]() |
![]() |
![]() |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|