Jump to content

Trouble with LOD model texture replacement


5150

Recommended Posts

So for the life of me i can't figure out why the textures on these LOD models wont replace, everything in the code looks right and loads with no errors. the dffs and cols replace fine and the textures replace properly for the main model, but for the LODs the textures don't work. what am i missing?

Spoiler
local TXD = engineLoadTXD("a51_ext.txd")
local TXDImported = engineImportTXD(TXD,16203)

local TXD1 = engineLoadTXD("des_se1.txd")
local TXDImported12 = engineImportTXD(TXD1,16230)

local TXD2 = engineLoadTXD("des_cen.txd")
local TXDImported1 = engineImportTXD(TXD2,16197)
local TXDImported2 = engineImportTXD(TXD2,16198)
local TXDImported3 = engineImportTXD(TXD2,16201)
local TXDImported4 = engineImportTXD(TXD2,16202)
local TXDImported5 = engineImportTXD(TXD2,16204)
local TXDImported6 = engineImportTXD(TXD2,16208)
local TXDImported7 = engineImportTXD(TXD2,16209)
local TXDImported8 = engineImportTXD(TXD2,16196)
local TXDImported9 = engineImportTXD(TXD2,16259)
local TXDImported10 = engineImportTXD(TXD2,16261)
local TXDImported11 = engineImportTXD(TXD2,16210)

--LODs
local TXDImported13 = engineImportTXD(TXD,16590)

local TXDImported14 = engineImportTXD(TXD1,16536)

local TXDImported15 = engineImportTXD(TXD2,16461)
local TXDImported16 = engineImportTXD(TXD2,16462)
local TXDImported17 = engineImportTXD(TXD2,16585)
local TXDImported18 = engineImportTXD(TXD2,16586)
local TXDImported19 = engineImportTXD(TXD2,16557)
local TXDImported20 = engineImportTXD(TXD2,16589)
local TXDImported21 = engineImportTXD(TXD2,16591)
local TXDImported22 = engineImportTXD(TXD2,16576)
local TXDImported23 = engineImportTXD(TXD2,16577)
local TXDImported24 = engineImportTXD(TXD2,16587)
local TXDImported25 = engineImportTXD(TXD2,16559)

-------------------------------------------------------------------------

local DFF = engineLoadDFF("cen_bit_05.dff",16197)--,16461)
local DFFImported = engineReplaceModel(DFF,16197)--,16461)
local COL = engineLoadCOL("cen_bit_05.col")
local COLImported = engineReplaceCOL(COL,16197)
engineSetModelLODDistance(16197,300)

local DFF = engineLoadDFF("cen_bit_05.dff", 16461)
local DFFImported = engineReplaceModel(DFF,16461)

-------------------------------------------------------------------------

local DFF1 = engineLoadDFF("cen_bit_06.dff",16198)--,16462)
local DFFImported1 = engineReplaceModel(DFF1,16198)--,16462)
local COL1 = engineLoadCOL("cen_bit_06.col")
local COLImported1 = engineReplaceCOL(COL1,16198)
engineSetModelLODDistance(16198,300)

local DFF1 = engineLoadDFF("cen_bit_06.dff", 16462)
local DFFImported1 = engineReplaceModel(DFF1,16462)

-------------------------------------------------------------------------

local DFF2 = engineLoadDFF("cen_bit_09.dff",16201)--,16585)
local DFFImported2 = engineReplaceModel(DFF2,16201)--,16585)
local COL2 = engineLoadCOL("cen_bit_09.col")
local COLImported2 = engineReplaceCOL(COL2,16201)
engineSetModelLODDistance(16201,300)

local DFF2 = engineLoadDFF("cen_bit_09.dff", 16585)
local DFFImported2 = engineReplaceModel(DFF2,16585)

-------------------------------------------------------------------------

local DFF3 = engineLoadDFF("cen_bit_10.dff",16202)--,16586)
local DFFImported3 = engineReplaceModel(DFF3,16202)--,16586)
local COL3 = engineLoadCOL("cen_bit_10.col")
local COLImported3 = engineReplaceCOL(COL3,16202)
engineSetModelLODDistance(16202,300)

local DFF3 = engineLoadDFF("cen_bit_10.dff", 16586)
local DFFImported3 = engineReplaceModel(DFF3,16586)

-------------------------------------------------------------------------

local DFF4 = engineLoadDFF("cen_bit_11.dff",16203)--,16590)
local DFFImported4 = engineReplaceModel(DFF4,16203)--,16590)
local COL4 = engineLoadCOL("cen_bit_11.col")
local COLImported4 = engineReplaceCOL(COL4,16203)
engineSetModelLODDistance(16203,300)

local DFF4 = engineLoadDFF("cen_bit_11.dff", 16590)
local DFFImported4 = engineReplaceModel(DFF4,16590)

-------------------------------------------------------------------------

local DFF5 = engineLoadDFF("cen_bit_12.dff",16204)--,16557)
local DFFImported5 = engineReplaceModel(DFF5,16204)--,16557)
local COL5 = engineLoadCOL("cen_bit_12.col")
local COLImported5 = engineReplaceCOL(COL5,16204)
engineSetModelLODDistance(16204,300)

local DFF5 = engineLoadDFF("cen_bit_12.dff", 16557)
local DFFImported5 = engineReplaceModel(DFF5,16557)

-------------------------------------------------------------------------

local DFF6 = engineLoadDFF("cen_bit_16.dff",16208)--,16589)
local DFFImported6 = engineReplaceModel(DFF6,16208)--,16589)
local COL6 = engineLoadCOL("cen_bit_16.col")
local COLImported6 = engineReplaceCOL(COL6,16208)
engineSetModelLODDistance(16208,300)

local DFF6 = engineLoadDFF("cen_bit_16.dff", 16589)
local DFFImported6 = engineReplaceModel(DFF6,16589)

-------------------------------------------------------------------------

local DFF33 = engineLoadDFF("cen_bit_17.dff",16210)--,16559)
local DFFImported33 = engineReplaceModel(DFF33,16210)--,16559)
local COL33 = engineLoadCOL("cen_bit_17.col")
local COLImported33 = engineReplaceCOL(COL33,16210)
engineSetModelLODDistance(16210,300)

local DFF33 = engineLoadDFF("cen_bit_17.dff", 16559)
local DFFImported33 = engineReplaceModel(DFF33,16559)

-------------------------------------------------------------------------

local DFF7 = engineLoadDFF("cen_bit_19.dff",16209)--,16591)
local DFFImported7 = engineReplaceModel(DFF7,16209)--,16591)
local COL7 = engineLoadCOL("cen_bit_19.col")
local COLImported7 = engineReplaceCOL(COL7,16209)
engineSetModelLODDistance(16209,300)

local DFF7 = engineLoadDFF("cen_bit_19.dff", 16591)
local DFFImported7 = engineReplaceModel(DFF7,16591)

-------------------------------------------------------------------------

local DFF8 = engineLoadDFF("cen_bit_20.dff",16196)--,16576)
local DFFImported8 = engineReplaceModel(DFF8,16196)--,16576)
local COL8 = engineLoadCOL("cen_bit_20.col")
local COLImported8 = engineReplaceCOL(COL8,16196)
engineSetModelLODDistance(16196,300)

local DFF8 = engineLoadDFF("cen_bit_20.dff", 16576)
local DFFImported8 = engineReplaceModel(DFF8,16576)

-------------------------------------------------------------------------

local DFF9 = engineLoadDFF("cen_bit_22.dff",16259)--,16577)
local DFFImported9 = engineReplaceModel(DFF9,16259)--,16577)
local COL9 = engineLoadCOL("cen_bit_22.col")
local COLImported9 = engineReplaceCOL(COL9,16259)
engineSetModelLODDistance(16259,300)

local DFF9 = engineLoadDFF("cen_bit_22.dff", 16577)
local DFFImported9 = engineReplaceModel(DFF9,16577)

-------------------------------------------------------------------------

local DFF10 = engineLoadDFF("cen_bit_24.dff",16261)--,16587)
local DFFImported10 = engineReplaceModel(DFF10,16261)--,16587)
local COL10 = engineLoadCOL("cen_bit_24.col")
local COLImported10 = engineReplaceCOL(COL10,16261)
engineSetModelLODDistance(16261,300)

local DFF10 = engineLoadDFF("cen_bit_24.dff",16587)
local DFFImported10 = engineReplaceModel(DFF10,16587)

-------------------------------------------------------------------------

local DFF11 = engineLoadDFF("se_bit_01.dff",16230)--,16536)
local DFFImported11 = engineReplaceModel(DFF11,16230)--,16536)
local COL11 = engineLoadCOL("se_bit_01.col")
local COLImported11 = engineReplaceCOL(COL11,16230)
engineSetModelLODDistance(16230,300)

local DFF11 = engineLoadDFF("se_bit_01.dff",16536)
local DFFImported11 = engineReplaceModel(DFF11,16536)

 

 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...