Narushi Posted January 5, 2013 Share Posted January 5, 2013 Hey, i wanna import a vehiclemod for MTA, but my console says everytime, that the file fortune.txd couldn't be find. Why ? I have it in "mods/texturen/fortune.txd" in meta.xml "mods/texturen/fortune.txd" /> "mods/texturen/fortune.dff" /> in script (client-side) function loadMods( ) txd = engineLoadTXD( "models/infernus.txd" ) engineReplaceTXD( txd, 526) dff = engineLoadDFF( "models/infernus.dff" , 526 ) engineReplaceModel( dff, 526) end addEventHandler("onRecourceStart", getResourceRootElement(getThisResource()), loadMods) Link to comment
Castillo Posted January 5, 2013 Share Posted January 5, 2013 You got many problems there, on the meta.xml you have one path, and on the script a different one, then you use 'onRecourceStart' which doesn't exist, you should use 'onClientResourceStart'. Link to comment
Narushi Posted January 5, 2013 Author Share Posted January 5, 2013 i get this error in console [2013-01-05 06:52:39] ERROR: Couldn't parse meta file for resource 'kagnatsu' [2013-01-05 06:52:39] Loading of resource 'kagnatsu' failed [2013-01-05 06:52:46] Resources: 194 loaded, 0 failed [2013-01-05 06:52:46] Querying game-monitor.com master server... failed! (302: Moved temporarily) [2013-01-05 06:52:47] Querying backup master server... success! [2013-01-05 06:52:47] Starting resources.................. [2013-01-05 06:52:49] Server started and is ready to accept connections! [2013-01-05 06:52:49] To stop the server, type 'shutdown' or press Ctrl-C [2013-01-05 06:52:49] Type 'help' for a list of commands. [2013-01-05 06:52:55] start: Resource could not be found start kagnatsu [06:52:55] start: Resource could not be found Link to comment
GhostXoP Posted January 5, 2013 Share Posted January 5, 2013 Post your meta file, that error generally means, you have a syntax error in your meta file, or if a file you have specified doesn't exist (it will tell you this however) with syntax errors, you just get the error you have. Link to comment
Narushi Posted January 5, 2013 Author Share Posted January 5, 2013 "Sh12 aka Narushi" version="0.1a" name="Versuchsscript" description="The beginning of Sh12's Server" type="gamemode" /> Link to comment
Castillo Posted January 5, 2013 Share Posted January 5, 2013 function loadMods( ) txd = engineLoadTXD( "infernus/fortune.txd" ) engineReplaceTXD( txd, 526) dff = engineLoadDFF( "infernus/fortune.dff" , 526 ) engineReplaceModel( dff, 526) end addEventHandler("onClientResourceStart", resourceRoot, loadMods) Link to comment
Baseplate Posted January 5, 2013 Share Posted January 5, 2013 @Castillo onClientResourceStart* and you just could use this txd = engineLoadTXD( "infernus/fortune.txd" ) engineReplaceTXD( txd, 526) dff = engineLoadDFF( "infernus/fortune.dff" , 526 ) engineReplaceModel( dff, 526) Link to comment
Anderl Posted January 5, 2013 Share Posted January 5, 2013 For both of you, engineImportTXD. 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