• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

umax troubles

  • Thread starter Thread starter cmpetro at household.com
  • Start date Start date
C

cmpetro at household.com

Guest
Code:
I'm having trouble with umax.

I want to have a unit that only 1 is allowed in an army and then only is the
total points is >= 750

I've tried both umax:1u-min=750 and umax:1u@750 ([email]1u@750[/email]).

If I add 2 units I get a validation warning.  But I don't get a warning if I add
the unit when there is less than 750 points in the army.
To unsubscribe from this group, email
armybuilder-unsubscribe@egroups.com (armybuilder-unsubscribe@egroups.com) eGroups.com Home: http://www.egroups.com/group/armybuilder
www.egroups.com - Simplifying group communications
 
Code:
This is likely the same bug that Mathias is running into. Please see my 
response to his post for the details.

Thanks, Rob


At 09:17 AM 3/23/00 -0600, you wrote:



>I'm having trouble with umax.
>
>I want to have a unit that only 1 is allowed in an army and then only is the
>total points is >= 750
>
>I've tried both umax:1u-min=750 and umax:<mailto:1u@750 ([email]1u@750[/email])1u@750 ([email]1u@750[/email]).
>
>If I add 2 units I get a validation warning.  But I don't get a warning if 
>I add
>the unit when there is less than 750 points in the army.
To unsubscribe from this group, email
armybuilder-unsubscribe@egroups.com (armybuilder-unsubscribe@egroups.com) eGroups.com Home: http://www.egroups.com/group/armybuilder
www.egroups.com - Simplifying group communications
 
Code:
Here is what I found in the list archives

"There is also a nasty little (and SUBTLE) bug that slipped into V1.4d
that 
you should be aware of. The problem is that an internal value is not
being 
set properly if a special condition exists within AB. That condition is 
that *NO* "global" validation rules exist in the data file for the
loaded 
roster. Since virtually all data files have at least ONE global
validation 
rule, this bug never materialized before. By global, I mean a rule that 
spans the entire roster, such as "trat", "tlmt", etc. This bug affects
many 
validation rules, such as "umax" and its kin.

Fortunately, the work around is pretty easy. :-) The workaround is to 
simply define a nonsense global validation rule that applies to all 
rosters. This is done by defining an augmentation record with a race
prefix 
of "xx" (i.e. it applies to all of the races). The easiest solution is
to 
define an attribute that will never be applicable, such as 
"tlmt:none-pct=10-@max". This limits all units of type "none" to be no
more 
than 100% of the roster points, which is useless, except in this case
where 
we need a workaround. :-)

Hope this helps, Rob"

I put "tlmt:none-pct=100@max ([email]100@max[/email])" as an augmentation record with a race
prefix 
of "xx".  It did not solve my problem.



rob bowes [email]ro-@wolflair.com[/email] wrote: 
original article:[url=http://www.egroups.com/group/armybuilder/?start=745]http://www.egroups.com/group/armybuilder/?start=745[/url]
> This is likely the same bug that Mathias is running into. Please see
my 
> response to his post for the details.
> 
> Thanks, Rob
> 
> 
> At 09:17 AM 3/23/00 -0600, you wrote:
> 
> 
> 
> >I'm having trouble with umax.
> >
> >I want to have a unit that only 1 is allowed in an army and then
only is the
> >total points is >= 750
> >
> >I've tried both umax:1u-min=750 and umax:<mailto:1u@750 ([email]1u@750[/email])1u@750 ([email]1u@750[/email]).
> >
> >If I add 2 units I get a validation warning.  But I don't get a
warning if 
> >I add
> >the unit when there is less than 750 points in the army.
>
To unsubscribe from this group, email
armybuilder-unsubscribe@egroups.com (armybuilder-unsubscribe@egroups.com) eGroups.com Home: http://www.egroups.com/group/armybuilder
www.egroups.com - Simplifying group communications
 
Code:
I see... Thank you for clarifing that.  I don't suppose I could get a flag on
umax to have it always work off of the current size of the units added to the
roster?  Something like umax:1u-min=750-cur

Thanks again.

rob bowes [email]ro-@wolflair.com[/email] wrote:
original article:[url=http://www.egroups.com/group/armybuilder/?start=770]http://www.egroups.com/group/armybuilder/?start=770[/url]
> Thanks for your patience on this one. I'm still scrambling to get caught up
> after being gone for 3 weeks. :-)
>
> The first attribute you list below should work perfectly (i.e.
> "umax:1u-min=750"). I just tried it and it worked great for me. This
> attribute states that there can be only one unit in the roster, and the
> roster size must be at least 750 points in size. Please note that this
> minimum size is NOT the current size of the units added to the roster,
> unless you are creating an unrestricted size roster. The size used here is
> the specified size for the entire roster (i.e. the size when you created
> the roster). Consequently, if you create a 2000 point roster and only add
> 500 points of troops, this attribute will NOT trigger, since the total
> allowed roster size is >=750 points.
>
> Please let me know if this explanation is not clear or if you have
> additional questions on this issue.
>
> Thanks, Rob
>
>
> At 09:17 AM 3/23/00 -0600, you wrote:
> >I'm having trouble with umax.
> >
> >I want to have a unit that only 1 is allowed in an army and then only is the
> >total points is >= 750
> >
> >I've tried both umax:1u-min=750 and umax:<mailto:1u@750 ([email]1u@750[/email])1u@750 ([email]1u@750[/email]).
> >
> >If I add 2 units I get a validation warning.  But I don't get a warning if
> >I add
> >the unit when there is less than 750 points in the army.
>
>
>
To unsubscribe from this group, email
armybuilder-unsubscribe@egroups.com (armybuilder-unsubscribe@egroups.com) eGroups.com Home: http://www.egroups.com/group/armybuilder
www.egroups.com - Simplifying group communications
 
I see... Thank you for clarifing that. I don't suppose I could get a
flag on umax to have it always work off of the current size of the
units added to the roster? Something like umax:1u-min=750-cur

Thanks again.

rob bowes ro-@wolflair.com wrote:
original article:http://www.egroups.com/group/armybuilder/?start=770
> Thanks for your patience on this one. I'm still scrambling to get
caught up
> after being gone for 3 weeks. :-)
>
> The first attribute you list below should work perfectly (i.e.
> "umax:1u-min=750"). I just tried it and it worked great for me. This
> attribute states that there can be only one unit in the roster, and
the
> roster size must be at least 750 points in size. Please note that
this
> minimum size is NOT the current size of the units added to the
roster,
> unless you are creating an unrestricted size roster. The size used
here is
> the specified size for the entire roster (i.e. the size when you
created
> the roster). Consequently, if you create a 2000 point roster and only
add
> 500 points of troops, this attribute will NOT trigger, since the
total
> allowed roster size is >=750 points.
>
> Please let me know if this explanation is not clear or if you have
> additional questions on this issue.
>
> Thanks, Rob
>
>
> At 09:17 AM 3/23/00 -0600, you wrote:
> >I'm having trouble with umax.
> >
> >I want to have a unit that only 1 is allowed in an army and then
only is the
> >total points is >= 750
> >
> >I've tried both umax:1u-min=750 and umax:<mailto:1u@750 (1u@750)1u@750 (1u@750).
> >
> >If I add 2 units I get a validation warning. But I don't get a
warning if
> >I add
> >the unit when there is less than 750 points in the army.
>
>
>
>

To unsubscribe from this group, email
armybuilder-unsubscribe@egroups.com (armybuilder-unsubscribe@egroups.com) eGroups.com Home: http://www.egroups.com/group/armybuilder
www.egroups.com - Simplifying group communications
 
Code:
Well, it DOES behave that way if you create a roster of unlimited size. 
However, if you are creating a roster of size X, then it seems logical to 
me that all validations should be based on the agreed-to size limit. 
Doesn't it??

- Rob


At 04:36 AM 3/30/00 -0800, you wrote:
>I see... Thank you for clarifing that. I don't suppose I could get a
>flag on umax to have it always work off of the current size of the
>units added to the roster? Something like umax:1u-min=750-cur
>
>Thanks again.


---------------------------------------------------------------------------
Rob Bowes (rob@wolflair.com ([email]rob@wolflair.com[/email]))                                 (650) 726-9689
Lone Wolf Development                                      [url]www.wolflair.com[/url]
To unsubscribe from this group, email
armybuilder-unsubscribe@egroups.com (armybuilder-unsubscribe@egroups.com) eGroups.com Home: http://www.egroups.com/group/armybuilder
www.egroups.com - Simplifying group communications
 
Back
Top