Colobot Forum - International Colobot Community

Full Version: goto and destination occupied error
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello everyone. I trying search answer in google and this forum but can't find anything.
In challenges and exercises i can use this code for moving to target.
object item = radar(SomeObject);
goto(item.position);

But in 3 mission, when i try use this code for go to BlackBox, i have error - Goto: destination occupied;
What could be the problem?
[attachment=231][attachment=232]
This may be caused by running this program on WheeledGrabber. It cannot climb upside to BlackBox location, terrain is too steep for them. Running this program on TrackedGrabber works correctly.
Another reason might be that goto detects platform under BlackBox as an obstacle, that it cannot avoid, so it returns error. It's already fixed in dev branch.
(03-29-2017, 05:45 PM)tomangelo Wrote: [ -> ]This may be caused by running this program on WheeledGrabber. It cannot climb upside to BlackBox location, terrain is too steep for them.
Yep, exactly.

There is also issue #732 and I don't think it made it into a release yet...
That's definetely #723. Between release and debug builds there's indeed huge difference with goto() efficiency.
Thanks for answers. I only now understand, what wheeled grabber just can't climb on peak where located BlackBox. Just game mechanic, not bug. Sorry for stupid question =)