From: Rick W. <wes...@pu...> - 2010-01-13 20:28:56
|
Erik Vos wrote: > Hmm, yes, apparently the options cannot be used on the same level > where these are defined (although in fact the IfOption tags are processed > first). > Perhaps these should be lifted out of the Component tags entirely. > If you think it's really important, I could have another look at it. > Well, yes, it is important. Two reasons: First is silly since 2-player 18xx is silly but for many 2-player variants the holding limit is raised from 60% to 70%. Second is important. As I recall a couple of Tresham's titles ('25, '53 if I have this correct) have a variable share limit depending on the number of players. So at some point this point will have to be addressed. > Erik. > > -----Original Message----- > From: Rick Westerman [mailto:wes...@pu...] > Sent: Wednesday 13 January 2010 19:42 > To: Development list for Rails: an 18xx game > Subject: Re: [Rails-devel] IfOption in Map.xml > > Erik Vos wrote: > >> Yes, <IfOption> is a generic feature that should be honoured by all Rails >> XML files. >> >> > I think I have found one place where it is not. But there may be a > work-around. > > The place is in the 'GameManager' component within the 'Game.xml' > file. The GameManager is, of course, where the GameOptions are defined > so this may be a clue to the problem. Or as usual I might be doing > something wrong. Anyway I wanted to change the PlayerShareLimit based > on a GameOption. Could not do it in there. Other component sections in > Game.xml do accept options. > > > > -- Rick Westerman wes...@pu... Bioinformatics specialist at the Genomics Facility. Phone: (765) 494-0505 FAX: (765) 496-7255 Department of Horticulture and Landscape Architecture 625 Agriculture Mall Drive West Lafayette, IN 47907-2010 Physically located in room S049, WSLR building |