Exporting Server Stats

DizzyThermal

Member
Modder
Dec 19, 2025
23
1
230
USA
dizzysabyss.com
Hey all,

Is there a way to query/request information from an sm64coopdx server (i.e., REST) ?

My goal is to get some status, like, Player Count from a server (i.e., 3/16).

One thought I had was to have the server periodically write out the information to a ModFS file. Then I could have some middleware read the ModFS on changes - but I feel like coopnet must be doing something to get this information from their servers on the Public server list that wasn't using ModFS

I've played around with NetCat on the server, but I'm guessing there's a session/handshake that needs to be setup to get this information.

Should I stick to a ModFS implementation, or is there a more "network-wise" way to do this?

Thanks!
 
Last edited:
The Public Playerlist is querying all the coopnet servers for the player counts, and I guess this question is more of a question about sm64coopdx (the application itself) and not about smlua/modding.

I can continue interrogating the packets, but I didn't know if this was private/closed source, because a REST or RPC call to the server instead of parsing files is much preferred (from a website standpoint).

ModFS can work for now, but maybe I can help work on an enhancement so servers can export metrics like:

Player Count
gMarioState information (to get info like, coordinates, levels, areas, character model, etc)

Thanks for the suggestions! 😁

Edit:

This is what I'm trying to create, what GameTracker would do for Counter-Strike servers back in the day. Mostly, the map, player count and maybe player locations - for my use-case:
images
 
Last edited:

Users who are viewing this thread