darkcruzer Posted November 17, 2012 Share Posted November 17, 2012 Hey, guys i'm working on a tool in C# which is called MTA:SA Resource Generator in short MTASARG. Functions: Drag and Drop (example: id.txd, id.dff) from Skins, Cars and Weapons onto my tool and script.lua and meta.xml would be generated and packed automatically into a zip-file. Everything works just fine but it seems MTA has some Problems with the generated meta.xml file. ERROR: Couldn't parse meta file for resource 'your_resource'Loading of resource 'your_resource' failed Generated meta.xml looks like this: <meta> <info author="MTASARG" name="Skins, Cars, Weapons" /> <file src="1.dff" type="client" /> <file src="1.txd" type="client" /> </meta> So, but when i open meta.xml and save it with notepad, mta hasnt problems with it. I think its a problem of encoding... Anyone know how i can fix it? Link to comment
darkcruzer Posted November 17, 2012 Author Share Posted November 17, 2012 (edited) Yes, i'm using UTF8... Here is my function for meta.xml generation. Edited November 21, 2012 by Guest Link to comment
50p Posted November 18, 2012 Share Posted November 18, 2012 UTF-8 should work fine. This is what I use for MTA:SE. Try ASCII and make sure the files are copied over to the resource. If it fails, you can try to use writer.WriteStartDocument(); as the first writing function. Link to comment
darkcruzer Posted November 19, 2012 Author Share Posted November 19, 2012 I've found out that it dosnt extract the zip file correctly... when i open the folder resource-cache/unzipped i can find the folder of your_resource but it's empty. So it must be my zipping function which makes the zip file corrupt... Link to comment
darkcruzer Posted November 23, 2012 Author Share Posted November 23, 2012 You can closed it -.- i deleted this project becoause no one want to help me. And yes please delete my account too. Link to comment
Renkon Posted November 23, 2012 Share Posted November 23, 2012 Try using NETZIP Library. It works greatly. Link to comment
50p Posted November 24, 2012 Share Posted November 24, 2012 He uses DotNetZip lib. Everything works fine as far as I know. I helped him via PM and maybe I didn't understand his problem. 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