• 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

Conflits not working for child units?

  • Thread starter Thread starter mobo at adelphia.net
  • Start date Start date
M

mobo at adelphia.net

Guest
Well, I've been trying to figure this one out for a week now. My HQ unit has two transport vehicles. They can be of three different types, lets say type 1, 2, and 3. I can give the HQ two type 2 or one type1 and one type 3, ect. Right now I gave the HQ the option to all three types and added the rept:unit@2 to the options. That allows me to select a max of two of each transport type. But I can still select the other two types (twice each) for a total of 6 transports. All three options on the HQ have the same conflict group. How can I make it were I can select any combination of the three transports up to a total of two?

Thanks,

Keith

'95 VR-4




[Non-text portions of this message have been removed]


------------------------ Yahoo! Groups Sponsor ---------------------~-->
FREE COLLEGE MONEY
CLICK HERE to search
600,000 scholarships!
http://us.click.yahoo.com/iZp8OC/4m7CAA/ySSFAA/IMSolB/TM
---------------------------------------------------------------------~->
 
In your datadef file define a conflict group that allows 2 choices
and then assign all these options to that group. This will cause a
violation when the third one of any of these is selected.

Later,
Hugo

--- In armybuilder@y..., "Keith Upton" <mobo@a...> wrote:
> Well, I've been trying to figure this one out for a week now. My
HQ unit has two transport vehicles. They can be of three different
types, lets say type 1, 2, and 3. I can give the HQ two type 2 or
one type1 and one type 3, ect. Right now I gave the HQ the option to
all three types and added the rept:unit@2 to the options. That
allows me to select a max of two of each transport type. But I can
still select the other two types (twice each) for a total of 6
transports. All three options on the HQ have the same conflict
group. How can I make it were I can select any combination of the
three transports up to a total of two?
>
> Thanks,
>
> Keith
>
> '95 VR-4
>
>
>
>
> [Non-text portions of this message have been removed]


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Stock for $4.
No Minimums.
FREE Money 2002.
http://us.click.yahoo.com/BgmYkB/VovDAA/ySSFAA/IMSolB/TM
---------------------------------------------------------------------~->
 
Sorry, I should have mentioned that I have it set up that way. I played around with it structure a different way once. I had the options add a child unit that had the rang:0-2. This Would make the third option non selectable, but it still did not validate the first two options. It would still let me have 0-2 of transport type 1 and 0-2 of type 2 (It was like grandchild unit was not being counted for conflicts). Just not three different types of transports. Would really like them to be list as two separate units add to the HQ.


Thanks,

Keith

'95 VR-4


----- Original Message -----
From: emperorfranz
To: armybuilder@yahoogroups.com
Sent: Saturday, March 23, 2002 7:18 AM
Subject: [AB] Re: Conflits not working for child units?


In your datadef file define a conflict group that allows 2 choices
and then assign all these options to that group. This will cause a
violation when the third one of any of these is selected.

Later,
Hugo

--- In armybuilder@y..., "Keith Upton" <mobo@a...> wrote:
> Well, I've been trying to figure this one out for a week now. My
HQ unit has two transport vehicles. They can be of three different
types, lets say type 1, 2, and 3. I can give the HQ two type 2 or
one type1 and one type 3, ect. Right now I gave the HQ the option to
all three types and added the rept:unit@2 to the options. That
allows me to select a max of two of each transport type. But I can
still select the other two types (twice each) for a total of 6
transports. All three options on the HQ have the same conflict
group. How can I make it were I can select any combination of the
three transports up to a total of two?
>
> Thanks,
>
> Keith
>
> '95 VR-4
>
>
>
>
> [Non-text portions of this message have been removed]


Yahoo! Groups Sponsor
ADVERTISEMENT




To unsubscribe from this group, email

armybuilder-unsubscribe@egroups.com

Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



[Non-text portions of this message have been removed]


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Stock for $4.
No Minimums.
FREE Money 2002.
http://us.click.yahoo.com/BgmYkB/VovDAA/ySSFAA/IMSolB/TM
---------------------------------------------------------------------~->
 
--- In armybuilder@y..., "Keith Upton" <mobo@a...> wrote:
> Sorry, I should have mentioned that I have it set up that way. I
played around with it structure a different way once. I had the
options add a child unit that had the rang:0-2. This Would make the
third option non selectable, but it still did not validate the first
two options. It would still let me have 0-2 of transport type 1 and
0-2 of type 2 (It was like grandchild unit was not being counted for
conflicts). Just not three different types of transports. Would
really like them to be list as two separate units add to the HQ.
>

You may have to play around with actual type names and the external
unit attribute tcon:
tcon: compares all of the types for a unit and its children and
allows various validation to be triggered based on type counts etc...

Check it out :-)

Russell.
----
Russell Sparkes - rjs@inorbit.com - http://www.freecfm.com/r/rjs
"Experience is what you get just after you needed it" - Unknown


------------------------ Yahoo! Groups Sponsor ---------------------~-->
FREE COLLEGE MONEY
CLICK HERE to search
600,000 scholarships!
http://us.click.yahoo.com/iZp8OC/4m7CAA/ySSFAA/IMSolB/TM
---------------------------------------------------------------------~->
 
Child units are distinct from the parent unit when tracking conflicts. As
Russell pointed out, using "tcon" allows you to validate option selections
across child units. Another possible approach would be to use a hidden stat
within the parent unit and have the child units increment that stat within
the parent based on their unit count. The use of hidden stats is extremely
powerful and I've found it to often be the easiest way to implement many
difficult constraints that span parent/child relationships.

Hope this helps,
Rob


At 07:31 AM 3/23/2002 -0700, you wrote:
>Sorry, I should have mentioned that I have it set up that way. I played
>around with it structure a different way once. I had the options add a
>child unit that had the rang:0-2. This Would make the third option non
>selectable, but it still did not validate the first two options. It would
>still let me have 0-2 of transport type 1 and 0-2 of type 2 (It was like
>grandchild unit was not being counted for conflicts). Just not three
>different types of transports. Would really like them to be list as two
>separate units add to the HQ.


---------------------------------------------------------------------------
Rob Bowes (rob@wolflair.com) (650) 726-9689
Lone Wolf Development www.wolflair.com


------------------------ Yahoo! Groups Sponsor ---------------------~-->
FREE COLLEGE MONEY
CLICK HERE to search
600,000 scholarships!
http://us.click.yahoo.com/iZp8OC/4m7CAA/ySSFAA/IMSolB/TM
---------------------------------------------------------------------~->
 
Thanks Russell. I've added tcon:HQsec@1u:Trans@2u to the External Attributes of the HQ unit. I've also given the HQ unit the Unit Type HQsec as well as given the Child units the Unit Type Trans. AB will still allow me to select more then 2 transports. Is there any thing that I'm missing in the tcon expression? Do I need to add a tcon to the child units as well? I really appreciate your help and I'm sorry I have so many questions. It's been about 5-6 years since I've tried to work on any of the Data files. I used to help maintain the WHFB files back in version 1 of AB. That was before we could even have the files on a web site, had to email them to every one!


Thanks,

Keith Upton

'95 VR-4


----- Original Message -----
From: rjsoz
To: armybuilder@yahoogroups.com
Sent: Saturday, March 23, 2002 6:13 PM
Subject: [AB] Re: Conflits not working for child units?


--- In armybuilder@y..., "Keith Upton" <mobo@a...> wrote:
> Sorry, I should have mentioned that I have it set up that way. I
played around with it structure a different way once. I had the
options add a child unit that had the rang:0-2. This Would make the
third option non selectable, but it still did not validate the first
two options. It would still let me have 0-2 of transport type 1 and
0-2 of type 2 (It was like grandchild unit was not being counted for
conflicts). Just not three different types of transports. Would
really like them to be list as two separate units add to the HQ.
>

You may have to play around with actual type names and the external
unit attribute tcon:
tcon: compares all of the types for a unit and its children and
allows various validation to be triggered based on type counts etc...

Check it out :-)

Russell.
----
Russell Sparkes - rjs@inorbit.com - http://www.freecfm.com/r/rjs
"Experience is what you get just after you needed it" - Unknown


Yahoo! Groups Sponsor
ADVERTISEMENT




To unsubscribe from this group, email

armybuilder-unsubscribe@egroups.com

Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



[Non-text portions of this message have been removed]


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Stock for $4.
No Minimums.
FREE Money 2002.
http://us.click.yahoo.com/6GDALA/VovDAA/ySSFAA/IMSolB/TM
---------------------------------------------------------------------~->
 
--- In armybuilder@y..., "Keith Upton" <mobo@a...> wrote:
> Thanks Russell. I've added tcon:HQsec@1u:Trans@2u to the External
Attributes of the HQ unit. I've also given the HQ unit the Unit
Type HQsec as well as given the Child units the Unit Type Trans. AB
will still allow me to select more then 2 transports. Is there any
thing that I'm missing in the tcon expression? Do I need to add a
tcon to the child units as well? I really appreciate your help and
I'm sorry I have so many questions. It's been about 5-6 years since
I've tried to work on any of the Data files. I used to help
maintain the WHFB files back in version 1 of AB. That was before we
could even have the files on a web site, had to email them to every
one!
>
>From the help for tcon:
"If the ratio between the two types must be exact, then two separate
relationships must be defined - one in either direction."

So you probably need something like: tcon:Trans@2u:HQsec@1u as well.

Enjoy!
Russell.
----
Russell Sparkes - rjs@inorbit.com - http://www.freecfm.com/r/rjs
"Experience is what you get just after you needed it" - Unknown


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Stock for $4.
No Minimums.
FREE Money 2002.
http://us.click.yahoo.com/k6cvND/n97DAA/ySSFAA/IMSolB/TM
---------------------------------------------------------------------~->
 
Well, I got the Trans to HQ ratio worked out. It will give a conflict now if they choose more then two transports. I'd still like to just have AB remove the options when they select two transports.



Thanks,

Keith

'95 VR-4


----- Original Message -----
From: rjsoz
To: armybuilder@yahoogroups.com
Sent: Wednesday, April 03, 2002 5:14 PM
Subject: [AB] Re: Conflits not working for child units?


--- In armybuilder@y..., "Keith Upton" <mobo@a...> wrote:
> Thanks Russell. I've added tcon:HQsec@1u:Trans@2u to the External
Attributes of the HQ unit. I've also given the HQ unit the Unit
Type HQsec as well as given the Child units the Unit Type Trans. AB
will still allow me to select more then 2 transports. Is there any
thing that I'm missing in the tcon expression? Do I need to add a
tcon to the child units as well? I really appreciate your help and
I'm sorry I have so many questions. It's been about 5-6 years since
I've tried to work on any of the Data files. I used to help
maintain the WHFB files back in version 1 of AB. That was before we
could even have the files on a web site, had to email them to every
one!
>
From the help for tcon:
"If the ratio between the two types must be exact, then two separate
relationships must be defined - one in either direction."

So you probably need something like: tcon:Trans@2u:HQsec@1u as well.

Enjoy!
Russell.
----
Russell Sparkes - rjs@inorbit.com - http://www.freecfm.com/r/rjs
"Experience is what you get just after you needed it" - Unknown


Yahoo! Groups Sponsor
ADVERTISEMENT




To unsubscribe from this group, email

armybuilder-unsubscribe@egroups.com

Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



[Non-text portions of this message have been removed]



------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Stock for $4.
No Minimums.
FREE Money 2002.
http://us.click.yahoo.com/k6cvND/n97DAA/ySSFAA/IMSolB/TM
---------------------------------------------------------------------~->
 
Back
Top