Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2
You last visited: Today at 20:52

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



New monster.dat from Co2 client.

Discussion on New monster.dat from Co2 client. within the Conquer Online 2 forum part of the MMORPGs category.

Reply
 
Old   #1
 
unknownone's Avatar
 
elite*gold: 20
Join Date: Jun 2005
Posts: 1,013
Received Thanks: 381
Ok, just a short guide on decrypting the new monster.dat distributed with the Conquer2.0 upgrade. I figure some of you might need to decrypt it to change monster sizes like we've done in the past.
This is only the decryption, so it'll need reversing to be able to make edits, any volunteers?

I'm not very good at explaining this kinda thing, but heres goes.

---

We have 3 counters.
CounterA, CounterB, CounterC

CounterA starts at zero, and it a pointer to the next byte you access from Monster.Dat
CounterB = CounterA Modulus 128. Counter B points to the next byte in the decryption key. (below)
CounterC = CounterA Modulus 8, is used for bitwise shift, explained below.

Decryption Key
Code:
AD 6B 4F FB DD B8 0E 09 13 33 8F F5 43 09 15 88
5D 80 A3 45 2D 42 08 56 80 F8 19 C5 88 1B 3E EF
81 07 30 36 95 52 00 F7 FD 5B 5C BC 6A 26 0E B2
A3 67 C5 5D 6F DC 18 8A B5 E0 C8 85 E2 3E 45 8D
8B 43 74 85 54 17 B0 EC 10 4D 0F 0F 29 B8 E6 7D
42 80 8F BC 1C 76 69 3A B6 A5 21 86 B9 29 30 C0
12 45 A5 4F E1 AF 25 D1 92 2E 30 58 49 67 A5 D3
84 F4 89 CA FC B7 04 4F CC 6E AC 31 D4 87 07 72
Monster.Dat (beginning)
Code:
F6 E5 9A B0 1B 34 9E BB 72 D5 5E 1F 93 48 C1 3C
27 4A A6 66 6B E5 44 D0 8A 4C A4 BE 5E 11 67 D6
E2 CD 89 95 46 74 0C EF F0 4F 69 B7 ED AF 54 81
C6 1D 1D F4 3C BA 55 0C BF 78 5D 36 B4 B3 0A 15
86 57 7D FE 73 DA E0 5D 64 9F B2 7C FA DE AA E7
4F 94 86 C7 3B BB 38 09 D0 6F AC 25 6A 80 A0 69
66 87 1C 6C F7 E1 3C 57 98 AA 8D CB AF 0D 7E 69
EA 3C 7D B9 0A 7A 5D C9 C6 EC 21 92 F1 2B DB 62...
Ok, so each increment of Counter A, you increase Counters B and C.

-Get byte from location CounterA from Monster.dat (ByteA)
-Get byte from location CounterB from the decryption key (ByteB).
-XOR ByteA, ByteB
-Let ByteC = ByteA
-Bitwise Shift Left ByteA by (8 - CounterC)
-Bitwise Shift Right ByteC by CounterC
-Result = ByteA + ByteC

Code:
example: 

CounterA = 7
CounterB = CounterA Mod 128 //=0x7
CounterC = CounterA Mod 8 //=0x7
ByteA = 0xBB
ByteB = 0x09
xor ByteA, ByteB // 0xBB xor 0x0E = 0xB2
ByteC = ByteA  // =0xB2
shl ByteA, (8 - CounterC) // ByteA = 0x64
shr ByteC, CounterC //ByteC = 0x1
result = ByteA + ByteC // 0x64 + 0x1 = 0x65 (101 = "e")
The decrypted file is a structured test file, much like the old monster.ini file, except it contains quite a few more variables.

Code:
[MonsterName]
SizeAdd=%d
ZoomPercent=%d
MaxLife=%d
Level=%d
BornAction=%d
BornEffect=%s
BornSound=%s
ActResCtrl=%d
ASB=%d
ADB=%d"
BodyType=%d
TypeID=%d
AntiType=%d
I'm getting a few invalid characters in my decrypted file, but I think thats just an incorrect byte in the decryption key I need to re-check, Maybe tomorrow.
unknownone is offline  
Thanks
3 Users
Old 11/02/2005, 04:08   #2
 
unknownone's Avatar
 
elite*gold: 20
Join Date: Jun 2005
Posts: 1,013
Received Thanks: 381
Bump, re-posted
unknownone is offline  
Thanks
1 User
Old 11/02/2005, 04:24   #3
 
unknownone's Avatar
 
elite*gold: 20
Join Date: Jun 2005
Posts: 1,013
Received Thanks: 381
Reversed file...
Attached Files
File Type: ibf post-53-1130901846.ibf (60.1 KB, 2125 views)
unknownone is offline  
Thanks
1 User
Old 11/02/2005, 12:32   #4
 
elite*gold: 0
Join Date: Jun 2005
Posts: 134
Received Thanks: 6
I think this is worth a karma, nice finding out how it works...
mind... is offline  
Old 11/02/2005, 13:17   #5
 
elite*gold: 0
Join Date: Apr 2005
Posts: 970
Received Thanks: 17
****, beat me :P

My and unknown were at it last night...

Im not good at reversing things like this

Good job

+1 karma

#Pinned, Moved
Hojo is offline  
Old 11/02/2005, 13:54   #6
 
elite*gold: 0
Join Date: Jan 2005
Posts: 2,248
Received Thanks: 8
no new monster.dat editor?
Peach is offline  
Old 11/02/2005, 16:08   #7
 
elite*gold: 0
Join Date: Apr 2005
Posts: 970
Received Thanks: 17
#Moved back :P
Hojo is offline  
Old 11/02/2005, 19:05   #8
 
elite*gold: 0
Join Date: May 2005
Posts: 224
Received Thanks: 1
this guy has been such a great help to this community that he deserves to be a mod


+karma
thedevil666 is offline  
Old 11/07/2005, 19:53   #9
 
elite*gold: 0
Join Date: Jun 2005
Posts: 220
Received Thanks: 0
hmm wonder if this will be the same decrytion method for itemtype.dat i need only the command tokens renamed
sniper__freak is offline  
Old 11/07/2005, 22:20   #10
 
unknownone's Avatar
 
elite*gold: 20
Join Date: Jun 2005
Posts: 1,013
Received Thanks: 381
itemtype.dat is not encrypted.
unknownone is offline  
Old 11/15/2005, 14:12   #11
 
elite*gold: 0
Join Date: Nov 2005
Posts: 9
Received Thanks: 0
oh no !!!
i dun know what is all this ? =x
i m so noob!!
hw i make a metdove big in CO2
thx!! ^^V
pipi is offline  
Old 11/15/2005, 16:46   #12
 
elite*gold: 0
Join Date: Sep 2004
Posts: 75
Received Thanks: 1
Just use MrTeenie's co2 monster.dat:
flowerpot is offline  
Old 11/22/2005, 04:42   #13
 
elite*gold: 0
Join Date: Oct 2005
Posts: 30
Received Thanks: 0
Made a PHP version for fun and stuff, for those of you who wanted something similar to C/C++ syntax.
Code:
<?php
function decryptChar($char,$num) {
	$decrypt = array(0xAD, 0x6B, 0x4F, 0xFB, 0xDD, 0xB8, 0x0E, 0x09, 0x13, 0x33, 0x8F, 0xF5, 0x43, 0x09, 0x15, 0x88, 0x5D, 0x80, 0xA3, 0x45, 0x2D, 0x42, 0x08, 0x56, 0x80, 0xF8, 0x19, 0xC5, 0x88, 0x1B, 0x3E, 0xEF, 0x81, 0x07, 0x30, 0x36, 0x95, 0x52, 0x00, 0xF7, 0xFD, 0x5B, 0x5C, 0xBC, 0x6A, 0x26, 0x0E, 0xB2, 0xA3, 0x67, 0xC5, 0x5D, 0x6F, 0xDC, 0x18, 0x8A, 0xB5, 0xE0, 0xC8, 0x85, 0xE2, 0x3E, 0x45, 0x8D, 0x8B, 0x43, 0x74, 0x85, 0x54, 0x17, 0xB0, 0xEC, 0x10, 0x4D, 0x0F, 0x0F, 0x29, 0xB8, 0xE6, 0x7D, 0x42, 0x80, 0x8F, 0xBC, 0x1C, 0x76, 0x69, 0x3A, 0xB6, 0xA5, 0x21, 0x86, 0xB9, 0x29, 0x30, 0xC0, 0x12, 0x45, 0xA5, 0x4F, 0xE1, 0xAF, 0x25, 0xD1, 0x92, 0x2E, 0x30, 0x58, 0x49, 0x67, 0xA5, 0xD3, 0x84, 0xF4, 0x89, 0xCA, 0xFC, 0xB7, 0x04, 0x4F, 0xCC, 0x6E, 0xAC, 0x31, 0xD4, 0x87, 0x07, 0x72);
	$CounterA = $num;
	$CounterB = $CounterA % 128;
	$CounterC = $CounterA % 8;
	
	$ByteA = ord($char);
	$ByteB = $decrypt[$CounterB];
	$ByteA = $ByteA ^ $ByteB;
	$ByteC = $ByteA;
	$ByteA = 255 & ($ByteA << (8 - $CounterC));
	$ByteC = 255 & ($ByteC >> $CounterC);
	return chr($ByteA + $ByteC);
}
function decrypt($file = '') {
 echo 'File Length: '.strlen($file)."<br />";
	$result = '';
	for ($i = 0; $i < strlen($file); $i++) {
 $result .= decryptChar($file[$i],$i);
	}
	echo 'File end: '.$i."<br /><br />";
	return $result;
}

$filename = './Monster.dat';
$handle = fopen($filename, "rb");
$contents = fread($handle, filesize($filename));
fclose($handle);

echo '<html><body>';
echo str_replace("\n",'<br />', decrypt($contents));
echo '</body></html>';
?>
pwnage is offline  
Old 12/09/2005, 07:17   #14
 
elite*gold: 0
Join Date: Mar 2005
Posts: 159
Received Thanks: 5
is it able to decrypt/encrypt back with new data?
Nitrometano is offline  
Old 12/09/2005, 07:18   #15
 
elite*gold: 0
Join Date: Mar 2005
Posts: 159
Received Thanks: 5
great job unknowone and pwage
Nitrometano is offline  
Reply


Similar Threads Similar Threads
Monster Hunter Frontier (Client)
02/09/2013 - Foreign Games - 4 Replies
it wont work
Monster Tot noch ein Monster ?
01/19/2010 - Metin2 Private Server - 24 Replies
Hey Leute ich wollte mal gerne wissen ... Wie man das macht das wenn man ein Monster gekillt wird noch eins Spawnt ??? Jede brauchbare Antwort = Thanks^^ Vielleicht muss man auch ne Quest schrieben keine ahnung...
[Request/Help] Lost my Monster.dat for 5017 client.
03/28/2009 - CO2 Private Server - 2 Replies
Does anyone have the 5017 client's Monster.dat? Mine had disappeared somehow and I can't retrieve it. If you have it, please post it here.
Monster.ini file - Boss Monster time and location
12/16/2008 - Zero - 2 Replies
does any1 have the monster.ini file that tell you wen the boss monster appears and where it appears cause i think they mightve patched over the other 1. if any1 can find a way to get it to work again id be grateful. if u think u can help i can send u the other monster.ini file that used to work. Or if this isnt possible does any1 have spawn times for the bosses in neptune/green planet? Either of those would be helpful Thanks in advance
Edit Monster names Client Side?
08/16/2007 - Conquer Online 2 - 10 Replies
Hi, Im trying out Spanish Conquer and im turning the client sided stuff english but im having trouble with monster names could someone give me a hint or something what file controls the monster names. I have tried useing english conquer monster.dat but it didnt seem to be the solution.



All times are GMT +2. The time now is 20:52.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.