Jump to content

issues with Gamefqs gamesaves


Recommended Posts

ok, i went and tried a few of the .DUC files they have the for the pokemon games, since i went and backup my Diamond & pearl games i tested the files out, but to my amazement the files did not work, all it did was routed me to making a new game, so i would like some professional help from here on this

Link to comment
Share on other sites

The psychologist is down the road ;P

Nah, there is a converter laying around the forum somewhere do a search for it.

EDIT:

Here is the source to a quick ARDS Max .duc converter I wrote.

/*
* Created by SharpDevelop.
* User: phillip
* Date: 6/23/2010
* Time: 11:44 AM
* 
* To change this template use Tools | Options | Coding | Edit Standard Headers.
*/
using System;
using System.IO;

namespace Converter
{
class Program
{
	public static void Main(string[] args)
	{
		try
		{
			using (BinaryReader r = new BinaryReader(new FileStream(args[0], FileMode.Open, FileAccess.Read)))
			{
				char[] chr = r.ReadChars(4);
				if (chr[0] != 'A' && chr[1] != 'R')
					throw new InvalidDataException("Not a valid ARDS duc file");

				r.BaseStream.Seek(0x1F4, SeekOrigin.Begin);
				byte[] data = r.ReadBytes((int)(r.BaseStream.Length - r.BaseStream.Position));

				using (BinaryWriter w = new BinaryWriter(new FileStream(args[0]+".sav", FileMode.OpenOrCreate)))
				{
					w.Write(data);
				}
			}

			Console.WriteLine("Conversion successful");
		}
		catch (Exception e)
		{
			Console.WriteLine("Oops an error occurred: " + e.Message);
		}
		Console.Write("Press any key to continue . . . ");
		Console.ReadKey(true);
	}
}
}

Edited by Antidote
Fixed the offset address xD
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...