• 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

More Addition Problems

  • Thread starter Thread starter marvincole1976 at yahoo.c
  • Start date Start date
M

marvincole1976 at yahoo.c

Guest
I thought this was solved but with further testing it failed again.
Here is what the senario is. I have a Variable called Count, a
Parent Unit, a Child Unit, and a Grand Child Unit. Here is what it
looks like in AB data files.

Parent
stat:Count+(#)

Child
prnt:Count+(Count+#)

Grand-Child
prnt:Count+(Count+#)


Assuming I have 1 Parent and 5 Children Count on Parent is 6 which is
what it sould be. When I add two Grand-Children howver the Count
remains at 6 on the parent dispite the fact that the Count on the
Child is now 2.

I use vwst to display what the varibles are. So I can see Count is
correct for the above senario on Grand Child and Child but it does
not update correctly on the Parent unit.

Could this be cause if I modified the datadef file post record
creation? Thanks for any help you can provide.


To unsubscribe from this group, email

armybuilder-unsubscribe@yahoogroups.com

Yahoo! Groups Links

To visit your group on the web, go to:
http://groups.yahoo.com/group/armybuilder/

To unsubscribe from this group, send an email to:
armybuilder-unsubscribe@yahoogroups.com

Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 
At 07:39 AM 1/26/2004, you wrote:
>I thought this was solved but with further testing it failed again.
>Here is what the senario is. I have a Variable called Count, a
>Parent Unit, a Child Unit, and a Grand Child Unit. Here is what it
>looks like in AB data files.
>
>Parent
>stat:Count+(#)
>
>Child
>prnt:Count+(Count+#)
>
>Grand-Child
>prnt:Count+(Count+#)
>
>
>Assuming I have 1 Parent and 5 Children Count on Parent is 6 which is
>what it sould be. When I add two Grand-Children howver the Count
>remains at 6 on the parent dispite the fact that the Count on the
>Child is now 2.
>
>I use vwst to display what the varibles are. So I can see Count is
>correct for the above senario on Grand Child and Child but it does
>not update correctly on the Parent unit.
>
>Could this be cause if I modified the datadef file post record
>creation? Thanks for any help you can provide.

Things are probably happening in the wrong order. You want this order:

Grand-child adds stat to Child
Child adds stat to Parent

But it sounds like things are actually happening in this order:

Child adds stat to Parent
Grand-child adds stat to Child

The Child adds to the Parents stat, *then* the Grand-child adds to the
Childs stat, so the modifier never makes it to the Parent. Try changing the
option on the grand-child to be a higher priority than the option on the
Child; that should (I think) ensure that it activates first, and that
everything happens in the correct sequence.

Hope this helps,


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



To unsubscribe from this group, email

armybuilder-unsubscribe@yahoogroups.com

Yahoo! Groups Links

To visit your group on the web, go to:
http://groups.yahoo.com/group/armybuilder/

To unsubscribe from this group, send an email to:
armybuilder-unsubscribe@yahoogroups.com

Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 
I think I get the jist of what you are saying. If the options are
categorized say like this.

Priority
First
Weapons
Armor
Last
N/A

I should give the grand-child First
I should give the child option Armor
I should give the Parent Last

You are talking about option categories right?

--- In armybuilder@yahoogroups.com, Colen McAlister <colen@w...>
wrote:
> At 07:39 AM 1/26/2004, you wrote:
> >I thought this was solved but with further testing it failed again.
> >Here is what the senario is. I have a Variable called Count, a
> >Parent Unit, a Child Unit, and a Grand Child Unit. Here is what it
> >looks like in AB data files.
> >
> >Parent
> >stat:Count+(#)
> >
> >Child
> >prnt:Count+(Count+#)
> >
> >Grand-Child
> >prnt:Count+(Count+#)
> >
> >
> >Assuming I have 1 Parent and 5 Children Count on Parent is 6 which
is
> >what it sould be. When I add two Grand-Children howver the Count
> >remains at 6 on the parent dispite the fact that the Count on the
> >Child is now 2.
> >
> >I use vwst to display what the varibles are. So I can see Count is
> >correct for the above senario on Grand Child and Child but it does
> >not update correctly on the Parent unit.
> >
> >Could this be cause if I modified the datadef file post record
> >creation? Thanks for any help you can provide.
>
> Things are probably happening in the wrong order. You want this
order:
>
> Grand-child adds stat to Child
> Child adds stat to Parent
>
> But it sounds like things are actually happening in this order:
>
> Child adds stat to Parent
> Grand-child adds stat to Child
>
> The Child adds to the Parents stat, *then* the Grand-child adds to
the
> Childs stat, so the modifier never makes it to the Parent. Try
changing the
> option on the grand-child to be a higher priority than the option
on the
> Child; that should (I think) ensure that it activates first, and
that
> everything happens in the correct sequence.
>
> Hope this helps,
>
>
> --
> Colen McAlister (colen@w...)
> Lone Wolf Development
www.wolflair.com


To unsubscribe from this group, email

armybuilder-unsubscribe@yahoogroups.com

Yahoo! Groups Links

To visit your group on the web, go to:
http://groups.yahoo.com/group/armybuilder/

To unsubscribe from this group, send an email to:
armybuilder-unsubscribe@yahoogroups.com

Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 
At 07:30 PM 1/26/2004, you wrote:
>I think I get the jist of what you are saying. If the options are
>categorized say like this.
>
>Priority
>First
>Weapons
>Armor
>Last
>N/A
>
>I should give the grand-child First
>I should give the child option Armor
>I should give the Parent Last
>
>You are talking about option categories right?

Exactly right. I ran into situations like that back when I was writing data
files, and I'm pretty sure that doing the above fixed it.

Thanks,


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



To unsubscribe from this group, email

armybuilder-unsubscribe@yahoogroups.com

Yahoo! Groups Links

To visit your group on the web, go to:
http://groups.yahoo.com/group/armybuilder/

To unsubscribe from this group, send an email to:
armybuilder-unsubscribe@yahoogroups.com

Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 
Argh well what I have discovered is quite dishartening. I decided to
scrap what I have and just try a new file all together and it
worked. What I have figured out is if you modify the datadef file to
add a varible, any records that you have created before that varible
was added do not work properly. They don't retain values from the
data file. This really sucks cause now I have to redo about 100
hours of work cause of this. I guess in the end you might as well
max out everything in your datadef file or suffer my fate.

--- In armybuilder@yahoogroups.com, Colen McAlister <colen@w...>
wrote:
> At 07:30 PM 1/26/2004, you wrote:
> >I think I get the jist of what you are saying. If the options are
> >categorized say like this.
> >
> >Priority
> >First
> >Weapons
> >Armor
> >Last
> >N/A
> >
> >I should give the grand-child First
> >I should give the child option Armor
> >I should give the Parent Last
> >
> >You are talking about option categories right?
>
> Exactly right. I ran into situations like that back when I was
writing data
> files, and I'm pretty sure that doing the above fixed it.
>
> Thanks,
>
>
> --
> Colen McAlister (colen@w...)
> Lone Wolf Development
www.wolflair.com


To unsubscribe from this group, email

armybuilder-unsubscribe@yahoogroups.com

------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/IMSolB/TM
---------------------------------------------------------------------~->

Yahoo! Groups Links

To visit your group on the web, go to:
http://groups.yahoo.com/group/armybuilder/

To unsubscribe from this group, send an email to:
armybuilder-unsubscribe@yahoogroups.com

Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 
--- In armybuilder@yahoogroups.com, "Marvin Cole"
<marvincole1976@y...> wrote:
> Argh well what I have discovered is quite dishartening. I decided
to
> scrap what I have and just try a new file all together and it
> worked. What I have figured out is if you modify the datadef file
to
> add a varible, any records that you have created before that
varible
> was added do not work properly. They don't retain values from the
> data file. This really sucks cause now I have to redo about 100
> hours of work cause of this. I guess in the end you might as well
> max out everything in your datadef file or suffer my fate.

What you need to do is export your data files to text first, update
your datadef, recompile, then reconvert your text files into data
files....

look up abcreate /t in the docs to convert data files into text flies
then look up abdata in the docs for how to convert back again :-)
Works a charm. and it's a good way to keep unlocked backups of your
files in case something goes wrong :-)

Cheers,
Russell.
--
Russell Sparkes, rjs@inorbit.com, http://www24.brinkster.com/rjsoz
"Experience is what you get just after you needed it" - Unknown


To unsubscribe from this group, email

armybuilder-unsubscribe@yahoogroups.com

Yahoo! Groups Links

To visit your group on the web, go to:
http://groups.yahoo.com/group/armybuilder/

To unsubscribe from this group, send an email to:
armybuilder-unsubscribe@yahoogroups.com

Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 
Thanks for the tip. It actually fixed my varible problem but not the
addition problem. The addition problem was fixed by changing the
categories as suggested but I had to change the categories on not
only the options doing the adding but the options that do the
selection of the child units also. Its wild I tell you wild but now
it works perfectly. So thanks for all the help everyone.

--- In armybuilder@yahoogroups.com, "Russell" <rjs@i...> wrote:
> --- In armybuilder@yahoogroups.com, "Marvin Cole"
> <marvincole1976@y...> wrote:
> > Argh well what I have discovered is quite dishartening. I
decided
> to
> > scrap what I have and just try a new file all together and it
> > worked. What I have figured out is if you modify the datadef
file
> to
> > add a varible, any records that you have created before that
> varible
> > was added do not work properly. They don't retain values from
the
> > data file. This really sucks cause now I have to redo about 100
> > hours of work cause of this. I guess in the end you might as
well
> > max out everything in your datadef file or suffer my fate.
>
> What you need to do is export your data files to text first, update
> your datadef, recompile, then reconvert your text files into data
> files....
>
> look up abcreate /t in the docs to convert data files into text
flies
> then look up abdata in the docs for how to convert back again :-)
> Works a charm. and it's a good way to keep unlocked backups of your
> files in case something goes wrong :-)
>
> Cheers,
> Russell.
> --
> Russell Sparkes, rjs@i..., http://www24.brinkster.com/rjsoz
> "Experience is what you get just after you needed it" - Unknown


To unsubscribe from this group, email

armybuilder-unsubscribe@yahoogroups.com

Yahoo! Groups Links

To visit your group on the web, go to:
http://groups.yahoo.com/group/armybuilder/

To unsubscribe from this group, send an email to:
armybuilder-unsubscribe@yahoogroups.com

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