MMOMinion

Full Version: XPStats - Experience Calculator
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
Hey everyone,
I wrote a simple lua addon last night that will display your current XP and calculate how long it will take to level; therefore I thought I would share it with you all.

Below is what it displays:
- Total XP Gained (for your current session)
- XP Per Hour
- TTL (Time to level in hours)
- Session length
- Current XP
- XP Required to level

Take the XPStats folder in the attachment and place it under the 'LuaMods' folder for the ffxivminion app.

Please let me know if you see any issues.
Enjoy

--------------------
EDIT:
Changelog:
-------
Update v 1.3.0
- Changed the Session Length from decimal to include a nice friendly format e.g. (1 hour(s) 10 minute(s))
Update v 1.2.0
- Changed the Time to Level to string to use hours and minutes instead of a decimal (e.g: it will now display 1 hour 30 minutes instead of 1.5)
- Added a Reset button that will reset all stats back to 0.

Update v 1.1.0
- Fixed an issue where your XP Gained and TTL would start showing a negative value after leveling.

Update v1.0.1
- Fixed the blackout issue by adding an Info button with the version and a 'copyright' message.
I will test later
Thank you for share!
Any way you could add the amount of items harvested from nodes?
Having black blotches around my screen after installing this. The blotches show up when the XP window is the active ingame window.
(10-08-2013, 04:21 PM)5m0k3 Wrote: [ -> ]Having black blotches around my screen after installing this. The blotches show up when the XP window is the active ingame window.

This is interesting. I too was seeing this but I thought it was something with my computer. Any devs out there wish to comment? I am practically using the same GUI Window logic as in the 'Dev' GUI window.

Code:
GUI_NewWindow("XPStats",400,300,250,170);
    GUI_NewField("XPStats","Total XP gained: ", "total_xp_gained", "XP")
    GUI_NewField("XPStats","XP per Hour: ","xp_per_hour", "XP");
    GUI_NewField("XPStats","TTL (Hours): ","time_to_level", "XP");    
    GUI_NewField("XPStats","Session length: ","elapsed_time", "XP");    
    GUI_NewField("XPStats","XP: ","xp_string", "XP");
    GUI_NewField("XPStats","Required XP:","required_xp", "XP");
Thanks.
This is awesome, except it blacks out my screen when I open the XP menu.
It seems there is an issue with simple GUI modules. If you add another group
Code:
function XPStats.ModuleInit()
    elapsed_time=os.time()
    GUI_NewWindow("XPStats",300,300,200,200)
    
    GUI_NewField("XPStats","Total XP gained: ", "total_xp_gained", "XP")
    GUI_NewField("XPStats","XP per Hour: ","xp_per_hour", "XP")
    GUI_NewField("XPStats","TTL (Hours): ","time_to_level", "XP")
    GUI_NewField("XPStats","Session length: ","elapsed_time", "XP")
    GUI_NewField("XPStats","XP: ","xp_string", "XP")
    GUI_NewField("XPStats","Required XP:","required_xp", "XP")

    GUI_NewLabel("XPStats","(c)an0nym1z3r","Copyright");
end

the blanking issue is gone.
(10-08-2013, 06:51 PM)Gabi Wrote: [ -> ]It seems there is an issue with simple GUI modules. If you add another group
Code:
function XPStats.ModuleInit()
    elapsed_time=os.time()
        GUI_NewWindow("XPStats",300,300,200,200)
    
    GUI_NewField("XPStats","Total XP gained: ", "total_xp_gained", "XP")
    GUI_NewField("XPStats","XP per Hour: ","xp_per_hour", "XP")
    GUI_NewField("XPStats","TTL (Hours): ","time_to_level", "XP")
    GUI_NewField("XPStats","Session length: ","elapsed_time", "XP")
    GUI_NewField("XPStats","XP: ","xp_string", "XP")
    GUI_NewField("XPStats","Required XP:","required_xp", "XP")

    GUI_NewLabel("XPStats","(c)an0nym1z3r","Copyright");
end

the blanking issue is gone.

Awesome, thanks Gabi. I'll add this in and reupload tonight when I get a chance.
works great for me! I dont mind the little black blotch hiccups :P doesn't stop me from doing my work and I'd only have that up while im away to keep track anyhow!
Great plugin, but one bug that I noticed: once you level, it starts counting backwards.
Pages: 1 2 3