Announcement

Collapse
No announcement yet.

Animated volume bar error...

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Animated volume bar error...

    I've dropped frisbeemonkey's animated volume script (and associated graphics/XML code) into my skin, but I am getting the following error when I try to load my skin:

    Expressiongroup
    File: C:\projects\studio\skinparse.cpp
    Line: 762

    Commenting out the script reference in my XML doesn't change the error, so it appears to be a problem with my XML - one that I can't find, however.

    If anyone's kind enough to glance at my skin and tell me where I'm an idiot, that would be great. Here's my skin
    (applicable XML is in player-elements.xml and player-normal.xml)

  • #2
    your player-normal.xml should look like this:-

    _________________________________________________________________

    <!-- Animated volume bar attempt -->
    <!-- create the group first-->
    <groupdef id="volume.animated">

    <text
    id="songticker" ticker="1"
    display="songname" default="" showlen="1"
    x="85" y="70"
    w="130" h="14"
    font="wasabi.font.default" fontsize="13"
    />
    <text
    id="infoline" ticker="1"
    display="songinfo" default=""
    x="92" y="60"
    w="120" h="11"
    font="wasabi.font.default" fontsize="12" ghost="1"
    />

    <AnimatedLayer
    id="VolumeAnim"
    x="65" y="89"
    w="151" h="24"
    image="player.anim.volume"
    move="0"
    autoplay="0"
    autoreplay="0"
    />
    <slider id="HiddenVolume"
    ACTION="Volume" x="0" y="0" w="40" h="2"
    thumb="player.anim.volume"
    alpha="0"
    />
    <script id="animvolume" file="scripts/volume.maki"/>

    </groupdef>

    <layout id="normal" background="player.main.background">

    <!--then add it to your layout-->
    <group id="volume.animated" x="20" y="20"/>

    <!-- Old Volume Mess >

    <layer
    id="VolumeBar"
    x="64" y="88"
    image="player.bar.volume"
    ghost="1"
    />
    <slider
    id="Volume"
    action="VOLUME"
    x="74" y="89"
    w="151" h="37"
    thumb="player.button.volume"
    downThumb="player.button.volume.down"
    tooltip="Volume"
    />
    <layer
    id="VolumeCover"
    x="67" y="89"
    image="player.volume.cover"
    ghost="1"
    /-->

    <!-- Main buttons -->
    <button
    id="Previous"
    action="PREV"
    x="86" y="120"
    image="player.button.previous"
    downImage="player.button.previous.down"
    tooltip="Previous"
    />
    <button
    id="Stop"
    action="STOP"
    x="107" y="110"
    image="player.button.stop"
    downImage="player.button.stop.down"
    tooltip="Stop"
    />
    <button
    id="Pause"
    action="PAUSE"
    x="129" y="107"
    image="player.button.pause"
    downImage="player.button.pause.down"
    tooltip="Pause"
    />
    <button
    id="Play"
    action="PLAY"
    x="152" y="107"
    image="player.button.play"
    downImage="player.button.play.down"
    tooltip="Play"
    />
    <button
    id="Next"
    action="NEXT"
    x="171" y="110"
    image="player.button.next"
    downImage="player.button.next.down"
    tooltip="Next"
    />
    <button
    id="Eject"
    action="EJECT"
    x="188" y="120"
    image="player.button.open"
    downImage="player.button.open.down"
    tooltip="Eject"
    />

    <!-- Side buttons -->
    <button
    id="Close"
    action="CLOSE"
    x="219" y="47"
    rectrgn="1"
    image="player.button.close"
    downImage="player.button.close.down"
    />
    <button
    id="Minimize"
    action="MINIMIZE"
    x="67" y="50"
    rectrgn="1"
    image="player.button.minimize"
    downImage="player.button.minimize.down"
    />

    <!-- Toggle Buttons -->
    <togglebutton
    id="Shuffle"
    x="233" y="73"
    rectrgn="1"
    image="player.toggle.shuffle.off"
    downImage="player.toggle.shuffle.pressed"
    activeImage="player.toggle.shuffle.on"
    tooltip="Toggle Playlist Shuffling"
    cfgattrib="{45F3F7C1-A6F3-4EE6-A15E-125E92FC3F8D};Shuffle"
    />
    <togglebutton
    id="Repeat"
    x="252" y="113"
    rectrgn="1"
    image="player.toggle.repeat.off"
    downImage="player.toggle.repeat.pressed"
    activeImage="player.toggle.repeat.on"
    tooltip="Toggle Playlist Repeating"
    cfgattrib="{45F3F7C1-A6F3-4EE6-A15E-125E92FC3F8D};Repeat"
    cfgval="2"
    />
    <togglebutton
    id="Crossfade"
    x="263" y="151"
    rectrgn="1"
    image="player.toggle.crossfade.off"
    downImage="player.toggle.crossfade.pressed"
    activeImage="player.toggle.crossfade.on"
    tooltip="Toggle Crossfading Between Tracks"
    cfgattrib="{FC3EAF78-C66E-4ED2-A0AA-1494DFCC13FF};Enable crossfading"
    />
    <togglebutton
    id="pl"
    action="TOGGLE" param="guidl"
    x="47" y="80"
    rectrgn="1"
    image="player.toggle.playlist.off"
    downImage="player.toggle.playlist.pressed"
    activeImage="player.toggle.playlist.on"
    tooltip="Playlist Editor"
    />
    <togglebutton
    id="eq"
    action="TOGGLE" param="eq"
    x="32" y="114"
    rectrgn="1"
    image="player.toggle.eq.off"
    downImage="player.toggle.eq.pressed"
    activeImage="player.toggle.eq.on"
    tooltip="Equalizer"
    />
    <button
    id="MainMenu"
    action="SYSMENU"
    x="24" y="145"
    rectrgn="1"
    image="player.menu"
    downImage="player.menu.pressed"
    tooltip="Main Menu"
    />

    <layer id="black.backdrop"
    x="72" y="11"
    ghost="1"
    image="led.backdrop"
    />
    <text
    id="timer"
    display="time"
    x="108" y="27"
    w="70" h="18"
    font="player.BIGNUM" fontsize="21" align="right"
    timecolonwidth="7"
    />



    <!-- pretty pictures -->

    <layer
    id="SeekBar"
    x="100" y="40"
    w="100" h="20"
    image="player.bar.seek"
    ghost="1"
    />
    <layer
    id="LEDfade"
    x="123" y="29"
    image="player.led.fade"
    ghost="1"
    />

    <!-- Sliders -->

    <slider
    id="Seek"
    action="SEEK"
    x="101" y="40"
    w="98" h="20"
    thumb="player.button.seek.up"
    downThumb="player.button.seek.down"
    tooltip="Seeker"
    />

    </layout>
    _______________________________________________________________

    looks pretty kool aswell
    btw, the volume increases when u drag from right to left(not sure if thats how its supposed to be) & you gonna want more frames than that for your animation (it dissapears if volume is less than 34%).
    Last edited by DirtyLowMoFo; 19 September 2002, 23:21.

    Comment


    • #3
      Or you could just take out the groupdef stuff entirely. I should make the directions to those scripts more clear. I'm pretty sure your code would run fine if you took out the <groupdef .... and </groupdef> lines (from your code, not Dirty's fix.)
      Also, in player-elements.xml, the gradient map bitmap should be named player.map.volume, not player.map.vol. That was my fault, there is a typo in the instructions for using the script. Also, as Dirty pointed out, your volume goes from right(0) to left(full). You can fix that easily by opening up your graphics editor and flipping your gradient map horizontally.
      Sorry for the mix-up,
      ~FrisbeeMonkey
      My Skins
      Skinning References: MAKI Scripts - GUIDs & Button Actions - Skinner's FAQ
      Skin Help: MAKI Cheats - Component Skinning - Skinning Tutorial

      Comment


      • #4
        thanks for the responses. i'm still stuck though! i renamed (and flipped) the gradient file so that the script recognizes it. i pasted dirty's player-normal.xml over my own (didn't know groups needed to be defined outside of the layout), and still got the "guru meditation #001C.000200B2.65 Null object called script/volume.maki". Now, i imagine this message is supposed to help me troubleshoot, but i'm not sure what the null object it is referring to . I also tried frisbee's getting rid of the <groupdef...> and </groupdef> lines, but got the same error. interestingly, now my playlist toggle button doesn't want to work anymore, though hopefully i can handle that with a little time (already tried deleting studio.xnf).

        sigh. well i'm gone till saturday, but any further help would be great. later

        Comment


        • #5
          Hmm, I think I messed up again. I must have made changes to the .m of the volume script, but then not recompiled it before zipping. Try this one and see if you still get the error.
          ~FrisbeeMonkey
          Attached Files
          My Skins
          Skinning References: MAKI Scripts - GUIDs & Button Actions - Skinner's FAQ
          Skin Help: MAKI Cheats - Component Skinning - Skinning Tutorial

          Comment


          • #6
            whew, it's working! thanks for recompiling that, frisbee. actually, what can i use to compile my own scripts? though your premade ones are great, i'm not going to go anywhere if i depend solely on them.

            now, if i could just figure out how to extend the boundaries of the playlist...

            Comment


            • #7
              The compiler for MAKI scripts is found in your winamp3 directory. Look for mc.exe. You use it like:
              mc myScript
              and it will turn myScript.m into myScript.maki(assuming it doesn't find any errors) I usually copy the mc.exe into my scripts directory, then make a batch file that I can just double-click to compile my scripts.
              Glad to hear you're venturing on to scripts of your own. That's where you can do all kinds of crazy stuff
              And as for that playlist editor problem, I think you can do it. At first I was thinking you wouldn't want all your components to have that same shape, but actually it would be kind of cool since they could all fit/dock in between the main window and the EQ. I know you were messing around with that before but not having much luck. I know it took me awhile(and a lot of changing random stuff to see what happens) to get a hang of it. Maybe as my next side project I will make up commented component templates so that skinning them isn't so tough/confusing.
              ~FrisbeeMonkey
              My Skins
              Skinning References: MAKI Scripts - GUIDs & Button Actions - Skinner's FAQ
              Skin Help: MAKI Cheats - Component Skinning - Skinning Tutorial

              Comment

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