modding

Dieses Thema im Forum "Offtopic" wurde erstellt von johnfg10, 9. April 2016.

  1. johnfg10

    johnfg10 Well-Known Member

    Beiträge:
    2.430
    Zustimmungen:
    200
    Ortszeit:
    10:21
    to my knowledge (which is little) all server side stuff that isnt @side.Server is run on client too
     
  2. chugga_fan

    chugga_fan ME 4M storage cell of knowledge, all the time

    Beiträge:
    5.861
    Zustimmungen:
    730
    Ortszeit:
    05:21
    it's run on both unless you specify
     
  3. Matryoshika

    Matryoshika Well-Known Member

    Beiträge:
    1.193
    Zustimmungen:
    606
    Ortszeit:
    11:21
    Player A wants to locate Player B => Needs to run server-side to locate Player B, as Player A's client has no clue where Player B is, unless its coded to scan out from Player A, and cover the whole map, which would take a LOT of performance, no?

    No, that is incorrect, for example, the mentioned Containers were Server-side only.
     
  4. johnfg10

    johnfg10 Well-Known Member

    Beiträge:
    2.430
    Zustimmungen:
    200
    Ortszeit:
    10:21
    deletes the /locate command -.-

    also why is that shouldnt it run client side too?
     
  5. Matryoshika

    Matryoshika Well-Known Member

    Beiträge:
    1.193
    Zustimmungen:
    606
    Ortszeit:
    11:21
    It -cannot- run the locate command client side, because for example, your client has no idea where my client(player) is on the map, as my coords are handled and stored serverside.
    You -miiight- be able to do all this with packet-handling, but that'd likely become a security-issue if not done properly.

    You can try scanning for players inside a BoundingBox, but if that's too big, it'll eat performance, as the BoundingBox grows exponentially the bigger the radius is.[DOUBLEPOST=1460676973,1460676233][/DOUBLEPOST]Some methods only exist client-side, and some only server-side. I don't know how many times poor @MrWisski has patched mods that tried to run methods on the wrong side, and crashed the servers.
     
  6. johnfg10

    johnfg10 Well-Known Member

    Beiträge:
    2.430
    Zustimmungen:
    200
    Ortszeit:
    10:21
    too many i would guess :p
     
  7. Slind

    Slind Founder

    Beiträge:
    8.332
    Zustimmungen:
    3.018
    Ortszeit:
    11:21
    It should still be possible as long as the other player is in view distance.
     

Diese Seite empfehlen