Jump to content

What's wrong?


Chlorek

Recommended Posts

Posted

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?

Posted
  
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

Posted
  
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

Posted

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.

Posted

But it's not my txd file and dff. It was made by my fried who know how to do that - he is gta:sa modder. ps. still it doesn't work.

Posted

Did you try to put that thing in your singleplayer installation? I'm pretty sure the TXD is incorrect, there's no other reason why that error could appear. Let your friend recheck it, or post it here so we can have a look at it.

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