View Full Version : Number format problem
mailme_gx
12-29-2010, 06:53 PM
Since the update where number formats were supposed to be more human readable my numbers are messed up.
Instead of 1,234,567 (I assume it is supposed to be) im getting 1234567.0000000
where can I start looking into a fix for this, I assumed others too would have similar issues but all other users I asked said they are fine (specifically linux players)?
forum search is hard because the search terms number format are generic
Im running Linux (Slackware 12.2)
with xfce window manager
lang=en_GB (despite my physical location being Cyprus)
Regards
GX
Miraculix
12-29-2010, 07:00 PM
Maybe it's pulling locale settings from the OS, to decide how to represent these numbers, and your OS is giving it that format, or none at all and it falls back to this weird default.
Just guessing anyway, no idea really.
Geia sou btw, se poio realm paizeis? :p
EDIT: Akyro, twra eida oti eisai o Shex, geia sou giorgo :D
LonesomeCrow
12-29-2010, 09:50 PM
Since the update where number formats were supposed to be more human readable my numbers are messed up.
Instead of 1,234,567 (I assume it is supposed to be) im getting 1234567.0000000
where can I start looking into a fix for this, I assumed others too would have similar issues but all other users I asked said they are fine (specifically linux players)?
forum search is hard because the search terms number format are generic
Im running Linux (Slackware 12.2)
with xfce window manager
lang=en_GB (despite my physical location being Cyprus)
Regards
GX
I am also seeing this issue. Not ALL numbers are like this, just the ones in the character window, inventory window, xp bar, item description window etc.. is where I've noticed it. Numbers such as quantity of arrows, character lvl and others are unaffected.
I'm running Gentoo, gnome, en_US.
Originally I thought it was related to having updated the game after having been gone for over a year, I had been running the 32 bit version and just relaunched the game (same install on completely new hardware). I then realized I there was a 64 bit version available so I downloaded it and installed cleanly. Same issue remains on both clients.
mailme_gx
12-31-2010, 10:17 AM
gia sou pano imme Shex sto horus Syrtis
I also guessed that it has something to do with OS number format but need some technical clues to how its retreived.
I also tried a fresh install of RO as my game.cfg must be very old but it didnt help
This needs technical possibly dev input
GX
DkySven
12-31-2010, 11:33 AM
I have actually the same error on Arch Linux with KDE and Dutch locales.
mailme_gx
12-31-2010, 12:19 PM
this is somethig to do with os locale
if I try
$locale -a
C
POSIX
$locale
LANG=en_GB
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_PAPER="C"
LC_NAME="C"
LC_ADDRESS="C"
LC_TELEPHONE="C"
LC_MEASUREMENT="C"
LC_IDENTIFICATION="C"
LC_ALL=C
This is the cause. I dont know why the os has definition for en_GB and when I force to en_GB it gives error no definition for local '' falling back to 'C'
GX
Znurre
12-31-2010, 01:50 PM
this is somethig to do with os locale
if I try
$locale -a
C
POSIX
$locale
LANG=en_GB
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_PAPER="C"
LC_NAME="C"
LC_ADDRESS="C"
LC_TELEPHONE="C"
LC_MEASUREMENT="C"
LC_IDENTIFICATION="C"
LC_ALL=C
This is the cause. I dont know why the os has definition for en_GB and when I force to en_GB it gives error no definition for local '' falling back to 'C'
GXTry running locale-gen and see if it solves the problem.
surak
12-31-2010, 02:28 PM
As it was pointed here, it happens when the game can't find the locale configured in the LANG environment variable.
The fallback code was wrong, just fixed it for the next version. Meanwhile use a valid LANG value :P
mailme_gx
12-31-2010, 04:49 PM
thanks for the reply surak
Im no linux guru but as far as I can tell the only valid values I have are POSIX and C which dont have any number formatting, I tried specifying for C the LC_NUMERIC=3;3 but it didnt help..
Znurre
12-31-2010, 06:03 PM
thanks for the reply surak
Im no linux guru but as far as I can tell the only valid values I have are POSIX and C which dont have any number formatting, I tried specifying for C the LC_NUMERIC=3;3 but it didnt help..Did you run locale-gen?
Also, check your /etc/locale.gen and uncomment any interesting locales and try to re-run locale-gen again.
mailme_gx
01-01-2011, 07:39 PM
hi Znurre
I dont have locale-gen command only locale and localedef
nor is there a /etc/locale.gen file
But its clear I need to generate/install the locales I need so Ill look into that for my distro(slackware) thanks
Regards
GX
Znurre
01-01-2011, 07:42 PM
hi Znurre
I dont have locale-gen command only locale and localedef
nor is there a /etc/locale.gen file
Regards
GXOk, my bad.
They exist in ArchLinux so I assumed the same was true for Slackware.
vBulletin® v3.8.7, Copyright ©2000-2024, vBulletin Solutions, Inc.