bmat Posted May 17, 2010 Share Posted May 17, 2010 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
dzek (varez) Posted May 17, 2010 Share Posted May 17, 2010 is the path to txd file correct? is the txd file added to meta.xml? one of this = "no" answer Link to comment
bmat Posted May 17, 2010 Author Share Posted May 17, 2010 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? Link to comment
dzek (varez) Posted May 17, 2010 Share Posted May 17, 2010 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
bmat Posted May 17, 2010 Author Share Posted May 17, 2010 So tell me what I should doing? What I may repair this file? 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. Link to comment
dzek (varez) Posted May 17, 2010 Share Posted May 17, 2010 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
bmat Posted May 17, 2010 Author Share Posted May 17, 2010 I've got a error in TXD Workshop. Could you make this for me? I'll send you original txd and file... Please... EDIT: I already made this. The worst was made image 32-bit Thanks for all. Pozdro Link to comment
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