Register for your free account! | Forgot your password?

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

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

Advertisement



[Teaching Units] ProxyParadise! A step by step proxy tutorial!

Discussion on [Teaching Units] ProxyParadise! A step by step proxy tutorial! within the CO2 Programming forum part of the Conquer Online 2 category.

Closed Thread
 
Old   #1
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
[Teaching Units] ProxyParadise! A step by step proxy tutorial!

<<YES ENCRYPTION IS UPDATED>>

The latest framework contained in this thread works on current 5510+ patch clients. The original proxy base should work just fine through 5018-5500 patches with minor modification such as setting up the encryption key.

Ok so I keep getting random pm's in relation to my poll I posted about this idea... I've decided to start with the absolute basic first step guide and see what interest sparks from there.

What is this project
We will be using text documents, video tutorials and code examples to work on a BASE proxy (login only) and continue working on it in a well documented fashion until we can handle ALL main botting needs (miners, hunters, possibly aimbot, etc)


What is this project NOT
A click and play working bot that you can download and use. There will be files and source codes posted but unless you follow the entire guide (consisting of a NUMBER of sections each including quite a few pages of text documents, videos and code snippets, you will get NOTHING from this project.


What do YOU need
-Time
-Patience
-Willingness to learn
-Visual studio 2010 (I use ultimate + a googled key... but express should work just fine)


I do NOT expect any programming knowledge. If I skip over some basic knowledge (I'll provide some intro coding links at the start to help you out), please let me know and I'll try to slow things down or go back and write a quick explanation.



<<NOTE TO READERS>>

It will take me a while to get around to writing most of the units. PLEASE post suggestions of what you would like to see included and I may have time to go back and add new stuff to the section before I post it. This will allow me to help people better by answering questions THE FIRST TIME, rather than in some obscure reply later on in the thread that no one will find.


PROXY FRAMEWORK FILES

Please leave questions and comments so I can improve the guide I write tomorrow.










Planned Units

-Unit 1: Introduction





-Unit 2: Networking and Packets
We will take our framework and go over a basic explanation of what the proxy is doing and work our way up to some packet structuring. This will take us from our initial explanation up to our first few packet structures. We will go over a few possible ways to structure packets, keep in mind these are NOT the only ways to go about this nor are they even the best/most efficient...








-Unit 3: Designing game logic!
We have our packets so now we need to start using them! What we will be doing is taking the packets we've structured and go from start to finish in the process of writing our first basic bot codes. Most likely this will simply cover MINE BOTS but I'm open to suggestions for other simple guides. I'll most likely save hunt/loot type code till later as it's a tad more... complex

-Unit 4: Advanced features
So we've familiarized ourselves with all the main things we want to do... now lets take it up a notch and integrate some more advanced functionality into our gui for easy controls.

This could include anything from... displaying a minimap, writing an aimbot, writing a hunt/loot bot or whatever else you guys suggest.


You can expect the first unit within a day or two (going out drinking tonight so won't be today)
pro4never is offline  
Thanks
69 Users
Old 06/24/2011, 00:40   #2
 
elite*gold: 0
Join Date: Apr 2007
Posts: 71
Received Thanks: 14
Yes!

I feel this is just what everyone needed and i can't wait to start learning personally.
autofighter is offline  
Old 06/24/2011, 01:21   #3
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
So I've edited the default proxy and commented a ton of it.

I'll upload that for now. It's fairly basic as I didn't do anything fancy. I removed most of what I had added so far (IE: Basic packet handling and some advanced packet structures) and documented as much of it as I could just off the top of my head.

My goal is that people will have a look at this first version, get a feel for how it's layed out and offer their input and questions to help me finish up the first unit tomorrow when I have the time.

pro4never is offline  
Old 06/24/2011, 01:25   #4
 
elite*gold: 0
Join Date: Apr 2007
Posts: 71
Received Thanks: 14
Quote:
Originally Posted by pro4never View Post
So I've edited the default proxy and commented a ton of it.

I'll upload that for now. It's fairly basic as I didn't do anything fancy. I removed most of what I had added so far (IE: Basic packet handling and some advanced packet structures) and documented as much of it as I could just off the top of my head.

My goal is that people will have a look at this first version, get a feel for how it's layed out and offer their input and questions to help me finish up the first unit tomorrow when I have the time.

i tryed downloading the file you have uploaded to take a look at it but it says "file not found"...
autofighter is offline  
Old 06/24/2011, 01:26   #5
 
elite*gold: 0
Join Date: Sep 2008
Posts: 559
Received Thanks: 1,461
Quote:
Originally Posted by pro4never View Post
So I've edited the default proxy and commented a ton of it.

I'll upload that for now. It's fairly basic as I didn't do anything fancy. I removed most of what I had added so far (IE: Basic packet handling and some advanced packet structures) and documented as much of it as I could just off the top of my head.

My goal is that people will have a look at this first version, get a feel for how it's layed out and offer their input and questions to help me finish up the first unit tomorrow when I have the time.

File not found....
vecko12 is offline  
Old 06/24/2011, 01:34   #6
 
HunterT's Avatar
 
elite*gold: 0
Join Date: Mar 2009
Posts: 16
Received Thanks: 0
Cool. Looking forward to this.
HunterT is offline  
Old 06/24/2011, 01:41   #7
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
Quote:
Originally Posted by vecko12 View Post
File not found....
.... You tried again cause I just clicked the exact link and it worked perfectly fine.

I guess I'll multi upload, i just like filefront cause no waiting times plus gives me control over files if I want to update or remove them. Multi upload = online forever essentially.

pro4never is offline  
Thanks
2 Users
Old 06/24/2011, 07:51   #8
 
carlos1345's Avatar
 
elite*gold: 0
Join Date: Dec 2008
Posts: 25
Received Thanks: 1
Hello Is That I'm New
It queries the function or Normal To Conquer Conquer Private (Which Version)
thanks
carlos1345 is offline  
Old 06/24/2011, 10:14   #9
 
aeldepaky's Avatar
 
elite*gold: 0
Join Date: Sep 2010
Posts: 198
Received Thanks: 16
thanks for your help you know we are not all programmers and we all not pro
aeldepaky is offline  
Old 06/24/2011, 22:30   #10
 
elite*gold: 0
Join Date: Dec 2007
Posts: 1,326
Received Thanks: 539
nice source p4n, w8ing for more guides
[GM] is offline  
Old 06/24/2011, 23:30   #11
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
Unit 1: Part 1 Introduction and initial setup!

Before we start we need to ensure we have a few tools ready to use.. namely visual studio 2010!



Express is free but you can just as easily download the ultimate trial and then google a cd key (there i an unlimited use master key leaked)

Now, we have our editor that we can use but this won't help us unless we know what we're doing!

Visual studio allows you to open project files and then browse, edit and compile them into a working exe file to execute your code. I've posted the initial source code which will save you all LOTS of time and knowledge and start diving right into the 'good stuff'.

Now, for those who haven't done anything with coding before, you should read a few links or else you will run into all sorts of issues.

ASK YOURSELF THESE QUESTIONS BEFORE YOU CONTINUE!

-What types of data is there? (ints, bools, strings, etc... no fine knowledge needed)
-What is a loop (while/for loops)
-What is an if statement (if, else if, else)
-What is a switch statement (not high importance but nice knowledge
-What is a collection (array, list, dictionary, etc)
-What is a method
-What is a return type
-What is enumeration
-What is a packet


There are a few other questions we could add to this list but these are terms you should be at least generally familiar with.

If you have no idea what we're talking about for any of the above questions... read some of these threads.

-Coding guides by the fantastic Hybrid


-C# for dummies e-book


-Introduction and links related to proxies/packets


I strongly recommend having a quick read through all of the above links even if you already have some basic knowledge, it will just give you that bit of extra 'edge' when it comes to understanding what comes next.


Now, we're ready to open up our project file!

Extract the uploaded source and simply run ProxyParadise.sln in order to load up visual studio and load the solution. We now have access to all the .cs files that it contains which will allow us to view what's already written!

I've written a very basic windows form into the proxy for convenience but right now it doesn't actually 'do' anything. What we DO have though is full solutions for sockets and encryption which allows us to fully log into tq servers using conquerloader.

<<SETUP>>

Right click on GUI.cs and click 'view code' or double click it to view the designer and then push F7. All the main code is inside this file right now. This could be organized in a much nicer way but for now it's a small enough program that it doesn't make much difference.

WHEN DESIGNING PROGRAMS YOU SHOULD BE THINKING OF LONG TERM ORGANIZATION RATHER THAN SHORT TERM READABILITY.

Something may be very simple to find and edit when your project consists of say... 500 lines but try finding the same method when you reach 20,000 lines of code.... it becomes incredibly annoying very quickly. You can mitigate this challenge by creating well named folders and sub folders to keep your cs files organized and by splitting up all your handlers, calculations, packet structures and bot codes into their own .cs files.

Now, back to the setup! Right now it's using my own information and not loading anything from external... so why don't we start by configuring it manually and then for our first mini project we'll deal with external configuration files.

[INSIDE GUI.CS]


//We read this from returned packets, this is why it's blank
public static string GameIP = "";
//This could be read from returned packets but for now I hard coded it
public static ushort GamePort = 5816;
//This is the TQLOGIN server ip address. I found this by using a simple network trafic monitor to see where the client tried to connect to first.
public static string AuthIP = "208.96.34.46";
//This is the PROXY ip, we modify the auth response packet so that the client will connect to the PROXY rather then the server.
public static string ProxyIP = "5.1.98.6";
//We can find this from the client quite simply but it hasn't changed in many, many patches. If you want to bot on a pserver, try pulling this first!
public static string EncryptionKey = "DR654dt34trg4UI6";


All you really need to edit for this is the ProxyIP.

[WARNING] Do NOT use 127.0.0.1 as your proxy ip, it will crash the client! You should be using a hamachi, network or external ip address (hamachi is the most foolproof method)

Now, lets do a quick test to make sure we can login before we do anything further.

Edit the ProxyIP as needed and debug the source to make it build a new .exe file. F6 works just fine. We should now see a nice GUI window as well as a debugging console (not needed, just makes testing things much simpler. I despise always having to deal with GUI input/output just for simple tests.)


If you're using windows XP I strongly recommend just... throwing out your ancient computer and get a new one... I've heard nothing but issues with people using conquerloader on windows xp. Download and extract conquerloader into your conquer install directory.

NOTE: some virus scanners won't like it... make sure you add an exception (this is important, if not it won't work)

Now you want to open up your Loader settings and edit the ip address to your proxy ip. Load up Conquerloader.exe and try logging in. it should work just fine but if you experience any issues (not related to loaders or anything like that) then feel free to post in the thread and I will add to this section... It's a very simple setup process though and I doubt anyone will have serious issues.


If you can fully log into the server just double check the bot console window just to double check that the loader is working correctly (it should show Connection/Disconnection msgs in the window, nothing fancy but lets you know things are working properly)


Now we can worry about continuing on to more advanced stuff.

Topics for Unit 1 Part 2:
(feel free to suggest more)
-Reading external data! (Settings files!)
-Writing to external files (Saving logs!)
-Setting up new functional GUI features!


This will take us through some basic programming concepts and get us ready for starting in on packets knowledge (structuring and eventually using packets to perform bot actions)
pro4never is offline  
Thanks
13 Users
Old 06/25/2011, 02:15   #12
 
elite*gold: 0
Join Date: Apr 2007
Posts: 71
Received Thanks: 14
Should i be able to make my way all the way into the server?

If not im good, because it successfully connected to the auth server and such.
autofighter is offline  
Old 06/25/2011, 06:25   #13
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
Quote:
Originally Posted by autofighter View Post
Should i be able to make my way all the way into the server?

If not im good, because it successfully connected to the auth server and such.
It should be enough for a full game server login.
pro4never is offline  
Old 06/25/2011, 06:32   #14
 
HaunterPwnsGengar's Avatar
 
elite*gold: 0
Join Date: Dec 2010
Posts: 21
Received Thanks: 0
I sure hope you release a nice guide I dont wanna pay per month for a bot and would love a personal bot for just me to use. Ill be going to college soon to learn C# so hopefully this'll help me learn a little bit But atm I have 0 knowledge of C# coding so Im sure either 1: Ill fail miserably or 2: I just wont bot at all and will quit Conquer lol. Conquer without botting means paying a **** ton of money for CPs. Nooooo ty

Is this for your Project Alchemy? Because if you combined them two into one guide that would be awesome ;D
HaunterPwnsGengar is offline  
Old 06/25/2011, 06:37   #15
 
Real~Death's Avatar
 
elite*gold: 0
Join Date: Jun 2007
Posts: 1,272
Received Thanks: 246
any reason these 'units' (or whole thread) are not in the programing section?
I rarely check the bots section,Luckily I did so and seen this thread.
Any way,Nice work Glad you put in some time to write/edit and post.
Will check it out and post feed back,when I get A chance
Real~Death is offline  
Thanks
2 Users
Closed Thread


Similar Threads Similar Threads
[Request]Step By Step Tutorial To Setup DB Bot On ZSZC
06/03/2010 - SRO Private Server - 1 Replies
Exactly What Title Say's :) Right i got it working but now when i login the sro client jsut closes



All times are GMT +1. The time now is 10:49.


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