The Starport
  • Categories
  • Recent
  • Users
  • Groups
  • Starport Blog
  • Knowledge Base
  • The Forge
  • Discord
  • Register
  • Login

Online Statistics: methods and variants

Scheduled Pinned Locked Moved Freelancer-related Programming
7 Posts 3 Posters 10.4k Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ? Offline
    ? Offline
    A Former User
    wrote on global:last_edited_by,
    #1

    Here we go.

    Realtime stat - see attached file 🙂

    Note: adapted for FLHook plugin version, has russian data so regen it by Ioncross Database Maker from DB and edit for your needs 🙂

    P.S. All php questions to OutCast - joke ;))

    1 Reply Last reply
    0
  • O Offline
    O Offline
    OutCast
    wrote on global:last_edited_by,
    #2

    The only familiar thing to me here is the flhook socket ‘framework’ ^^ 😛

    On the subject:
    1. Requesting info from the server every time on client’s demand - is a very easy way to DoS your server to death.
    Either you have to have some limitations, or collect info from the server with scheduled/croned script. My system uses the latter.

    2. While there maybe a point in this direct page generation, i say it’s better to have a script that fills database, and a frontend script that’ll make all the nice tables.
    Also DB is always very useful thing for a lot of tasks.

    1 Reply Last reply
    0
  • ? Offline
    ? Offline
    A Former User
    wrote on global:last_edited_by,
    #3

    Thx Alexander! 🙂

    1. Yep. Another proof of Plugin Hook stability.
    We have link from main page, so stat generates only by clicking on it.
    And count of players on main page is generated by lgsl (http://www.greycube.com)

    2. When our server will grow at least to the size of Hamburg City, we will take your note! 🙂

    1 Reply Last reply
    0
  • B Offline
    B Offline
    bulldogg
    wrote on global:last_edited_by,
    #4

    we do #2 currently

    http://www.freelancer-swwt.com/flstat/

    1 Reply Last reply
    0
  • O Offline
    O Offline
    OutCast
    wrote on global:last_edited_by,
    #5

    It’s not about stability, it’s just that socket io in flhook is done in main simulation thread, and as i understand socket io is not exactly as fast as, say, arithmetics.
    The more socket requests - the more additional lag there is.

    1 Reply Last reply
    0
  • ? Offline
    ? Offline
    A Former User
    wrote on global:last_edited_by,
    #6

    I have scheduled stat too, without pages ;(

    http://fm.the-starport.ru/stat/index.html

    1 Reply Last reply
    0
  • B Offline
    B Offline
    bulldogg
    wrote on global:last_edited_by,
    #7

    ours also incorporates a signature system to display stats and an xml export system for custom parsing.

    1 Reply Last reply
    0

  • Story Mission level requirement
    C
    CommanderArgelo
    0
    11
    52

  • Crash Offsets
    J
    josbyte
    0
    231
    251.4k

  • Capital ships shield collision detection
    C
    CommanderArgelo
    0
    3
    17

  • Dropping a phantomloot cargo from an NPC
    C
    CommanderArgelo
    0
    5
    26

  • Incorrect Shield Value on HUD
    C
    CommanderArgelo
    0
    4
    19

  • @Adoxa - Wheel Scroll plugin improvements
    AingarA
    Aingar
    0
    3
    20

  • Release: Advanced Renderer v. 1.1 beta 1
    S
    SWAT_OP-R8R
    3
    50
    428

  • German Mod Tutorials? 2024 Mod Tutorial?
    S
    SWAT_OP-R8R
    0
    18
    66
  • First post
    Last post
0
  • Categories
  • Recent
  • Users
  • Groups
  • Starport Blog
  • Knowledge Base
  • The Forge
  • Discord