Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Programming
You last visited: Today at 00:51

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

Advertisement



[Release][C#] TQ dat files handler

Discussion on [Release][C#] TQ dat files handler within the CO2 Programming forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Sep 2012
Posts: 51
Received Thanks: 32
[Release][C#] TQ dat files handler

I wrote my own classes to handle TQ .dat files, and I will share here the code. I hope it would help somebody.

The files contains examples of usage, but feel free to ask anything.

Full source code in the attachments.

EDIT:
- Updated TQDatCryption class (new version 1.1) to allow seeking.
- Added new class SeekableCryptoStream (fully tested).
Both with full source code in the attachments.
Attached Files
File Type: zip TQDatCryption.cs.zip (2.1 KB, 25 views)
File Type: zip TQDatCryption_v1.1.cs.zip (2.4 KB, 26 views)
File Type: zip SeekableCryptoStream_v0.7.cs.zip (5.2 KB, 27 views)
urgabel is offline  
Thanks
1 User
Old 03/10/2013, 06:32   #2
 
Super Aids's Avatar
 
elite*gold: 0
Join Date: Dec 2012
Posts: 1,761
Received Thanks: 950
Empty classes? Seriously?
Super Aids is offline  
Old 03/10/2013, 08:16   #3
 
donn's Avatar
 
elite*gold: 0
Join Date: Jan 2007
Posts: 485
Received Thanks: 272
Quote:
Originally Posted by Super Aids View Post
Empty classes? Seriously?
Well, he stated
Quote:
Originally Posted by urgabel View Post

Full code in the attachment.
donn is offline  
Thanks
2 Users
Old 03/10/2013, 08:51   #4
 
elite*gold: 0
Join Date: Sep 2012
Posts: 51
Received Thanks: 32
Quote:
Originally Posted by Super Aids View Post
Empty classes? Seriously?
As donn said, I wrote the attachment contains full code.
I don't know if it isn't correct, but I want to know how many people could be interested, so I can use the download counter as some way of trace it.
If that is a problem, I will edit my post to include full code.

Now I'm developing my own class to extend Stream in a seekable mode, so I will use it instead of CryptoStream, in order to be able to read/write data with random access directly to disk without loading the entire files in memory. If I notice people interested, I will release the code too (finished, just need to test and document it).

Quote:
Originally Posted by donn View Post
Well, he stated
Thanks for pointing it. Oh, and I'm a woman.
urgabel is offline  
Old 03/11/2013, 18:18   #5
 
donn's Avatar
 
elite*gold: 0
Join Date: Jan 2007
Posts: 485
Received Thanks: 272
Quote:
Originally Posted by urgabel View Post
Thanks for pointing it. Oh, and I'm a woman.
Well, I'm sorry then . I had no way to know.
Code looks clean and I'm sure I'll find some use for it.
donn is offline  
Old 03/12/2013, 08:24   #6
 
elite*gold: 0
Join Date: Sep 2012
Posts: 51
Received Thanks: 32
Quote:
Originally Posted by donn View Post
Code looks clean and I'm sure I'll find some use for it.
You are so nice, I'm a novice programmer.
Just in case anybody cares, I edited my first post to add new class SeekableCryptoStream and updated version of TQDatCryption with seeking support.
urgabel is offline  
Reply


Similar Threads Similar Threads
[Release] Neo305īs Easy WoW Server Handler 4.0.6a
04/26/2013 - WoW Private Server - 61 Replies
Neo305īs Easy WoW Server http://img200.imageshack.us/img200/537/handlerr.p ng Ich biete euch hier einen fertigen WoW Cataclysm 4.0.6a Server mit Handler. Wie man ihn benutzt, steht in der README Datei.
[Release] Simple MySql Pool handler
07/26/2011 - CO2 PServer Guides & Releases - 39 Replies
Good morning (10:44 am here ;P) I've build a simple mysql pool handler... NewConnection method: public static MySqlConnection NewConnection() { try { return new MySqlConnection("Server=" + SERVER + ";Database='" + DATA_BASE + "';Username='" + USER_NAME + "';Password='" + PASSWORD + "'");
[Release] Simple MsSql Handler
05/10/2011 - CO2 PServer Guides & Releases - 12 Replies
I'm going back to MySql because I like it better. Here's the sql handler I was using that works with Sql Express (When you install Visual Studio): namespace 数据库 { using System; using System.Data.SqlClient; public static class Connection {
[Release] event handler / system message for 5165 source
05/01/2010 - CO2 PServer Guides & Releases - 10 Replies
i was partially made this and completed by pringle, i dont know if pringle is in here in this forum. but still credit to him. Go to Program.cs and find:public static Random Rnd = new Random(); Above this add:public static DateTime SystemMsgTime = new DateTime(); scroll down and you found this static void ServerStuff_Execute() { try { if (World.BroadCastCount > 0 && DateTime.Now > World.LastBroadCast.AddMinutes(1)) {



All times are GMT +2. The time now is 00:51.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

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