• 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

option does not create child link

toddp

Active member
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
 
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?
 
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
 
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.
 
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.
 
This definitly sounds like a bug to me. :-(

-Rob

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

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
 
Back
Top