« first day (851 days earlier)      last day (4097 days later) » 

11:00 PM
in real-time multiplayer games, typically the game engine knows the other player's inputs (whether they are holding W, strafing, etc) and if a state packet is not received, they "predict" that the player is still holding W (or whatever)
the next state will probably diverge a bit from where you predicted, so they usually smoothly interpolate your display to their actual location over a few frames
 
@doug65536 allright thanks ill look more and try to implement it into my project!
 
@doug65536 thank you!
 
np
 
11:09 PM
@doug65536 but that is when all players in the game field are active right?
 
yes, it's a workaround for dropped/late packets because you need low latency for real time games
the underlying principle applies to your question though, have each client keep some kind of track of the other players, updated from state update packets
 
@doug65536 right, so there should be a connection always to check if the turn has happened? is this also the case in message application, where you get a new message even if your out of the application?
 
to make games hack resistant, there is usually some kind of validation done by the server. you don't want a hack to flood another player with "i shot you" packets
 
@doug65536 oke thanks, ill have a look around found this now: GKTurnBasedEventHandlerDelegate: We will make a helper class implement this protocol, so we can get notifications when the turn moves from player to player, when we are invited to a new match, or when the game ends.
from raywenderlich
 
sounds good
 
11:16 PM
@doug65536 got to look for eventhandler I guess if that's the right name for it
 
@Donny usually when a user does something, a "notification" is sent to any program that might be interested. In this case, when he ends his turn, a notification is sent to the other user
@Donny usually when a user does something, a "notification" is sent to any program that might be interested. In this case, when he ends his turn, a notification is sent to the other user
 
@doug65536 thanks for your time ;)
@MooingDuck I understand, I want to know how to do it :)
 
Ell
I have an idea
A throw away ask-me-anything
 
@Donny that requires more details than I was paying enough attention to notice
 
@MooingDuck I think I know how to sent a notification, maybe there is a way to implement code that would refresh the game screen if the app is opened(no notification needed then). So it would send notification if app is closed and refresh the game screen if app is opened
 
11:22 PM
you could make the client send a request for a full game state update upon connect
 
@Donny I'd have to read what everyone has been saying to figure out how to help you more
 
the peer/server could then send an expensive full update to initialize the new player
 
this opens a discussion hehe
@MooingDuck @doug65536 Ill come back at this later, going to bed now. Thanks for your help. byebye.
 
11:40 PM
@Donny wait, "refresh the game screen if app is opened"? This is a phone app, and you want to receive turn updates even when your app isn't running?
well, if so, then (A) the app should check to see who's turn it is when it opens, or (B) you will also need a service that runs all the time to listen for when a turn change happens and notifies the user that it's their turn.
 
Turn-based things are not hard to implement or sync really
 
@Griwes ouch, most of my friends can drive them, but I just looked it up, sticks are only abou 7% of cars in America.
 
@elliebek Train Facts! Cows, having weak outer shells, will fragment and explode when a train collides with them.
 
Ell
@mooingduck when you say sticks, do flappy-paddle count in that?
 
@Ell they mention flappy-paddle as a reason sticks are declining.
(whatever that is)
or maybe I misread
 
11:52 PM
automatic transmissions get better fuel economy in city, manual typically gets better economy on highway
 
@doug65536 that's all changing with newer cars, automatics are getting higher economy on the freeway too
 
I could never remember those stupid motions in manual
 
ah, a poll says 66% of Americans say they know how to drive a stick, even if only 6% of cars sold are sticks
 
yeah, modern transmissions control their line pressure precisely, finding exactly the minimum pressure that will hold the clutches, minimizing hydraulic pump load
yeah, step on the gas and let the clutch out, lol
 
@doug65536 I don't know what you said, but I don't think I have to
 
Ell
11:57 PM
I can't imagine driving a manual... Wouldn't know what to do with my left foot :P
 
@MooingDuck mostly a bunch of automatic transmission terminology ;)
 
@Ell I have the same problem with automatics
 
Haha someone downvoted me
 
@CatPlusPlus join the club
 
@CatPlusPlus really? link?
the 213 upvote one?
 
11:58 PM
On this stupid thing that shouldn't even be a thing stackoverflow.com/a/2775982/16102
It's hilarious to see any votes on this
 

« first day (851 days earlier)      last day (4097 days later) »