I noticed I had a bug in this code:
if [ pcolor ] of patch-here > 61 [
if any? other all-individuals in-radius 3 [
let g [ my-greed ] of one-of other all-individuals in-radius 3
set my-greed g
ask patch-here [ set energy-of-patch energy-of-patch - g ]
set my-energy my-energy + my-greed ]
]
(
http://m.modelling4all.org/m/?
frozen=bd9W8uJ5U0HbxONaAAHM67&MforAllModel=1)
because i was using "objects" instead of "all-individuals" - this
meant "the fifty" agents were setting my-greed to 0 when they
interacted with something at the centre of the view (I think?). i
don't think this should happen because the invisible agents shouldn't
have an attribute called my-greed. or is this more to do with
interacting with agents just before they die?
anyway my comment would be that "all-individuals" in this code seems a
little odd - maybe just 'individuals' would be nicer.
there is a general coding requirement here: how to interact with a
specific number of agents i.e. how to insert an "AND" into a statement
like if any? objects with [kind = "xzy" and kind = "123" etc
> Perhaps you attached the wrong model. No white space removed that I noticed
> (and it had an error - a spurious ]).
>
> There is a 'fake' parameter called
>
> the-default-buttons-should-not-be-added
>
> which if set to true will not add the setup/go/pause buttons. You can then
> add them using ADD-BUTTON or ADD-NETLOGO-BUTTON (but see Issue 586) and
> place them where ever you want. SET-WORLD-LOCATION can be used to move the
> main view of the model.
>
> Best,
>
> -ken
>
> On 16 September 2011 16:49, Howard Noble <
howard.no...@gmail.com> wrote:
>
>
>
>
>
>
>
> > great that worked.
>
> > is there a way to get at the position coordinates for the buttons, view and
> > other UI components. I'd like to remove a lot of the white space from the
> > default layout i.e. something like the NL attached.
>
> > On Friday, September 16, 2011, Ken Kahn <
toont...@gmail.com> wrote:
> > > Hi.
> > > There is a problem interpreting the legend. If you just remove the part
> > that says:
> > > "label" "red"
> > > then it should work. But without any legends.
> > > The bug is now Issue 584.
> > > Best,
> > > -ken
>
> > > On 15 September 2011 21:36,
howard.no...@gmail.com <
> >
howard.no...@gmail.com> wrote:
>
> > > hey again,
>
> > > i'd like to use the histogram again - is there a workaround for the
> > > bug we found earlier?
>
> >
http://m.modelling4all.org/m/?frozen=6uVMteL-AyeCPhSIByJj67&MforAllMo...