User talk:DJDantae
Welcome!Edit
Hello! Welcome to UESPWiki. It's always good to have new members. If you would like to help improve any of our pages, you may want to take a look at the following links:
- Policies and Guidelines: UESPWiki standards and expectations
- Quick Editing Guide: a quick guide to wiki markup
- Getting Started: how you can help
If you, on the other hand, would like to spice up your userpage, take a look at this link:
- Userboxes: near complete list of userboxes, including a guide to make your own
When you're editing, it's always a good idea to leave edit summaries to explain the changes you have made to a particular page, and remember to sign your talk page posts with four tildes ~~~~. Also, the "show preview" button is a great way to view the changes you've made so far without actually saving the page (our patrollers really appreciate it!).
Feel free to practice editing in the sandbox and don't hesitate to contact one of our mentors if you need any help. Have fun! – Robin Hood↝talk 05:50, 29 August 2010 (UTC)
XP CalculatorEdit
I had a quick look at the disassembly of your XP Calculator, just to make sure it wasn't a virus. The good news is, it's not (which I'm sure you know, but we have to as well <g>). I did notice, however, that there seems to be a do-nothing button1_Click
event just sitting there. Not that it matters in the slightest that it's there, but I thought I'd mention it in case you wanted to clean it up in the next version. – Robin Hood↝talk 05:56, 29 August 2010 (UTC)
XP Calculator BugEdit
First off, I want to thank you for the making the XP Calculator. I noticed that your calculator always shows the experience required to increase one level as 0 and that the total experience to level skills to 100 differs slightly from the totals listed here. After looking at the disassembly, I found the problem to be the calculation of the base experience for the current skill level; it includes the experience for the next level.
Here's my version of your code:
// Compute experience for current and target levels
double baseExperienceForCurrentSkillLevel = 0.0;
double baseExperienceForTargetSkillLevel = 0.0;
for (int skillLevel = 5; skillLevel < 100; skillLevel++)
{
double baseExperienceToNextSkillLevel = CalculateBaseExperienceToNextSkillLevel(skillLevel);
if (skillLevel <= currentSkillLevel)
{
baseExperienceForCurrentSkillLevel += baseExperienceToNextSkillLevel;
}
if (skillLevel <= (targetSkillLevel-1))
{
baseExperienceForTargetSkillLevel += baseExperienceToNextSkillLevel;
}
if (skillLevel == (targetSkillLevel-1))
break;
}
and the correction:
if (skillLevel < currentSkillLevel)
{
baseExperienceForCurrentSkillLevel += baseExperienceToNextSkillLevel;
}
MCollier 01:30, 1 February 2011 (UTC)