I am from China inSky LOFC squadron. Happy to find here although I can't read German, because I think here must have someone can help me out of the problem. The ATC is really good and is the best plugin I have seen for LOFC.

The situation is there is a new dedicated LOFC open host set up for couple days. I planned to build up a stats for it. This part is almost done in fact. The script is based on the [url=http://forum.lockon.ru/showthread.php?t=5669Jetfire's script[/url]. I did some change and extract all the key data to mysql.

But today I met a situation. Somebody uses other's name login the host to make some trouble. I don't want this happen in the stats system, it will cause big mess. an idea comes up and I think maybe there should be a webbased user register page running in the host and share the same database with the LOFC stats to record the user's last login IP address which can compare with the player's IP address in LOFC. if people want their stats data(records or points ) remain in the stats system, the IP address he last login the web must be the same as the IP address in LOFC. and the valid stats data will belong to the ID registered in the web.

sorry for so many words and my English. I am not native english speaker too. In simply words:

I am from China inSky LOFC squadron. Happy to find here although I can't read German, because I think here must have someone can help me out of the problem. The ATC is really good and is the best plugin I have seen for LOFC.

The situation is there is a new dedicated LOFC open host set up for couple days. I planned to build up a stats for it. This part is almost done in fact. The script is based on the [url=http://forum.lockon.ru/showthread.php?t=5669Jetfire's script[/url]. I did some change and extract all the key data to mysql.

But today I met a situation. Somebody uses other's name login the host to make some trouble. I don't want this happen in the stats system, it will cause big mess. an idea comes up and I think maybe there should be a webbased user register page running in the host and share the same database with the LOFC stats to record the user's last login IP address which can compare with the player's IP address in LOFC. if people want their stats data(records or points ) remain in the stats system, the IP address he last login the web must be the same as the IP address in LOFC. and the valid stats data will belong to the ID registered in the web.

sorry for so many words and my English. I am not native english speaker too. In simply words:

You can only parse the asyncNet.log for all connected addresses and the corresponding Client ID, which is a random but unique number (mostly integer between 1-100, called CNumber in the java source), but there is no way to relate back to the players Name from that Number, at least not that I know of... sorry

I used java as the server Backbone and have these functions to periodically check the IP's connected to the game by parsing the asyncNet.log and comparing them to the radarServer client IP's to remove cheaters.

EDIT:

You could taylor a small app that sends the username and IP of the connecting client to your Stats Server and block all connections on the Game Server if the IP was not registered on the Stats Server beforehand.

} //-------------------------------------------------------------------------------------------- // Reads the AsyncNet.log, checks for removal of Pilots and does the same in the pilots array public static synchronized Vector removePilots() {

...which means in most 3d engines a frame (a GPU 3d rendered frame) is a unit in which after or before its rendered by the GPU a CPU calculation can be made. There is no real difference in exporting your data before or after.

But yes, I'm quite sure (1st If you really want... and 2nd Try hard enough) there is a way (there is always a way) to accomplish the task of sending the user name and IP completly via LUA... so to say as an easy to install "cheat-safe ChinaInSkyLOFC-StatMod" (CSCIS_LOFC_SM)

all you have to do is send username and IP to your stat server via LUA and find a firewall on your game server to block IP's which have not sent their IP to the stat server beforehand...

good luck

_________________

11. Dezember 2007 02:22

FlyCat

Gerade reingestolpert

Registriert: 6. Dezember 2007 19:08Beiträge: 5

thank your reply!

I got a friend to help me out of this, a real coder.

After study your ATC code, I put the code under the function LuaExportActivityNextEvent(t), it works good enough.