AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   how does it work? 'gameme' (https://forums.alliedmods.net/showthread.php?t=330713)

loiraolhosazul 02-17-2021 11:31

how does it work? 'gameme'
 
1 Attachment(s)
Does anyone know how the 'web server' captures the information from the gameme plugin? I want to develop my own plugin, but they also offer their version.

Natsheh 02-17-2021 11:37

Re: how does it work? 'gameme'
 
Sockets.

loiraolhosazul 02-17-2021 11:51

Re: how does it work? 'gameme'
 
Quote:

Originally Posted by Natsheh (Post 2737284)
Sockets.

is there any example of how i can do this? because the plugin doesn't use sockets, I believe in a possible 'rcon', but I don't know how to capture the logs

klippy 02-17-2021 12:57

Re: how does it work? 'gameme'
 
It doesn't use sockets. It uses the logaddress_add command and generates logs for any interesting events. The game server sends logs to the server specified by that command. Here's the relevant documentation from their site: https://www.gameme.com/en/docs/setup/general/hl1.

loiraolhosazul 02-17-2021 14:34

Re: how does it work? 'gameme'
 
Quote:

Originally Posted by KliPPy (Post 2737295)
It doesn't use sockets. It uses the logaddress_add command and generates logs for any interesting events. The game server sends logs to the server specified by that command. Here's the relevant documentation from their site: https://www.gameme.com/en/docs/setup/general/hl1.

I understood, but I wanted to understand how to recover data, for example using php

klippy 02-17-2021 18:22

Re: how does it work? 'gameme'
 
What do you mean by recover? Retrieve it from the game server?
Looking at the engine code, it seems the game server sends a connectionless UDP packet starting with "log ", which means that your (web) server should listen for any UDP packets starting with FF FF FF FF 6C 6F 67 20, and any data after that is the log line itself.
I'm not a PHP expert but as far as I know PHP can't just listen on a UDP port.

JocAnis 02-17-2021 18:47

Re: how does it work? 'gameme'
 
Isnt gameme using only their .php to login via FTP to your server (ip) and then read its log file then parse for their usage..? How i remember you must give them some access

loiraolhosazul 02-17-2021 20:06

Re: how does it work? 'gameme'
 
Quote:

Originally Posted by KliPPy (Post 2737322)
What do you mean by recover? Retrieve it from the game server?
Looking at the engine code, it seems the game server sends a connectionless UDP packet starting with "log ", which means that your (web) server should listen for any UDP packets starting with FF FF FF FF 6C 6F 67 20, and any data after that is the log line itself.
I'm not a PHP expert but as far as I know PHP can't just listen on a UDP port.

I need some way to get the data and save it in the database ...


check 1 = https://stackoverflow.com/questions/...-in-a-web-page

check 2 = https://stackoverflow.com/questions/...tagrams-in-php


All times are GMT -4. The time now is 17:37.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.