Register for your free account! | Forgot your password?

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

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

Advertisement



Creating a base from scratch, I need some advices

Discussion on Creating a base from scratch, I need some advices within the CO2 Programming forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Aug 2014
Posts: 13
Received Thanks: 1
Question Creating a base from scratch, I need some advices

After seeing a lot of sources, Working on them and Getting some experience. I'm gonna make my own base to increase my experience. My base will be coded in C#. The base patch is the recent, It will work on the latest version of client.

My questions!
  • What to use MySQL or MySQL with Entity Framework (Which is better in performance)?! If you have something better tell about it!
  • What should I take care about when working with Sockets?
  • Multithreading, Should I use Tasks,Threads or both?
  • Maps, Using Quad Tree or just a Simple Implantation?!
  • In packets handling, What is better, using attributes or just a switch statement with packets ids?
I really care about performance, If you have any idea to optimize it. Feel free to say it!.

Please if you don't have any experience about a question "Please don't answer it".

Sorry for my bad English, Thanks in advance.



kerohero is offline  
Old 06/06/2017, 16:46   #2
 
elite*gold: 12
Join Date: Jul 2011
Posts: 7,548
Received Thanks: 3,701
I tend not to use ORM software such as EF, since it just causes performance problems and ends up abstracting a large amount of complexity. It depends on how you use it, but it's just more weight on my programs. MySQL is free and nice to use, more common than MsSQL but less common for Microsoft shops. If you're looking for experience, any SQL will do and MySQL is nice middle ground. MariaDB is what I use and I'm looking into MongoDB.

With respect to sockets, C# is pretty ******. Go with async and that's about the most you can do, unfortunately. Threading wise, limit your use of parallel for loops to startup only. They tend to be very poorly managed and cause lockups otherwise. Having a thread pool for processing player packets isn't a bad idea either. Not necessary for getting started though. That can always be added in. Same with attributes. Keep it simple to start with. Switch statements should convert to maps anyways if it's a decent language. Go does... Not sure about C#.

Maps can use a simplified quad tree like approach. That was something I was going to implement for my source. It's not entirely necessary for a game like Conquer. It will help quite a bit, but again, not too necessary for starting a source. It also doesn't need a full quad tree implementation. Sorry if there are typos, I'm on my phone.


Spirited is offline  
Thanks
1 User
Old 06/06/2017, 19:38   #3
 
elite*gold: 0
Join Date: Aug 2014
Posts: 13
Received Thanks: 1
Quote:
Originally Posted by Spirited View Post
I tend not to use ORM software such as EF, since it just causes performance problems and ends up abstracting a large amount of complexity. It depends on how you use it, but it's just more weight on my programs. MySQL is free and nice to use, more common than MsSQL but less common for Microsoft shops. If you're looking for experience, any SQL will do and MySQL is nice middle ground. MariaDB is what I use and I'm looking into MongoDB.

With respect to sockets, C# is pretty ******. Go with async and that's about the most you can do, unfortunately. Threading wise, limit your use of parallel for loops to startup only. They tend to be very poorly managed and cause lockups otherwise. Having a thread pool for processing player packets isn't a bad idea either. Not necessary for getting started though. That can always be added in. Same with attributes. Keep it simple to start with. Switch statements should convert to maps anyways if it's a decent language. Go does... Not sure about C#.

Maps can use a simplified quad tree like approach. That was something I was going to implement for my source. It's not entirely necessary for a game like Conquer. It will help quite a bit, but again, not too necessary for starting a source. It also doesn't need a full quad tree implementation. Sorry if there are typos, I'm on my phone.
Thanks for answering, I'll finish it soon and release it for feedback.
kerohero is offline  
Reply

Tags
entity framework, map, multithreading, mysql, sockets



« [Release] CrystalCoClient Server.dat encryption bypass | Monk Shackle Status Packet Structure »

Similar Threads
[QUESTION] Creating Gear From Scratch (not recoloring)
09/16/2014 - Shaiya PServer Development - 10 Replies
Has anyone ever tried (or succeeded?) in creating gear from scratch? I know shaiya uses DDS files (which you edit to recolor) for visuals, ANI files for the animation, and some other files (not sure what they do) to create the gear, and i'm fairly sure it's possible to create gear from scratch but I haven't seen it done. Any light that can be shed on this topic is greatly appreciated.
[Help]Creating new map from scratch anyone good idea how to do!
11/15/2010 - CO2 Private Server - 15 Replies
well am wondering if someone can design new map from scratch to conquer that mean he can design his own map not getting EU map and add it if you someone can do please dont miss giving us information cuze really iam looking for that guides hardly cuze i got new tournament and wanna create new map to be stable for the Tournaments and custom too thanks for reading
Creating a source from scratch?
06/05/2010 - CO2 Private Server - 26 Replies
Can anyone tell me how I go about creating a source from scratch, I can do most coding but I really don't understand sockets, I kind of understand packets and I'm planning to create it for 4267 client. Are there any blank sources with just login at least with a good socket system that I could start from? It's really just a learning experience for me, and if its a success perhaps i'll use it. Thanks!
i need some help and advices
04/23/2007 - Conquer Online 2 - 3 Replies
Hey guys :) I wana ask what do you think from your own expirience...when sould i try upgrade my equipments and hope for 1 sock or 2 sock item? sinc ei speended more than 500+ mets on items and no socket....and no luck...so tell me how do you getting 2 sock items from your own expirience write ... tnx



All times are GMT +1. The time now is 06:24.


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

BTC: 33E6kMtxYa7dApCFzrS3Jb7U3NrVvo8nsK
ETH: 0xc6ec801B7563A4376751F33b0573308aDa611E05

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