Programs and editors/mapping

MACRO

To define a macro, press
Ctrl-R
and then type out the keys you want to be executed. Press
Ctrl-R
again when finished. The macro can be assigned to any key by pressing that key.
The macro is executed when you press the assigned key.

The macro commands are stored in section

it the file
~/.local/share/mc/mc.macros.

External scripts (filters) can be assigned into the any hotkey by edit
mc.macros
like following:

ctrl-W=ExecuteScript:25;

This means that ctrl-W hotkey initiates the
ExecuteScript(25)
action, then editor handler translates this into execution of
~/.local/share/mc/mcedit/macros.d/macro.25.sh
shell script.

External scripts are stored in
~/.local/share/mc/mcedit/macros.d/
directory and must be named as
macro.XXXX.sh
where
XXXX
is the number from 0 to 9999.
See
Edit Menu File
for more detail about format of the script.

Following macro definition and directives can be used:

#silent

If this directive is set, then script starts without interactive subshell.
%c

The cursor column position number.
%i

The indent of blank space, equal the cursor column.
%y

The syntax type of current file.
%b

The block file name.
%f

The current file name.
%n

Only the current file name without extension.
%x

The extension of current file name.
%d

The current directory name.
%F

The current file in the unselected panel.
%D

The directory name of the unselected panel.
%t

The currently tagged files.
%T

The tagged files in the unselected panel.
%u and %U

Similar to the
%t
and
%T
macros, but in addition the files are untagged. You can use this macro
only once per menu file entry or extension file entry, because next time
there will be no tagged files.
%s and %S

The selected files: The tagged files if there are any. Otherwise the
current file.

Feel free to edit this files, if you need.
Here is a sample external script:

l       comment selection
        TMPFILE=`mktemp ${MC_TMPDIR:-/tmp}/up.XXXXXX` || exit 1
        echo #if 0 > $TMPFILE
        cat %b >> $TMPFILE
        echo #endif >> $TMPFILE
        cat $TMPFILE > %b
        rm -f $TMPFILE

Построители карт[]

Имя Описание Дата Версия Платформы Ссылки Последняя совместимая версия Исходный код Язык програм-мирования Автор
Командная строка. Переписанный Cartograph. Официально поддерживаются Windows- и Linux- сборки, также работает на Mac, но требуется компиляция. 26 мая 2011 г. 1.9 Да, BSD C++ udoprog (John-John Tedro)

u10i

GUI для c10t, включает в себя одиночную и пакетную обработку данных. 8 июля 2011 г. 1.0 Нет C# conker87 (Simon Fletcher)
Другая версия Cartograph. Поддерживаются самые последние обновления и некоторые фиксы ошибок Cartograph’а. Добавлены новые возможности, не исключаю GUI и поддержку модов. 20 ноября 2011 г. 2011_11_20 Ещё нет C++ (Рендерер), VB (Интерфейс) Gameslinder
Отображение карты в реальном времени в игре или в браузере. Режимы дневной свет, лунный свет, пещеры, Нижний мир, и Край. Показывает монстров и игроков, находящихся рядом. Серверные и одиночные миры, не требуется серверный плагин. 12 апреля 2013 г. 2.5.0 Нет Java, DHTML techbrew (Mark Woodman)
Командная строка + Windows GUI. Mcmap Live доступна для Mac GUI. Создаёт JPG или PNG картинку на выбор. 15 ноября 2013 г. 2.4.2b Да C++ Zahl
16 августа 2012 г. 0.48 (при замене mcmap.exe из поставки на актуальный) Да Python/C# NotTarts/Zahl

MCMap Live

Интерактивный GUI, Xray — карты, и поддержка биомов. 28 марта 2012 г. 1.5.1 Да Objective-C++ Donkey Kong
13 декабря 2013 г. 0.11.53 Да, GPL Python/C
MinecraftWorldMap.com — это веб-приложение, которое позволяет размещать миры с друзьями или обществом. Просто загрузите мир и карта автоматически построится для Вас! 29 марта 2011 г. 1.00 Нет perl skeight

Minetographer

Интуитивный интерфейс для создания детализированной, зумируемая карта вашего мира. Рабоает на Tectonicus, Minetographer быстр и прост в использовании. 27 октября 2011 г. 0.7.7 Ещё нет Java jakester2
Быстрый рендер, предусмотренный для больших миров. Поддерживаемые платформы Linux и Cygwin. Нет бинарных файлов; может быть построен из исходников. 29 марта 2012 г. 1.1.2 Да, GPL C++ equalpants

Рендерит высококачественные, зумируемые версии карт, просматривается с помощью Карт Google. Только коммандная строка. Для GUI см. Minetographer.

15 апреля 2012 г. 2.08 Да Java OrangyTang
Простой и быстрый инструмент визуализации карт, предназначенный для эффективного обновления очень больших карт «плитками». 19 июля 2012 г. 2011-07-19 Да Java TOGoS

Localisation

This version implements localisation functions.
The resource files are located in the ‘lang’ folder for MCEdit UI.

Custom brushes and filters can be also translated, provided a folder named like the base name of the brush/filter file (without the ‘.py’ extension) can be found alongside the file and contains the resources.
These resources have to be built with the same rules than MCEdit ones.

The UI fixed character strings can appear in users native language by simply editing translation files.
It is also possible to (re)build the language template and files and to use custom fonts.

See TRANSLATION.txt for further details.

Developers don’t have to tweak their code so much.
The only modifications concern strings which need text formatting or concatenation.
See README.txt in subfolder for further information.

— D.C.-G. (LaChal)

Options

Options~/.mc/ini

use_internal_edit
This option is ignored when invoking mcedit.
editor_tab_spacing
Interpret the tab character as being of this length. Default is 8. You should avoid using other than 8 since most other editors and text viewers assume a
tab spacing of 8. Use editor_fake_half_tabs to simulate a smaller tab spacing.
editor_fill_tabs_with_spaces
Never insert a tab space. Rather insert spaces (ascii 20h) to fill to the desired tab size.
editor_return_does_auto_indent
Pressing return will tab across to match the indentation of the first line above that has text on it.
editor_backspace_through_tabs
Make a single backspace delete all the space to the left margin if there is no text between the cursor and the left margin.
editor_fake_half_tabs
This will emulate a half tab for those who want to program with a tab spacing of 4, but do not want the tab size changed from 8 (so that the code will be
formatted the same when displayed by other programs). When editing between text and the left margin, moving and tabbing will be as though a tab space were 4,
while actually using spaces and normal tabs for an optimal fill. When editing anywhere else, a normal tab is inserted.
editor_option_save_mode
Possible values 0, 1 and 2. The save mode (see the options menu also) allows you to change the method of saving a file. Quick save (0) saves the file by
immediately, truncating the disk file to zero length (i.e. erasing it) and the writing the editor contents to the file. This method is fast, but dangerous,
since a system error during a file save will leave the file only partially written, possibly rendering the data irretrievable. When saving, the safe save
(1)
option enables creation of a temporary file into which the file contents are first written. In the event of an problem, the original file is untouched.
When the temporary file is successfully written, it is renamed to the name of the original file, thus replacing it. The safest method is create backups
(2)
. Where a backup file is created before any changes are made. You can specify your own backup file extension in the dialog. Note that saving twice will
replace your backup as well as your original file.
editor_word_wrap_line_length
line length to wrap. 72 default.
editor_backup_extension
symbol for add extension to name of backup files. Default «~».
editor_line_state
show state line of editor now it show number of file line (in future it can show things like folding, breakpoints, etc.). M-n toglle this option.
editor_visible_spaces
Toggle show visible trailing spaces (TWS), if editor_visible_spaces=1 TWS showed as ‘.’
editor_visible_tabs
Toggle show visible tabs, if editor_visible_tabs=1 tabs showed as ‘<—->’
editor_persistent_selections
Do not remove block selection after moving the cursor.
editor_cursor_beyond_eol
Allow moving cursor beyond the end of line.
editor_syntax_highlighting
enable syntax highlighting.
editor_edit_confirm_save
show confirm dialog on save.
editor_option_typewriter_wrap
to be described
editor_option_auto_para_formatting
to be described
editor_option_save_position
save file position on exit.
source_codepage
symbol representation of codepage name for file (i.e. CP1251, ~ — default).
editor_wordcompletion_collect_entire_file
Search autocomplete candidates in entire of file or just from begin of file to cursor position (0)

KEYS

In addition to that, Shift combined with arrows does text highlighting
(if supported by the terminal):
Ctrl-Ins

copies to the file
~/.cache/mc/mcedit/mcedit.clip,

Shift-Ins

pastes from
~/.cache/mc/mcedit/mcedit.clip,

Shift-Del

cuts to
~/.cache/mc/mcedit/mcedit.clip,

and
Ctrl-Del

deletes highlighted text. Mouse highlighting also works on some
terminals. To use the standard mouse support provided by your terminal,
hold the Shift key. Please note that the mouse support in the terminal
doesn’t share the clipboard with
mcedit.

The completion key (usually
Meta-Tab

or
Escape Tab)

completes the word under the cursor using the words used in the file.

Фильтры

Для применения фильтров необходимо выделить область воздействия.

Фильтр Действие
Classic water flood Заполнение выделенной области водой или лавой не перезаписывая блоки.
Smooth Смягчает перепады высот.
Setbiome Меняет биом выделенной зоны с сохранением всех их особенностей.
Banslimes Запрещает спаун слизней в выделенной зоне.
Forester Создаёт одно большое дерево из указанных блоков.
Topsoil Покрывает выделенную область указанными блоками с заданной толщиной слоя.
Change mob properties Меняет характеристики и NBT-данные мобов.
Colorwires Перекрашивает провода схем красного камня с помощью шерсти любого цвета.
Create busses Соединяет отрезки схем красного камня.
Add potion effect to mobs Позволяет наложить на мобов эффекты зелий. Можно выбрать эффект, его уровень и длительность.
Decliff Превращает горы в холмы, а холмы в равнину.
Create spawners Создаёт спаунеры всех попавших в зону выделения на момент срабатывания фильтра мобов. Все NBT-данные (цвет шерсти овец, экипированные вещи, блок в руках странника Края и т. д.) мобов сохраняются в спаунере.
Chunk surface repair «Чинит» неправильно сгенерировавшиеся участки карты.
Make mobs invincible Накладывает на мобов эффект «cопротивление урону» десятого уровня, из-за чего те становятся неуязвимыми.
Create shops Все сундуки в зоне воздействия сменятся на деревенских жителей (вид жителей выбирается в окне фильтра), которые продают вещи по столбцам. Первые две строки сундука — вещи, которые нужно отдать за покупку. Третий слот — полученная вещь. Количества необходимых и получаемых вещей соответствуют количеству лежащих в сундуке. NBT-данные (цвет шерсти, повреждение и зачаровывания вещей и прочее) поддерживаются лишь в отданных жителем вещах, а в полученных им не имеют влияния. В случае, если выделен двойной сундук, на его месте будет 2 жителя (результаты варьируются, лучше выделять по одному). Так же, в окошке опций фильтра можно добавить жителю закрытые (неиспользуемые) сделки, сделать его неуязвимым (аналогично предыдущему фильтру), либо сделать все его доступные сделки незакрывающимися (бесконечными).
MobGear Фильтр позволяет создавать своих мобов. Для этого нужно создать сундук с вещами, которые будет использовать моб. Первый слот отвечает за предмет, который будет у него в руках. Второй — шлем или дроп. Третий — нагрудник или дроп. Четвёртый — поножи или дроп. Пятый — ботинки или дроп. Если во 2, 3, 4 или 5 слоте будет броня, то у неё будет шанс дропа как у обычных мобов.

Brush Tool

The brush tool allows you to «Paint» the world using preset shapes, you can use RFEG to Increase size, Decrease size, rotate and roll this tool. The varied version will randomly distribute the blocks you select based on selected weightings.

Line Brush

Hold Z after placing a brush and click a second point to create a solid line of that brush. Line spacing adjusts how close together brushes are.

The line tool works from the last brushed point, so you can continue from the end of your last line.

Erode

You can also erode the terrain, making it more natural. To use this tool set the size and strength you want and click and drag over the area you wish to erode.

It is recommended to make multiple lower intensity passes for best results. If the brush is still too strong at strength 1, turn up Minimum Spacing.

Flood Fill

This brush will systematically replace all blocks of the same type touching the block you click on. This will go on until you either cancel the operation or it finishes.

The paste brush simply brushes an imported schematic.

Replace and Varied Replace

The replace and varied replace tools replace the block selected in the first slot with the block(s) selected in the lower slot(s).

FILES

/usr/share/mc/mc.hlp

The help file for the program.

/usr/share/mc/mc.ini

The default system-wide setup for GNU Midnight Commander, used only if
the user’s own ~/.config/mc/ini file is missing.

/usr/share/mc/mc.lib

Global settings for the Midnight Commander. Settings in this file
affect all users, whether they have ~/.config/mc/ini or not.

/usr/share/mc/syntax/*

The default system-wide syntax files for mcedit, used only if
the corresponding user’s own ~/.local/share/mc/mcedit/ file is missing.

~/.config/mc/ini

User’s own setup. If this file is present then the setup is loaded
from here instead of the system-wide setup file.

~/.local/share/mc/mcedit/

FILES

/usr/share/mc/mc.hlp

The help file for the program.

/usr/share/mc/mc.ini

The default system-wide setup for GNU Midnight Commander, used only if
the user’s own ~/.config/mc/ini file is missing.

/usr/share/mc/mc.lib

Global settings for the Midnight Commander. Settings in this file
affect all users, whether they have ~/.config/mc/ini or not.

/usr/share/mc/syntax/*

The default system-wide syntax files for mcedit, used only if
the corresponding user’s own ~/.local/share/mc/mcedit/ file is missing.

~/.config/mc/ini

User’s own setup. If this file is present then the setup is loaded
from here instead of the system-wide setup file.

~/.local/share/mc/mcedit/

User’s own directory where block commands are processed and saved and
user’s own syntax files are located.

Команды

  • Selection: Выделите область мышкой по диагонали. Нажмите ещё раз, чтобы менять масштаб, длину, высоту. Вы можете удалить блоки или экспортировать их для файла схемы.
  • Brush: Нажмите, чтобы заполнить выделенную область блоками. Выберите размер кисти, форму и тип блока.
  • Clone: Копирует выделенные блоки. Клавиши ERF для трансформации блоков.
  • Fill: Позволяет заменить блоки в выделенной области.
  • Filter: Используйте один из стандартных фильтров для сглаживания местности или изменения верхнего слоя почвы, или создайте свой собственный фильтр/ плагин используя Python.
  • Crane: Импорт файла схемы или целый уровень.
  • Player: Нажмите, чтобы переместить персонажа. Нажмите дважды, чтобы телепортироваться.
  • Spawn: Нажмите, чтобы переместить персонажа на точку спауна. Не доступен на пустом уровне. Нажмите дважды, чтобы телепортироваться.
  • Chunk: Та же самая операция, как в выделении, только это функция с целыми чанками.

Ваши личные схемы хранятся в папке «Документы», в папке с именем «MCEdit-schematics». Это ваши рабочие копии, по умолчанию включены стандартные схемы MCEdit. Ваши личные настройки для MCEdit хранятся в папке «Документы», в «mcedit.ini» файле.

Удерживая левую кнопку мыши, используйте кнопки перемещения (по умолчанию: WASDQZ) для перемещения соответствующего объекта вокруг. Удерживайте ⇧ Shift, чтобы изменить расстояние.

Если у вас мощный компьютер, нажмите Ctrl + F, и дальность прорисовки увеличится.

OPTIONS

Options~/.config/mc/ini

use_internal_edit

This option is ignored when invoking
mcedit.

editor_tab_spacing

Interpret the tab character as being of this length.
Default is 8. You should avoid using
other than 8 since most other editors and text viewers
assume a tab spacing of 8. Use
editor_fake_half_tabs

to simulate a smaller tab spacing.

editor_fill_tabs_with_spaces

Never insert a tab character. Rather insert spaces (ascii 32) to fill to the
desired tab size.
editor_return_does_auto_indent

Pressing return will tab across to match the indentation
of the first line above that has text on it.
editor_backspace_through_tabs

Make a single backspace delete all the space to the left
margin if there is no text between the cursor and the left
margin.
editor_fake_half_tabs

This will emulate a half tab for those who want to program
with a tab spacing of 4, but do not want the tab size changed
from 8 (so that the code will be formatted the same when displayed
by other programs). When editing between text and the left
margin, moving and tabbing will be as though a tab space were
4, while actually using spaces and normal tabs for an optimal fill.
When editing anywhere else, a normal tab is inserted.
editor_option_save_mode

Possible values 0, 1 and 2. The save mode (see the options menu also)
allows you to change the method of saving a file. Quick save (0) saves
the file immediately, truncating the disk file to zero length (i.e.
erasing it) and then writing the editor contents to the file. This
method is fast, but dangerous, since a system error during a file save
will leave the file only partially written, possibly rendering the data
irretrievable. When saving, the safe save (1) option enables creation
of a temporary file into which the file contents are first written. In
the event of a problem, the original file is untouched. When the
temporary file is successfully written, it is renamed to the name of the
original file, thus replacing it. The safest method is create backups
(2): a backup file is created before any changes are made. You
can specify your own backup file extension in the dialog. Note that
saving twice will replace your backup as well as your original file.
editor_word_wrap_line_length

Line length to wrap at. Default is 72.
editor_backup_extension

Symbol to add to name of backup files. Default is «~».
editor_line_state

Show state line of editor. Currently it shows current line number (in the future
it might show things like folding, breakpoints, etc.). M-n toggles this option.
editor_visible_spaces

Toggle «show visible trailing spaces». If editor_visible_spaces=1, they are shown
as ‘.’
editor_visible_tabs

Toggle «show visible tabs». If editor_visible_tabs=1, tabs are shown as ‘<—->’
editor_persistent_selections

Do not remove block selection after cursor movement.
editor_cursor_beyond_eol

Allow moving cursor beyond the end of line.
editor_cursor_after_inserted_block

Allow moving cursor after inserted block.
editor_syntax_highlighting

enable syntax highlighting.
editor_edit_confirm_save

Show confirmation dialog on save.
editor_option_typewriter_wrap

to be described
editor_option_auto_para_formatting

to be described
editor_option_save_position

save file position on exit.
source_codepage

symbol representation of codepage name for file (i.e. CP1251, ~ — default).
editor_group_undo

do UNDO for several of the same type of action (inserting/overwriting,
deleting, navigating, typing)
editor_wordcompletion_collect_entire_file

Search autocomplete candidates in entire of file or just from
begin of file to cursor position (0)
spell_language

Spelling language (en, en-variant_0, ru, etc) installed with aspell
package (a full list can be get using ‘aspell’ utility).
Use
spell_language = NONE

to disable aspell support. Default value is ‘en’. Option must located
in the section.

Keys

In addition to that, Shift combined with arrows does text highlighting (if supported by the terminal): Ctrl-Ins copies to the file
~/.mc/cedit/cooledit.clip, Shift-Ins pastes from ~/.mc/cedit/cooledit.clip, Shift-Del cuts to ~/.mc/cedit/cooledit.clip, and
Ctrl-Del deletes highlighted text. Mouse highlighting also works on some terminals. To use the standard mouse support provided by your terminal, hold
the Shift key. Please note that the mouse support in the terminal doesn’t share the clipboard with mcedit.

The completion key (usually Meta-Tab or Escape Tab) completes the word under the cursor using the words used earlier in the file.

To define a macro, press Ctrl-R and then type out the keys you want to be executed. Press Ctrl-R again when finished. You can then assign the
macro to any key you like by pressing that key. The macro is executed when you press Ctrl-A and then the assigned key. The macro is also executed if you
press Meta, Ctrl, or Esc and the assigned key, provided that the key is not used for any other function. The macro commands are stored in the file
~/.mc/cedit/cooledit.macros. Do NOT edit this file if you are going to use macros again in the same editing session, because mcedit caches macro
key defines in memory. mcedit now overwrites a macro if a macro with the same key already exists, so you won’t have to edit this file. You will also
have to restart other running editors for macros to take effect.

F19 will format C, C++, Java or HTML code when it is highlighted. An executable file called ~/.mc/cedit/edit.indent.rc will be created for you
from the default template. Feel free to edit it if you need.

C-p will run ispell on a block of text in a similar way. The script file will be called ~/.mc/cedit/edit.spell.rc.

If some keys don’t work, you can use Learn Keys in the Options menu.

MISCELLANEOUS

sscanfsprintfapplesoranges

Enter search string
(%d,%d,%d)
Enter replace string
apples %d oranges %d
Enter replacement argument order
3,2

The last line specifies that the third and then the second number are to
be used in place of the first and second.

It is advisable to use this feature with Prompt On Replace on, because a
match is thought to be found whenever the number of arguments found
matches the number given, which is not always a real match. Scanf also
treats whitespace as being elastic. Note that the scanf format %[ is
very useful for scanning strings, and whitespace.

The editor also displays non-us characters (160+). When editing
binary files, you should set
display bits

to 7 bits in the Midnight Commander options menu to keep the spacing
clean.

MACRO

To define a macro, press
Ctrl-R

and then type out the keys you want to be executed. Press
Ctrl-R

again when finished. The macro can be assigned to any key by pressing that key.
The macro is executed when you press the assigned key.

The macro commands are stored in section

it the file
~/.local/share/mc/mc.macros.

External scripts (filters) can be assigned into the any hotkey by edit
mc.macros

like following:


ctrl-W=ExecuteScript:25;

This means that ctrl-W hotkey initiates the
ExecuteScript(25)

action, then editor handler translates this into execution of
~/.local/share/mc/mcedit/macros.d/macro.25.sh

shell script.

External scripts are stored in
~/.local/share/mc/mcedit/macros.d/

directory and must be named as
macro.XXXX.sh

where
XXXX

is the number from 0 to 9999.
See
Menu File Edit

for more detail about format of the script.

Following macro definition and directives can be used:

#silent

If this directive is set, then script starts without interactive subshell.
%c

The cursor column position number.
%i

The indent of blank space, equal the cursor column.
%y

The syntax type of current file.
%b

The block file name.
%f

The current file name.
%n

Only the current file name without extension.
%x

The extension of current file name.
%d

The current directory name.
%F

The current file in the unselected panel.
%D

The directory name of the unselected panel.
%t

The currently tagged files.
%T

The tagged files in the unselected panel.
%u and %U

Similar to the
%t

and
%T

macros, but in addition the files are untagged. You can use this macro
only once per menu file entry or extension file entry, because next time
there will be no tagged files.

%s and %S

The selected files: The tagged files if there are any. Otherwise the
current file.

Feel free to edit this files, if you need.
Here is a sample external script:

l       comment selection
        TMPFILE=`mktemp ${MC_TMPDIR:-/tmp}/up.XXXXXX` || exit 1
        echo #if 0 > $TMPFILE
        cat %b >> $TMPFILE
        echo #endif >> $TMPFILE
        cat $TMPFILE > %b
        rm -f $TMPFILE

If some keys don’t work, you can use
Learn Keys

in the
Options

menu.

Files

/usr/share/mc/mc.hlp

The help file for the program.

/usr/share/mc/mc.ini

The default system-wide setup for GNU Midnight Commander, used only if
the user’s own ~/.mc/ini file is missing.

/usr/share/mc/mc.lib

Global settings for the Midnight Commander. Settings in this file
affect all users, whether they have ~/.mc/ini or not.

/usr/share/mc/syntax/*

The default system-wide syntax files for mcedit, used only if
the corresponding user’s own ~/.mc/cedit/ file is missing.

$HOME/.mc/ini

User’s own setup. If this file is present then the setup is loaded
from here instead of the system-wide setup file.

$HOME/.mc/cedit/

User’s own directory where block commands are processed and saved and
user’s own syntax files are located.

Miscellaneous

sscanfsprintfapplesoranges

Enter search string(%d,%d,%d)
Enter replace stringapples %d oranges %d
Enter replacement argument order3,2

It is advisable to use this feature with Prompt On Replace on, because a match is thought to be found whenever the number of arguments found matches the
number given, which is not always a real match. Scanf also treats whitespace as being elastic. Note that the scanf format %[ is very useful for scanning
strings, and whitespace.

The editor also displays non-us characters (160+). When editing binary files, you should set display bits to 7 bits in the Midnight Commander options
menu to keep the spacing clean.

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *

Adblock
detector