elitepvpers

elitepvpers (https://www.elitepvpers.com/forum/)
-   CO2 Private Server (https://www.elitepvpers.com/forum/co2-private-server/)
-   -   [Open Source] Conquer Server C++ (https://www.elitepvpers.com/forum/co2-private-server/1875773-open-source-conquer-server-c.html)

© Haydz 05/11/2012 13:25

[Open Source] Conquer Server C++
 
So with bone-you's c++ project under way, I wanted to try my hand at programming in c++ with a cross-platform point of view, as primarily I've only targeted windows, and used a lot of windows specific code. However I would like to further my knowledge and I decided to share the experience with all of you.

This project will be completely open source, I'm not entirely sure what version I will aim for right now, probably somewhere in the 5xxx region as zero already has 4xxx covered. I will be utilising MySQL and a host of other various c++ habits I've picked up over the years.

Although I have exams coming up in about 2 weeks which unfortunately means there will be a brief period of no commits from me, anyone who would like to have write permissions and pick up the mantle is welcome.
As an extended note, the project may stagnate or commits become less frequent as many of my projects do, but I plan to see this project through to a significant quantity and quality.

I may possibly stream some code like bone but, I have a tendency to get distracted and start doing silly things, whereas he is quite dedicated to the project and seems to code in rather large blocks of time :) (I also have a really poor upload speed of like 0.37 kb/s).

[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]

SVN is currently completely empty as I'm starting the solution from scratch. :)

Edit: August 2012
Quote:

Just to clarify, I had real intentions of seeing this project through but the opportunity to work on a source with Hybrid, Ntl3fty et al arose which unfortunately meant that my time constraints were just too much with my other commitments.

If a day comes were I have the time to work on such a project again, I shall revive this thread and deliver as promised. :)

I don't have a username 05/11/2012 20:16

It's nice to see a lot C++ upcoming things :)!

Zeroxelli 05/11/2012 20:18

Quote:

Originally Posted by I don't have a username (Post 16639089)
It's nice to see a lot C++ upcoming things :)!

Yeah, it really is.

@Thread I haven't worked with C++ in quite a while, but maybe, just maybe, I'll help out with this.

EDIT: VC++ is cross platform? I really have no idea. When I think C++, I think Geany/Notepad++ and g++

bone-you 05/11/2012 20:53

Quote:

Originally Posted by Zeroxelli (Post 16639136)
Yeah, it really is.

@Thread I haven't worked with C++ in quite a while, but maybe, just maybe, I'll help out with this.

EDIT: VC++ is cross platform? I really have no idea. When I think C++, I think Geany/Notepad++ and g++

Visual Studio is not cross platform. If you want something for Linux, I personally use NetBeans as it has a similar feel to VS.

I don't have a username 05/11/2012 20:54

Quote:

Originally Posted by Zeroxelli (Post 16639136)
Yeah, it really is.

@Thread I haven't worked with C++ in quite a while, but maybe, just maybe, I'll help out with this.

EDIT: VC++ is cross platform? I really have no idea. When I think C++, I think Geany/Notepad++ and g++

There is a difference on an IDE and a compiler. Notepad++ etc. is IDE's, VC++ is Microsoft's C++ compiler. It's not cross platform, but your codes can be crossplatform, hence you could go compile it with another C++ compiler, which compiles to ex. Linux. Should probably rephrase what I said, but you should understand it xD

Quote:

Originally Posted by bone-you (Post 16639830)
Visual Studio is not cross platform. If you want something for Linux, I personally use NetBeans as it has a similar feel to VS.

I use Code::Blocks

CptSky 05/11/2012 23:03

Visual Studio offers probably the best debugger on the market, so I use VS for C++ and Xcode on Mac OS X. Never coded on any Linux or Unix OS. You can easily make cross-platform program. Plus, as each IDE is designed by the same company of the OS, it offers an ultimate integration of the API of the OS.

bone-you 05/11/2012 23:43

NetBeans (aside from the uber lag browsing the stack and heap variables) has an almost identical debugger to VS (VS purely superior though). It's one of the reasons I like it for Linux dev.. though I much more prefer to code on VS then copy over the code to ensure compilation of Linux functions in intervals.

KraHen 05/12/2012 01:15

CodeBlocks does all that, + has a somewhat nice intellisense-like thing for "standard" APIs such as STL, OpenGL, etc. Also pretty much all of the libraries I have used in the past with it come with support for this feature, which is really nice. Debugging IMO isn`t made harder in it than necessary either, also with plugins you can squeeze out A LOT from it (by "it" I mean either the IDE, or the debugger, or anything really).

InfamousNoone 05/12/2012 01:41

To be honest, once you use Visual Studio every IDE sucks balls.

bone-you 05/12/2012 03:38

Quote:

Originally Posted by InfamousNoone (Post 16643802)
To be honest, once you use Visual Studio every IDE sucks balls.

Let me correct that. Once you use Visual Studio with Visual Assist X, every other IDE sucks balls including vanilla VS.

[Only registered and activated users can see links. Click Here To Register...]

Zeroxelli 05/12/2012 05:05

I should have wrote that out differently. When I think VC++, I think C++ using the Windows API or .NET Framework. I've never even thought about using VS to write code for other operating systems, to be honest.

@bone-you Thanks for the link, I like the syntax highlighting a tad better.

KraHen 05/12/2012 12:49

With all these C++ projects popping up I really want to do my own now.

© Haydz 05/12/2012 13:59

As a side note, I'd like to point out that I'll probably be using boost and maybe some other external libraries. Purely because my cross-platform experience is NULL (hah, get that?). Therefore I figure if I use boost, 80% of the work is done for me :).

KraHen 05/12/2012 14:04

You could use boost::asio for networking purposes if you`re going to use boost, as far as I understand for UNIX it uses /dev/poll/ and for Win it uses IOCP.

© Haydz 05/12/2012 14:19

Quote:

Originally Posted by KraHen (Post 16649469)
You could use boost::asio for networking purposes if you`re going to use boost, as far as I understand for UNIX it uses /dev/poll/ and for Win it uses IOCP.

Yeah I've used asio before, it pretty much uses the best socket system available to whatever operating system your running so, I'll most definitely be using it again.

KraHen 05/12/2012 14:45

TBH I used it only for fast prototyping a client application, are you implicitly telling that you`ve used it in a server application before and it worked out well? Because if it does I`m switching to it immediately instead of my own winsock/iocp implementation, just for the sake of being cross-platform.

© Haydz 05/12/2012 16:03

Quote:

Originally Posted by KraHen (Post 16650213)
TBH I used it only for fast prototyping a client application, are you implicitly telling that you`ve used it in a server application before and it worked out well? Because if it does I`m switching to it immediately instead of my own winsock/iocp implementation, just for the sake of being cross-platform.

I've used it in a server before, but it never went beyond a base, so I can't say how well it performed because I didn't really test it extensively.

I also used it in a proxy (will probably release it if I find it), which seemed to work perfectly.

I'll probably start some serious development today, just studying for a chemistry exam I have next week.

CptSky 05/12/2012 16:27

Quote:

Originally Posted by bone-you (Post 16644254)
Let me correct that. Once you use Visual Studio with Visual Assist X, every other IDE sucks balls including vanilla VS.

[Only registered and activated users can see links. Click Here To Register...]

Looks really nice. Like VS 11.

Quote:

Originally Posted by Zeroxelli (Post 16644382)
I should have wrote that out differently. When I think VC++, I think C++ using the Windows API or .NET Framework. I've never even thought about using VS to write code for other operating systems, to be honest.

@bone-you Thanks for the link, I like the syntax highlighting a tad better.

C++ using the Windows API is just C++. C++ using .NET framework is C++/CLI (or the older MC++).

The WinAPI is dependent of the Windows kernel, so it's not cross-platform. It's like using the CarbonAPI on OS X.

For the C++/CLI, as it contains native code within a .NET application, I doubt Mono will be able to run it. So, I would say no.

Quote:

Originally Posted by © Haydz (Post 16649392)
As a side note, I'd like to point out that I'll probably be using boost and maybe some other external libraries. Purely because my cross-platform experience is NULL (hah, get that?). Therefore I figure if I use boost, 80% of the work is done for me :).

Making a cross-platform program is a pain... So, using boost is a good idea :p

I don't have a username 05/13/2012 01:14

Isn't boost supposed to be a part ox C++0x?

Nullable 05/13/2012 07:23

Quote:

Originally Posted by I don't have a username (Post 16660984)
Isn't boost supposed to be a part ox C++0x?

Nope. If I recall correctly the new standard does contain some stuff from boost but I'm quite sure boost::asio isn't one of them.

I don't have a username 05/13/2012 11:34

Quote:

Originally Posted by Nullable (Post 16662289)
Nope. If I recall correctly the new standard does contain some stuff from boost but I'm quite sure boost::asio isn't one of them.

Oh yeah could've been that I read :P

© Haydz 05/14/2012 00:06

I just want to assure everyone that despite no significant commits yet, this project is very much alive. I'm just busy studying for an exam I have on Tuesday. :)

tkblackbelt 05/14/2012 03:34

Quote:

Originally Posted by © Haydz (Post 16678480)
I just want to assure everyone that despite no significant commits yet, this project is very much alive. I'm just busy studying for an exam I have on Tuesday. :)

Good luck man. I just finished my finals last week.

Mr_Hitch 05/15/2012 12:04

good luck mate and yea most of epvp members got exams nowdays i will finish my exams by the end of the month:)

and yeah am waiting for your project i would love you to start it with us members from scratch

so alot of peoples would know how things going

regards

© Haydz 08/16/2012 12:42

Just to clarify, I had real intentions of seeing this project through but the opportunity to work on a source with Hybrid, Ntl3fty et al arose which unfortunately meant that my time constraints were just too much with my other commitments.

If a day comes were I have the time to work on such a project again, I shall revive this thread and deliver as promised. :)


All times are GMT +2. The time now is 14:45.

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