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,463
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,463
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,463
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.
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage
    +2
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    New recipe is another summer dessert Berry and Peach Cheesecake - https://www.thehelper.net/threads/recipe-berry-and-peach-cheesecake.194169/

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top