Jump to content

Problem with txd replacing


bmat

Recommended Posts

Hello!

I want to replace textures in my map. I've got a file oldgarage_sfse.txd and I want to include this one to my game. I've got a client-side code:

function podmiana()
 
--col1 = engineLoadCOL ( "txd/hubprops6_SFSe.col" )
--engineReplaceCOL ( col1, 11391 )
 
--col2 = engineLoadCOL ( "txd/hubprops1_SFS.col")
--engineReplaceCOL ( col2, 11393 )
 
txd = engineLoadTXD ( "txd/oldgarage_sfse.txd")
engineImportTXD ( txd, 11387 )
 
end
addEventHandler("onClientResourceStart", getRootElement(), podmiana)
addCommandHandler("podmiana", podmiana)

But I've got a warning: Bad 'txd' pointer (...). This warning is in line:

engineImportTXD ( txd, 11387 )

What I did wrong? Please, help me.

Link to comment
Yes, I added file to meta.xml and I check once more names files. It's look normally. I replace one image from txd file and now this file doesn't work. Is there important?

you want to import file that is not working?

"Hello? BMW Customer center? I can't drive my car anymore.. Ow yeah, i damaged engine and tires, is that important?"

Link to comment
So tell me what I should doing? What I may repair this file?

no way to repair BUT

I backuped this file, so I've got an original one. What I should doing to replace one image in this txd file? I used TXD Workshop.

just edit original one once again.

open txd workshop,

load file

extract image

use editing software and edit

IMPORTANT: when saving use original color pallette and file encoding, don't let the editing application change it (this caused the problem i think)

IMPORTANT2: ofcourse dont change the dimestions of the image or anything like that!

import,

save,

be sure that your txd is not corrupted before trying to import to mta

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