K4stic Posted August 2, 2014 Share Posted August 2, 2014 Hello MTA:SA Community, I have an Problem with one Function of MTA 1.4 called downloadFile local downloadFiles = { { "mods/infernus.txd" }, { "mods/infernus.dff" }, } for _, downFile in pairs( downloadFiles ) do downloadFile ( downFile[1] ) end addEventHandler ( "onClientFileDownloadComplete", resourceRoot, function ( file, success ) if ( success ) then -- Infernus if ( file == "mods/infernus.txd" and fileExists("mods/infernus.dff") ) or ( file == "mods/infernus.dff" and fileExists("mods/infernus.txd") ) then local txdinf = engineLoadTXD ( "mods/infernus.txd" ) local dffinf = engineLoadDFF ( "mods/infernus.dff", 411 ) engineImportTXD ( txdinf, 411 ) engineReplaceModel ( dffinf, 411 ) end end end ) What i did wrong? They not download or do anything else Link to comment
xTravax Posted August 2, 2014 Share Posted August 2, 2014 when you start the resource do you get any error in console(F8) ? Link to comment
K4stic Posted August 2, 2014 Author Share Posted August 2, 2014 Nope Nothing no any Error in console(F8) or Debugscript Link to comment
xTravax Posted August 2, 2014 Share Posted August 2, 2014 did you try to debug it manually with outputChatBox or outputDebugString messages? that way you can see where the code stops functioning properly Link to comment
Et-win Posted August 2, 2014 Share Posted August 2, 2014 Isn't it returning "infernus.txd" ? It only says fileName so I would think without the path name? Link to comment
K4stic Posted August 2, 2014 Author Share Posted August 2, 2014 Isn't it returning "infernus.txd" ? It only says fileName so I would think without the path name? Not working also i was see the after login: Download error: HTTP server file mismatch (downloadFilesResources) infernus.dff Download error: HTTP server file mismatch (downloadFileResources) infernus.txd Link to comment
xTravax Posted August 2, 2014 Share Posted August 2, 2014 Isn't it returning "infernus.txd" ? It only says fileName so I would think without the path name? Not working also i was see the after login: Download error: HTTP server file mismatch (downloadFilesResources) infernus.dff Download error: HTTP server file mismatch (downloadFileResources) infernus.txd it seems like an mta bug since my script and even wiki script doesnt work this should be reported to bugs.mtasa.com Link to comment
K4stic Posted August 2, 2014 Author Share Posted August 2, 2014 i don't know how to report bugs on bugs.mta.com i can't find how Link to comment
Max+ Posted August 2, 2014 Share Posted August 2, 2014 Login First , https://bugs.multitheftauto.com/login_p ... age.php%3F Link to comment
K4stic Posted August 2, 2014 Author Share Posted August 2, 2014 that's most easy e.e after that i don't know where and what do Link to comment
Addlibs Posted August 2, 2014 Share Posted August 2, 2014 top right corner » set project to "New Issues" Link to comment
K4stic Posted August 3, 2014 Author Share Posted August 3, 2014 can't find it and i don't know if you believe me but they not showing for me Link to comment
MTA Team botder Posted August 3, 2014 MTA Team Share Posted August 3, 2014 can't find it and i don't know if you believe me but they not showing for me Go to the main page. !! IMPORTANT !!BEFORE YOU CAN REPORT YOUR BUGS, YOU NEED TO LOG IN WITH YOUR COMMUNITY.MTASA.COM ACCOUNT AND SELECT THE "NEW ISSUES" PROJECT IN THE DROP DOWN LIST AT YOUR UPPER RIGHT CORNER. NOW PRESS THE NEWLY APPEARED 'REPORT ISSUE' LINK IN THE TOP MENU AND FILL THE FORM, THEN SUBMIT THE REPORT. Link to comment
Addlibs Posted August 3, 2014 Share Posted August 3, 2014 Have you added these files into the meta.xml? <file src="mods/infernus.txd" download="false" /> <file src="mods/infernus.dff" download="false" /> Link to comment
K4stic Posted August 3, 2014 Author Share Posted August 3, 2014 Have you added these files into the meta.xml? <file src="mods/infernus.txd" download="false" /> <file src="mods/infernus.dff" download="false" /> yep i have Link to comment
Addlibs Posted August 3, 2014 Share Posted August 3, 2014 Try using addEventHandler("onClientResourceStart", resourceRoot, function() for _, downFile in pairs( downloadFiles ) do downloadFile ( downFile[1] ) end end) Link to comment
K4stic Posted August 3, 2014 Author Share Posted August 3, 2014 can't find it and i don't know if you believe me but they not showing for me Go to the main page. !! IMPORTANT !!BEFORE YOU CAN REPORT YOUR BUGS, YOU NEED TO LOG IN WITH YOUR COMMUNITY.MTASA.COM ACCOUNT AND SELECT THE "NEW ISSUES" PROJECT IN THE DROP DOWN LIST AT YOUR UPPER RIGHT CORNER. NOW PRESS THE NEWLY APPEARED 'REPORT ISSUE' LINK IN THE TOP MENU AND FILL THE FORM, THEN SUBMIT THE REPORT. realy i don't saw it and not see it e.e and Sorry for that stupid think because i can't find it Link to comment
K4stic Posted August 3, 2014 Author Share Posted August 3, 2014 Try using addEventHandler("onClientResourceStart", resourceRoot, function() for _, downFile in pairs( downloadFiles ) do downloadFile ( downFile[1] ) end end) not work i have try and that way Link to comment
xTravax Posted August 3, 2014 Share Posted August 3, 2014 can't find it and i don't know if you believe me but they not showing for me Go to the main page. !! IMPORTANT !!BEFORE YOU CAN REPORT YOUR BUGS, YOU NEED TO LOG IN WITH YOUR COMMUNITY.MTASA.COM ACCOUNT AND SELECT THE "NEW ISSUES" PROJECT IN THE DROP DOWN LIST AT YOUR UPPER RIGHT CORNER. NOW PRESS THE NEWLY APPEARED 'REPORT ISSUE' LINK IN THE TOP MENU AND FILL THE FORM, THEN SUBMIT THE REPORT. realy i don't saw it and not see it e.e and Sorry for that stupid think because i can't find it make sure you are loggined in before doing this STEP ONE STEP TWO STEP THREE here are links if you cant see full-sized image(s) of mine http://www.upload.ee/image/4189234/1.PNG http://www.upload.ee/image/4189235/2.PNG http://www.upload.ee/image/4189237/3.PNG Link to comment
MTA Team ccw Posted August 3, 2014 MTA Team Share Posted August 3, 2014 The problem is you're calling downloadFile before adding "onClientFileDownloadComplete" event handler. Link to comment
K4stic Posted August 4, 2014 Author Share Posted August 4, 2014 The problem is you're calling downloadFile before adding "onClientFileDownloadComplete" event handler.Still nothing Link to comment
AboShanab Posted August 4, 2014 Share Posted August 4, 2014 https://nightly.multitheftauto.com/mtasa-1.4-rc-6779-20140804.exe download this verison ^ and if u have a server update it for a new verison x32 https://nightly.multitheftauto.com/multi ... 1D8.tar.gz x64 https://nightly.multitheftauto.com/multi ... 1D8.tar.gz Link to comment
MTA Team ccw Posted August 4, 2014 MTA Team Share Posted August 4, 2014 The problem is you're calling downloadFile before adding "onClientFileDownloadComplete" event handler.Still nothing Strange, it fixed it for me. Upload the complete resource for me to test here: http://upload.mtasa.com/ . 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