manve1 Posted February 9, 2013 Share Posted February 9, 2013 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
GerardWay Posted February 9, 2013 Share Posted February 9, 2013 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. Link to comment
manve1 Posted February 9, 2013 Author Share Posted February 9, 2013 i got the dff file, but not always you need a col shape, and how to create a col shape? p.s. Im using 3d's max Link to comment
GerardWay Posted February 9, 2013 Share Posted February 9, 2013 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
Baseplate Posted February 9, 2013 Share Posted February 9, 2013 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 Link to comment
GerardWay Posted February 9, 2013 Share Posted February 9, 2013 Samer: Im tired, im not in a concentration mood you Jew, Samer:) 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! Link to comment
manve1 Posted February 9, 2013 Author Share Posted February 9, 2013 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
mjau Posted February 9, 2013 Share Posted February 9, 2013 You made the warehouse.txd and warehouse.dff yourself ? Link to comment
Baseplate Posted February 9, 2013 Share Posted February 9, 2013 Did you test them on Single player? if yes, do they work good? Link to comment
manve1 Posted February 9, 2013 Author Share Posted February 9, 2013 #Edit: Tested on single player, it crashes aswell, is there a way to fix this? Link to comment
K4stic Posted February 9, 2013 Share Posted February 9, 2013 To replace the object worlds need make .dff and .txd and .col to be work fine else will make it crash Link to comment
Anderl Posted February 9, 2013 Share Posted February 9, 2013 Guess I saw something about having to change the DFF to work in GTA, I'd search a lil the forums. Link to comment
manve1 Posted February 9, 2013 Author Share Posted February 9, 2013 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
mjau Posted February 10, 2013 Share Posted February 10, 2013 Well if it dont work in singleplayer it got to be something wrong with your files. Link to comment
50p Posted February 10, 2013 Share Posted February 10, 2013 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
manve1 Posted February 10, 2013 Author Share Posted February 10, 2013 how to make Col shapes? as TXD is good, DFF is good and idk how to make Col Picture of DFF check: Pic of TXD check: Link to comment
50p Posted February 10, 2013 Share Posted February 10, 2013 If you're using 3DS Max then you can create COL within 3DS Max. You can check youtube for tutorials if you want to. Link to comment
manve1 Posted February 10, 2013 Author Share Posted February 10, 2013 Is there a link you recomend, as i can't find a youtube vid Link to comment
manve1 Posted February 10, 2013 Author Share Posted February 10, 2013 I used that video to help me, but it still didn't create a proper col shape and crashed me Link to comment
50p Posted February 10, 2013 Share Posted February 10, 2013 You must be doing something wrong. Every step is important. Describe what you're doing step by step. Link to comment
manve1 Posted February 10, 2013 Author Share Posted February 10, 2013 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? Link to comment
50p Posted February 11, 2013 Share Posted February 11, 2013 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
manve1 Posted February 11, 2013 Author Share Posted February 11, 2013 I did try without COL, still gives me crash, mind a taking a look at all 3 of them? 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