Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#222 closed defect (released)

decimal comma/point not handled correctly (again?) in costMultiplier

Reported by: Henri Owned by:
Priority: minor Milestone: WarFoundry 0.1
Component: WarFoundry-GUI-WinForms Version: Trunk
Keywords: Cc:
Blocked By: Blocking:

Description

There seems to be another problem with handling decimal points or commas.
With the system separator as "," it won't load the datafile with a costMultiplier of "0,6". If the costMultiplier is "0.6" the datafile loads but then stops after creating the army in WF with a message that says approx. "the Costmultiplier is not a valid decimal number".

\IBBoard.WarFoundry.GUI.WinForms\bin\Release\data\Orks -v2.race: Problem validating against schema for WarFoundry data: The 'costMultiplier' attribute is invalid - The value '0,6' is invalid according to its datatype 'http://ibboard.co.uk/warfoundry/core:nonNegativeDouble' - The string '0,6' is not a valid Double value.
INFO [13:11:43]: FrmMain.Main() - Line: 0 - Closing WarFoundry WinForms

Change History (5)

comment:1 Changed 10 years ago by Henri

Seems that having other point values with a "," won't work either.

\IBBoard.WarFoundry.GUI.WinForms\bin\Release\data\Orks -v2.race: Problem validating against schema for WarFoundry data: The 'points' attribute is invalid - The value '60,5' is invalid according to its datatype 'http://ibboard.co.uk/warfoundry/core:nonNegativeNonInfiniteDouble' - The string '60,5' is not a valid Double value.

comment:2 Changed 10 years ago by ibboard

Status: newconfirmed

Curses! Hopefully it'll be a central point I can change again (or code that should be using the central point but isn't).

comment:3 Changed 10 years ago by ibboard

Resolution: fixed
Status: confirmedclosed

(In r423) Fixes #222: decimal comma/point not handled correctly (again?) in costMultiplier

  • Replace two "type.Parse" calls with XmlTools calls

All decimals in WarFoundry should use the decimal point (or "period" to Americans) rather than the decimal comma because that's what XML uses in its default type definitions

comment:4 Changed 10 years ago by ibboard

released: noyes

Release as part of v0.1b6

comment:5 Changed 10 years ago by ibboard

Resolution: fixedreleased

Mark fix as released under a previous version

Note: See TracTickets for help on using tickets.