colobot / colobot-data

Data files source for open-source Colobot: Gold Edition project developed by Epsitec and TerranovaTeam
http://colobot.info/
GNU General Public License v3.0
53 stars 46 forks source link

improve documentation of factory() #89

Closed hexagonrecursion closed 3 weeks ago

hexagonrecursion commented 8 months ago
  1. The link to cbot\file was a red herring - factory() only accepts strings, not file handles.
  2. 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.
  3. Fixes https://github.com/colobot/colobot/issues/1522 by adding an example of how to correctly pass a public function to factory()
AndreiCherniaev commented 7 months ago

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!

hexagonrecursion commented 5 months ago

@AndreiCherniaev done.

hexagonrecursion commented 1 month ago

Ping?

hexagonrecursion commented 1 month ago

@AndreiCherniaev What? Are the translations wrong?