List Info

Thread: help for 3.1.5 --> 4.0.2 model transition




help for 3.1.5 --> 4.0.2 model transition
country flaguser name
United States
2008-03-02 14:15:59

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

__._,_.___
.

__,_._,___
Re: help for 3.1.5 --> 4.0.2 model transition
country flaguser name
United States
2008-03-03 10:18:27

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
>

__._,_.___
.

__,_._,___
Re: help for 3.1.5 --> 4.0.2 model transition
country flaguser name
United States
2008-03-03 10:31:48

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 < everreauccl.northwestern.edu">everreauccl.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,
&gt;
> 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"
>
&gt; The XX includes: "diffuse".
>
&gt; The YY include: "if&quot;, "every", "ask&quot;.
&gt;
> 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?
&gt;
> Please kindly help. Thank you!!!
&gt;
> Best,
&gt; Nicole
&gt;


__._,_.___
.

__,_._,___
[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )