[VERSN2]
version 2.5.5
watermark ""

unlock_memory all
speedreflect auto

// CarTypeInfo
import negate GLOBAL\GLOBALB.LZC CarTypeInfos CarTypeInfo\997GT2.bin

// Collision
import negate GLOBAL\GLOBALB.LZC Collisions Collisions\997GT2.bin

// Add Car Parts
### Add The Parts for the Cars ###
import negate GLOBAL\GLOBALB.LZC DBModelParts DBModelParts\997GT2.bin

// Add requierd Languages
if file_exists absolute LANGUAGES\ENGLISH.BIN
do
append String\English.end 
else
// do nothing
end

if file_exists absolute LANGUAGES\DANISH.BIN
do
append String\Danish.end 
else
// do nothing
end

if file_exists absolute LANGUAGES\FRENCH.BIN
do
append String\French.end 
else
// do nothing
end

if file_exists absolute LANGUAGES\GERMAN.BIN
do
append String\German.end 
else
// do nothing
end

if file_exists absolute LANGUAGES\ITALIAN.BIN
do
append String\Italian.end 
else
// do nothing
end

if file_exists absolute LANGUAGES\KOREAN.BIN
do
append String\Korean.end 
else
// do nothing
end

if file_exists absolute LANGUAGES\POLISH.BIN
do
append String\Polish.end 
else
// do nothing
end

if file_exists absolute LANGUAGES\SPANISH.BIN
do
append String\Spanish.end 
else
// do nothing
end

if file_exists absolute LANGUAGES\SWEDISH.BIN
do
append String\Swedish.end 
else
// do nothing
end


combobox "Vinyls 512x" "Vinyls 1024x" "Choose Vinyl Resolution"

"Vinyls 512x"
move_file negate relative absolute 997GT2\Vinyls_512x.BIN CARS\997GT2\VINYLS.BIN

"Vinyls 1024x"
move_file negate relative absolute 997GT2\Vinyls_1024x.BIN CARS\997GT2\VINYLS.BIN

end

//copies geometry.bin, textures.bin and vinyls.bin files from the 997GT2 folder in the mod's folder to the CARS\997GT2 folder of the game, will overwrite existing files (override)
move_file override relative absolute 997GT2\GEOMETRY.BIN CARS\997GT2\GEOMETRY.BIN
move_file override relative absolute 997GT2\TEXTURES.BIN CARS\997GT2\TEXTURES.BIN

//copies 997GT2.ini files from the scripts\unlimiterdata\ folder in the mod's folder to the scripts\unlimiterdata\ folder of the game, will overwrite existing files (override)
move_file override relative absolute scripts\unlimiterdata\997GT2.ini scripts\unlimiterdata\997GT2.ini

// Add required textures

if collection_exists FRONTEND\FRONTB.LZC TPKBlocks DEFAULT
do
bind_textures synchronize Frontend\FrontB.lzc TPKBlocks DEFAULT Textures\FrontB
else
bind_textures synchronize Frontend\FrontB.lzc TPKBlocks FRONTENDTEXTURES Textures\FrontB
end
