• Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • [Plugin] Time until Level

    Discussion in 'Archives' started by znex, Aug 12, 2010.

    1. znex

      znex New Member

      Joined:
      Jun 21, 2010
      Messages:
      36
      Likes Received:
      2
      Trophy Points:
      0
      Should work now.
       

      Attached Files:

    2. chinajade

      chinajade Well-Known Member Moderator Buddy Core Dev

      Joined:
      Jul 20, 2010
      Messages:
      17,540
      Likes Received:
      172
      Trophy Points:
      63
      THANK you for the fix. I can confirm it does indeed solve the problem.

      Code:
      float timeleft = ((Styx.WoWInternals.ObjectManager.Me.NextLevelXP - Styx.WoWInternals.ObjectManager.Me.XP) / Styx.Helpers.InfoPanel.XPPerHour) * 60;
      
      I see you identified it as a classic "divide by zero" problem when Styx.Helpers.InfoPanel.XPPerHour was zero (i.e., caused by grey mobs).

      What i don't understand is why this was a problem for HonorBuddy...
      "timeleft" should have either been positive infinity (numerator was non-zero), or Not-a-Number (NaN, numerator was zero), and the calculations should have been 'carried through' until the variables went out of the scope at the end of your Pulse function. As far as I can tell, no exception was thrown (nor should it have been).

      Can anyone shed some insight on why this error causes HB problems?
       
    3. neothermic

      neothermic New Member

      Joined:
      Aug 29, 2010
      Messages:
      4
      Likes Received:
      0
      Trophy Points:
      0
      Is there any way this plugin could tell you how long until a pre selected level?

      So for example you choose which level you intend to reach and the plugin estimated time to that level (so that, for example you can time roughly when to come back to check on it, or change profiles)

      Otherwise, great simple plugin!
       
    4. znex

      znex New Member

      Joined:
      Jun 21, 2010
      Messages:
      36
      Likes Received:
      2
      Trophy Points:
      0
      yes, that would be possible. i guess i will put it in the next version.
       
    5. Signal7

      Signal7 New Member

      Joined:
      Sep 27, 2010
      Messages:
      268
      Likes Received:
      7
      Trophy Points:
      0
      Very handy mate. I'm digging it! Thanks :)
       
    6. jankem

      jankem New Member

      Joined:
      Sep 29, 2010
      Messages:
      52
      Likes Received:
      0
      Trophy Points:
      0
      Want this for Latest. ;)
      I miss it </3
       
    7. CaptainTeddy

      CaptainTeddy New Member

      Joined:
      Oct 24, 2010
      Messages:
      126
      Likes Received:
      0
      Trophy Points:
      0
      How do i make this plugin work i tried it yesterday but couldn't get it to work :/
      Where do i paste the file etc can someone help me out ^^?
       
      Last edited: Oct 26, 2010
    8. Zugga

      Zugga New Member

      Joined:
      Jun 6, 2010
      Messages:
      280
      Likes Received:
      2
      Trophy Points:
      0
      Does anyone know of a place that lists good medium and poor Xp/per hour per level? I really cant tell sometimes if a profile is making good xp an hour because I have nothing to gauge it by.
       
    9. AndersAnd

      AndersAnd Member

      Joined:
      Jan 15, 2010
      Messages:
      96
      Likes Received:
      0
      Trophy Points:
      6
      Will this plugin be updated? :)
       
    10. Bliss

      Bliss New Member

      Joined:
      Aug 17, 2010
      Messages:
      84
      Likes Received:
      0
      Trophy Points:
      0
      I don't think it needs to, works fine for me even after each updated HB/GB.
       
    11. AndersAnd

      AndersAnd Member

      Joined:
      Jan 15, 2010
      Messages:
      96
      Likes Received:
      0
      Trophy Points:
      6
      Oh - shame on me! I should have checked! :)
       
    12. dayloon

      dayloon Active Member

      Joined:
      Mar 5, 2010
      Messages:
      1,046
      Likes Received:
      3
      Trophy Points:
      38
      Doesnt work for me :

      ! Compiler errors:
      File: TimeUntilLevel v1.2.cs Line: 42 Error: 'Styx.WoWInternals.WoWObjects.LocalPlayer' does not contain a definition for 'NextLevelXP' and no extension method 'NextLevelXP' accepting a first argument of type 'Styx.WoWInternals.WoWObjects.LocalPlayer' could be found (are you missing a using directive or an assembly reference?)
      File: TimeUntilLevel v1.2.cs Line: 42 Error: 'Styx.WoWInternals.WoWObjects.LocalPlayer' does not contain a definition for 'XP' and no extension method 'XP' accepting a first argument of type 'Styx.WoWInternals.WoWObjects.LocalPlayer' could be found (are you missing a using directive or an assembly reference?)
       
    13. Beetlebomb

      Beetlebomb New Member

      Joined:
      Jan 1, 2011
      Messages:
      131
      Likes Received:
      0
      Trophy Points:
      0
      Not working for me either atm. Here's my message:

      Plugin from C:\Program Files\Honorbuddy 2.0.0.3626\Plugins\TimeUntilLevel v1.2.cs could not be compiled! Compiler errors:
      File: TimeUntilLevel v1.2.cs Line: 42 Error: 'Styx.WoWInternals.WoWObjects.LocalPlayer' does not contain a definition for 'NextLevelXP' and no extension method 'NextLevelXP' accepting a first argument of type 'Styx.WoWInternals.WoWObjects.LocalPlayer' could be found (are you missing a using directive or an assembly reference?)
      File: TimeUntilLevel v1.2.cs Line: 42 Error: 'Styx.WoWInternals.WoWObjects.LocalPlayer' does not contain a definition for 'XP' and no extension method 'XP' accepting a first argument of type 'Styx.WoWInternals.WoWObjects.LocalPlayer' could be found (are you missing a using directive or an assembly reference?)
       
    14. panYama

      panYama Community Developer

      Joined:
      Jan 15, 2010
      Messages:
      2,629
      Likes Received:
      49
      Trophy Points:
      0
      and you all do have eyes and have seen that is hasn't been updated for 2 ish months. and HB has been changed a few times after so its common sense its not working.
       
    15. Beetlebomb

      Beetlebomb New Member

      Joined:
      Jan 1, 2011
      Messages:
      131
      Likes Received:
      0
      Trophy Points:
      0
      Thought the author could find the error message useful if he plans on updating it.
       
    16. SMcCloud

      SMcCloud New Member

      Joined:
      Dec 8, 2010
      Messages:
      172
      Likes Received:
      2
      Trophy Points:
      0
      Found the fix, confirmed working by me.

      change line 42 from:
      Code:
      float timeleft = ((Styx.WoWInternals.ObjectManager.Me.NextLevelXP - Styx.WoWInternals.ObjectManager.Me.XP) / Styx.Helpers.InfoPanel.XPPerHour) * 60;
      to:
      Code:
      float timeleft = ((Styx.WoWInternals.ObjectManager.Me.NextLevelExperience - Styx.WoWInternals.ObjectManager.Me.Experience) / Styx.Helpers.InfoPanel.XPPerHour) * 60;
      
      Basically a more recent release of HB changed 'XP' to 'Experience' in certain structures.

      Or you can download the modified version from my attachment and replace the old version. (if this is an issue, let me know, or remove it)

      Sorry, for some reason the attachment didn't get attached correctly, fixed.
       

      Attached Files:

      Last edited: Jan 3, 2011
    17. Beetlebomb

      Beetlebomb New Member

      Joined:
      Jan 1, 2011
      Messages:
      131
      Likes Received:
      0
      Trophy Points:
      0
      Didnt fix it still. Sorry for the late response. I'll post the error message tomorrow.
       
    18. SMcCloud

      SMcCloud New Member

      Joined:
      Dec 8, 2010
      Messages:
      172
      Likes Received:
      2
      Trophy Points:
      0
      It's been working for me for the last 4 days, so yeah, I'll need an error message. Also, I haven't tried it with the build released today, and won't be able to for 2 more days, so that might be it.

      Edit: Just tested it with the newest HB version and it still works, must be something on your end.
       
      Last edited: Jan 5, 2011
      reddewman likes this.
    19. astra

      astra Member

      Joined:
      Jan 15, 2010
      Messages:
      144
      Likes Received:
      0
      Trophy Points:
      16
      tested and works great thanks ;)

      +rep
       
      Last edited: Jan 5, 2011
    20. mspazz

      mspazz Member

      Joined:
      Jul 12, 2010
      Messages:
      394
      Likes Received:
      11
      Trophy Points:
      18
      SmCloud's fix works just fine for me, thanks!
       

    Share This Page