Jump to content
  • 0

Script is not loading txd!


rusztamas

Question

Hello guys!

A few days before i had a problem, that collision is not loading on my models. Now i have the same problem, but in textures.

It looks like this: http://kepfeltoltes.hu/160315/mta-scree ... es.hu_.png

Upload: (via upload.mtasa.com) http://upload.mtasa.com/u/946599967/rio.rar_

Script:

addEventHandler('onClientResourceStart', resourceRoot, 
    function() 
        outputChatBox ( "Ez a resource válaszol.") --This resource responds 
  
        local txd = engineLoadTXD('files/fav_props.txd',true) 
        engineImportTXD(txd, 4001) 
  
        local dff = engineLoadDFF('files/fav_brick.dff', 0) 
        engineReplaceModel(dff, 4001) 
  
        local col = engineLoadCOL('files/fav_brick.col') 
        engineReplaceCOL(col, 4001) 
        engineSetModelLODDistance(4001, 5000) 
                     
        local txd = engineLoadTXD('files/fav_props.txd',true) 
        engineImportTXD(txd, 4004) 
  
        local dff = engineLoadDFF('files/fav_fastfood.dff', 0) 
        engineReplaceModel(dff, 4004) 
  
        local col = engineLoadCOL('files/fav_fastfood.col') 
        engineReplaceCOL(col, 4004) 
        engineSetModelLODDistance(4004, 5000) 
    end 
) 

Meta:

<meta> 
    <script src="script.lua" type="client" /> 
    <file src="files/fav_brick.col" /> 
    <file src="files/fav_props.txd" /> 
    <file src="files/fav_brick.dff" /> 
    <file src="files/fav_fastfood.col" /> 
    <file src="files/fav_fastfood.dff" /> 
</meta>] 

Debugscript 3 does not sending warning or error messages.

Link to comment

4 answers to this question

Recommended Posts

  • 0
  • MTA Team

fav_08.dff requires texture plant_fern_d (which is in fav_props.txd)

fav_fastfood.dff requires textures Tex_0897_0 and Tex_0898_0 (which are NOT in fav_props.txd)

fav_brick.dff requires texture brick_pallet_DIFF (which is NOT in fav_props.txd)

{I used "DFF Viewer 0.1" to check DFF required texture names

and "TxdWorkshop" to view TXD texture names}

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...