Muling & Reporting: The ATMA/GoMule/Flavie Thread ifra

Status
Not open for further replies.
Randall,

Where did you get the code for generating the checksum of the d2s file? I was playing around with my own muling app and how you guys came about this piece of code is just beyond me.
 
Checksum. If you attempt to hack the file without storing the correct checksum afterwards, your game will fail to load! Fortunately, the checksum algorithm is a relatively simple one. After clearing the checksum field, you add up the values of all the bytes in the file, rotating the running total one bit to the left before adding each byte. Then store the result in this field. Thanks go to the Shadowmaster for publishing the checksum code.

This stuff takes some digging, believe me :)

How that translates into code is beyond me, but hey, hopefully it can help :P
 
This stuff takes some digging, believe me :)

How that translates into code is beyond me, but hey, hopefully it can help :P

Code:
private uint calculateChecksum(byte[] fileBytes)
{
	uint hexTest = 0x80000000;
	uint checksum = 0;
	
	// clear out the old checksum
	fileBytes[12] = 0;
	fileBytes[13] = 0;
	fileBytes[14] = 0;
	fileBytes[15] = 0;
	
	foreach (byte currentByte in fileBytes)
	{
		if ((checksum & hexTest) == hexTest)
		{
			checksum = checksum << 1;
			checksum = checksum + 1;
		}
		else
		{
			checksum = checksum << 1;
		}
		
		checksum += currentByte;
	}
	
	return checksum;
}

Well it translates to that. :smiley: I'm more curious as to the digging that was involved I guess. I guess Shadowmaster would be the one to track down?



 
Last edited:
Well it translates to that. :smiley: I'm more curious as to the digging that was involved I guess. I guess Shadowmaster would be the one to track down?

For the characters, it was already working in the original release of GoMule, made by Gohanman :wink3: (For the d2x, I got some help from both Gohanman and the Doc himself)

If you are interested, the source of GoMule is included in the download (it's an open source project)

Randall



 
I am certainly interested. I have been looking through the source with the CVS browse on the SourceForge page. It's interesting to see how we go about doing the same things different ways! :)

I still am confounded by how people began to decipher some of the stuff thats going on in these d2s files. Its not nearly as straightforward as I would have thought.
 
Hi all, I recently reformatted my computer to install Windows XP (I had previously been running Vista). I made sure to back up my character files and stash files, and I restored them after the reinstall. For some reason, I can no longer open any of my files in atma anymore. I haven't had any trouble opening my characters in Diablo 2 itself, but when I try to open a character file or a stash file in atma, it gives me a series of errors, such as the following:

Code:
Version: 1.11 save file
Error: unable to load the string tables
Error: unable to load the data table ATMA_acts;
Error: unable to load the data table ATMA_waypoints;
Error: unable to load the data table ATMA_quests;
Error: unable to load the data table ATMA_queststates;
Error: unable to load the data table ATMA_bodylocs;
Error: unable to load the data table ATMA_colors;
....
Error: unable to load the data table experience;
Error: unable to load the data table skills;
Error: unable to load the data table charstats;
Failed to load tables
Failed to analyze savegame
Unable to load character file

Any ideas?


UPDATE: It's working now. As near as I can tell the only things I did differently is a) Restarted the computer, and b) Created a new character within Diablo 2 then opened him in ATMA. Either way, it seems to have worked out well for me, but is this a known issue that other people have had?
 
Last edited:
I've been stash sorting Randall/Silo. Expect lots of d'oh posts on your Sourceforge site.

I have to say that I managed to separate the Uniques/Sets Giveaway stash into one stash of Uniques and one stash of Sets in about 20 seconds. And that original stash was 1900 items. I *really* wouldn't have done that with ATMA.

:thumbsup:
 
I've been stash sorting Randall/Silo. Expect lots of d'oh posts on your Sourceforge site.

I have to say that I managed to separate the Uniques/Sets Giveaway stash into one stash of Uniques and one stash of Sets in about 20 seconds. And that original stash was 1900 items. I *really* wouldn't have done that with ATMA.

:thumbsup:

Sweet.

Thanks Thyiad, i'm coding right now, so I can hotfix anything you can find wrong (if I haven't fixed it already :P).



 
My biggest thing is really how the directories are displayed and loaded. Check the bugs and suggestion stuff I just did. The screenie I uploaded shows (part) of why I'm whining about both of those.
 
Um. They were druid helmets and sorcess orbs/staves with things like Frozen Orb on. They are currently in my "sell this rubbish, what on earth possed you to keep this you muppet" stash. There's about 500 items. I can send it to you if you want ... :evil:
 
Ok, that's fine.

Explaination: Item search is based on the required level. Required level is based on the required level returned from the item itself.

Items with +skill have their item level changed, as you can't equip an item which has a +skill that you can't use. This is only done when the properties are read. So, until you click on an item, the req level isn't modified and so, the required level will not be upgraded.

Good bugfind.


---------------------------

I also don't understand what the hell you're talking about with the directories listed thing. I've pondered and I still can't work out what you're asking :P

Edit: Screenshots also help :P
 
Req level thing:

You know me, if I can pick a hole in something, I will. :grin: I've found two specific items from the Druid stash if you want to have a look at them. Basically in GoMule one says level 6 req the other level 12 (Hawk Helm and Antlers respectively). Both are req level 24 in game. (Volcano and solar creeper on the helm and solar creeper and fissure on the antlers).

Ah the directories thing ...

Let me know if you've seen the screenie I uploaded into the requests thing. It's called screenie.jpg.

Issue 1: (Easy to understand) I would like to load all the stashes in a directory. And the option to automatically load all the subdirs would be welcome.

EG:
save
/chars
/stashes

save/stashes
/HC
/SC

save/stashes/SC
/rwm
/vanilla

save/stashes/SC/rwm
Sets
Uniques
Eth
Rares
Runes

That's very simplified but I want to be able to load every stash in the save/stashes/SC/rwm directory by highlighting that directory.

The easiest way I can explain it is:
a) how ATMA displays the stash path
b) how Flavie will load sub-dirs

Issue 2:

When sorting my rares stash, I had them all in one stash called Working
BUT I also had Keep, Rubbish and Giveaway stashes open

All I could see was J://progamfiles/diabloii/save/stash/sc/rwmrrm/giveaway/ or part of that. I couldn't see the actually Keep or Rubbish part. The only way i knew which stash was which was by having a crib sheet written down based on the position on the screen.

I'll be on msn in a few if you want to poke me.

Apart from that one disappearing contents of stash thing, it was remarkably stable. Certainly more than Sim City 4 is being. It even coped with my screen saver going off.
 
Oh, I see, up there! Gotcah now.

If you can send me those 2 items you mentioned to [email protected], that'd be awesome (just a copy of them, i'll delete em when i'm done), because obviously, i've screwed something up. :D

About the stash disappering - I saw that and I have no idea. All we can do is wait till more people have it happen and then we can track down the bug.
 
I'm not sure what verison of java you used for gomule and maybe its my system...but trying to run it doesn't seem to like me

it seems to be having problems finding the text files (least thats what I'm getting from the console...) I 'm going to try on another system to see if the results are the same later.
 
I'm not sure what verison of java you used for gomule and maybe its my system...but trying to run it doesn't seem to like me

it seems to be having problems finding the text files (least thats what I'm getting from the console...) I 'm going to try on another system to see if the results are the same later.

I have some troubles reading this.

But it seems to indicate you have troubles starting GoMule.
GoMule can be run with all versions of Java starting from the version 1.4.

I have run GoMule successfully with JDK 1.4, 1.5 and 1.6 on Win98, W2K, XP, Vista and Linux (Redhat Fedora release).

Randall



 
I have some troubles reading this.

But it seems to indicate you have troubles starting GoMule.
GoMule can be run with all versions of Java starting from the version 1.4.

I have run GoMule successfully with JDK 1.4, 1.5 and 1.6 on Win98, W2K, XP, Vista and Linux (Redhat Fedora release).

Randall


Maybe I have done something wrong but I used java -jar command to launch it from a console.

I got a lot of errors (it looked to be mostly about GoMule not finding the text files)

If you want I'd be more than happy to out put my console log here (WARNING IT IS LONG)


 
@Volanare - Read this, follow the instructions then use the GoMule jar icon.

Awesome I dunno if it was a matter of installing again or if it was a matter of changing the the dir and trying but it works now only poping up
Skip: Expansion 0
Skip: Expansion


In the console


Thanks much for the hard work!


 
Status
Not open for further replies.
Back
Top