Jump to content

Evayr's Blog

  • entries
    5
  • comments
    13
  • views
    6,962

Leadwerks and EvayrNet: Initial integration


f13rce

2,918 views

 Share

blogentry-358-0-75256900-1488304060_thumb.jpg

 

Intro

An interesting new project of mine. I've always wanted to become a network programmer and made many multiplayer games (like Ravage Online and SIEGE) because it really excites me to see it all work. For those games I used existing networking libraries like RakNet and ENet. Although, I found it was time to make my own for once. Not to make a new wheel, but to see how it rolls. This will make the finding of an internship easier as well.

 

For every project you will need an end goal. I want my networking library to be fast and UDP only, as you can build the reliability layer yourself. So I started off in a blank project and made three projects: Client, Server and EvayrNet. EvayrNet is only producing a .lib file which both Client and Server are using to get their functionality from (and eventually your own project).

 

I kept my progress hidden for a while on a private repository on GitHub until it's ready for testing, which I feel is now (although it currently has some slight issues). You can check it out here.

 

The initial integration

I now want to make a simple game to see if my networking library actually does like it is intended to. I quickly wanted to make a simple game like

or something similar to a "
" so I started off by making loads of ball objects and see if I can make the server run some AI for stress-testing. This is the result so far:

 

blogentry-358-0-95898900-1488305135.gif

 

Looking good so far. smile.png Works okay up to 64 players, but any more is killing the server right now due to too many physics calculations. I'll be looking into threading before next time.

 

For an extended video explaining the library, check it out below:

  • Upvote 8
 Share

5 Comments


Recommended Comments

Holy hell. This is very very impressive.

 

All I can ask is that you make the example as simple as possible so it's easy to get into. I'd love to try it and play with it. I might even try my luck mixing this with the Steam matchmaking to see if I can get them to work together as I like your data sending/receiving better.

  • Upvote 1
Link to comment

Thanks Gamecreator :)

 

Yes, my goal with this library is to make it as compatible as possible with any kind of project. I think this use case of balls flying around and such will fully test the library's functionality. After ironing the small flaws I'll make a tutorial on how to effectively use this in Leadwerks.

  • Upvote 1
Link to comment
Guest
Add a comment...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...