• 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

Infinite loop warning

  • Thread starter Thread starter jlmartin at wi.rr.com
  • Start date Start date
J

jlmartin at wi.rr.com

Guest
I am working on a data file and army builder reports a serious error that
resulted in an infinite loop. The problem is, I don't think the file has an
infinite loop. Here is what I'm doing:

I have a unit called Platoon with two options HQ with two AUTO option links
for HQ and SQUAD.

Since HQ works fine, we can ignore that I think.

Anyway, the SQUAD option adds a size 3:3 unit called 'squad'

Now squad has four auto option links for:
Squad Leader (adds apropriate child unit to squad size 1:1)
Asst Squad Leader (adds a apropriate child unit to squad size 1:1)
Machine Gunner (adds a apropriate child unit to squad size 1:1)
Riflemen (adds a child unit to squad size 7:7)

These last child units have no options.

Does anyone know which is happening or if it possible to increase Army
Builder's recursion depth or something?

John
E-mail & WM: jlmartin@wi.rr.com
URL: http://home.wi.rr.com/jlmartin
"It is well that war is so terrible, or we should get too fond of it."
Robert E. Lee



------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get A Free Psychic Reading! Your Online Answer To Life's Important Questions.
http://us.click.yahoo.com/Lj3uPC/Me7FAA/ySSFAA/IMSolB/TM
---------------------------------------------------------------------~->

To unsubscribe from this group, email

armybuilder-unsubscribe@yahoogroups.com

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
 
At 07:25 PM 6/29/2003 -0500, you wrote:
>I am working on a data file and army builder reports a serious error that
>resulted in an infinite loop. The problem is, I don't think the file has an
>infinite loop. Here is what I'm doing:
>
>I have a unit called Platoon with two options HQ with two AUTO option links
>for HQ and SQUAD.
>
>Since HQ works fine, we can ignore that I think.

Before dismissing it, you might want to double check; try removing each
option individually from the unit. If removal of one causes the problem to
stop happening, then the issue is certainly with that option.

>Anyway, the SQUAD option adds a size 3:3 unit called 'squad'
>
>Now squad has four auto option links for:
>Squad Leader (adds apropriate child unit to squad size 1:1)
>Asst Squad Leader (adds a apropriate child unit to squad size 1:1)
>Machine Gunner (adds a apropriate child unit to squad size 1:1)
>Riflemen (adds a child unit to squad size 7:7)
>
>These last child units have no options.
>
>Does anyone know which is happening or if it possible to increase Army
>Builder's recursion depth or something?

The recursion depth shouldn't be a problem; are you sure you've given the
correct unique ids for the above options? I used to run into this problem
when I was being careless and accidentally attaching the wrong options to
units. Again, try removing these options individually to see if you can
narrow down the problems scope.


--
Colen McAlister (colen@wolflair.com)
Lone Wolf Development www.wolflair.com



------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get A Free Psychic Reading! Your Online Answer To Life's Important Questions.
http://us.click.yahoo.com/Lj3uPC/Me7FAA/ySSFAA/IMSolB/TM
---------------------------------------------------------------------~->

To unsubscribe from this group, email

armybuilder-unsubscribe@yahoogroups.com

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
 
The problem is most likely that you have a unit as the child of itself.
This is a no-no within AB. When AB was first written 6 years ago,
performance was a bigger concern because computers weren't nearly as
powerful as they are today. AB includes a performance optimization that
pre-calculates the entire possible hierarchy when you add a unit. If a unit
is a child of itself, you'll get the infinite recursion error.

The proper solution is to have an alternate unit for use as the child. With
inheritance, you can do this pretty easily without having to re-enter
everything. Alternately, you can just duplicate the unit within ABCreator
and tweak it appropriately.

Hope this helps,
Rob


At 07:25 PM 6/29/2003 -0500, you wrote:
>I am working on a data file and army builder reports a serious error that
>resulted in an infinite loop. The problem is, I don't think the file has an
>infinite loop. Here is what I'm doing:
>
>I have a unit called Platoon with two options HQ with two AUTO option links
>for HQ and SQUAD.
>
>Since HQ works fine, we can ignore that I think.
>
>Anyway, the SQUAD option adds a size 3:3 unit called 'squad'
>
>Now squad has four auto option links for:
>Squad Leader (adds apropriate child unit to squad size 1:1)
>Asst Squad Leader (adds a apropriate child unit to squad size 1:1)
>Machine Gunner (adds a apropriate child unit to squad size 1:1)
>Riflemen (adds a child unit to squad size 7:7)
>
>These last child units have no options.
>
>Does anyone know which is happening or if it possible to increase Army
>Builder's recursion depth or something?


---------------------------------------------------------------------------
Rob Bowes (rob@wolflair.com) (559) 658-6995
Lone Wolf Development www.wolflair.com


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Save up to 80% on top-quality inkjet cartridges and get your order fast!
FREE shipping on orders $50 or more to the US & Canada. Shop at Myinks.com!
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/v2G7ND/KfUGAA/ySSFAA/IMSolB/TM
---------------------------------------------------------------------~->

To unsubscribe from this group, email

armybuilder-unsubscribe@yahoogroups.com

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
 
Back
Top