C# Server development

Results 1 to 7 of 7
  1. #1
    Novice Caparzo is offline
    MemberRank
    Nov 2013 Join Date
    1Posts

    C# Server development

    Hi everyone.
    This is my first post so i will write a little presentation.
    I'm Caparzo, computer science student (just finishing my first year), i got a few years of experience in C#, actually i'm an active CO2 developer (wich has a huge community with few really experienced guys in this language that motivated me to learn this language), but the resources for CO2 server development is so big that don't really help for learning purposes (over 20 sources written from scratch). I used to play Mu Online a lot and that is the reason that i wanted to start development, saw that there are few C++ open sources out there, so i think i may get the cryptography and packets for the project from them, the target client version will be 0.99b, hopefully i wil be able to get the crypto from those C++ projects, otherwise the project will die before starting haha (maybe will change the client in that case), will make a proxy based packet sniffer if needed at some point, but existing source codes i guess that won't need it.
    The project will be coded in C# using the .Net Framework, MySql database(easy to setup, plus i coded a custom wrapper few months ago), a C# Scripting engine will be coded for Npcs-Items, async. socket system using the APM (Socket.Begin... & Sockt.End...) since i coded that too few months ago, any C# developer help will be appreciated, the source will be hosted in assembla open to everyone(i will add link later if have enough time, otherwise the monday probably).

    Regards
    Caparzo


  2. #2
    Digital Horizon KristiansJ is offline
    MemberRank
    Jul 2012 Join Date
    203Posts

    Re: C# Server development

    Already dead? :D


    Sent from my LG-P500 using Tapatalk 2

  3. #3
    Developer nevS is offline
    MemberRank
    Aug 2005 Join Date
    GermanyLocation
    531Posts

    Re: C# Server development

    Well, I guess he did not start yet - and opened this thread People will ask a lot if the project is dead, since this is a project which takes a good amount of time

    MySql database(easy to setup, plus i coded a custom wrapper few months ago)
    These arguments are b/s, there are better alternatives like PostgreSQL. It's as simple to setup, completely free to use, and conform to the SQL standard.

  4. #4
    el gordito tetas caidas GM-Andromeda is offline
    MemberRank
    Jun 2006 Join Date
    Complex plane.Location
    202Posts

    Re: C# Server development

    it doesn't make any sense to rewrite a complete server from scratch, your code cannot be based on the well known server source posted many times here, since that source approach is not OOP, so there is no advantage to use C# there (at least if you wanna use the same patterns).

    even more, collision system is based on grids squads (each object has 0-255 position X and Y), it is an old system, there is no game out there that uses this crap anymore.

    i recommend u to rewrite the client, not server, just client, so u can create your own protocol, encryption, gui system, add as many extra features as u want, and just then try to make a server for that client. I would be easy since u know exactly how client works.

    and, of course, if you are really studying CS, u will have more fun making an efficient client than anything else , and u will be doing something "new", no copy paste crap from other sources, like most people here

  5. #5
    Developer nevS is offline
    MemberRank
    Aug 2005 Join Date
    GermanyLocation
    531Posts

    Re: C# Server development

    it doesn't make any sense to rewrite a complete server from scratch, your code cannot be based on the well known server source posted many times here, since that source approach is not OOP, so there is no advantage to use C# there (at least if you wanna use the same patterns).
    True. The sources based on the well known source are not of good code quality and not OOP. I would not base a new C# implementation on that code, since understanding this code probably takes longer than to come up with your own solutions without looking at it. Imho, packet sniffing is more efficient to understand the workflow.
    Some more hints:
    - Don't copy how data is stored in the database, config files and object structures. Imho it's all relational data, which fits perfectly in a relational database.
    - Write your server more data-driven - for example, if you need a new character class, be able to just add a new database entry - no hard coded stuff.


    even more, collision system is based on grids squads (each object has 0-255 position X and Y), it is an old system, there is no game out there that uses this crap anymore.
    Well, that's not so bad, because it's easy to implement, especially for beginners. If you want a more precise system for your own game later, you can change it. If your code is good enough (keeping this change in mind while developing) this is not a big deal.

  6. #6
    Proficient Member Razzor is offline
    MemberRank
    Dec 2012 Join Date
    PolandLocation
    156Posts

    Re: C# Server development

    In tera section is released stolen orginal c# server source, u can check it and rebuild, its really easly and lovely syntax

  7. #7
    el gordito tetas caidas GM-Andromeda is offline
    MemberRank
    Jun 2006 Join Date
    Complex plane.Location
    202Posts

    Re: C# Server development

    original? i doubt it.



Advertisement