PDA

View Full Version : Clock bug


Barathrum
03-01-2005, 10:11 PM
String: Interface\AddOns\Clock\Clock.lua
Line: 638
Number: 2 (also number 10 and 17 after re-clicking on the clock)
Error: bad argument #3 to `format' (number expected, got no value)
^^this error in a popup, and this error in my chatlog ->

[string "Interface\AddOns\Clock\Clock.lua"]:638: bad argument #3 to format' (number expected, got no value

this happens after i kill a monster after logging in, before i kill anything it works just fine. there are more people with the same bug on my server :?

any help?

Chaosman2002
03-03-2005, 08:24 AM
I have the same problem, and i think it is a problem of the money expansion, but i can't correct it at moment

Kai3k
03-04-2005, 05:56 PM
The error happens only, if I you use the german translation, so I found the mistake very fast. Everyone can edit it fast without coding-experierience, i dont know how far it is to the next cosmos-update.

If you are using the german version (german translation), then the error is a mistake in the localization.de.ual file in the -directory.

So go in the path Interface\AddOns\Clock\ in your WoW-directory and open the file localization.de.ual and edit the line #60 (or if you only use the standard windows-notepad, search for "HEALTH_PER_SECOND").

My old line #60 and your current line looks like:

HEALTH_PER_SECOND = "Regeneration von Gesundheit pro Sekunde : %d %d";

and change it only to:

HEALTH_PER_SECOND = "Regeneration von Gesundheit pro Sekunde: %d";

not more (only one %d, not two. maybe delete the emtpy char before ":" for the cosmetic reason :))

small professional explanation:
that was the error in the clock.ual at line 638, where HEALTH_PER_SECOND is used, the API-function format() needed 3 values, the string to parse at first and then the values like %d. of course, you want to see your "regeneration" only one time and not two times :) %d %d %d would expect 4 values in format().