Console commands
Help document for version LOst Library 3.05 Silver Edition.

The commands:

clear
Clears the console output from text.

version
Displays the LOst Library version.

screenshot [bitmap.bmp]
Takes a screen shot of the whole editor display not including the console text.

pattern [bitmap]
Loads a GIF or BMP bitmap image, converts it to Genesis format 16 colors, and loads the palette. The loaded patterns will emulate the Genesis VRAM.

bmp_pattern_to_bitmap [bitmap.bmp]
Exports the loaded patterns and palette from the editor into a BMP file so it can be redrawn in a paint program (GraphicsGale highly recommended!).

import_pattern [patterns.tlp/sonicrom.bin] offset
Imports original uncompressed or compressed Genesis patterns into the editor. Offset is an optimal parameter when loading from a Sonic ROM

export_pattern [pattern.tlp]
Exports the VRAM patterns into the Genesis tile format compatible with Tile Layer Pro. It will also save a *.CMP file with a copy of the exported patterns compressed ready to be used in any Sonic ROM!

edit
Switchs between edit and preview mode. You can only exit the editor with the ESC key when being in preview mode (default).

load_mappings_s3 [mappings.smp] offset
Imports the mappings (Sonic 3 sprite mappings format) from a single smp file, or from the ROM at offset 0 (default), or from the offset you'll type after the mappings filename! (offset is an optimal parameter)

load_mappings_s2 [mappings.smp] offset
Imports the mappings (Sonic 2 sprite mappings format) from a single smp file, or from the ROM at offset 0 (default), or from the offset you'll type after the mappings filename! (offset is an optimal parameter)

load_mappings_s1 [mappings.smp] offset
Imports the mappings (Sonic 1 sprite mappings format) from a single smp file, or from the ROM at offset 0 (default), or from the offset you'll type after the mappings filename! (offset is an optimal parameter)

create_mappings_s3
Creates a new Sonic 3 compatible mappings with one sprite fragment.

create_mappings_s2
Creates a new Sonic 2 compatible mappings with one sprite fragment.

create_mappings_s1
Creates a new Sonic 1 compatible mappings with one sprite fragment.

delete_mappings
Deletes the loaded mappings without saving it.

save_mappings [mappings.smp]
Exports the loaded/edited mappings into the loaded sprite mappings format!

save_mappings_s3 [mappings.smp]
Exports the loaded/edited mappings into Sonic 3 sprite mappings format!

save_mappings_s2 [mappings.smp]
Exports the loaded/edited mappings into Sonic 2 sprite mappings format!

save_mappings_s1 [mappings.smp]
Exports the loaded/edited mappings into Sonic 1 sprite mappings format!

add_fragment
Adds one new sprite fragment inbetween the current active fragment selection and the next fragment in the active frame's fragment list.

del_fragment
Removes the selected sprite fragment in the active frame's fragment list.

inc_frame
Increases the number of frames in the mappings by adding a new frame inbetween the selected mappings' frame and the next frame in the mappings frame list.

dec_frame
Decreases the number of frames in the mappings frame list by deleting the current selected frame and all its fragments.

rom_palette [sonicrom.bin] [offset]
Imports original palette data and overlays the current loaded palette in the editor from a Sonic ROM. Note: Offset must have the prefix 0x when using hexadecimal addresses.

ram_palette [sonicrom.bin] [offset] [start] [size]
Imports RAW palette data at "start" and processes "size" number of entries, overlays the current loaded palette in the editor from a Sonic ROM or Save State. Note: Offset must have the prefix 0x when using hexadecimal addresses.

palette_im [filename.pal] [start]
Imports RAW palette data at "start" and processes entries until End Of File, overlays the current loaded palette in the editor from a Sonic ROM or Save State.

palette_ex [filename.pal] [start] [size]
Exports RAW palette data at "start" and processes [size] number of entries.

display_status
Turns on and off the tile state status text that is shown when being in edit mode.

status
Sets the tile state status text coordinates.

origin
Sets the mappings middle point coordinates.

aim
Turns on and off the orgin aim mark.

grid
Turns on and off the grid.

set_background [red] [green] [blue]
Sets the background color of the editor.

sprite_sheet [bitmapname]
A group of bitmaps will be created, each one representing each frame in the mappings. The origin of the frame will always be the (bitmap-width / 2, bitmap-height / 2). Use set_background command to set the transparent color.

clear_palette
Clears all palette lines.



You only need to write the first letters of the command you wish to use and then press the TAB key to complete the word for you. That's why most commands are using different names.

The console text can be hidden and viewed by pressing the TILDE (~) key. You will find the TILDE key right below the ESC key.