Jump to content
ziellos2k

BattleNET - C# library and client for the BattlEye protocol

Recommended Posts

That highly depends on what your argumentation would be.

Share this post


Link to post
Share on other sites

It's changed. The src license has been updated, but it seems I don't actually have commit rights to the compiled version, so I need Sawyer to take care of that :P.

  • Like 1

Share this post


Link to post
Share on other sites

It's changed. The src license has been updated, but it seems I don't actually have commit rights to the compiled version, so I need Sawyer to take care of that :P.

Thank you very much. Here, have some beans :)

Share this post


Link to post
Share on other sites

Looks like I still need to figure out a way to properly grab the list of players (unless that comes in as a Message and not returned directly?). Anyhow, thanks for the DLL!

Edited by kaeus3

Share this post


Link to post
Share on other sites

It is returned as a string array, you need to work with your message handler to pass the data back.

Players on server:

[#] [iP Address]:[Port] [Ping] [GUID] [Name]

--------------------------------------------------

0 37.55.101.136:2304 250 ab5df470579f743758a32b582dd9839f(OK) Vadi (Lobby)

2 94.255.121.55:2304 218 2e9093beb208a74eb11582c555d823a0(OK) Xabarok (Lobby)

3 109.238.111.206:2304 156 41f377d5504a13f15dd05985c59660e4(OK) .Hronus

5 37.55.253.111:26512 250 2bb15c46aded278c74736fbcde2e5b02(OK) OLEG (Lobby)

(4 players in total)

Share this post


Link to post
Share on other sites

Yep, this was my response as well.

9nTa35WtQx1kWnA5Nh166gDiY0PKov66JV11tEUS3QGtK.png

Share this post


Link to post
Share on other sites

Does someone know how to kick with a reason?

I can't see anything on the official page but I already saw people getting kicked with a reason.

"kick name reason" doesn't work.

Share this post


Link to post
Share on other sites

Maybe they ban for 1 minute with a reason?

Share this post


Link to post
Share on other sites

Maybe they ban for 1 minute with a reason?

So there is no way to kick with a reason?

Hmm...I guess I need to ban with 1 minute then.

edit: I just checked the packages of other tools and the command is

"kick <Player ID> <reason>"

It seems like this won't work with the name for some reason.

You can get the player ID from the player list.

Edited by DomiStyle

Share this post


Link to post
Share on other sites

It is returned as a string array, you need to work with your message handler to pass the data back.

Players on server:

[#] [iP Address]:[Port] [Ping] [GUID] [Name]

--------------------------------------------------

0 37.55.101.136:2304 250 ab5df470579f743758a32b582dd9839f(OK) Vadi (Lobby)

2 94.255.121.55:2304 218 2e9093beb208a74eb11582c555d823a0(OK) Xabarok (Lobby)

3 109.238.111.206:2304 156 41f377d5504a13f15dd05985c59660e4(OK) .Hronus

5 37.55.253.111:26512 250 2bb15c46aded278c74736fbcde2e5b02(OK) OLEG (Lobby)

(4 players in total)

I'll try to get this working tonight and play with it a bit. I figure the return format must have been detailed somewhere.

Share this post


Link to post
Share on other sites

It is returned as a string array, you need to work with your message handler to pass the data back.

Players on server:

[#] [iP Address]:[Port] [Ping] [GUID] [Name]

--------------------------------------------------

0 37.55.101.136:2304 250 ab5df470579f743758a32b582dd9839f(OK) Vadi (Lobby)

2 94.255.121.55:2304 218 2e9093beb208a74eb11582c555d823a0(OK) Xabarok (Lobby)

3 109.238.111.206:2304 156 41f377d5504a13f15dd05985c59660e4(OK) .Hronus

5 37.55.253.111:26512 250 2bb15c46aded278c74736fbcde2e5b02(OK) OLEG (Lobby)

(4 players in total)

Yea - this is what I did. Just wrote a timer to call players every X seconds and update a variable. Then I just call the variable from my server class to get the list as needed.

P.S - Thanks for the library. Was writing my own, saved me a little bit of time.

Edited by Paronity
  • Like 1

Share this post


Link to post
Share on other sites

Thanks a lot man, was literally making a C# application to control my server but put it on hold when I couldn't get it working using BERCon.exe.

Share this post


Link to post
Share on other sites

Hey Sawyer,

thanks for the library. However I am currently looking at your example and I'm currently stuck at capturing the output.

After connecting sucessfully i am calling the Players Method:

b.SendCommandPacket(EBattlEyeCommand.Players);

Via Wireshark I can see that the server actually sends back the player data but I did not yet manage to write this to a variable.. How exactly do I capture output?

Would be really great if somebody could give me a hint.

/edit; Nevermind - figured it out only minutes after creating this post - you have to add a sleep so the server can actually respond and the Message Handler can trigger!

Thanks!

Edited by leepfrog

Share this post


Link to post
Share on other sites

It seems like there is a problem requesting large ban lists, can there be anything be done about it?

On each request I only get half of the list or none.

BERCon requests large ban lists just fine it seems like it's a problem with BattleNET.

Share this post


Link to post
Share on other sites

It seems like there is a problem requesting large ban lists, can there be anything be done about it?

On each request I only get half of the list or none.

BERCon requests large ban lists just fine it seems like it's a problem with BattleNET.

If a request gets to big, the server will send more than one data-gram back with the reply. It probably isn't taking that into account....

Share this post


Link to post
Share on other sites

If a request gets to big, the server will send more than one data-gram back with the reply. It probably isn't taking that into account....

Possible, also wrote an issue on github.

Maybe someone takes a look at it.

Share this post


Link to post
Share on other sites

New version released (20120821), see first post for details.

It seems like there is a problem requesting large ban lists, can there be anything be done about it?

On each request I only get half of the list or none.

BERCon requests large ban lists just fine it seems like it's a problem with BattleNET.

Should be fixed now, somewhat. :D

Edited by Sawyer
  • Like 1

Share this post


Link to post
Share on other sites

Just wanted to say thanks for creating this, has made creating my OA Server tools alot easier. You should consider putting up a thread about the project on BI Forums too, I just barely found it through github :)

Edited by looterz

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×