Multiplayer Game... Logic...Networking Questions

rover2341

Is riding a roller coaster...Wee!
Reaction score
113
About
I am starting a starting two projects.

The First Project is HTML Based with the requirements: 1 class, 5 monsters types, 100 human players, Player have 3 abilitys, and can get 3 Levels. I am using phaser.io [2D]

The second Project is Unity Based with the requirements: 1 class, 10 monster types, 100 human players, Player has 3 ablitys, and can get 3 Levels. Will Use Unity [3D]

They are seperate projects but ill carry what i can from one to the next.

End Goal Is not to be successful, but to prove to a gaming company I have some skills in unity, and can get a proof of concept done.

Question

Where Does Game Logic Live (Ex: moving, AI pathing, striking a target...)
Are there any other good options? What do you suggest?

Option 1
100% Server Based, Super Thin Client. The Client is basically a controller for the game nothing more.

+ Limited Hacking Options
+ Single Base Of Logic
+ Flexible

- Speed
- Can not use phaser.io Or Unity logic to help ex: Pathing, striking target, moving

Option 2
50% Server Based, 50% Client Based. Run the exact same game on the client and on the server, and have the server version. The server version of the client would be the master version.

+ Single set of logic
+ Fast On Client Side
+ Ability to use phaser.io or unity to deal with a great deal of the logic.

- Complex on syncing

Option 3
100% Client. Allow client to client based game. server does little to nothing. all logic is run on clients, closer to option 2.

+ No server resources
+/- Less Jumps, between players, but would still be slower, due to no detected Server.
- Most hackable
- semi complex when master player leaves


No networking is done on this, but its a start. arrow keys walk around. http://www.dickinsonbros.com/
 
Last edited:

Accname

2D-Graphics enthusiast
Reaction score
1,462
The answer depends on what exactly you want to do.
Blizard, for example, wants to keep a tight grip on the game and control everything, thats why they do most things server based.

But perhaps you dont need to control everything, perhaps you simply dont care if people cheat in their own custom games.
Before planning the software you have to plan the product.
 

rover2341

Is riding a roller coaster...Wee!
Reaction score
113
Good Point.
Its most important to me that i get something done. Next most important that i prove i did some cheat protection.
Its more important i flex my coding skills then make a product. The goal being to show that I have some understanding of how a product could behave, and be strutuctured. so Its important to me that there is at least some protection, but not important to me that its impossible to brake, or even hard.

So Option 3 Is really off the table. Option 1 makes sense, but I fear it would run terrible for the user.
So Option 2 is likely my best bet.


I found this last night. http://www.gabrielgambetta.com/fpm2.html and it gave me some thoughts. but its for a server based solution, just ways of handling the lag.
 

Accname

2D-Graphics enthusiast
Reaction score
1,462
If you want to impress people then give clients the ability to host games in which case it will be 100% server based.
But they also have the ability to play over the server for cheat protection. The ability to host yourself is meant to reduce lag. Imagine you want to play a game with a friend, you know neither of you is going to cheat, but the build-in cheat protection slows the game down too much (too many people playing simultaneously) so even though you dont need the cheat protection it hinders you from playing.

When the server is involved I would advice you to do the calculations both on client and server side anyways. This way the client has a local approximation of the result which will be either confirmed or discarded when the server sends the official result. The good thing is that lag can be disguised by using the approximated values. Once the server response is there you can correct your output to the official value if needed. This way, if you often approximate correctly, you will see much more fluid gameplay without random stuttering when the round trip time is long.
 

rover2341

Is riding a roller coaster...Wee!
Reaction score
113
Right that's option 2. Run the game on the server and on the client.
But more then that you were talking about server reconciliation according to this site. http://www.gabrielgambetta.com/fpm2.html

Server reconciliation -
Lets client play game, as if it was on its own machine, in real time, runs all the same commands on the server and comes back to client. If there is no issues it continues, the client never waits for the server to replay it just keeps going. (assuming no problems will occur) only correcting the user if things get our of sync. (like the server realizes the he cast hes spell on had already died)

Issue here is the other player would be jumping around, so I would also need to apply Entity interpolation. This basically shows the other players .1 to .2 sec behind, for my purposes that's not a issue.
A few things will always wait for the server, like when someone dies, due to if 5 people are hitting the target no one would be able to predict when the target dies.
 

Accname

2D-Graphics enthusiast
Reaction score
1,462
Of course. But every little improvement is something positive.
For video games the most important thing is customer satisfaction. A game that feels "sluggish", even just a little bit, can be enough to put people off.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • The Helper The Helper:
    The bots will show up as users online in the forum software but they do not show up in my stats tracking. I am sure there are bots in the stats but the way alot of the bots treat the site do not show up on the stats
  • Varine Varine:
    I want to build a filtration system for my 3d printer, and that shit is so much more complicated than I thought it would be
  • Varine Varine:
    Apparently ABS emits styrene particulates which can be like .2 micrometers, which idk if the VOC detectors I have can even catch that
  • Varine Varine:
    Anyway I need to get some of those sensors and two air pressure sensors installed before an after the filters, which I need to figure out how to calculate the necessary pressure for and I have yet to find anything that tells me how to actually do that, just the cfm ratings
  • Varine Varine:
    And then I have to set up an arduino board to read those sensors, which I also don't know very much about but I have a whole bunch of crash course things for that
  • Varine Varine:
    These sensors are also a lot more than I thought they would be. Like 5 to 10 each, idk why but I assumed they would be like 2 dollars
  • Varine Varine:
    Another issue I'm learning is that a lot of the air quality sensors don't work at very high ambient temperatures. I'm planning on heating this enclosure to like 60C or so, and that's the upper limit of their functionality
  • Varine Varine:
    Although I don't know if I need to actually actively heat it or just let the plate and hotend bring the ambient temp to whatever it will, but even then I need to figure out an exfiltration for hot air. I think I kind of know what to do but it's still fucking confusing
  • The Helper The Helper:
    Maybe you could find some of that information from AC tech - like how they detect freon and such
  • Varine Varine:
    That's mostly what I've been looking at
  • Varine Varine:
    I don't think I'm dealing with quite the same pressures though, at the very least its a significantly smaller system. For the time being I'm just going to put together a quick scrubby box though and hope it works good enough to not make my house toxic
  • Varine Varine:
    I mean I don't use this enough to pose any significant danger I don't think, but I would still rather not be throwing styrene all over the air
  • The Helper The Helper:
    New dessert added to recipes Southern Pecan Praline Cake https://www.thehelper.net/threads/recipe-southern-pecan-praline-cake.193555/
  • The Helper The Helper:
    Another bot invasion 493 members online most of them bots that do not show up on stats
  • Varine Varine:
    I'm looking at a solid 378 guests, but 3 members. Of which two are me and VSNES. The third is unlisted, which makes me think its a ghost.
    +1
  • The Helper The Helper:
    Some members choose invisibility mode
    +1
  • The Helper The Helper:
    I bitch about Xenforo sometimes but it really is full featured you just have to really know what you are doing to get the most out of it.
  • The Helper The Helper:
    It is just not easy to fix styles and customize but it definitely can be done
  • The Helper The Helper:
    I do know this - xenforo dropped the ball by not keeping the vbulletin reputation comments as a feature. The loss of the Reputation comments data when we switched to Xenforo really was the death knell for the site when it came to all the users that left. I know I missed it so much and I got way less interested in the site when that feature was gone and I run the site.
  • Blackveiled Blackveiled:
    People love rep, lol
    +1
  • The Helper The Helper:
    The recipe today is Sloppy Joe Casserole - one of my faves LOL https://www.thehelper.net/threads/sloppy-joe-casserole-with-manwich.193585/
  • The Helper The Helper:
    Decided to put up a healthier type recipe to mix it up - Honey Garlic Shrimp Stir-Fry https://www.thehelper.net/threads/recipe-honey-garlic-shrimp-stir-fry.193595/
  • The Helper The Helper:
    Here is another comfort food favorite - Million Dollar Casserole - https://www.thehelper.net/threads/recipe-million-dollar-casserole.193614/

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top