Announcement

Collapse
No announcement yet.

MAKI Cheats

Collapse
This is a sticky topic.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #31
    Originally posted by frisbeemonkey
    Hey Lion King,
    No problem about the mute script, I'll be updating the MAKI skin soon so you can see it in action. Just have to finish up commenting this MouseOverDrawer.
    There is a script that does something like what you want for the timer, check out the Skinning/Scripting Tips And Tricks sticky. The post is by Spleen and is entitled Sonique2 Timer.
    I don't know if you can limit the ticker to scrolling only one direction in MAKI. I am guessing not, but that's only a guess.
    Back to commenting,
    ~FrisbeeMonkey
    actually, about the songticker thingy.. it is possible and has already been made by Gonzotek.
    I don't have any link but talk to him about it, he'll know..

    -Plague
    Winique work-in-progress (download) | Stargate:Winamp - SG1 Edition | D-Reliction | wasabi.player skin (plague-edit)
    Winamp3_Default skin (plague fixes) | Opal Redemption | X-Slant | wa2skin.wac

    Comment


    • #32
      It's possible, but the code is kinda ugly right now, I did it for kicks one afternoon and haven't updated it since. Basically what it does is to get the current songinfo and put it in a string variable and then start a timer where it takes the first character in the string, moves it to the end, then updates the text box. The timer keeps running until the song changes, the player is paused, stopped, or quit (or the skin changes, etc.).

      The overall effect is more Winamp2 like, the "scroll" is choppy, but I hate the way Winamp3 scrolls backwards half the time...it's a useless function(unless you happen to read right to left).

      I'll update the script for 3.0 final when I get a few minutes, as it was also an easy to use example of putting a script in a standardframe.

      -=Gonzotek=-
      I was away for a while.
      But I'm feeling much better now.

      Comment


      • #33
        Stop after current song + crossfade

        frisbeemonkey : Something to add to your "stop after current song" script. If crossfade is enabled, winamp will stop to early, so when the button is pressed: (1) Check if crossfade is enabled or not, store it in a boolean. (2) Turn off crossfade. When winamp has actually stopped playing the song, you should revert the crossfade-setting to what it was before.

        Just something I thought of yesterday evening


        PJay

        Comment


        • #34
          Wow, good thought there, PJay. I never use crossfade, so the problem didn't even cross my mind(no pun intended). I'll be away this weekend, but I'll work on it Sun or Mon.
          Until then,
          ~FrisbeeMonkey
          My Skins
          Skinning References: MAKI Scripts - GUIDs & Button Actions - Skinner's FAQ
          Skin Help: MAKI Cheats - Component Skinning - Skinning Tutorial

          Comment


          • #35
            Stop After Song, now with CrossFade support

            // USING THIS SCRIPT:
            //*****************************************************************************
            // 1. Define the following in your XML:
            // <togglebutton
            // id="StopAfterSong"
            // x="147" y="89"
            // image="player.StopAfterSongOff"
            // downImage="player.StopAfterSongOn"
            // activeImage="player.StopAfterSongOn"
            // tooltip="StopAfterSong"
            // />
            // Change the position(x,y) to the specifics of your button,
            // 2. Make sure your ticker is called "SongTicker" and is in the same group as
            // "StopAfterSong" If you don't have a ticker, add one now. Also, have
            // a CrossFade button somewhere in the group or one of it's subgroups. Make
            // sure it is a togglebutton, and that it is named "CrossFade".
            // 4. Copy this script (and StopAfterSong.maki) to your scripts folder.
            // 5. If you don't have StopAfterSong.maki, compile this script.
            // 6. Add this line to the group that contains your animated layer
            // <script id="StopAfterSong" file="scripts/StopAfterSong.maki"/>
            // 7. Refresh your skin(F5) and try it out.
            //*****************************************************************************
            Attached Files
            My Skins
            Skinning References: MAKI Scripts - GUIDs & Button Actions - Skinner's FAQ
            Skin Help: MAKI Cheats - Component Skinning - Skinning Tutorial

            Comment


            • #36
              Clock Script

              //-----------------------------------------------------------------------------
              // clock.m
              //
              // Example of a Clock Script
              // Displays the current time in the Timer when not playing.
              //
              // created by FrisbeeMonkey
              //-----------------------------------------------------------------------------

              // USING THIS SCRIPT:
              //*****************************************************************************
              // 1. Define a Timer in your XML, something like:
              // <!-- Timer -->
              // <Text
              // id="Timer"
              // display="time"
              // x="194" y="10"
              // w="70" h="18"
              // font="player.timernum"
              // align="right"
              // shadowcolor="0,0,0"
              // shadowx="0" shadowy="1"
              // timecolonwidth="7"
              // />
              // 2. Make sure its id is "Timer".
              // 3. Copy this script (and clock.maki) to your scripts folder.
              // 4. If you don't have clock.maki, compile this script.
              // 5. Add this line to the group that contains your Timer:
              // <script id="clock" file="scripts/clock.maki"/>
              // 6. Refresh your skin(F5) and try it out.
              //*****************************************************************************
              Attached Files
              My Skins
              Skinning References: MAKI Scripts - GUIDs & Button Actions - Skinner's FAQ
              Skin Help: MAKI Cheats - Component Skinning - Skinning Tutorial

              Comment


              • #37
                Balance

                Hi there,
                first of all, thank you very much for the maki scripts. I find them very useful because I’m a total looser in scripting. That’s exactly why I’m asking this question. I’m planning to implement a balance function into my skin that should work like the animated volume and the autorepeatvolume buttons. I wonder if you could tell me how to modify the scripts so that they don’t change the volume but the balance.
                Thank you...and keep but the great work

                Comment


                • #38
                  Re: Balance

                  Originally posted by proton078
                  Hi there,
                  first of all, thank you very much for the maki scripts. I find them very useful because I’m a total looser in scripting. That’s exactly why I’m asking this question. I’m planning to implement a balance function into my skin that should work like the animated volume and the autorepeatvolume buttons. I wonder if you could tell me how to modify the scripts so that they don’t change the volume but the balance.
                  Thank you...and keep but the great work
                  Map is declared like element:
                  code:
                  <bitmap
                  id="player.balance.map"
                  file="eq/balance-map.png"
                  />


                  In XML set Balance animated layer like this:
                  code:
                  <AnimatedLayer
                  id="anlBalance"
                  x="20" y="20"
                  w="32" h="32"
                  image="player.balance.knob"
                  move="0"
                  />


                  In XML set Balance slider like this:
                  code:
                  <slider
                  id="sliBalance"
                  action="PAN"
                  x="20" y="20"
                  w="100" h="10"
                  thumb="slider.thumb.norm"
                  downThumb="slider.thumb.down"
                  />


                  Compile this (it should work, haven't tested this):
                  code:
                  #include "../../../lib/std.mi"

                  Function updateBalance(int v);

                  Global AnimatedLayer anlBalance;
                  Global Map mapBalance;
                  Global Slider sliBalance;
                  Global int BalChanging=0;

                  System.onScriptLoaded() {
                  // get anlBalance, mapBalance and sliBalance from XML...

                  mapBalance = new Map;
                  mapBalance.loadMap("player.balance.map");
                  sliBalance.hide(); // hide slider

                  updateBalance(sliBalance.getPosition()+1);
                  }

                  System.onScriptUnloading() {
                  delete mapBalance;
                  }

                  anlBalance.onLeftButtonDown(int x, int y) {
                  BalChanging=1;
                  x = x - anlBalance.getLeft();
                  y = y - anlBalance.getTop();
                  int v = mapBalance.getValue(x,y);
                  updateBalance(v);
                  }

                  anlBalance.onMouseMove(int x, int y) {
                  if (BalChanging) {
                  x = x - anlBalance.getLeft();
                  y = y - anlBalance.getTop();
                  if (mapBalance.inRegion(x,y)) {
                  int v = mapBalance.getValue(x,y);
                  updateBalance(v);
                  }
                  }
                  }

                  anlBalance.onLeftButtonUp(int x, int y) {
                  if (BalChanging) {
                  x = x - anlBalance.getLeft();
                  y = y - anlBalance.getTop();
                  if (mapBalance.inRegion(x,y)) {
                  int v = mapBalance.getValue(x,y);
                  updateBalance(v);
                  }
                  BalChanging=0;
                  }
                  }

                  updateBalance(int v) {
                  int k = v/255 * 16;
                  anlBalance.gotoFrame(k);
                  sliBalance.setPosition(v);
                  }

                  Comment


                  • #39
                    doesn't work for me

                    Thanks for the help but I still have a problem with the balance. It isn’t working the way the volume does (volume.maki, posted earlier), I’ve tried to change the volume.m to suit my needs, but I can’t find a function that is similar to System.GetVolume and setVolume for balance. Is there a function?

                    Comment


                    • #40
                      Re: doesn't work for me

                      Originally posted by proton078
                      Thanks for the help but I still have a problem with the balance. It isn’t working the way the volume does (volume.maki, posted earlier), I’ve tried to change the volume.m to suit my needs, but I can’t find a function that is similar to System.GetVolume and setVolume for balance. Is there a function?
                      Sorry, I wasn't clear enough.

                      Intro:
                      Functions "getBalance()" and "setBalance()" don't exist yet.
                      So, I've used small trick. Put one slider, that has action="PAN"
                      parameter, in your EQ or any window. That's balance. I know that's a
                      bit strange, but Nullsoft uses that.
                      I've linked actions on animated layer (anlBalance) with that slider
                      so when you "rorate" anlBalance, you automaticaly change balance.

                      About my script:
                      When Wa3 loads the script it will hide that slider cause it will
                      appear in the skin and it shouldn't. You use that slider's position
                      for getting balance value. 0 is far left and 255 is far right. 128 is
                      center position.
                      When you click that animated layer it registers mouse actions and
                      sets animated layer frame accordingly. Also, as you set anlBalance,
                      you set sliBalance (balance slider) position which then sets balance.

                      I think this was clear enough...

                      Comment


                      • #41
                        Re: Re: doesn't work for me

                        Originally posted by spleen

                        ...
                        I think this was clear enough...
                        Yes it was, thank you.

                        Comment


                        • #42
                          Animated Volume Correction

                          In trying to help someone use the script, I found a typo in the Animated Volume directions. Step 2 should be:
                          // 2. Define your gradient map with your other elements using:
                          // <bitmap id="player.map.volume" file="player/player-map-volume.png"/>
                          // If you need help creating a map file, check:
                          // http://www.stefanweb.com/wa3/tutorials.html#UsingMaps

                          Where the bold type shows the correction.
                          Sorry for any confusion or trouble this caused anyone.
                          ~FrisbeeMonkey
                          My Skins
                          Skinning References: MAKI Scripts - GUIDs & Button Actions - Skinner's FAQ
                          Skin Help: MAKI Cheats - Component Skinning - Skinning Tutorial

                          Comment


                          • #43
                            AARGH! Another Animated Volume correction.

                            So much for these being helpful, I've become aware of yet another problem with the volume script. If you were sure you were doing everything right, yet for some reason you kept getting a Null Object Called guru meditation... that would be my fault. I changed the .m but forgot to update the .maki in my zip file that I posted. Rather than me post another zip, you can just compile the .m file in the archive and that will work as is or go to this thread and download the volume.zip found there.
                            ~FrisbeeMonkey
                            PS. Any requests for any other simple scripts? I'm currently out of ideas.
                            My Skins
                            Skinning References: MAKI Scripts - GUIDs & Button Actions - Skinner's FAQ
                            Skin Help: MAKI Cheats - Component Skinning - Skinning Tutorial

                            Comment


                            • #44
                              Originally posted by frisbeemonkey
                              PS. Any requests for any other simple scripts? I'm currently out of ideas.
                              I'll soon (tommorow) post one script that uses radarboy's idea.
                              It uses knob as a seeker. You choose direction, clockwise or
                              anticlockwise, and Wa3 seeks forward or backward. Seeking is faster
                              as you move further away from middle position. You'll need a knob
                              animation and a map.

                              When I finnish it, I'll post it here...

                              NOTE:
                              This script can be found in this thread, but that's just a preview
                              version. It still has some bugs that I plan to fix.

                              Comment


                              • #45
                                Animation on startup

                                I´ve got a question,I´m working on a Car Stereo,it`s nearly done but what is missing is an Animation which starts when WA3 is loaded,I´ve got the PNG file with all the frames necessary for the Animation,my problem is how can i do this now? The Animation is like the OEL-Display Movies known from Pion**r/Kenw**d car Stereos.The area where the animation should start is also the display area where the vis,timer,songticker are.It`s my first skin for WA3 and so far my experience is weak.Could someone help me out with a XML Code and perhaps a Script?

                                Thanks in advance for your help

                                PS: sorry for my bad english.

                                Comment

                                Working...
                                X
                                😀
                                🥰
                                🤢
                                😎
                                😡
                                👍
                                👎