public static void unpackConfig(Archive container) {
		ItemDefinition.dataBuffer = new Stream(container.get("obj.dat"));
		Stream indexBuffer = new Stream(container.get("obj.idx"));
		ItemDefinition.itemCount = indexBuffer.getUnsignedShort();
		ItemDefinition.itemIndices = new int[ItemDefinition.itemCount + 10000];
		int offset = 2;
		for (int j = 0; j < ItemDefinition.itemCount; j++) {
			ItemDefinition.itemIndices[j] = offset;
			offset += indexBuffer.getUnsignedShort();
		}
		ItemDefinition.itemCache = new ItemDefinition[10];
		for (int i = 0; i < 10; i++) {
			ItemDefinition.itemCache[i] = new ItemDefinition();
		}
	}