Jump to content

Help..


manve1

Recommended Posts

Posted

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

Looking for tutorials or information? check out: www.simpleask.co.uk

Posted

Do you have "Warehouse.dff" and "Warehouse.col" available? Those files are needed most of the time to replace a model or it will lag people out, or it will make your game crash like you said.

If you need any additional help, feel free to contact me.

560x95_FFFFFF_FF9900_000000_000000.png
Posted
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.

560x95_FFFFFF_FF9900_000000_000000.png
Posted
txd = engineLoadTXD ( "warehouse.txd" ) 
engineImportTXD ( txd, 17697 ) 
dff = engineLoadDFF ( "warehouse.dff", 17697 ) 
engineReplaceModel ( dff, 17697 ) 

This is enough, but why did you add an event? and you forgot () at the function in line 1

Posted

Samer: Im tired, im not in a concentration mood you Jew, Samer:) xD And pop up on Skype damnit.

And Manve: If you have any more problems with this script, then feel free to PM Me or Samer at any time!

560x95_FFFFFF_FF9900_000000_000000.png
Posted

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:


Looking for tutorials or information? check out: www.simpleask.co.uk

Posted

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

Giving a Fuck? Nope, That isn't in My Skill Set

castie11.png

Posted

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

"[...] If you don’t love it, if you’re not having fun doing it, you don’t really love it, you’re going to give up." - Steve Jobs, 2007

Posted
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

Looking for tutorials or information? check out: www.simpleask.co.uk

Posted

i made collision file a few times,, but still no luck, would it be a problem if i used sketchup 8 to create the model and then get it on 3ds max > make the same thing as on the video?

Looking for tutorials or information? check out: www.simpleask.co.uk

Posted

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?

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