Jump to content

engineImportTXD for 2 diff. models, but both same mod


Bonus

Recommended Posts

Hey, I got this problem:

I download the file and load it with engineLoadTXD and engineImportTXD.

Same for DFF.

In that way I try to change 2 models / skins.

But it changes both models with the SAME TXD AND DFF.

Both models get the same mod and I dont know why.

addEventHandler ( "onClientFileDownloadComplete", resourceRoot, function ( fileName, suc ) 
    if suc then 
        outputDebugString ( fileName ) 
        if fileName == pathone..".txd" then 
            outputDebugString ( 1 ) 
            engineImportTXD ( engineLoadTXD ( fileName ), 7 ) 
        elseif fileName == pathtwo..".txd" then 
            outputDebugString ( 2 ) 
            engineImportTXD ( engineLoadTXD ( fileName ), 9 ) 
        elseif fileName == pathone..".dff" then 
            outputDebugString ( 1 ) 
            engineReplaceModel ( engineLoadDFF ( fileName ), 7 ) 
        elseif fileName == pathtwo..".dff" then 
            outputDebugString ( 2 ) 
            engineReplaceModel ( engineLoadDFF ( fileName ), 9 ) 
        end 
    else 
        outputChatBox ( "Skin konnte bei dir nicht runterladen werden!", 200 ) 
    end 
end ) 

Debugscript says:

[2016-02-04 15:18:55] INFO: Skins/Skin1/Skin1.txd 
[2016-02-04 15:18:55] INFO: 1 
[2016-02-04 15:18:55] INFO: Skins/Skin1/Skin1.dff 
[2016-02-04 15:18:55] INFO: 1 
[2016-02-04 15:18:55] INFO: Skins/Skin2/Skin2.txd 
[2016-02-04 15:18:55] INFO: 2 
[2016-02-04 15:18:55] INFO: Skins/Skin2/Skin2.dff 
[2016-02-04 15:18:55] INFO: 2 
[2016-02-04 15:18:55] INFO: Skins/Skin1/Skin1| Skins/Skin2/Skin2   -- thats outputDebugString ( pathone.." | "..pathtwo ) 

Normally it has to use Skin1 and Skin2 (both other skin mods).

But only Skin2 gets used for both models.

Why?

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