Chlorek Posted July 5, 2011 Posted July 5, 2011 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?
bandi94 Posted July 5, 2011 Posted July 5, 2011 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
Chlorek Posted July 5, 2011 Author Posted July 5, 2011 Same problem. Right so it's becouse of txd file. Right, I'll try to fix it. Thx for help guys.
Chlorek Posted July 5, 2011 Author Posted July 5, 2011 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
bandi94 Posted July 5, 2011 Posted July 5, 2011 i use whitout true on my script and its work fine ...
botanist Posted July 5, 2011 Posted July 5, 2011 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 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.
Chlorek Posted July 5, 2011 Author Posted July 5, 2011 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.
botanist Posted July 5, 2011 Posted July 5, 2011 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.
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