• Maalus@lemmy.world
    link
    fedilink
    English
    arrow-up
    9
    ·
    6 hours ago

    It is impossible to do these types of checks on serverside. Your PC needs to know where to render the enemy character ahead of time, otherwise they’ll pop into existence after you are dead. Bonus points for packet loss. Programming games isn’t the same as validating input from some rando trying to log in on a site, it’s an unsolved problem that all games have an issue with - from FPS like CS, RTS like Starcraft 2, to mobas like League.

    • stinky@redlemmy.com
      link
      fedilink
      English
      arrow-up
      3
      arrow-down
      2
      ·
      5 hours ago

      Why impossible? Server-authoritative programming is common in PVP gaming, even high-performance recent games. I don’t think anyone is suggesting lazily loading chunks of player data like wandering into a new chunk in Minecraft. Just write efficient, clean code that anonymizes or encrypts player data so it can’t be read client-side.

      • Mojave@lemmy.world
        link
        fedilink
        English
        arrow-up
        3
        ·
        edit-2
        2 hours ago

        Okay, now the player data is encrypted and unreadable by clients.

        How will the client display where the players are without data…

        Why are you bothering to spend cycles sending this useless, encrypted data…

        If you mean to decrypt the player data once it reaches the client, then you have solved no issues…