Register for your free account! | Forgot your password?

You last visited: Today at 21:18

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

Advertisement



[Development] CPX 3G

Discussion on [Development] CPX 3G within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
ImmuneOne's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 754
Received Thanks: 544
[Development] CPX 3G

I know, I know. My last project didn't go too well because it was really rubbish, I guess me and Nullable both agree on that. So yeah, I decided to take this project into development again for those who actually followed the development of the previous project.

I'm writing a new source this time, using different methods and actually have gained more information about certain things. Some examples;

Mapping system:
Code:
private Dictionary<uint, IMap> mapCollection;

[B]IMap interface:[/B]
    public interface IMap
    {
        DMap DMap { get; set; }
        ushort pHandle { get; set; }
        ushort pMesh { get; set; }
        bool TryGetValue(uint ID, out IScreenObject obj);

        void Attach(IScreenObject obj);
        void Detach(IScreenObject obj);
        bool Contains(IScreenObject obj);
        void CallObjects(IScreenObject callingObj);
    }
------------------------------------------------------------------------
Usage:
IMap Map = null;
if (Kernel.MapTable.TryGetValue(client.Hero.MapID, out Map))
{
    //You can call objects by doing Map.CallObjects(client.Hero);
    //Or use the DMap Map.DMap.Valid(<X>, <Y>);
}
--------------------------------------------------------------------------
Packet serialize/deserialize method:
Code:
       [StructLayout(LayoutKind.Sequential, CharSet=CharSet.Ansi)]
        struct MessagePacket
        {
            public PacketHeader Header;//0
            public UInt32 Msg_Color;//4
            public UInt32 Msg_Type;//8
            public UInt32 Msg_ID;//12
            public Byte String_Count;//16
            public Byte String_From_Length;//17
            [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 16)]
            public String String_From;//18
            public Byte String_To_Length;//19 + pos
            [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 16)]
            public String String_To;//20 + pos
            public Byte Blank;//21 + pos
            public Byte String_Message_Length;//22 + pos
            [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 16)]
            public String String_Message;//23 + pos
        }
--------------------------------------------------------------------------
Usage of the packetfiller:
Filler.FillPacket<MessagePacket>(Packet); - Filler.FillPacket<MessagePacket>(Packet, <OFFSET>);
Or;
Filler.FillPacket<UInt32>(<VALUE>); or Filler.FillPacket<UInt32>(<VALUE>, <OFFSET>);
I will be using a custom winsock wrapper for the sockets. If you have not heard about the previous project, the project will be running on patch 4267.
ImmuneOne is offline  
Thanks
2 Users
Old 09/05/2010, 00:04   #2
 
_DreadNought_'s Avatar
 
elite*gold: 28
Join Date: Jun 2010
Posts: 2,223
Received Thanks: 867
Great to see you working on this!
_DreadNought_ is offline  
Old 09/05/2010, 00:17   #3

 
Kiyono's Avatar
 
elite*gold: 20
Join Date: Jun 2006
Posts: 3,296
Received Thanks: 924
Let's see if this project lasts till the end =X
Kiyono is offline  
Old 09/05/2010, 01:34   #4
 
elite*gold: 0
Join Date: Sep 2008
Posts: 1,683
Received Thanks: 505
Very interesting stuff.
Hopefully this source will actually use the features of the .NET framework, as a change.

@Ali, good luck!

Will this be public?
Can we participate in the development?
Basser is offline  
Old 09/05/2010, 02:12   #5
 
Nullable's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 390
Received Thanks: 321
Code:
[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Ansi, Pack=1)]
Nullable is offline  
Thanks
1 User
Old 09/05/2010, 08:32   #6
 
elite*gold: 0
Join Date: Jul 2010
Posts: 223
Received Thanks: 23
I have a 420* *something client if you want to code for that instead =o
-Fáng- is offline  
Old 09/05/2010, 11:39   #7
 
ImmuneOne's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 754
Received Thanks: 544
Quote:
Originally Posted by Basser View Post
Very interesting stuff.
Hopefully this source will actually use the features of the .NET framework, as a change.

@Ali, good luck!

Will this be public?
Can we participate in the development?
The source will not be public. However, you can participate in the development by helping with npcs, those will be written in a certain scripting language which can be a custom one or a publicly released one like LUA.
ImmuneOne is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
[Development] CoProxy
07/08/2010 - Conquer Online 2 - 22 Replies
Hello, I considered the profital side of conquer, and therefore have chosen to create a proxy project. The proxy is being constructed by 3 people: Me, -Impulse- and Kinshi88. The proxy will be for sale, and these are the so far containing features; -AutoBot: You can record, load or save your own paths, bot on specific mobs, avoid specific mobs, modify the bot speed and run this unlimited. -AutoPot: Can be set to a certain HP limit, where it pots to regain your hit points. -AutoFollower:...
Development question
03/26/2009 - CO2 Private Server - 10 Replies
Sorry this is in the wrong sub forum but I just want to ask a quick question. Is anyone good with game creation, as in 3D maps and scratch games? Because me n my friend oscar are creating 1, so far we have built 3D maps and citys n bunkers etc, and are moving to coding the game now. Any tips or help would b cool. We all are playing our parts! Just leave an comment if u are good at any of the following things and are willing to be dedicated: Coding Website design Map creation(2d or 3d)...
New server in development.
01/17/2009 - Dekaron Private Server - 20 Replies
I got a hoster and i'm looking for a few helpers in the development of a new server.Also I was wonderring if anyone would like a server with : 1000x exp 1000x drops argating rate same as 2moons but 20% more Wings stay the same but lvl to get them at 90 or 95 Events daily espically exp events Maxed lvl at 250 a seperate server for pvp's and wars(just for people to go to and kick some ass) And alot more .
New bot development
12/19/2008 - Archlord - 16 Replies
Ok, i decided to make a new thread for this. So basically we have nothing, we're starting from scratch. So our obvious obstacle is: packet encryption From my testing I've discovered the whole packet where the "session key" is sent. Meaning I don't know specifically what in the packet is the session key. I can do all the programming for the bot, packet handling, GUI etc. But I do need a team, or people willing to help. Mostly I someone who can analyze the client and find the...
New Bot in Development.
03/02/2008 - Conquer Online 2 - 19 Replies
If this is not the correct place for this, then please move it mods, i was unsure of where to put it. For the DMapViewer, go to: http://www.elitepvpers.com/forum/co2-main-discussi ons-questions/113588-dmap-file-parsing.html I've started development on my new bot, it will not be standalone due to the fact that there would be to many things to code, perhaps in the future once everything has been mapped/able to be replicated it can move to standalone, but for now, it will act as a proxy,...



All times are GMT +2. The time now is 21:18.


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.