darkcruzer Posted November 17, 2012 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?
darkcruzer Posted November 17, 2012 Author Posted November 17, 2012 (edited) Yes, i'm using UTF8... Here is my function for meta.xml generation. Edited November 21, 2012 by Guest
50p Posted November 18, 2012 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.
darkcruzer Posted November 19, 2012 Author 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...
darkcruzer Posted November 23, 2012 Author 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.
50p Posted November 24, 2012 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.
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