I have troubles reading the content of the MagicType.dat file. I think I don't know the column names (the one which defines the numbers/strings), so program can't read them. I tried looking in other sources just to get the names but I still failed. Can someone provide a little help?
Here's a part of the decrypted content:
My reader is somewhere on my hard drive, but it should works.
Do you mean that's your code or you'll gonna gimme a tip? If it matters, this code was not entirely done by me. It's based on Arco's GameMap.dat decoder...
#Delete the upper reply. It was made accidentaly when I was browsing my old old account. You can even infract me for that, I'll take the responsability for...
Do you mean that's your code or you'll gonna gimme a tip? If it matters, this code was not entirely done by me. It's based on Arco's GameMap.dat decoder...
try searching for datcryptor v2 by high6. It has a complete solution to latest .dat crypts.
He's talking about the old magictype.dat.
Your code looks reasonable. Does it work at all? Chances are there's just an extra column or two. Read a bit further into and you should be good.
There are a HELL of a lot more columns then that (take a peek at a current decrypted one... like 50 columns per entry lol!) so chances are you just need to read more offsets regardless of if you need them or not.
Your code looks reasonable. Does it work at all? Chances are there's just an extra column or two. Read a bit further into and you should be good.
There are a HELL of a lot more columns then that (take a peek at a current decrypted one... like 50 columns per entry lol!) so chances are you just need to read more offsets regardless of if you need them or not.
IE: throw in some ReadBytes(X);'s
It does, anyway when I dump the file, in the ID field, the program's adding an extra 0 at the end of it like, 1045 (FB) it turns into 10450...
It does, anyway when I dump the file, in the ID field, the program's adding an extra 0 at the end of it like, 1045 (FB) it turns into 10450...
I may not be a C# guru, but instead of worrying what in the code is causing that, sometimes it's better to just have it trim it off and go about your day.
I' m worried just because after I manage to fully decrypt it, I'll need to revert it back to its original state (encrypted) in order to make it functional again.
Yes, I figured that out by myself but you know, this version it's the last version I think, when TQ kept the same way to encrypt the MagicType.dat. For example, for the v5095 version, higher than 5065 obviusly, you can decrypt the MagicType.dat using the decryptors available on this forum. Since I have no clue how to decrypt it or encrypt it back (well, decrypting may just work if someone's gonna help me) but ecrypting it's totally clueless for me.
Your code looks reasonable. Does it work at all? Chances are there's just an extra column or two. Read a bit further into and you should be good.
There are a HELL of a lot more columns then that (take a peek at a current decrypted one... like 50 columns per entry lol!) so chances are you just need to read more offsets regardless of if you need them or not.
IE: throw in some ReadBytes(X);'s
yeah, i did realize that his code are for older versions of co. that makes me wonder if he doesn't know that he might be using the wrong algorithm; cuz he didn't specify which version is he working on. lol.
I believe this should be all you need to parse the file. The id mentioned in the beginning of the file is type*10+level. With that information, you can build a dictionary.
Magictype.sql 07/11/2010 - CO2 Private Server - 2 Replies Hello Guys !!
Im Looking for cq_magictype.sql
Witch makes the skills lvling normal ... like real tq
and i wish if has ninja skills ....