Extra tools/ru: Difference between revisions

Created page with "Извлекает содержимое из ''map_file'' в ''directory''. Если дополнительный аргумент ''директория'' не указан, извлечение производится в текущую директорию."
Created page with "Обратите внимание, что это работает только в файлах изображений RGBA (например, PNG). В файлах JPEG это не сработает."
Line 112: Line 112:
  map_replace_image ''файл_карты1'' ''файл_карты2'' ''имя_изображения'' ''файл_изображения''
  map_replace_image ''файл_карты1'' ''файл_карты2'' ''имя_изображения'' ''файл_изображения''


<div lang="en" dir="ltr" class="mw-content-ltr">
Заменяет изображение ''imagename'', находящееся в файле карты с именем ''map_file1'', на изображение с файловым путем ''image_file'' и сохраняет в файл карты с именем ''map_file2.map''.
Replaces the image ''imagename'' currently inside the map filename ''map_file1'' with the image filepath ''image_file'', and save into the map filename ''map_file2.map''.
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
Обратите внимание:
Please note:
* Имена файлов обеих карт должны быть относительно папки DDNet по умолчанию пользователя.
* Both map filenames must be relative to user default DDNet folder
* Путь к файлу нового изображения может быть абсолютным или относительным к текущему каталогу.
* New image filepath can be absolute, or relative to the current directory
</div>


=== map_resave ===
=== map_resave ===
Line 126: Line 122:
  map_resave ''файл_карты'' ''файл_изображения''
  map_resave ''файл_карты'' ''файл_изображения''


<div lang="en" dir="ltr" class="mw-content-ltr">
Обновляет файл карты ''map_file.map'' с помощью предоставленного файла ''image_file''.
Updates the map file ''map_file.map'' with the provided file ''image_file''.
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
Статус ошибки 255 возвращается, если 1) предоставлено число аргументов, отличное от 2, 2) если файл ''map_file.map'' недопустим, или 3) если файл ''image_file'' не является допустимым файлом изображения (например, это текстовый файл); в противном случае возвращается 0.
The error status 255 is returned if 1) a number of arguments different from 2 is provided, 2) if the ''map_file.map'' is not valid, or 3) if ''image_file'' is not a valid image file (e.g. it is a text file); otherwise, return 0.
</div>


=== packetgen ===
=== packetgen ===
Line 138: Line 130:
  packetgen
  packetgen


<div lang="en" dir="ltr" class="mw-content-ltr">
Генерирует и отправляет сетевые пакеты на 127.0.0.1:8303 (localhost, порт сервера по умолчанию) для проверки связи с локальным экземпляром сервера.
Generates and sends network packets to 127.0.0.1:8303 (localhost, in default server port) to test communication with a local server instance.
</div>


=== unicode_confusables ===
=== unicode_confusables ===
Line 146: Line 136:
  unicode_confusables ''строка1'' ''строка2''
  unicode_confusables ''строка1'' ''строка2''


<div lang="en" dir="ltr" class="mw-content-ltr">
Сравнивает ''string1'' со ''string2'' и сообщает, являются ли они "путаемыми", т.е. если символы "одинаковы" и могут вызвать путаницу. Чтобы это сработало, символы с акцентами или другими элементами вокруг них считаются "перепутанными" с базовым символом. Таким образом, ''aa'' и ''aá'' можно спутать ("á" считался как "a"), а ''aa'' и ''ab'' - нет.
Compares ''string1'' with ''string2'' and report if they are "confusable", i.e. if the characters are "equal" and could cause confusion. For this to work, the characters with accents or other things around them are considered the "confusable" with the base character. Therefore, ''aa'' and ''aá'' are confusable (''á'' was considered as ''a''), while ''aa'' and ''ab'' are not.
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">
Line 156: Line 144:
''Доступно с версии: DDNet 10.3.5''
''Доступно с версии: DDNet 10.3.5''


<div lang="en" dir="ltr" class="mw-content-ltr">
'''Новое в DDNet версии 12.9:''' Поддержка Unicode 12.0 и название инструмента было переименовано из ''confusables'' в ''unicode_confusables''.
''New in DDNet version 12.9:'' Unicode 12.0 support and the tool name was renamed from ''confusables'' to ''unicode_confusables''.
</div>


=== uuid ===
=== uuid ===
Line 164: Line 150:
  uuid ''имя''
  uuid ''имя''


<div lang="en" dir="ltr" class="mw-content-ltr">
Выводит uuid для указанного ''имя''.
Prints uuid for the provided ''name''.
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">