Jump to content

Very annoying trouble. :|


xScatta

Recommended Posts

Posted

Hey guys my problem is that.

I want to replace an TXD because i have only TXD and if i search for that txd i must replace then appears many dff's and id's

its there any way which can be faster. because when i see 20 lines then i just tried i maked

txd1 = engineLoadTXD ( "des_ne.txd" ) 
engineImportTXD ( txd1, 16103 ) 
engineImportTXD ( txd1, 16171 ) 
engineImportTXD ( txd1, 16172 ) 
engineImportTXD ( txd1, 16173 ) 
engineImportTXD ( txd1, 16174 ) 
engineImportTXD ( txd1, 16176 ) 
engineImportTXD ( txd1, 16177 ) 
engineImportTXD ( txd1, 16178 ) 
engineImportTXD ( txd1, 16179 ) 
engineImportTXD ( txd1, 16180 ) 
engineImportTXD ( txd1, 16181 ) 
engineImportTXD ( txd1, 16182 ) 
engineImportTXD ( txd1, 16183 ) 
engineImportTXD ( txd1, 16184 ) 
engineImportTXD ( txd1, 16185 ) 
engineImportTXD ( txd1, 16186 ) 
engineImportTXD ( txd1, 16187 ) 
engineImportTXD ( txd1, 16188 ) 
engineImportTXD ( txd1, 16189 ) 
engineImportTXD ( txd1, 16190 ) 
engineImportTXD ( txd1, 16191 ) 
engineImportTXD ( txd1, 16255 ) 
engineImportTXD ( txd1, 16256 ) 
engineImportTXD ( txd1, 16257 ) 
engineImportTXD ( txd1, 16684 ) 
engineImportTXD ( txd1, 16685 ) 
-- NEXT -- 
txd2 = engineLoadTXD ( "lod_countn2.txd" ) 
-- HERE I STOP BECAUSE I NEEDED TO IMPORT 200 TXD's 
  

Help please!

Posted
 -- not tested but logically should work 
local txd1 = engineLoadTXD ( "des_ne.txd" ) 
local ids1 ={16103, 16171, 16172, 16173} -- add more you 
for k,v in ipairs(ids1) do 
  engineImportTXD ( txd1, v ) 
end 
  

also use shader would be better?

Posted

1. How to use Shaders!? To replace txd's.

2. But along you dont listen to me...

"HERE I STOP BECAUSE I NEEDED TO IMPORT 200 TXD's"

I still must to add 200txd's ids to the "ids1" .

I wanna make it faster ...

*BUMP*

Still need help.

Posted
2. You dont understand ... I DONT WANNA TO WRITE 200 IDS...

use S H A D E R S then, only need replace text name and this works on all objects with her name

Posted
But how.

Show me an example someone.;-;

Download a shader example and learn how replace :)!

client:

  
texShader = dxCreateShader ( "texreplace.fx" ) 
texture = dxCreateTexture("floor.png") 
dxSetShaderValue(texShader,"gTexture",texture) 
-- you can get textname with this shader [url=https://wiki.multitheftauto.com/wiki/Shader_examples#Texture_names]https://wiki.multitheftauto.com/wiki/Sha ... ture_names[/url] 
engineApplyShaderToWorldTexture(texShader,"texturename") 
  

texreplace.fx:

  
// Variable to fetch the texture from the script 
texture gTexture; 
  
// My nice technique. Requires absolutely no tools, worries nor skills 
technique TexReplace 
{ 
    pass P0 
    { 
        // Set the texture 
        Texture[0] = gTexture; 
  
         
        // LET THE MAGIC DO ITS MAGIC! 
    } 
} 
  

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