Jump to content

What's wrong?


Chlorek

Recommended Posts

Sup, so I scripted loading new txd and dff. Files are correctly. Now my client side code:

dirtTXD = engineLoadTXD ( "data/dirtBlock.txd", true ) 
            engineImportTXD ( dirtTXD, 2584 ) 
            dirt = engineLoadDFF ( "data/dirtBlock.dff", 2584 ) 
            engineReplaceModel ( dirt, 2584 ) 

And I get error in the debug:

bad 'txd' pointer @ engineImportTXD'(1) 

What's wrong?

Link to comment
  
dirtTXD = engineLoadTXD ( "data/dirtBlock.txd" ) 
            engineImportTXD ( dirtTXD, 2584 ) 
            dirt = engineLoadDFF ( "data/dirtBlock.dff", 2584 ) 
            engineReplaceModel ( dirt, 2584 ) 
  

try this i think you don't need ",true" on TXD

Link to comment
  
dirtTXD = engineLoadTXD ( "data/dirtBlock.txd" ) 
            engineImportTXD ( dirtTXD, 2584 ) 
            dirt = engineLoadDFF ( "data/dirtBlock.dff", 2584 ) 
            engineReplaceModel ( dirt, 2584 ) 
  

try this i think you don't need ",true" on TXD

off-top: true is for filtering textures

Link to comment

Bandi94: read the wiki, then you know why.

Chlorek: The debug already told you what's wrong, but might be unclear if youre sure the TXD was correct. Well, it isn't. Did you read any TXD tutorials yet? I got the idea you just added some BMP files to the TXD archive, but it isn't that simple :P There are some options you have to apply to the textures. I haven't modded for a while, so I dont exactly remember how this worked, but some TXD tutorial should help you with this.

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