[VERSN2]

// unlocks memory files
unlock_memory all

// fix corruption caused by TexEd
if collection_exists Tracks\TEX1001TRACK.BIN TPKBlocks DEFAULT
do
update_collection Tracks\TEX1001TRACK.BIN TPKBlocks TRACKTEXTURES CompressionType RawDecompressed
else
end

if collection_exists Tracks\TEX1002TRACK.BIN TPKBlocks DEFAULT
do
update_collection Tracks\TEX1002TRACK.BIN TPKBlocks TRACKTEXTURES CompressionType RawDecompressed
else
end

if collection_exists Tracks\TEX1003TRACK.BIN TPKBlocks DEFAULT
do
update_collection Tracks\TEX1003TRACK.BIN TPKBlocks TRACKTEXTURES CompressionType RawDecompressed
else
end

if collection_exists Tracks\TEX1004TRACK.BIN TPKBlocks DEFAULT
do
update_collection Tracks\TEX1004TRACK.BIN TPKBlocks TRACKTEXTURES CompressionType RawDecompressed
else
end

if collection_exists Tracks\TEX1005TRACK.BIN TPKBlocks DEFAULT
do
update_collection Tracks\TEX1005TRACK.BIN TPKBlocks TRACKTEXTURES CompressionType RawDecompressed
else
end

if collection_exists Tracks\TEX1006TRACK.BIN TPKBlocks DEFAULT
do
update_collection Tracks\TEX1006TRACK.BIN TPKBlocks TRACKTEXTURES CompressionType RawDecompressed
else
end

if collection_exists Tracks\TEX1007TRACK.BIN TPKBlocks DEFAULT
do
update_collection Tracks\TEX1007TRACK.BIN TPKBlocks TRACKTEXTURES CompressionType RawDecompressed
else
end

if collection_exists Tracks\TEX1008TRACK.BIN TPKBlocks DEFAULT
do
update_collection Tracks\TEX1008TRACK.BIN TPKBlocks TRACKTEXTURES CompressionType RawDecompressed
else
end

if collection_exists Tracks\TEX1102TRACK.BIN TPKBlocks DEFAULT
do
update_collection Tracks\TEX1102TRACK.BIN TPKBlocks TRACKTEXTURES CompressionType RawDecompressed
else
end

if collection_exists Tracks\TEX1102TRACK.BIN TPKBlocks DEFAULT
do
update_collection Tracks\TEX1102TRACK.BIN TPKBlocks TRACKTEXTURES CompressionType RawDecompressed
else
end

if collection_exists Tracks\TEX1103TRACK.BIN TPKBlocks DEFAULT
do
update_collection Tracks\TEX1103TRACK.BIN TPKBlocks TRACKTEXTURES CompressionType RawDecompressed
else
end

if collection_exists Tracks\TEX1104TRACK.BIN TPKBlocks DEFAULT
do
update_collection Tracks\TEX1104TRACK.BIN TPKBlocks TRACKTEXTURES CompressionType RawDecompressed
else
end

if collection_exists Tracks\TEX1105TRACK.BIN TPKBlocks DEFAULT
do
update_collection Tracks\TEX1105TRACK.BIN TPKBlocks TRACKTEXTURES CompressionType RawDecompressed
else
end

if collection_exists Tracks\TEX1106TRACK.BIN TPKBlocks DEFAULT
do
update_collection Tracks\TEX1106TRACK.BIN TPKBlocks TRACKTEXTURES CompressionType RawDecompressed
else
end

if collection_exists Tracks\TEX1107TRACK.BIN TPKBlocks DEFAULT
do
update_collection Tracks\TEX1107TRACK.BIN TPKBlocks TRACKTEXTURES CompressionType RawDecompressed
else
end

if collection_exists Tracks\TEX1108TRACK.BIN TPKBlocks DEFAULT
do
update_collection Tracks\TEX1108TRACK.BIN TPKBlocks TRACKTEXTURES CompressionType RawDecompressed
else
end

if collection_exists Tracks\TEX1109TRACK.BIN TPKBlocks DEFAULT
do
update_collection Tracks\TEX1109TRACK.BIN TPKBlocks TRACKTEXTURES CompressionType RawDecompressed
else
end

if collection_exists Tracks\TEX1201TRACK.BIN TPKBlocks DEFAULT
do
update_collection Tracks\TEX1201TRACK.BIN TPKBlocks TRACKTEXTURES CompressionType RawDecompressed
else
end

if collection_exists Tracks\TEX1202TRACK.BIN TPKBlocks DEFAULT
do
update_collection Tracks\TEX1202TRACK.BIN TPKBlocks TRACKTEXTURES CompressionType RawDecompressed
else
end

if collection_exists Tracks\TEX1206TRACK.BIN TPKBlocks DEFAULT
do
update_collection Tracks\TEX1206TRACK.BIN TPKBlocks TRACKTEXTURES CompressionType RawDecompressed
else
end

if collection_exists Tracks\TEX1207TRACK.BIN TPKBlocks DEFAULT
do
update_collection Tracks\TEX1207TRACK.BIN TPKBlocks TRACKTEXTURES CompressionType RawDecompressed
else
end

if collection_exists Tracks\TEX1210TRACK.BIN TPKBlocks DEFAULT
do
update_collection Tracks\TEX1210TRACK.BIN TPKBlocks TRACKTEXTURES CompressionType RawDecompressed
else
end

if collection_exists Tracks\TEX1214TRACK.BIN TPKBlocks DEFAULT
do
update_collection Tracks\TEX1214TRACK.BIN TPKBlocks TRACKTEXTURES CompressionType RawDecompressed
else
end

if collection_exists Tracks\TEX1301TRACK.BIN TPKBlocks DEFAULT
do
update_collection Tracks\TEX1301TRACK.BIN TPKBlocks TRACKTEXTURES CompressionType RawDecompressed
else
end

if collection_exists Tracks\TEX1302TRACK.BIN TPKBlocks DEFAULT
do
update_collection Tracks\TEX1302TRACK.BIN TPKBlocks TRACKTEXTURES CompressionType RawDecompressed
else
end

if collection_exists Tracks\TEX1303TRACK.BIN TPKBlocks DEFAULT
do
update_collection Tracks\TEX1303TRACK.BIN TPKBlocks TRACKTEXTURES CompressionType RawDecompressed
else
end

if collection_exists Tracks\TEX1304TRACK.BIN TPKBlocks DEFAULT
do
update_collection Tracks\TEX1304TRACK.BIN TPKBlocks TRACKTEXTURES CompressionType RawDecompressed
else
end

if collection_exists Tracks\TEX1305TRACK.BIN TPKBlocks DEFAULT
do
update_collection Tracks\TEX1305TRACK.BIN TPKBlocks TRACKTEXTURES CompressionType RawDecompressed
else
end

if collection_exists Tracks\TEX1306TRACK.BIN TPKBlocks DEFAULT
do
update_collection Tracks\TEX1306TRACK.BIN TPKBlocks TRACKTEXTURES CompressionType RawDecompressed
else
end

if collection_exists Tracks\TEX1307TRACK.BIN TPKBlocks DEFAULT
do
update_collection Tracks\TEX1307TRACK.BIN TPKBlocks TRACKTEXTURES CompressionType RawDecompressed
else
end

if collection_exists Tracks\TEX1308TRACK.BIN TPKBlocks DEFAULT
do
update_collection Tracks\TEX1308TRACK.BIN TPKBlocks TRACKTEXTURES CompressionType RawDecompressed
else
end

// replace TEX1001TRACK.BIN textures
bind_textures synchronize Tracks\TEX1001TRACK.BIN TPKBlocks TRACKTEXTURES "Textures\TRACKS\GREEN"

update_texture Tracks\TEX1001TRACK.BIN TPKBlocks TRACKTEXTURES SKY_OVERCASTA RenderingOrder 1
update_texture Tracks\TEX1001TRACK.BIN TPKBlocks TRACKTEXTURES SKY_OVERCASTA_CAP RenderingOrder 0

// replace TEX1002TRACK.BIN textures
bind_textures synchronize Tracks\TEX1002TRACK.BIN TPKBlocks TRACKTEXTURES "Textures\TRACKS\BLUE"

update_texture Tracks\TEX1002TRACK.BIN TPKBlocks TRACKTEXTURES SKY_OVERCASTA RenderingOrder 1
update_texture Tracks\TEX1002TRACK.BIN TPKBlocks TRACKTEXTURES SKY_OVERCASTA_CAP RenderingOrder 0

// replace TEX1003TRACK.BIN textures
bind_textures synchronize Tracks\TEX1003TRACK.BIN TPKBlocks TRACKTEXTURES "Textures\TRACKS\BLUE"

update_texture Tracks\TEX1003TRACK.BIN TPKBlocks TRACKTEXTURES SKY_OVERCASTA RenderingOrder 1
update_texture Tracks\TEX1003TRACK.BIN TPKBlocks TRACKTEXTURES SKY_OVERCASTA_CAP RenderingOrder 0

// replace TEX1004TRACK.BIN textures
bind_textures synchronize Tracks\TEX1004TRACK.BIN TPKBlocks TRACKTEXTURES "Textures\TRACKS\BLUE"

update_texture Tracks\TEX1004TRACK.BIN TPKBlocks TRACKTEXTURES SKY_OVERCASTA RenderingOrder 1
update_texture Tracks\TEX1004TRACK.BIN TPKBlocks TRACKTEXTURES SKY_OVERCASTA_CAP RenderingOrder 0

// replace TEX1005TRACK.BIN textures
bind_textures synchronize Tracks\TEX1005TRACK.BIN TPKBlocks TRACKTEXTURES "Textures\TRACKS\BLUE"

update_texture Tracks\TEX1005TRACK.BIN TPKBlocks TRACKTEXTURES SKY_OVERCASTA RenderingOrder 1
update_texture Tracks\TEX1005TRACK.BIN TPKBlocks TRACKTEXTURES SKY_OVERCASTA_CAP RenderingOrder 0

// replace TEX1006TRACK.BIN textures
bind_textures synchronize Tracks\TEX1006TRACK.BIN TPKBlocks TRACKTEXTURES "Textures\TRACKS\BLUE"

update_texture Tracks\TEX1006TRACK.BIN TPKBlocks TRACKTEXTURES SKY_OVERCASTA RenderingOrder 1
update_texture Tracks\TEX1006TRACK.BIN TPKBlocks TRACKTEXTURES SKY_OVERCASTA_CAP RenderingOrder 0

// replace TEX1007TRACK.BIN textures
bind_textures synchronize Tracks\TEX1007TRACK.BIN TPKBlocks TRACKTEXTURES "Textures\TRACKS\BROWN"

update_texture Tracks\TEX1007TRACK.BIN TPKBlocks TRACKTEXTURES SKY_OVERCASTA RenderingOrder 1
update_texture Tracks\TEX1007TRACK.BIN TPKBlocks TRACKTEXTURES SKY_OVERCASTA_CAP RenderingOrder 0

// replace TEX1008TRACK.BIN textures
bind_textures synchronize Tracks\TEX1008TRACK.BIN TPKBlocks TRACKTEXTURES "Textures\TRACKS\BROWN"

update_texture Tracks\TEX1008TRACK.BIN TPKBlocks TRACKTEXTURES SKY_OVERCASTA RenderingOrder 1
update_texture Tracks\TEX1008TRACK.BIN TPKBlocks TRACKTEXTURES SKY_OVERCASTA_CAP RenderingOrder 0

// replace TEX1102TRACK.BIN textures
bind_textures synchronize Tracks\TEX1102TRACK.BIN TPKBlocks TRACKTEXTURES "Textures\TRACKS\BLUE"

update_texture Tracks\TEX1102TRACK.BIN TPKBlocks TRACKTEXTURES SKY_OVERCASTA RenderingOrder 1
update_texture Tracks\TEX1102TRACK.BIN TPKBlocks TRACKTEXTURES SKY_OVERCASTA_CAP RenderingOrder 0

// replace TEX1103TRACK.BIN textures
bind_textures synchronize Tracks\TEX1103TRACK.BIN TPKBlocks TRACKTEXTURES "Textures\TRACKS\BLUE"

update_texture Tracks\TEX1103TRACK.BIN TPKBlocks TRACKTEXTURES SKY_OVERCASTA RenderingOrder 1
update_texture Tracks\TEX1103TRACK.BIN TPKBlocks TRACKTEXTURES SKY_OVERCASTA_CAP RenderingOrder 0

// replace TEX1104TRACK.BIN textures
bind_textures synchronize Tracks\TEX1104TRACK.BIN TPKBlocks TRACKTEXTURES "Textures\TRACKS\BLUE"

update_texture Tracks\TEX1104TRACK.BIN TPKBlocks TRACKTEXTURES SKY_OVERCASTA RenderingOrder 1
update_texture Tracks\TEX1104TRACK.BIN TPKBlocks TRACKTEXTURES SKY_OVERCASTA_CAP RenderingOrder 0

// replace TEX1105TRACK.BIN textures
bind_textures synchronize Tracks\TEX1105TRACK.BIN TPKBlocks TRACKTEXTURES "Textures\TRACKS\BLUE"

update_texture Tracks\TEX1105TRACK.BIN TPKBlocks TRACKTEXTURES SKY_OVERCASTA RenderingOrder 1
update_texture Tracks\TEX1105TRACK.BIN TPKBlocks TRACKTEXTURES SKY_OVERCASTA_CAP RenderingOrder 0

// replace TEX1106TRACK.BIN textures
bind_textures synchronize Tracks\TEX1106TRACK.BIN TPKBlocks TRACKTEXTURES "Textures\TRACKS\BLUE"

update_texture Tracks\TEX1106TRACK.BIN TPKBlocks TRACKTEXTURES SKY_OVERCASTA RenderingOrder 1
update_texture Tracks\TEX1106TRACK.BIN TPKBlocks TRACKTEXTURES SKY_OVERCASTA_CAP RenderingOrder 0

// replace TEX1107TRACK.BIN textures
bind_textures synchronize Tracks\TEX1107TRACK.BIN TPKBlocks TRACKTEXTURES "Textures\TRACKS\BLUE"

update_texture Tracks\TEX1107TRACK.BIN TPKBlocks TRACKTEXTURES SKY_OVERCASTA RenderingOrder 1
update_texture Tracks\TEX1107TRACK.BIN TPKBlocks TRACKTEXTURES SKY_OVERCASTA_CAP RenderingOrder 0

// replace TEX1108TRACK.BIN textures
bind_textures synchronize Tracks\TEX1108TRACK.BIN TPKBlocks TRACKTEXTURES "Textures\TRACKS\BLUE"

update_texture Tracks\TEX1108TRACK.BIN TPKBlocks TRACKTEXTURES SKY_OVERCASTA RenderingOrder 1
update_texture Tracks\TEX1108TRACK.BIN TPKBlocks TRACKTEXTURES SKY_OVERCASTA_CAP RenderingOrder 0

// replace TEX1109TRACK.BIN textures
bind_textures synchronize Tracks\TEX1109TRACK.BIN TPKBlocks TRACKTEXTURES "Textures\TRACKS\BLUE"

update_texture Tracks\TEX1109TRACK.BIN TPKBlocks TRACKTEXTURES SKY_OVERCASTA RenderingOrder 1
update_texture Tracks\TEX1109TRACK.BIN TPKBlocks TRACKTEXTURES SKY_OVERCASTA_CAP RenderingOrder 0

// replace TEX1201TRACK.BIN textures
bind_textures synchronize Tracks\TEX1201TRACK.BIN TPKBlocks TRACKTEXTURES "Textures\TRACKS\BLUE"

update_texture Tracks\TEX1201TRACK.BIN TPKBlocks TRACKTEXTURES SKY_OVERCASTA RenderingOrder 1
update_texture Tracks\TEX1201TRACK.BIN TPKBlocks TRACKTEXTURES SKY_OVERCASTA_CAP RenderingOrder 0

// replace TEX1202TRACK.BIN textures
bind_textures synchronize Tracks\TEX1202TRACK.BIN TPKBlocks TRACKTEXTURES "Textures\TRACKS\BLUE"

update_texture Tracks\TEX1202TRACK.BIN TPKBlocks TRACKTEXTURES SKY_OVERCASTA RenderingOrder 1
update_texture Tracks\TEX1202TRACK.BIN TPKBlocks TRACKTEXTURES SKY_OVERCASTA_CAP RenderingOrder 0

// replace TEX1206TRACK.BIN textures
bind_textures synchronize Tracks\TEX1206TRACK.BIN TPKBlocks TRACKTEXTURES "Textures\TRACKS\BLUE"

update_texture Tracks\TEX1206TRACK.BIN TPKBlocks TRACKTEXTURES SKY_OVERCASTA RenderingOrder 1
update_texture Tracks\TEX1206TRACK.BIN TPKBlocks TRACKTEXTURES SKY_OVERCASTA_CAP RenderingOrder 0

// replace TEX1207TRACK.BIN textures
bind_textures synchronize Tracks\TEX1207TRACK.BIN TPKBlocks TRACKTEXTURES "Textures\TRACKS\BROWN"

update_texture Tracks\TEX1207TRACK.BIN TPKBlocks TRACKTEXTURES SKY_OVERCASTA RenderingOrder 1
update_texture Tracks\TEX1207TRACK.BIN TPKBlocks TRACKTEXTURES SKY_OVERCASTA_CAP RenderingOrder 0

// replace TEX1210TRACK.BIN textures
bind_textures synchronize Tracks\TEX1210TRACK.BIN TPKBlocks TRACKTEXTURES "Textures\TRACKS\BLUE"

update_texture Tracks\TEX1210TRACK.BIN TPKBlocks TRACKTEXTURES SKY_OVERCASTA RenderingOrder 1
update_texture Tracks\TEX1210TRACK.BIN TPKBlocks TRACKTEXTURES SKY_OVERCASTA_CAP RenderingOrder 0

// replace TEX1214TRACK.BIN textures
bind_textures synchronize Tracks\TEX1214TRACK.BIN TPKBlocks TRACKTEXTURES "Textures\TRACKS\BLUE"

update_texture Tracks\TEX1214TRACK.BIN TPKBlocks TRACKTEXTURES SKY_OVERCASTA RenderingOrder 1
update_texture Tracks\TEX1214TRACK.BIN TPKBlocks TRACKTEXTURES SKY_OVERCASTA_CAP RenderingOrder 0

// replace TEX1301TRACK.BIN textures
bind_textures synchronize Tracks\TEX1301TRACK.BIN TPKBlocks TRACKTEXTURES "Textures\TRACKS\BLUE"

update_texture Tracks\TEX1301TRACK.BIN TPKBlocks TRACKTEXTURES SKY_OVERCASTA RenderingOrder 1
update_texture Tracks\TEX1301TRACK.BIN TPKBlocks TRACKTEXTURES SKY_OVERCASTA_CAP RenderingOrder 0

// replace TEX1302TRACK.BIN textures
bind_textures synchronize Tracks\TEX1302TRACK.BIN TPKBlocks TRACKTEXTURES "Textures\TRACKS\BLUE"

update_texture Tracks\TEX1302TRACK.BIN TPKBlocks TRACKTEXTURES SKY_OVERCASTA RenderingOrder 1
update_texture Tracks\TEX1302TRACK.BIN TPKBlocks TRACKTEXTURES SKY_OVERCASTA_CAP RenderingOrder 0

// replace TEX1303TRACK.BIN textures
bind_textures synchronize Tracks\TEX1303TRACK.BIN TPKBlocks TRACKTEXTURES "Textures\TRACKS\BLUE"

update_texture Tracks\TEX1303TRACK.BIN TPKBlocks TRACKTEXTURES SKY_OVERCASTA RenderingOrder 1
update_texture Tracks\TEX1303TRACK.BIN TPKBlocks TRACKTEXTURES SKY_OVERCASTA_CAP RenderingOrder 0

// replace TEX1304TRACK.BIN textures
bind_textures synchronize Tracks\TEX1304TRACK.BIN TPKBlocks TRACKTEXTURES "Textures\TRACKS\BLUE"

update_texture Tracks\TEX1304TRACK.BIN TPKBlocks TRACKTEXTURES SKY_OVERCASTA RenderingOrder 1
update_texture Tracks\TEX1304TRACK.BIN TPKBlocks TRACKTEXTURES SKY_OVERCASTA_CAP RenderingOrder 0

// replace TEX1305TRACK.BIN textures
bind_textures synchronize Tracks\TEX1305TRACK.BIN TPKBlocks TRACKTEXTURES "Textures\TRACKS\BLUE"

update_texture Tracks\TEX1305TRACK.BIN TPKBlocks TRACKTEXTURES SKY_OVERCASTA RenderingOrder 1
update_texture Tracks\TEX1305TRACK.BIN TPKBlocks TRACKTEXTURES SKY_OVERCASTA_CAP RenderingOrder 0

// replace TEX1306TRACK.BIN textures
bind_textures synchronize Tracks\TEX1306TRACK.BIN TPKBlocks TRACKTEXTURES "Textures\TRACKS\BLUE"

update_texture Tracks\TEX1306TRACK.BIN TPKBlocks TRACKTEXTURES SKY_OVERCASTA RenderingOrder 1
update_texture Tracks\TEX1306TRACK.BIN TPKBlocks TRACKTEXTURES SKY_OVERCASTA_CAP RenderingOrder 0

// replace TEX1307TRACK.BIN textures
bind_textures synchronize Tracks\TEX1307TRACK.BIN TPKBlocks TRACKTEXTURES "Textures\TRACKS\BLUE"

update_texture Tracks\TEX1307TRACK.BIN TPKBlocks TRACKTEXTURES SKY_OVERCASTA RenderingOrder 1
update_texture Tracks\TEX1307TRACK.BIN TPKBlocks TRACKTEXTURES SKY_OVERCASTA_CAP RenderingOrder 0

// replace TEX1308TRACK.BIN textures
bind_textures synchronize Tracks\TEX1308TRACK.BIN TPKBlocks TRACKTEXTURES "Textures\TRACKS\BLUE"

update_texture Tracks\TEX1308TRACK.BIN TPKBlocks TRACKTEXTURES SKY_OVERCASTA RenderingOrder 1
update_texture Tracks\TEX1308TRACK.BIN TPKBlocks TRACKTEXTURES SKY_OVERCASTA_CAP RenderingOrder 0

// unload files to save ram usage
delete Tracks\TEX1001TRACK.BIN
delete Tracks\TEX1002TRACK.BIN
delete Tracks\TEX1003TRACK.BIN
delete Tracks\TEX1004TRACK.BIN
delete Tracks\TEX1005TRACK.BIN
delete Tracks\TEX1006TRACK.BIN
delete Tracks\TEX1007TRACK.BIN
delete Tracks\TEX1008TRACK.BIN
delete Tracks\TEX1102TRACK.BIN
delete Tracks\TEX1103TRACK.BIN
delete Tracks\TEX1104TRACK.BIN
delete Tracks\TEX1105TRACK.BIN
delete Tracks\TEX1106TRACK.BIN
delete Tracks\TEX1107TRACK.BIN
delete Tracks\TEX1108TRACK.BIN
delete Tracks\TEX1109TRACK.BIN
delete Tracks\TEX1201TRACK.BIN
delete Tracks\TEX1301TRACK.BIN
delete Tracks\TEX1302TRACK.BIN
delete Tracks\TEX1303TRACK.BIN
delete Tracks\TEX1304TRACK.BIN
delete Tracks\TEX1305TRACK.BIN
delete Tracks\TEX1306TRACK.BIN
delete Tracks\TEX1307TRACK.BIN
delete Tracks\TEX1308TRACK.BIN

// Move speedreflect.asi to "scripts" folder
speedreflect auto

//Minimum required Binary version
version 2.9.0

// watermark
watermark "Skybox by Plajer"
