Dear Esther,
YEAHHHHHH!!! Your advice works like a magic. The problem is SOLVED! Awesome!
Thank you so much.
Best
Nicole
On Mon, Mar 3, 2008 at 11:18 AM, Esther Verreau < everreau

ccl.northw
estern.edu">everreau
ccl.northwestern.edu> wrote:
Hi Nicole -
I suspect there is actually a problem somewhere before the primitives the
compiler is complaining about. I'm guessing that you are using patch-at
which in 3.1.4 could be used by the observer but in 4.0 is
turtle/patch-only. Instead you should use PATCH in the observer context.
You may also want to take a look at the transition guide:
http://ccl.northwestern.edu/netlogo/transition.html
good luck.
esther
On Sun, 2 Mar 2008, Nicole Li wrote:
> Dear group,
>
> I've a model written in Netlogo 3.1.5. When I opened the model w/ Netlogo
> 4.0.2, I got a bunches of error messages. Basically, they are:
>
> "You can't use XX in a turtle/patch context, because XX is observer-only"
> " You can't use YY in an observer context, because YY is turtle/patch only"
>
> The XX includes: "diffuse".
>
> The YY include: "if", "every", "ask".
>
> Oh-my-my!! I don't know what to do. The model seems working fine in Netlogo
> 3.1.5. Is there any "quick fix" of the model?
>
> Please kindly help. Thank you!!!
>
> Best,
> Nicole
>
.