RandomRambo Posted October 27, 2023 Share Posted October 27, 2023 (edited) Hi guys,how should I replace model if it has 3 dff different files for this model? I know how to replace it when I have 1 txd,1 dff and 1 col files but how to replace with 3 dff,1 txd and 1 col for example? >example of 3 files (txd,dff,col) txd = engineLoadTXD ( "cave.txd" ) engineImportTXD ( txd, 3964 ) col = engineLoadCOL ( "cave.col" ) engineReplaceCOL ( col, 3964 ) dff = engineLoadDFF ( "cave.dff", 0 ) engineReplaceModel ( dff, 3964 ) engineSetModelLODDistance(3964, 160) Help please Edited October 27, 2023 by RandomRambo Link to comment
Administrators Tut Posted October 27, 2023 Administrators Share Posted October 27, 2023 There's smarter ways of going about it, but I just do this txd = engineLoadTXD ( "cave.txd" ) engineImportTXD ( txd, 3964 ) col = engineLoadCOL ( "cave.col" ) engineReplaceCOL ( col, 3964 ) col = engineLoadCOL ( "cave.col" ) engineReplaceCOL ( col, 11111 ) col = engineLoadCOL ( "cave.col" ) engineReplaceCOL ( col, 22222 ) dff = engineLoadDFF ( "cave.dff", 0 ) engineReplaceModel ( dff, 3964 ) dff = engineLoadDFF ( "cavepackages.dff", 0 ) engineReplaceModel ( dff, 11111 ) dff = engineLoadDFF ( "cavemachines.dff", 0 ) engineReplaceModel ( dff, 22222 ) 1 Link to comment
RandomRambo Posted October 27, 2023 Author Share Posted October 27, 2023 8 hours ago, Tut said: There's smarter ways of going about it, but I just do this txd = engineLoadTXD ( "cave.txd" ) engineImportTXD ( txd, 3964 ) col = engineLoadCOL ( "cave.col" ) engineReplaceCOL ( col, 3964 ) col = engineLoadCOL ( "cave.col" ) engineReplaceCOL ( col, 11111 ) col = engineLoadCOL ( "cave.col" ) engineReplaceCOL ( col, 22222 ) dff = engineLoadDFF ( "cave.dff", 0 ) engineReplaceModel ( dff, 3964 ) dff = engineLoadDFF ( "cavepackages.dff", 0 ) engineReplaceModel ( dff, 11111 ) dff = engineLoadDFF ( "cavemachines.dff", 0 ) engineReplaceModel ( dff, 22222 ) Thanks a lot Link to comment
RandomRambo Posted October 27, 2023 Author Share Posted October 27, 2023 9 hours ago, Tut said: There's smarter ways of going about it, but I just do this txd = engineLoadTXD ( "cave.txd" ) engineImportTXD ( txd, 3964 ) col = engineLoadCOL ( "cave.col" ) engineReplaceCOL ( col, 3964 ) col = engineLoadCOL ( "cave.col" ) engineReplaceCOL ( col, 11111 ) col = engineLoadCOL ( "cave.col" ) engineReplaceCOL ( col, 22222 ) dff = engineLoadDFF ( "cave.dff", 0 ) engineReplaceModel ( dff, 3964 ) dff = engineLoadDFF ( "cavepackages.dff", 0 ) engineReplaceModel ( dff, 11111 ) dff = engineLoadDFF ( "cavemachines.dff", 0 ) engineReplaceModel ( dff, 22222 ) Waaait,look,now I have 3 col files,1 dff,1 txd (and it is 1 object (model)) So,it doesn't work Link to comment
Administrators Tut Posted October 27, 2023 Administrators Share Posted October 27, 2023 It's just loading cave.col for IDs 3964, 11111, 22222. I forgot to include .txd, but just do the same principle as was done with .col to share it between 3964, 11111, 22222 Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now