Jump to content

Help..


manve1

Recommended Posts

I created a script to replace my made 3d object in mta, but everytime i replace the object my mta crashes, is there any solution how to re-make it?

dff = engineLoadDFF( 'warehouse.dff', 17697 ) 
engineReplaceModel( dff, 17697 ) 

(( sry if wrong section ))

Link to comment
function Replace 
txd = engineLoadTXD ( "warehouse.txd" ) 
engineImportTXD ( txd, 17697 ) 
dff = engineLoadDFF ( "warehouse.dff", 17697 ) 
engineReplaceModel ( dff, 17697 ) 
end 
addEvent ( "replaceModel", true ) 
addEventHandler ( "replaceModel", getRootElement(), Replace ) 

Make sure to add Warehouse.dff and Warehouse.txd into the SAME folder as your script. Not in a seperate folder.

If this fails to work, post your Meta.xml File.

Link to comment

it crashes without needing to load txd file, it crashes when i even load dff file :/

#Edit: I get this crash error:

Version = 1.3.1-release-5018.0.000 
Time = Sat Feb 09 15:51:12 2013 
Module = C:\Program Files\ aw\GTA-SanAndreas\gta_sa.exe 
Code = 0xC0000005 
Offset = 0x003F0C5D 
  
EAX=00000000  EBX=0022F558  ECX=1EB89F30  EDX=F1B201A8  ESI=180629A0 
EDI=F1B201A8  EBP=00000000  ESP=0022F4AC  EIP=007F0C5D  FLG=00210246 
CS=001B   DS=0023  SS=0023  ES=0023   FS=003B  GS=0000 

#Meta:


Link to comment
To replace the object worlds need make .dff and .txd and .col to be work fine else will make it crash

You're wrong, as for example, i replaced vehicles, peds, few world objects and no crash

Guess I saw something about having to change the DFF to work in GTA, I'd search a lil the forums.

I seen them too, but still no luck, as i created mine from scratch

Link to comment

Describe how you export your files and how you verify they are valid files. You can use DFF viewer to see if your model is valid. Collision File Editor to check your .col files and G-TXD or TXD Workshop to validate your .txd files.

Link to comment

It doesn't really matter where you get the model from. As long as it's a 3D mesh converted to editable poly/mesh. I still can't tell you what you're doing wrong. If the game crashes even single player then files must be corrupted. The dff seems fine as it loads in DFF viewer. TXD also looks fine. Have you tried to load these without .col?

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