referenceable id question

Involved development of the OpenMW construction set.
Post Reply
User avatar
cc9cii
Posts: 434
Joined: 28 Mar 2013, 04:01

referenceable id question

Post by cc9cii » 10 Mar 2015, 23:51

CSVWorld::IdValidator::isValid() has this check:

Code: Select all

    if (!first && (c.isDigit()  || c.isSpace()))
        return true;
Which means one can't create (or clone) something like "6th bell hammer" using the creator on the table bottom box.

Can the digit check be moved (i.e. made to return true always) or will that break something else?

User avatar
Zini
Posts: 5134
Joined: 06 Aug 2011, 15:16

Re: referenceable id question

Post by Zini » 11 Mar 2015, 16:58

The idea here is to be more strict about naming than OpenCS. You can still use all kind of news but newly created records need to be named more sensible.
The case you mentioned is one of the least problematic. But still, I think not allowing names starting with a digit makes perfect sense.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest