[VERSN2]

// unlocks memory files
unlock_memory all

// no errors if the script is re-imported into the same file again
stop_errors true

// remove useless textures
remove_texture GLOBAL\INGAMEA.BUN TPKBlocks INGAMETEXTURESPC 0x03C8BD74
remove_texture GLOBAL\INGAMEA.BUN TPKBlocks INGAMETEXTURESPC 0x03C8BD75
remove_texture GLOBAL\INGAMEA.BUN TPKBlocks INGAMETEXTURESPC 0xDE38D701
remove_texture GLOBAL\INGAMEA.BUN TPKBlocks INGAMETEXTURESPC 0xDE38D700
remove_texture GLOBAL\INGAMEA.BUN TPKBlocks INGAMETEXTURESPC 0xD8A80C6E
remove_texture GLOBAL\INGAMEA.BUN TPKBlocks INGAMETEXTURESPC 0xD8A80C6D
remove_texture GLOBAL\INGAMEA.BUN TPKBlocks INGAMETEXTURESPC 0x7DDAF6EB
remove_texture GLOBAL\INGAMEA.BUN TPKBlocks INGAMETEXTURESPC 0x7DDAF6EA

// add 8K skies
bind_textures override GLOBAL\INGAMEA.BUN TPKBlocks INGAMETEXTURESPC "textures"

// fix texture fuckery
update_texture GLOBAL\INGAMEA.BUN TPKBlocks INGAMETEXTURESPC 0x4A31E2A3 AlphaBlendType TEXBLEND_BLEND
update_texture GLOBAL\INGAMEA.BUN TPKBlocks INGAMETEXTURESPC 0x4A31E2A3 AlphaUsageType TEXUSAGE_MODULATED
update_texture GLOBAL\INGAMEA.BUN TPKBlocks INGAMETEXTURESPC 0x4A31E2A3 MipmapBiasType TEXBIAS_DEFAULT
update_texture GLOBAL\INGAMEA.BUN TPKBlocks INGAMETEXTURESPC 0x4A31E2A3 ScrollType TEXSCROLL_NONE
update_texture GLOBAL\INGAMEA.BUN TPKBlocks INGAMETEXTURESPC 0x4A31E2A3 TileableUV ALL_SIDES
update_texture GLOBAL\INGAMEA.BUN TPKBlocks INGAMETEXTURESPC 0x4A31E2A4 AlphaBlendType TEXBLEND_BLEND
update_texture GLOBAL\INGAMEA.BUN TPKBlocks INGAMETEXTURESPC 0x4A31E2A4 AlphaUsageType TEXUSAGE_MODULATED
update_texture GLOBAL\INGAMEA.BUN TPKBlocks INGAMETEXTURESPC 0x4A31E2A4 MipmapBiasType TEXBIAS_DEFAULT
update_texture GLOBAL\INGAMEA.BUN TPKBlocks INGAMETEXTURESPC 0x4A31E2A4 ScrollType TEXSCROLL_NONE
update_texture GLOBAL\INGAMEA.BUN TPKBlocks INGAMETEXTURESPC 0x4A31E2A4 TileableUV ALL_SIDES
update_texture GLOBAL\INGAMEA.BUN TPKBlocks INGAMETEXTURESPC 0x94D70856 AlphaBlendType TEXBLEND_BLEND
update_texture GLOBAL\INGAMEA.BUN TPKBlocks INGAMETEXTURESPC 0x94D70856 AlphaUsageType TEXUSAGE_MODULATED
update_texture GLOBAL\INGAMEA.BUN TPKBlocks INGAMETEXTURESPC 0x94D70856 MipmapBiasType TEXBIAS_DEFAULT
update_texture GLOBAL\INGAMEA.BUN TPKBlocks INGAMETEXTURESPC 0x94D70856 ScrollType TEXSCROLL_NONE
update_texture GLOBAL\INGAMEA.BUN TPKBlocks INGAMETEXTURESPC 0x94D70856 TileableUV ALL_SIDES
update_texture GLOBAL\INGAMEA.BUN TPKBlocks INGAMETEXTURESPC 0x94D70857 AlphaBlendType TEXBLEND_BLEND
update_texture GLOBAL\INGAMEA.BUN TPKBlocks INGAMETEXTURESPC 0x94D70857 AlphaUsageType TEXUSAGE_MODULATED
update_texture GLOBAL\INGAMEA.BUN TPKBlocks INGAMETEXTURESPC 0x94D70857 MipmapBiasType TEXBIAS_DEFAULT
update_texture GLOBAL\INGAMEA.BUN TPKBlocks INGAMETEXTURESPC 0x94D70857 ScrollType TEXSCROLL_NONE
update_texture GLOBAL\INGAMEA.BUN TPKBlocks INGAMETEXTURESPC 0x94D70857 TileableUV ALL_SIDES
update_texture GLOBAL\INGAMEA.BUN TPKBlocks INGAMETEXTURESPC 0xBAB91800 AlphaBlendType TEXBLEND_BLEND
update_texture GLOBAL\INGAMEA.BUN TPKBlocks INGAMETEXTURESPC 0xBAB91800 AlphaUsageType TEXUSAGE_MODULATED
update_texture GLOBAL\INGAMEA.BUN TPKBlocks INGAMETEXTURESPC 0xBAB91800 MipmapBiasType TEXBIAS_DEFAULT
update_texture GLOBAL\INGAMEA.BUN TPKBlocks INGAMETEXTURESPC 0xBAB91800 ScrollType TEXSCROLL_NONE
update_texture GLOBAL\INGAMEA.BUN TPKBlocks INGAMETEXTURESPC 0xBAB91800 TileableUV ALL_SIDES
update_texture GLOBAL\INGAMEA.BUN TPKBlocks INGAMETEXTURESPC 0xBAB91801 AlphaBlendType TEXBLEND_BLEND
update_texture GLOBAL\INGAMEA.BUN TPKBlocks INGAMETEXTURESPC 0xBAB91801 AlphaUsageType TEXUSAGE_MODULATED
update_texture GLOBAL\INGAMEA.BUN TPKBlocks INGAMETEXTURESPC 0xBAB91801 MipmapBiasType TEXBIAS_DEFAULT
update_texture GLOBAL\INGAMEA.BUN TPKBlocks INGAMETEXTURESPC 0xBAB91801 ScrollType TEXSCROLL_NONE
update_texture GLOBAL\INGAMEA.BUN TPKBlocks INGAMETEXTURESPC 0xBAB91801 TileableUV ALL_SIDES

// unload file to save ram usage
delete GLOBAL\INGAMEA.BUN