Jump to content

crash when replacing txd,dff many files


Sora

Recommended Posts

hi guys :D

i have added txd and dff files in a folder with client file & meta file

and every thing okay

but when i'm starting the resource the game gives me crash :cry:

picture :

2ldx0tw.jpg

client.lua

txd = engineLoadTXD ( "sniper.txd" ) 
engineImportTXD ( txd, 357 ) 
dff = engineLoadDFF ( "sniper.dff", 357 ) 
engineReplaceModel ( dff, 357 ) 
  
txd = engineLoadTXD ( "ak47.txd" ) 
engineImportTXD ( txd, 355 ) 
dff = engineLoadDFF ( "ak47.dff", 355 ) 
engineReplaceModel ( dff, 355 ) 
  
txd = engineLoadTXD ( "bomb.txd" ) 
engineImportTXD ( txd, 364 ) 
dff = engineLoadDFF ( "bomb.dff", 364 ) 
engineReplaceModel ( dff, 364 ) 
  
txd = engineLoadTXD ( "clot45.txd" ) 
engineImportTXD ( txd, 345 ) 
dff = engineLoadDFF ( "clot45.dff", 345 ) 
engineReplaceModel ( dff, 346 ) 
  
txd = engineLoadTXD ( "desert_eagle.txd" ) 
engineImportTXD ( txd, 348 ) 
dff = engineLoadDFF ( "desert_eagle.dff", 348 ) 
engineReplaceModel ( dff, 348 ) 
  
txd = engineLoadTXD ( "grenade.txd" ) 
engineImportTXD ( txd, 342 ) 
dff = engineLoadDFF ( "grenade.dff", 342 ) 
engineReplaceModel ( dff, 342 ) 
  
txd = engineLoadTXD ( "knifecur.txd" ) 
engineImportTXD ( txd, 335 ) 
dff = engineLoadDFF ( "knifecur.dff", 335 ) 
engineReplaceModel ( dff, 335 ) 
  
txd = engineLoadTXD ( "m4.txd" ) 
engineImportTXD ( txd, 356 ) 
dff = engineLoadDFF ( "m4.dff", 356 ) 
engineReplaceModel ( dff, 356 ) 
  
txd = engineLoadTXD ( "minigun.txd" ) 
engineImportTXD ( txd, 362 ) 
dff = engineLoadDFF ( "minigun.dff", 362 ) 
engineReplaceModel ( dff, 362 ) 
  
txd = engineLoadTXD ( "mp5.txd" ) 
engineImportTXD ( txd, 353 ) 
dff = engineLoadDFF ( "mp5.dff", 353 ) 
engineReplaceModel ( dff, 353 ) 
  
txd = engineLoadTXD ( "rocket.txd" ) 
engineImportTXD ( txd, 359 ) 
dff = engineLoadDFF ( "rocket.dff", 359 ) 
engineReplaceModel ( dff, 359 ) 
  
txd = engineLoadTXD ( "satchel.txd" ) 
engineImportTXD ( txd, 363 ) 
dff = engineLoadDFF ( "satchel.dff", 363 ) 
engineReplaceModel ( dff, 363 ) 
  
txd = engineLoadTXD ( "silenced.txd" ) 
engineImportTXD ( txd, 347 ) 
dff = engineLoadDFF ( "silenced.dff", 347 ) 
engineReplaceModel ( dff, 587 ) 
  
txd = engineLoadTXD ( "teargas.txd" ) 
engineImportTXD ( txd, 343 ) 
dff = engineLoadDFF ( "teargas.dff", 343 ) 
engineReplaceModel ( dff, 343 ) 
  
txd = engineLoadTXD ( "uzi.txd" ) 
engineImportTXD ( txd, 352 ) 
dff = engineLoadDFF ( "uzi.dff", 352 ) 
engineReplaceModel ( dff, 352 ) 
  
txd = engineLoadTXD ( "tec9.txd" ) 
engineImportTXD ( txd, 372 ) 
dff = engineLoadDFF ( "tec9.dff", 372 ) 
engineReplaceModel ( dff, 372 ) 

meta file

    "SoRa" version="1.1" name="weapons" description="weapons" type="misc" /> 
    

Link to comment
  • Moderators

models/mods could be damaged.

You have to find out which one cause the crash.

use --[[

]]

for disable the script and do it untill you know the one/two or more. --> client script.

  
I had same problem with a mod/model that replaced tec9. 
  

Link to comment

i make it in a different files

client.lua

clinet1.lua

client2.lua

with a timer for client1 and client2

client :

txd1 = engineLoadTXD ( "sniper.txd" ) 
engineImportTXD ( txd1, 357 ) 
dff1 = engineLoadDFF ( "sniper.dff", 357 ) 
engineReplaceModel ( dff1, 357 ) 
  
txd2 = engineLoadTXD ( "ak47.txd" ) 
engineImportTXD ( txd2, 355 ) 
dff2 = engineLoadDFF ( "ak47.dff", 355 ) 
engineReplaceModel ( dff2, 355 ) 
  
txd3 = engineLoadTXD ( "bomb.txd" ) 
engineImportTXD ( txd3, 364 ) 
dff3 = engineLoadDFF ( "bomb.dff", 364 ) 
engineReplaceModel ( dff3, 364 ) 
  
txd4 = engineLoadTXD ( "clot45.txd" ) 
engineImportTXD ( txd4, 345 ) 
dff4 = engineLoadDFF ( "clot45.dff", 345 ) 
engineReplaceModel ( dff4, 346 ) 
  
txd5 = engineLoadTXD ( "desert_eagle.txd" ) 
engineImportTXD ( txd5, 348 ) 
dff5 = engineLoadDFF ( "desert_eagle.dff", 348 ) 
engineReplaceModel ( dff5, 348 ) 
  

client1:

  
setTimer(function() 
txd6 = engineLoadTXD ( "grenade.txd" ) 
engineImportTXD ( txd6, 342 ) 
dff6 = engineLoadDFF ( "grenade.dff", 342 ) 
engineReplaceModel ( dff6, 342 ) 
  
txd7 = engineLoadTXD ( "knifecur.txd" ) 
engineImportTXD ( txd7, 335 ) 
dff7 = engineLoadDFF ( "knifecur.dff", 335 ) 
engineReplaceModel ( dff7, 335 ) 
  
txd8 = engineLoadTXD ( "m4.txd" ) 
engineImportTXD ( txd8, 356 ) 
dff8 = engineLoadDFF ( "m4.dff", 356 ) 
engineReplaceModel ( dff8, 356 ) 
  
txd9 = engineLoadTXD ( "minigun.txd" ) 
engineImportTXD ( txd9, 362 ) 
dff9 = engineLoadDFF ( "minigun.dff", 362 ) 
engineReplaceModel ( dff9, 362 ) 
  
txd10 = engineLoadTXD ( "mp5.txd" ) 
engineImportTXD ( txd10, 353 ) 
dff10 = engineLoadDFF ( "mp5.dff", 353 ) 
engineReplaceModel ( dff10, 353 ) 
end,10000,1) 

client2:

  
setTimer(function() 
txd11 = engineLoadTXD ( "rocket.txd" ) 
engineImportTXD ( txd11, 359 ) 
dff11 = engineLoadDFF ( "rocket.dff", 359 ) 
engineReplaceModel ( dff11, 359 ) 
  
txd12 = engineLoadTXD ( "satchel.txd" ) 
engineImportTXD ( txd12, 363 ) 
dff12 = engineLoadDFF ( "satchel.dff", 363 ) 
engineReplaceModel ( dff12, 363 ) 
  
txd13 = engineLoadTXD ( "silenced.txd" ) 
engineImportTXD ( txd13, 347 ) 
dff13 = engineLoadDFF ( "silenced.dff", 347 ) 
engineReplaceModel ( dff13, 587 ) 
  
txd14 = engineLoadTXD ( "teargas.txd" ) 
engineImportTXD ( txd14, 343 ) 
dff14 = engineLoadDFF ( "teargas.dff", 343 ) 
engineReplaceModel ( dff14, 343 ) 
  
txd15 = engineLoadTXD ( "uzi.txd" ) 
engineImportTXD ( txd15, 352 ) 
dff15 = engineLoadDFF ( "uzi.dff", 352 ) 
engineReplaceModel ( dff15, 352 ) 
  
txd16 = engineLoadTXD ( "tec9.txd" ) 
engineImportTXD ( txd16, 372 ) 
dff16 = engineLoadDFF ( "tec9.dff", 372 ) 
engineReplaceModel ( dff16, 372 ) 
end,14000,1) 
  

but still gives me crash :(

Link to comment

yes thank you for helping me the problem was this model :lol: :

txd16 = engineLoadTXD ( "tec9.txd" ) 
engineImportTXD ( txd16, 372 ) 
dff16 = engineLoadDFF ( "tec9.dff", 372 ) 
engineReplaceModel ( dff16, 372 ) 

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