Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Army Builder Forums > Army Builder
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
toddp
Junior Member
 
Join Date: Nov 2005
Posts: 28

Old January 30th, 2006, 07:33 AM
I suspect that I am doing something wrong -- that's usually the case!

I have an option that adds an item when the option is selected. When I change the minimum and maximum range to 1, the item is not added. I have check via my pre-link script that the option working as I expected and 'selection' is returning 1:

var num as number
num = selection
name = "foo" & num


I have verified that it does revolve around the min and max in my linkset. If I have the minimum to 0 and the maximum to 1 and set the initial value to 1, the item is added as I would expect. However, if I move the minimum to 1, the item is not added.

Any ideas?

Regards,

Todd
toddp is offline   #1 Reply With Quote
harkan
Senior Member
Volunteer Data File Author
 
Join Date: Mar 2005
Posts: 345

Old January 30th, 2006, 09:26 AM
have u tried it in post-link so it process later?
harkan is offline   #2 Reply With Quote
toddp
Junior Member
 
Join Date: Nov 2005
Posts: 28

Old January 30th, 2006, 09:00 PM
Sorry, I mis-typed. I added the test to the Eval script within the option, so I know that the option is actually being processed and that selection is returning 1.

What I don't understand is why the child link is not added?
toddp is offline   #3 Reply With Quote
toddp
Junior Member
 
Join Date: Nov 2005
Posts: 28

Old January 31st, 2006, 09:38 PM
Latest experiment. I changed the Nature of my option to "include".
The link is not added as long as minimum equals maximum. If minimum and maximum are different, the link is added.

Is this the expected behavior?

Regards,

Todd
toddp is offline   #4 Reply With Quote
toddp
Junior Member
 
Join Date: Nov 2005
Posts: 28

Old January 31st, 2006, 09:51 PM
There is an easy way to reproduce this effect. In the example files, edit the unit.dat file in ABCreator.
1. Open the unit steeljaw.
2. In the option vu_electro, set a min and max constraint to the same value to the same value.
3. Make sure the Nature of the link is set to Include

The child link Electromag Plating will not be added if the min and max are set to the same value. If they are different values, the child will be added.
toddp is offline   #5 Reply With Quote
toddp
Junior Member
 
Join Date: Nov 2005
Posts: 28

Old January 31st, 2006, 10:00 PM
I found a workaround, but I'm not too happy with the results.

1. Make the minimum and maximum different numbers.
2. Use the start value to be the desired value
3. Hide the option using by setting "Start Visible?" to "No".

This has the effect of changing the options displayed, but at least the user cannot change the values.
toddp is offline   #6 Reply With Quote
rob
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 8,232

Old February 2nd, 2006, 12:36 PM
This definitly sounds like a bug to me. :-(

-Rob

At 10:38 PM 1/31/2006, you wrote:

Quote:
Latest experiment. I changed the Nature of my option to "include".
The link is not added as long as minimum equals maximum. If minimum and maximum are different, the link is added.

Is this the expected behavior?

Regards,

Todd
rob is offline   #7 Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 01:29 PM.


Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.