Register for your free account! | Forgot your password?

You last visited: Today at 02:11

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

Advertisement



Encrypting GameMap

Discussion on Encrypting GameMap within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
U2_Caparzo's Avatar
 
elite*gold: 0
Join Date: Aug 2011
Posts: 314
Received Thanks: 90
Encrypting GameMap

Hi all!

I'm trying to make a gamemap cryptor/decryptor... i decrypted it fine, but i have problem encrypting it.

i decrypted it like

FileStream fs = blabla bla(file, FileMode.Open);
BinaryReader br = .....(fs);

so i read it in this way.

uint MapCount = br.ReadUint32();
uint ID = br.ReadUint32();
int Length = br.ReadInt32();
string name = ..........//i get it witl help of intellisense :$
int size = br.ReadInt32();

but when i try to encrypt it i have problems.

i have converted the data that i read from the GameMap.txt generated when decrypting so i make it look like

bw = new BinaryWriter(file, FileMode.Create)

uint mapcount = uint.Parse(data loaded from gamemap.txt)
uint ID = ...... same thing
int Length = .... samething with int
string Path = ......
int Size = .......

then i write with BinaryWriter all to the File GameMap2.dat

yes, i write mapcount just one time.
i write it in this order.

count
loop()//i tried differents ones lOl
{
bw.Write(ID)
bw.Write(Length)
bw.Write(Path)
bw.Write(Size)
}

but the new gamemap.dat's size is like 200 bytes major to the original one

6.22 kb original
6.42 kb new one

and i cant decrypt it, the file NEVER finish of being decrypted!
also never finish of loading(in the source side)...

so i dk what can i do now...

srry but i'm not in home so i can't provide u the exact codes i tried...
i made it decrypt to the file really simple for try encrypt again faster, but that wasn't the error.

i hope someone give me some guidance with this...

thanks

srry for my bad english
U2_Caparzo is offline  
Old 02/24/2012, 08:47   #2
 
Spirited's Avatar
 
elite*gold: 12
Join Date: Jul 2011
Posts: 8,282
Received Thanks: 4,191


Does that solve your problem?
Spirited is offline  
Old 02/24/2012, 09:03   #3
 
U2_Caparzo's Avatar
 
elite*gold: 0
Join Date: Aug 2011
Posts: 314
Received Thanks: 90
Quote:
Originally Posted by Fаng View Post


Does that solve your problem?
yeah but not 100% :s
do u can give me any advice about what i'm doing wrong?
U2_Caparzo is offline  
Old 02/24/2012, 09:53   #4

 
Kiyono's Avatar
 
elite*gold: 20
Join Date: Jun 2006
Posts: 3,296
Received Thanks: 925
Check mine instead of Fang's as I have the source code included so you can simply compare your code to mine.
Kiyono is offline  
Thanks
1 User
Old 02/24/2012, 10:22   #5
 
Spirited's Avatar
 
elite*gold: 12
Join Date: Jul 2011
Posts: 8,282
Received Thanks: 4,191
Instead of writing the path like "bw.Write(Path)", write each character individually.
Spirited is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
Encrypting Client ?
02/09/2012 - Flyff Private Server - 0 Replies
Any1 here encrypted their Client .res files and models and textures and so fucking on ? and any1 here made merge.exe work as encrypted so people stop ripping their clients ? I would pay $$$ euros for a person who would work for me in encrypting my client to work with my server and a working modified encrypted merge.exe MSN LIVE : [email protected] please keep this topic open for discussing about encrypting of fly for fun files / source wise / client wise
GameMap.Dat
10/10/2011 - CO2 Private Server - 6 Replies
Could someone explain how to add maps in Gamemap.dat, is there any program for that or just keep using these codes Arabs? ImageShack® - Online Photo and Video Hosting
x7 Encrypting Issue
07/26/2010 - S4 League - 3 Replies
First of all, im not asking for an importer already done or something like that. I just would like someone to tell me wich "way" i must follow or some data about decrypting and encrypting s4 files cause i really want to learn this stuff and make it my own. Thanks beforehand.
New iSRO bot under encrypting
07/20/2007 - SRO Hacks, Bots, Cheats & Exploits - 0 Replies
New iSRO bot update finished, now under encrypting, expected to be finished in several hours. Thanks for your patience and BotsMall will keep following up the progress on bot. :D :D :D



All times are GMT +1. The time now is 02:12.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.