Jump to content


Photo

CAP and Pointwatch


    7 replies to this topic

    #1 Shaorin

    Shaorin

      Advanced Member

    • Members
    • PipPipPip
    • 37 posts

      Posted 22 May 2014 - 09:13 AM

      How do you add CAP to Pointwatch. I saw in the read me file that there was something for it but for the life of me I can't figure out how to add them in.

       

      *Edit*

       

      Sorry I meant Sparks.



      #2 kaivalya

      kaivalya

        Newbie

      • Members
      • Pip
      • 6 posts

        Posted 22 May 2014 - 01:27 PM

        In my pointwatch\data\settings.xml I changed the <default> string to this:

        <default>xp.current..&apos;/&apos;..xp.tnl..&apos;XP &apos;..lp.current..&apos;/10k LP [&apos;..lp.number_of_merits..&apos;] XP/hr:&apos;..string.format(&apos;%.1f&apos;,math.floor(xp.rate/100)/10)..&apos;k &apos;..cp.current..&apos;/30k CP [&apos;..cp.number_of_job_points..&apos;] Sparks: &apos;..sparks.current..&apos;/50k&apos;</default>
         

         It looks like this on my screen:
        1295/2600XP 0/10k LP [0] XP/hr:0.0k 0/30k CP [0] Sparks: 540/50k

         
        Notes on what some of that means:

        • &apos;  -- encloses plain text you want displayed. It represents the single quote character.  As with normal quotations you use one on either side of what you are quoting.
        • ..  -- concatenation operator.  means to append what's on the right to what's on the left.  Think of it as a button used to snap two things together in this case.
        • xp.current, xp.tnl, lp.current, lp.number_of_merits, cp.current, cp.number_of_job_points, sparks.current -- are (basically) all values pointwatch reads from your game's working memory and displays for you.
        • string.format(blah-- is a lua function that basically prettifies xp.rate for your viewing pleasure.

        Everything else is just plain text displayed to make (at least for me) it easier to read on my screen.
         
        Feel free to open pointwatch.lua in a text editor (notepad works or notepad++ is good for syntax highlighting).  You can search for the above variables to see where they're read from.  Also check out http://dev.windower....:writing_addons for a short primer(or reference) on lua.
         
        -kai



        #3 Shaorin

        Shaorin

          Advanced Member

        • Members
        • PipPipPip
        • 37 posts

          Posted 23 May 2014 - 02:43 AM

          Thanks! I finally figured out what I where my issue was. I was missing the &apos; at the end thus kept getting a syntax error.



          #4 Tiger

          Tiger

            Newbie

          • Members
          • Pip
          • 8 posts

            Posted 16 May 2015 - 05:21 PM

            I'm sorry to resurrect this thread but I started having trouble with Pointwatch a few days ago.  For a long time it worked great but all of a sudden the CP and Sparks portion of the bar is blank.  XP and LP show up fine.  The following is my settings file:

             

             

            <?xml version="1.1" ?>
            <settings>
                <global>
                    <options>
                        <message_printing>false</message_printing>
                    </options>
                    <strings>
                        <default>&apos;XP: &apos;..xp.current..&apos;/&apos;..xp.tnl..&apos; LP: &apos;..lp.current..&apos;/&apos;..lp.tnm..&apos; [&apos;..lp.number_of_merits..&apos;/&apos;..lp.maximum_merits..&apos;] CP: &apos;..cp.current..&apos;/&apos;..cp.tnjp..&apos; [&apos;..cp.number_of_job_points..&apos;] SP: &apos;..sparks.current..&apos;/&apos;..sparks.maximum</default>
                        <dynamis>xp.current..&apos;/&apos;..xp.tnl..&apos;XP &apos;..lp.current..&apos;/&apos;..lp.tnm..&apos;LP [&apos;..lp.number_of_merits..&apos;/&apos;..lp.maximum_merits..&apos;] XP/hr:&apos;..string.format(&apos;%.1f&apos;,math.floor(xp.rate/100)/10)..&apos;k &apos;..cp.current..&apos;/&apos;..cp.tnjp..&apos;CP [&apos;..cp.number_of_job_points..&apos;] &apos;..dynamis.KIs..&apos; &apos;..dynamis.time_remaining</dynamis>
                    </strings>
                    <text_box_settings>
                        <bg>
                            <alpha>255</alpha>
                            <blue>0</blue>
                            <green>0</green>
                            <red>0</red>
                            <visible>true</visible>
                        </bg>
                        <flags>
                            <bold>false</bold>
                            <bottom>true</bottom>
                            <draggable>true</draggable>
                            <italic>false</italic>
                            <right>true</right>
                        </flags>
                        <padding>0</padding>
                        <pos>
                            <x>-140</x>
                            <y>-40</y>
                        </pos>
                        <text>
                            <alpha>255</alpha>
                            <blue>255</blue>
                            <font>Comic Sans MS</font>
                            <fonts>
            
                            </fonts>
                            <green>255</green>
                            <red>255</red>
                            <size>11</size>
                            <stroke>
                                <alpha>255</alpha>
                                <blue>0</blue>
                                <green>0</green>
                                <red>0</red>
                                <width>0</width>
                            </stroke>
                        </text>
                    </text_box_settings>
                </global>
            </settings>
            
            

             THis is what my Pointwatch bar shows:

             

            XP: 55999/56000 LP: 9999/10000 [45/45 

             

            And yes the end bracket is missing as well.

             

            Any thoughts?  I posted this to FFXIAH and got one response saying it worked fine for him.  I have two accounts and its the same across both accounts and all mules.

             

             

             

             



            #5 Arcon

            Arcon

              Advanced Member

            • Windower Staff
            • 1189 posts
            • LocationMunich, Germany

            Posted 17 May 2015 - 07:05 AM

            Did it break after the update?



            #6 Tiger

            Tiger

              Newbie

            • Members
            • Pip
            • 8 posts

              Posted 17 May 2015 - 04:18 PM

              It happened the day before so I don't think its update related. 



              #7 Tiger

              Tiger

                Newbie

              • Members
              • Pip
              • 8 posts

                Posted 20 May 2015 - 01:19 AM

                I deleted Pointwatch and re installed it made my changes and it works now.  Something got borked somehow with Comic Sans MS it doesn't work but changed to Arial and its fine.  Just an FYI.



                #8 dzyp69

                dzyp69

                  Newbie

                • Members
                • Pip
                • 2 posts

                  Posted 31 December 2015 - 08:05 AM

                  hello there 

                   

                  when i run //pw i get a lua error line 143 how can i fix this or do i have to reinstall windower\

                  never has been a problem before 






                  1 user(s) are reading this topic

                  0 members, 1 guests, 0 anonymous users