Opened 8 years ago

Last modified 2 years ago

#3818 new defect

Number type problem with relative templates. — at Version 3

Reported by: fatherbushido Owned by:
Priority: Should Have Milestone: Backlog
Component: Simulation Keywords: patch
Cc: mimo Patch:

Description (last modified by fatherbushido)

When using relative template, for example

  <Cost>
    <BuildTime>350</BuildTime>
    <Resources>
      <stone op="mul">0.8</stone>
    </Resources>
  </Cost>

in mace_fortess.xml,

We get an (expected) error due to wrong number type :

ERROR: RelaxNGValidator: Validation error: structures/mace_fortress:1: Type nonNegativeInteger doesn't allow value '799.9878'

see L157 of ps/trunk/source/simulation2/system/ParamNode.cpp

// TODO: Support parsing of data types other than fixed; log warnings in other cases

Change History (3)

comment:1 by fatherbushido, 8 years ago

I had just seen that there is a TODO in :r17386

// TODO: Support parsing of data types other than fixed; log warnings in other cases

comment:2 by fatherbushido, 8 years ago

Milestone: BacklogAlpha 21
Priority: Nice to HaveShould Have

comment:3 by fatherbushido, 8 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.