// Crimsonland autoexec

// this script is ran each time game loads
// meaning that each non commented line is runned in Crimsonland core
// as though they were typed in the console prompt.

// NOTE: this is very much beta thingie and you can really screw things up
//       with this. There are some things I haven't had time to work properly
//       through, such as:
//    1) You can use recursion or flow control to cause the system to stuck
//       in a forever loop. (by calling exec autoexec for example)
//    2) whole this file is processed without giving priority to other
//       commands or even "the main loop" itself.
//    3) 

// turn echo off to not to display any strings on console
// echo off

// frees all tiles loaded in mem
flushtiles

setresourcepaq tiles.paq

loadtile grass1.tga
loadtile mud1.tga
loadtile gnd_smallrocks.tga
loadtile gnd_bdirt.tga
loadtile gnd_asphalt.tga
loadtile floor.tga
loadtile tl_metalfloor.tga
loadtile tl_metalfloor64.tga
loadtile tl_blackwhite.tga
loadtile tl_wall_h.tga
loadtile tl_blackwhite.tga
loadtile tl_wall_h.tga
loadtile tl_wall_h.tga
loadtile tl_wall_tl.jpg

// echo was never off tho :)
echo on