I was experimenting with making the world not wrapped, and upon setup and go, this error appears:
"OF expected input to be a turtle agentset or patch agentset or turtle or patch but got NOBODY instead."
I'm guessing this might have to do with the following code:
to turn-towards-resource ;; turtle procedure
set heading 0
let best-amount 0
let best-direction []
ifelse [ cacao-crop = false ] of patch-ahead 1 [ ; if the patch ahead is not an owned cacao farm, let the first direction tested be the "best direction" so far.
set best-direction [0]
set best-amount resource-ahead
]....
Not sure how to deal with this. When the world is not wrapped, is it necessary to make an "if clause" to the effect "if any? patch-ahead..."?
Full code of model attached in case that's handy.
Thanks!
Lee