Little Fighter Empire - Forums
LF2 Network + AntiCheat - Printable Version

+- Little Fighter Empire - Forums (https://lf-empire.de/forum)
+-- Forum: Little Fighter 2 Zone (https://lf-empire.de/forum/forumdisplay.php?fid=7)
+--- Forum: Projects (https://lf-empire.de/forum/forumdisplay.php?fid=10)
+--- Thread: LF2 Network + AntiCheat (/showthread.php?tid=572)



LF2 Network + AntiCheat - Arghs - 07-06-2008

Hey guys, first sorry for my bad english.
Im a C# developer and a huge LF2 Fan.
I want to ask the community if they want there own LF2 Network.

This is the idea:
[Image: lf2networkstructuredr4.jpg]

The server (running on a root) collects players and search for each of them a oppenent.
Now the server tells the LF2 Network client, that a oppenent exists.
The Client tells the player he can connect to a IP.
And now there is a match.

The only problem is how to check who wins the match. (Own LF2?)
Maybe you have ideas?

Please tell me if you like my idea.

thanks, Arghs

sorry again for my bad english :(


RE: LF2 Network + AntiCheat - YinYin - 07-06-2008

Arghs Wrote:The only problem is how to check who wins the match. (Own LF2?)

silva is working on this
he can already determine whether host or client won the game - only thing left is getting the name of that player i think


RE: LF2 Network + AntiCheat - Boop - 07-06-2008

YinYin Wrote:silva is working on this

WAS working. I gave up due to lack of programming knowledge.

http://www.mediafire.com/?3ziwtcbeazz << Thats as far as I got. Includes modified exe(so that'd call the dll), compiled dll and source code.


Sorry for the lack of comments in my code + the crappy-ness of it :p. If you have any questions feel free to ask me.

(the win check thing only works online, if you are playing offline its different numbers so the code wont work).


RE: LF2 Network + AntiCheat - Arghs - 07-06-2008

Did you read Process Memory to find the Winner?


RE: LF2 Network + AntiCheat - Boop - 07-06-2008

No, since this is a DLL, I just made a dll which accepts some inputs and than compares them and stuff. If you want to use Read Process Memor, heres the basic logic :

Read address 449054,
If 449054 <= 13 {
Winnner == host
}
Else
{Winner == client}

To find out who the client is, and who the server is you need this:

read address 449100
if 449100 == 2 {
local LF2 == host
}
if 449100 == 4 {
local lf2 == client
}

To see if the lf2 that is running is the winner, just do
if winner == local lf2
{you won}
else
{you lost}

I hope that made sense.


Client = the person that connects, a.k.a the person that has to write the I.P address
Host = Person that gets connected to, a.k.a person that presses "waiting for opponent"

Edit: Actually, I think I got what you mean, you didn't mean the actual read process memory API, but actually reading lf2 memory... And yes I did read the process memory.


RE: LF2 Network + AntiCheat - Arghs - 07-06-2008

Did you have MSN or ICQ?
- i removed it... duh!