Code Monkey home page Code Monkey logo

xpcounter's Introduction

XpCounter upgraded from 1.12 to 1.13 by Lavitz

Version 1.13.2 - Aug 11 2019

Originally By Thugz [IDF]

XpCounter shows a modified tooltip window for the standard experience bar containing various experience related information. You can also enable a dragable frame, that shows those info (or some of them, complete customizable) on screen.

I will update and clean up this README later. I will also add some features, including labels for the on-screen display and making the on-screen display look much nicer.

If you have any feedback or suggestions, or want to contribute localization or code, please feel free to set up a pull request on GitHub or message me on Discord (Lavitz#1337).

Links

FEATURES

  • Experience gained in percent
  • Experience needed to level up
  • Bonus Experience (Rested)
  • A reset able Timer that counts XP gained & time played
  • EPH - Experience per Hour
  • EPM - Experience per Minute
  • An estimated value how long it will take you to level up
  • Number of Kills and avarage XP per kill
  • Number of kills left till level up

Type /xpcounter or /xpc ingame for more info.

OVERLAY TEXT FORMAT

You can set the text displayed in the overlay window with /xpc set_overlay_text <text>. Use the following to insert info:

#xp_act#		Actual XP value
#xp_max#		Max XP on this level
#xp_perc#		XP to level up in percent
#xp_left#		XP needed to level up
#xp_rested#		Bonus XP left
#xp#			XP gathered
#time_played#		Time played
#time_left#		Estimated time to level up
#eph#			XP per hour
#epm#			XP per minute
#kills#			Number of mobs killed
#avg_kill_xp#		Average XP rewarded for mob kill
#kills_left#		Estimate number of kills until level up

Example: /xpc sot #xp_act#/#xp_max# (#xp_perc#% +#xp_rested#) #xp_left# XP left :: #kills# kills (#avg_kill_xp# XP) #kills_left# left :: #XP in #time_played# (#eph# / #epm#) #time_left# left /xpc sot #xp_left# (#avg_kill_xp#) #kills_left# : #time_left#

TODO

  • Rewrite the XML for the overlay window
  • Add a configuration menu

NOTES

Original author: Thugz [IDF] [email protected]

Keeping Data from OLD versions:

To keep your data from pre 0.8 versions just rename XpBar.lua to XpCounter.lua in the SavedVariables folder of your account. After that, open the file and replace XpBar_Config in the 2nd line with XpCounter_Config.

To migrate your data from post 0.8 versions to versions >= 0.13 just create a XpCounter.lua in the foloowing folder:

WoWFolder\WTF\AccountName\CharName\SavedVariables\XpCounter.lua

Copy and paste the lines below and fill in your data for the Char from your old save file (WoWFolder\WTF\SavedVariables\XpCounter.lua).

XpCounter_Config =
{
	["played_hours"] = 0,
	["time_update"] = 0,
	["overlay_tooltip_anchor"] = 0,
	["tooltip"] = 0,
	["played_minutes"] = 0,
	["overlay_show"] = 0,
	["overlay_tooltip"] = 0,
	["kills"] = 0,
	["version"] = "13",
	["xp_count"] = 0,
	["avg_kill_xp"] = 0,
	["time"] = 0,
	["overlay_text"] = 0,
	["overlay_locked"] = 0,
	["kills"] = 0
}

xpcounter's People

Contributors

lavitzio avatar

Stargazers

 avatar  avatar

Watchers

 avatar

xpcounter's Issues

Issue with XPC in classic

Date: 2019-10-15 21:17:23
ID: -3
Error occured in: Global
Count: 13
Message: ..\AddOns\XpCounter\XpCounter.lua line 371:
attempt to call a table value
Debug:
XpCounter\XpCounter.lua:371: XpCounter_help()
XpCounter\XpCounter.lua:160: ?()
..\FrameXML\ChatFrame.lua:4609: ChatEdit_ParseText()
..\FrameXML\ChatFrame.lua:4270: ChatEdit_SendText()
..\FrameXML\ChatFrame.lua:4306: ChatEdit_OnEnterPressed()
[string ":OnEnterPressed"]:1:
[string "
:OnEnterPressed"]:1
Locals:
msg =

{
1 = "Commands (/xpc COMMANDO):"
2 = "[show] show XP Overlay"
3 = "[hide] hide XP Overlay"
4 = "[lock] lock XP Overlay"
5 = "[unlock] unlock XP Overlay"
6 = "[reset] Reset XP and time counter"
7 = "[update] updates all gathered Information."
8 = "[tooltip_show] toggels tooltip display for the XP bar."
9 = "[tooltip_show_overlay] toggels tooltip display for the overlay window."
10 = "[tooltip_anchor_overlay] binds the tooltip on the cursor."
11 = "[set_overlay_text] (sot) sets the format of the overlay."
12 = "[set_overlay_text_help] (sot_help) shows help on formating the overlay."
}
parse = 1
masked = nil
(for generator) =
{
1 = "Commands (/xpc COMMANDO):"
2 = "[show] show XP Overlay"
3 = "[hide] hide XP Overlay"
4 = "[lock] lock XP Overlay"
5 = "[unlock] unlock XP Overlay"
6 = "[reset] Reset XP and time counter"
7 = "[update] updates all gathered Information."
8 = "[tooltip_show] toggels tooltip display for the XP bar."
9 = "[tooltip_show_overlay] toggels tooltip display for the overlay window."
10 = "[tooltip_anchor_overlay] binds the tooltip on the cursor."
11 = "[set_overlay_text] (sot) sets the format of the overlay."
12 = "[set_overlay_text_help] (sot_help) shows help on formating the overlay."
}
(for state) = nil
(for control) = nil
(*temporary) =
{
1 = "Commands (/xpc COMMANDO):"
2 = "[show] show XP Overlay"
3 = "[hide] hide XP Overlay"
4 = "[lock] lock XP Overlay"
5 = "[unlock] unlock XP Overlay"
6 = "[reset] Reset XP and time counter"
7 = "[update] updates all gathered Information."
8 = "[tooltip_show] toggels tooltip display for the XP bar."
9 = "[tooltip_show_overlay] toggels tooltip display for the overlay window."
10 = "[tooltip_anchor_overlay] binds the tooltip on the cursor."
11 = "[set_overlay_text] (sot) sets the format of the overlay."
12 = "[set_overlay_text_help] (sot_help) shows help on formating the overlay."
}
(*temporary) = nil
(*temporary) = nil
(*temporary) = "attempt to call a table value"

AddOns:
Swatter, v8.2.6377 (SwimmingSeadragon)
AtlasLootClassic, vv1.2.3
AtlasLootClassicDungeonsAndRaids, vv1.2.3
AucAdvanced, v8.2.6430 (SwimmingSeadragon)
AucFilterBasic, v8.2.6364 (SwimmingSeadragon)
AucScanData, v8.2.6365 (SwimmingSeadragon)
AucStatHistogram, v8.2.6366 (SwimmingSeadragon)
AucStatiLevel, v8.2.6370 (SwimmingSeadragon)
AucStatPurchased, v8.2.6367 (SwimmingSeadragon)
AucStatSimple, v8.2.6399 (SwimmingSeadragon)
AucStatStdDev, v8.2.6369 (SwimmingSeadragon)
AucUtilFixAH, v8.2.6371 (SwimmingSeadragon)
Auctionator, v8.1.0
BagBrother, v
Bagnon, v8.2.15
Bartender4, v4.8.8
BeanCounter, v8.2.6422 (SwimmingSeadragon)
DBMCore, v1.13.15
DBMDefaultSkin, v
DBMPartyClassic, v
DBMStatusBarTimers, v
Details, v
DetailsTinyThreat, v
Enchantrix, v8.2.6428 (SwimmingSeadragon)
FishingBuddy, v0.6 Beta 1
GatherMate2, v1.45
HealBot, v8.2.5.1
HealBotTips, v8.2.5.1
Informant, v8.2.6374 (SwimmingSeadragon)
MarkingBar, v2.2.1
OmniCC, v8.1.1
Plater, v
Questie, v4.1.1 BETA
RecipeRadarClassic, v1.0.0.20
SellJunk, v3.0.20
SlideBar, v8.2.6375 (SwimmingSeadragon)
Stubby, v8.2.6376 (SwimmingSeadragon)
TomTom, vv80205-1.0.7
VendorPrice, v1.2.4
WeakAuras, v2.15.1
XpCounter, v0.14
BlizRuntimeLib_enUS v1.13.2.11302
(ck=511)

"sot" command does not work in current master

When using /xpc sot <fmt> the help information is outputted and no change is made to the sot. To update my sot. I had to modify overlay_text in the SavedVariables/XpCounter.lua file

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.