Create account / Log in

RegExp documentation in 3.1 Designer's Guide

Suggestions for additional features for the module editor and Vassal engine.

Moderators: uckelman, Tim M

RegExp documentation in 3.1 Designer's Guide

Postby irishwulf » December 30th, 2011, 11:24 am

Mycenae,
1) I love your guide.
2) Could you update the description of regular expression syntax (and the associated table) to use =~ and !~? According to my experiments, those are the correct operators, and some of the ones listed do not work. Further, the example given has spaces around the pipes, which I don't believe will result in a correct match in many instances. I think it would need to be $CurrentPlayer$ =~ Blue|Green|Red to work as indicated.
3) Unrelated, I found that the trait 'ObscuredToOthers', and likely other system traits, is actually a string with values either 'true' or 'false' (uncapitalized), and not a boolean as I expected. It would have saved me a little bit of grief to know beforehand that I needed to check 'ObscuredToOthers = true', precisely that way, in property matches. I see now as I am writing this that all this time you have had that exact example on p. 14 - but one late night I kept looking at p. 13's 'True/False' (capitalized). I mean I suppose it was only about 5 minutes before I just printed the thing out in a report. But, you know. Arduous 5 minutes.
4) I love it. Thank you.

Cheers,
Seth
irishwulf
 
Posts: 243
Joined: December 17th, 2011, 4:29 am

Re: RegExp documentation in 3.1 Designer's Guide

Postby mycenae » December 31st, 2011, 6:34 am

Thanks:) Those are good catches. I am working on a revision to the Guide right now (not much new information, but many clarifications) and will include your corrections in the next rev.
mycenae
 
Posts: 394
Joined: May 16th, 2008, 6:41 pm

Re: RegExp documentation in 3.1 Designer's Guide

Postby barbanera » January 23rd, 2012, 5:47 pm

Why not simply CurrentPlayer =~ Blue|Green|Red ?

CurrentPlayer is supposed to contain either Blue, Green or Red, I presume.. I don't think the example is meant to imply that CurrentPlayer really contains the name of another variable containing in turn the strings Blue, Green or Red.. or does it?
barbanera
 
Posts: 382
Joined: January 12th, 2012, 2:27 pm

Re: RegExp documentation in 3.1 Designer's Guide

Postby irishwulf » January 23rd, 2012, 6:34 pm

Yes, I was looking at the new version and realized my own mistake - it should be CurrentPlayer, not $CurrentPlayer$.
irishwulf
 
Posts: 243
Joined: December 17th, 2011, 4:29 am


Return to Feature Requests

Who is online

Users browsing this forum: No registered users and 1 guest