aRc Posted April 21, 2014 Share Posted April 21, 2014 Hey guys! I've made an infernus skin and import to .txd. When I put it into the game it looks the old. What I need to do with the .dff? Link to comment
manve1 Posted April 21, 2014 Share Posted April 21, 2014 post the code you use to replace old texture, tho dff is the model file Link to comment
1LoL1 Posted April 21, 2014 Share Posted April 21, 2014 function onResourceStart() end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), onResourceStart) txd = engineLoadTXD ( "infernus.txd",411 ) engineImportTXD ( txd, 411 ) dff = engineLoadDFF ( "infernus.dff", 411) engineReplaceModel ( dff, 411 ) Link to comment
Max Taylor Posted April 21, 2014 Share Posted April 21, 2014 or http://i.imgur.com/I5nmTwA.png euros = engineLoadTXD ( "euros.txd" ) engineImportTXD ( euros, 587 ) euros = engineLoadDFF ( "euros.dff", 587 ) -- change the "euros" to infernus and the model id to infernus ID engineReplaceModel ( euros, 587 ) meta <meta> <script src="kocsimod.lua" type="client"/> <file src="euros.txd"/> <file src="euros.dff"/> </meta> Link to comment
undefined Posted April 22, 2014 Share Posted April 22, 2014 dff = engineLoadDFF ( "filename.dff", 411) engineReplaceModel ( dff, 411 ) txd = engineLoadTXD ( "filename.txd",411 ) engineImportTXD ( txd, 411 ) meta.xml <meta> <info author="aRc" type="script" name="infernus skin" /> <script src="infernusskin.lua" type="client" /> <file src="filename.dff" /> <file src="filename.txd" /> </meta> Link to comment
Vinctus Posted April 22, 2014 Share Posted April 22, 2014 local myMods = { -- file name, replaces {"filename",411}, } addEventHandler("onClientResourceStart", resourceRoot, function() for _,theMod in ipairs(myMods) do local file = theMod[1] local id = theMod[2] local txd = engineLoadTXD (file .. ".txd" ) engineImportTXD ( txd, id ) local dff = engineLoadDFF (file .. ".dff", id ) engineReplaceModel ( dff, id ) end end) if you are going to have multiple mods, use this.. easier than the engineLoad stuff 500 times. 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