Talk:Calculators

It's not loading for me. I use: Windows 7 32-bit, firefox 3.6.12 It did load a while earlier. Or did you disable this page for a while? ^^ Bennie (talk ~ fellows) ^^ 23:39, November 26, 2010 (UTC)

Is working here on 5 browsers, maybe some cache issues because I made some changes? --Daniel Letalis 02:44, November 27, 2010 (UTC)

It aint reading 'Scrolls of Heroic Deed' and 'Sabreteeth' (skips em). Prolly lacking a function to treat it as a single object. Other than that, a pretty epic tool. --jokeUsa 12:39, February 24, 2011 (UTC)

Those and rabbit's feet fixed, thanks --Daniel Letalis 03:15, February 25, 2011 (UTC)

Armor - some errors
Death rings are not being accounted for in the death %. Or am I mistaking something? -- Sixorish 04:21, March 1, 2011 (UTC)

Also, is it right when arm = 1 that max and min reduction are also 1? I remember discussing this somewhere else, but my experiments show that for armor values less than 3 (or was it 4?), there is no damage reduction. I'll test this again shortly. -- Sixorish 04:24, March 1, 2011 (UTC)

mm, I will check both things when I can. maybe we talked about this once: Talk:Formula --Daniel Letalis 05:32, March 1, 2011 (UTC)

Okay, I retested this, and it appears that your calculator is fine with the armor. I forgot what the results were from my tests, and my results were consistent with that formula I gave (except the min reduction seems to be a ceil function, not floor, which you have already implemented here). Still the death ring resist % needs attention.

By the way, do you know if the law of commutativity of multiplication also applies to "nested" floor functions? If not, then there must be an order in which resist %s are computed, and without this order there will be a small error. -- Sixorish 08:43, March 1, 2011 (UTC)

death ring article probably needs to be changed or added as an exception if for some reason article can't be fixed, I check it soon. I dunno the math terms but I had the same question as you do, don't remember how I ended thinking it was correct months ago but what I did now to verify was to invert the order of protections and I got same result on inverted values. Made different tests, just an example:

Physical protection: 80%, 3% damage:1000, result:189/191

Physical protection: 3%, 80% damage:1000, result:189/191

So either the variation is too small that it doesn't show on 6~ different sets/protections or the order doesn't matter.

--Daniel Letalis 03:34, March 2, 2011 (UTC)

Main page news
I hope that TibiaWiki some day becomes a resource to compare the theoretical aspects of Tibia, which we are behind on considerably even on the Formula page. This tool could be huge if only people saw it, so I decided to go ahead and add a section in the news on the main page about this.

Hopefully we can expand this to include other things, such as distance hit%, shielding's effect and melee damage. Unfortunately, we first need to find a formula for these (I know some other fansites have these data, but we can't copy them). I have begun testing melee in PvP combat (in a guild war, since I play on optional PvP) but testing may take some time with our schedules. -- Sixorish 09:42, March 1, 2011 (UTC)

Bugs - loot
Created this section for users to list errors in the loot (perhaps someone is intimidated by the lack of discussions here).

I'll start out by mentioning that Legionnaire Flags has some error:

23:26 You see legionnaire flags. It weighs 3.30 oz.

The script says there are 2x legionnaire flags but there are 3 (each weighing 1.1 oz). I recently changed the Legionnaire Flags page because the weight was wrong, so maybe that is a cause for this. I played around with it and it appears to be an approximation error or something? For example

23:29 You see legionnaire flags. It weighs 2.20 oz. -> 2

23:29 You see legionnaire flags. It weighs 3.30 oz. -> 2

23:29 You see legionnaire flags. It weighs 3.31 oz. -> 3

On a side note, should the script output any results if the amount is not an integer? I tried using a fake one, with 1.5 oz, and it still showed 1 (it would be 1.36~) -- Sixorish 13:36, March 10, 2011 (UTC)

Awww, js bug. Try this on you browser(opera/firefox/chrome) address bar: javascript:alert(3.3/1.1);

I will try to round the result and make test with all creature products I have. --Daniel Letalis 19:16, March 10, 2011 (UTC)

Poisonous slime, 3000 value
Poisonous slime is being valued at 3,000 for some reason, which is not true. I immediately thought, that's surely caused by cached vandalism, but looking at the page history I find that May 6 is the latest date where poisonous slime's npcvalue was changed to 3000. I tried to purge the page, but it doesn't achieve anything. For anyone who wishes to test this, the input text was ''You see poisonous slime. It weighs 0.80 oz.'' -- Sixorish 17:09, June 2, 2011 (UTC)

I just saw this, have manually fixed it for now, I've found another bug. 22:53 You see 100 crystal coins. They weigh 10.00 oz. 22:53 You see 100 crystal coins. They weigh 10.00 oz. 22:53 You see 48 platinum coins. They weigh 4.80 oz. 22:53 You see 100 crystal coins. They weigh 10.00 oz. 22:53 You see 3 gold ingots. They weigh 54.00 oz. 22:55 You see 48 crystal coins. They weigh 4.80 oz. will try to fix it when I can but I don't understand it : < --Daniel Letalis 04:06, June 8, 2011 (UTC)

I think your fix brought about an infinite loop somewhere, IE9 / FF4 won't get beyond loading the script.

Edit: was there even a fix? The edit I saw was dated in May... -- Sixorish 04:56, June 13, 2011 (UTC)

This is what I did, the page is loading ok on latest FF4@winXP and latest IE9@win7 x64 for me.

I fixed the bug I found here (after your post). --Daniel Letalis 18:47, June 13, 2011 (UTC)

The page still doesn't load for me, just freezes the browser until I kill it or stop the script. Using Vista, latest version of FF4. The cache was cleared, so that shouldn't be a problem. Is there any more information I can provide you with?

Also, was there a fix for the crystal coins? -- Sixorish 20:39, June 13, 2011 (UTC)

The crystal coins problem was because only the first comma of "3,400,000"~ was removed so javascript couldn't process the number and fell back to 0, now it will remove all commas.

Try to test both logged in and logged out, ideas, #1 maybe the problem is an extension/plugin/addon/userscript on your firefox installation, try disable all of them, restart firefox. #2 Firefox 3 used to fail to clear the cache and sometimes loaded old version of common.js on my cross-browser tests, so maybe current firefox has the same problem, you could try with CCleaner (while ff closed) but be sure to unmark all you want to keep on BOTH CCleaner tabs, if you are not sure just keep all unmarked except for firefox checkboxes. --Daniel Letalis 23:55, June 13, 2011 (UTC)

I took the prescribed actions but the problem persists. I removed all browser/internet files that CCleaner could, disabled every Firefox addon and tried in IE, Firefox and Chrome (just downloaded a while ago) while logged in and logged out. Oddly, Chrome works fine, but IE/FF still do not. -- Sixorish 00:43, June 14, 2011 (UTC)

Okay, it just loaded properly but I think something is wrong still. Normally, the script takes 5-10 secs to generate. This only worked because I let it run for 2~ mins. -- Sixorish 01:01, June 14, 2011 (UTC)

Nvm, on further inspection I find this to be caused by my antivirus software. Not sure what the problem is but I assume it is out of your hands to resolve this. I will configure it to allow wikia.com for the time being. -- Sixorish 01:46, June 14, 2011 (UTC)

Maybe something changed at wikia but the requests seem to be normal, I guess we will know if this happen to more users. --Daniel Letalis 02:21, June 14, 2011 (UTC)

Black Skull
When you loot a Black Skull (Item), the calculator skip the item, linking it to the Skull system...

guimassaro

For now black skull is calculated, link is wrong but I will fix it soon. --Daniel Letalis 20:16, March 4, 2012 (UTC)

Shield
Now that Ornate Shield has phys resist, should this damage reduction calculator now support the shield slot? -- Sixorish 15:07, April 24, 2012 (UTC)

I think it would be very incomplete, it would only list ornate shield in shields, we would be assuming (it is very likely but I think not tested) that physical resistance works in the same way in shields and armor.

The calculator doesn't include defence because I think there are not publicly available accurate formulas for defence, considering this I don't see any use for include ornate shield, there is nothing to compare because we can't calculate defence reduction, it is obvious that Ornate is better than Carapace but without the formulas we can't do an exact compare with any other shield. --Daniel Letalis 19:15, April 25, 2012 (UTC)

I can't see the royal draken mail and the zaoan helmet. I dont know if its just me D=

Thanks. &raquo; Sez6 ~ Talk &laquo; 19:23, April 25, 2012 (UTC)

Sez: by default druid is selected, and it filters the items you can't use. Select 'all' in the vocation dropdown to select all equipment.

I think we should support shields just for completeness. The calculator is an armor calculator, the section header already implies that it won't count reduction by defense. I think knights would find it more useful than exclusion (although I hear everyday knights comparing ornate and blessed/mastermind shield and they might wrongly use this calculator to compare). -- Sixorish 00:22, April 26, 2012 (UTC)

Thanks, i didn't saw the voc selection, what a noob haha. About the shield, be sure that people will use the calculator for comparison, but one time i heard someone that used the calculator to decide between dwarven and zaoan legs. So people already do that even if its wrong xD.

&raquo; Sez6 ~ Talk &laquo; 01:19, April 26, 2012 (UTC)

Sez, armor comparisons are fine with the calculator. Shield comparisons are not because we need a formula for def and we'd need to consider such variables as: battle stance, damage medium (some physical attacks ignore defense). -- Sixorish 01:54, April 26, 2012 (UTC)

Do you see any reason why the default shouldn't be "All"? I don't remember why it is like that.

I will add the shield probably tomorrow. --Daniel Letalis 04:31, April 26, 2012 (UTC)

Its just me or the only shield shown is the Ornate Shield? Even with "all" vocations...

Read the discussion just above. It's an armor calculator, we don't know defense formulas so it only calculates armor and resistances. Shields have 0 armor and usually no resistances, so all shields will have no effect except the ornate shield with 5% physical protection. I'm not sure why they don't appear with the 'show nonprotective items' option, but I don't think it's a bug. -- Sixorish 17:43, May 15, 2012 (UTC)

Lootdata updated
I added lootdata since this hadn't been updated in a while. Not sure if the whitespace means something (but don't think so). It isn't alphabetical in the list because I used multiple lists to generate the data, since we have two templates for trades at the moment. I don't think that is a problem. -- Sixorish (talk) 02:14, July 22, 2012 (UTC)

Extra white spaces were to make it more readable but they aren't needed even when editing you can just search for "npc" on a text editor and you can easily separate each npc. --Daniel Letalis (talk) 00:25, July 24, 2012 (UTC)

Lootdata criteria for inclusion
What guidelines should we use for inclusion on the calculators? Like for Lucius do we include even though he isn't around all year? -- Sixorish (talk) 23:31, July 23, 2012 (UTC)

I can change the code so it can include a note on the "NPCs to visit" table, and it would display something like: Lucius

Only during an event if having the npc in Calculators/Lootdata like this: |npc=Lucius,Only during an event|

I will try to add this later today. --Daniel Letalis (talk) 00:25, July 24, 2012 (UTC)