Hello!
In factory() help is written: "Save this as say-foo.cbot." and coded
factory(WheeledGrabber, "program/say-foo.cbot");
But .cbot extension doesn't work, and text "program/say-foo.cbot" will be written in bot program.
Only .txt extension works, and program runs.
Also, they may save file in program folder only manually. It will not work in bot-autonomy programs as bot saves file in files folder implicitly.
At the same time, the files folder must be explicitly specified in filepath for factory function. This creates a difference between the saved filename and the called one.
I would like to see both the help files brought into line with the capabilities of the code, and the addresses of the saved files brought into line with the names of the files passed to the factory function.
Best wishes, Bhudh.
Hello!
In
factory()help is written: "Save this as say-foo.cbot." and codedfactory(WheeledGrabber, "program/say-foo.cbot");But
.cbotextension doesn't work, and text "program/say-foo.cbot" will be written in bot program.Only
.txtextension works, and program runs.Also, they may save file in
programfolder only manually. It will not work in bot-autonomy programs as bot saves file infilesfolder implicitly.At the same time, the
filesfolder must be explicitly specified in filepath forfactoryfunction. This creates a difference between the saved filename and the called one.I would like to see both the help files brought into line with the capabilities of the code, and the addresses of the saved files brought into line with the names of the files passed to the
factoryfunction.Best wishes, Bhudh.