colobot-data
colobot-data copied to clipboard
improve documentation of factory()
- The link to
cbot\file
was a red herring - factory() only accepts strings, not file handles. - It took me a lot of effort to figure out how to make factory() accept a file name. Who could have guessed that I have to prefix it with
program/
? Documenting it here for future players. - Fixes https://github.com/colobot/colobot/issues/1522 by adding an example of how to correctly pass a public function to factory()
Good job!
Please add Russian also! En. "Program that will be run on the bot after factory finishes the construction. This can be either a \l;public\u cbot\public; \l;function\u cbot\function;, a filename or raw code." Ru. "Программа, которая будет запускаться на боте после завершения строительства завода. Это может быть \l;public\u cbot\public; \l;function\u cbot\function;, имя файла или фрагмент кода."
En. "Save this as say-foo.cbot. Note: make sure to check the "Public" checkbox when saving - this will cause say-foo.cbot to be inside the program/ folder." Ru. "Сохраните это как say-foo.cbot. Примечание. При сохранении обязательно установите флажок «Public» — чтобы say-foo.cbot оказался внутри папки program/."
Please add others languages using auto translation!
@AndreiCherniaev done.