Luigi Auriemma

aluigi.org (ARCHIVE-ONLY FORUM!)
It is currently 19 Jul 2012 11:31

All times are UTC [ DST ]





Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 55 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: EAlist (Battlefield Bad Company 2 yeah)
PostPosted: 13 May 2010 10:55 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
obviously the protocol is not documented so there is not much to do.
if the game supports that TXN command you are testing then it's the only source of informations you have, which means that you check in your sniffed packets or reverse it in the executable.
otherwise there is no choice because only the EA server knows what's missing


Top
 Profile  
 
 
 Post subject: Re: EAlist (Battlefield Bad Company 2 yeah)
PostPosted: 14 May 2010 13:17 

Joined: 11 May 2010 15:50
Posts: 4
Thank you for your fast reply.

To bad that there is no documentation, that would be really cool :)


Top
 Profile  
 
 Post subject: Re: EAlist (Battlefield Bad Company 2 yeah)
PostPosted: 22 Jun 2010 01:18 

Joined: 22 Jun 2010 01:07
Posts: 11
I have some progress in protocol research. In this moment i use it to observe my BFBC2 statistics. But in fact i have more questions then answers :( If somebody interested in protocol researching, please contact with me.


Top
 Profile  
 
 Post subject: Re: EAlist (Battlefield Bad Company 2 yeah)
PostPosted: 24 Jun 2010 10:46 

Joined: 24 Jun 2010 10:04
Posts: 70
Location: aluigi not @ home
if you have something useful to share why not just doing it here?


Top
 Profile  
 
 Post subject: Re: EAlist (Battlefield Bad Company 2 yeah)
PostPosted: 24 Jun 2010 12:13 

Joined: 22 Jun 2010 01:07
Posts: 11
vacancy wrote:
if you have something useful to share why not just doing it here?


Useful for what?
This topic for discussion about EAlist.
Please suggest any other place (board) to talk about fesl protocol and BF stats.


Top
 Profile  
 
 Post subject: Re: EAlist (Battlefield Bad Company 2 yeah)
PostPosted: 24 Jun 2010 14:37 

Joined: 24 Jun 2010 10:04
Posts: 70
Location: aluigi not @ home
I meant here in the forum, so open another thread here in the Research sub-section


Top
 Profile  
 
 Post subject: Re: EAlist (Battlefield Bad Company 2 yeah)
PostPosted: 24 Jun 2010 15:24 

Joined: 22 Jun 2010 01:07
Posts: 11
vacancy wrote:
I meant here in the forum, so open another thread here in the Research sub-section


/post10217.html#p10217


Top
 Profile  
 
 Post subject: Re: EAlist (Battlefield Bad Company 2 yeah)
PostPosted: 30 Jun 2010 16:37 

Joined: 29 Jun 2010 14:08
Posts: 4
There is a minor protocol bug in EAList which prolly does not matter that much but just for the completion of the application.

if(ea_send(ssl_sd, fesl_sd, "acct", 0xc0000003, // logout
"TXN=Goodbye\n"
"reason=GOODBYE_CLIENT_NORMAL\n"
"message=\"Disconnected via front-end\"\n") < 0) goto quit;

The fesl server responded with an error when I tried, but it turned out that if you change the command from acct to fsys the server responds with a Goodbye message.

Just my two cents


Top
 Profile  
 
 Post subject: Re: EAlist (Battlefield Bad Company 2 yeah)
PostPosted: 30 Jun 2010 22:38 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
yes you are right, a classical copy&paste mistake :)
thanx


Top
 Profile  
 
 Post subject: Re: EAlist (Battlefield Bad Company 2 yeah)
PostPosted: 02 Jul 2010 14:40 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
the following is something that deservers to be tried:
  • get ealist >= 0.1.4
    http://aluigi.org/papers.htm#ealist
  • get gs_login_server >= 0.2.3a
    http://aluigi.org/papers.htm#gs_login_server
  • add the following entries in c:\windows\system32\drivers\etc\hosts
    127.0.0.1 bf2142-pc.fesl.ea.com
    127.0.0.1 cncra3-pc.fesl.ea.com
    127.0.0.1 gpsp.gamespy.com
    127.0.0.1 gpcm.gamespy.com
  • if you have Battlefield 2142 run:
    ealist -S 18300 -v
    if you have Red Alert 3:
    ealist -S 18840 -v
    change the port for the other games that use fesl and Gamespy (for sure Command & Conquer 3 and LOTR:BFME and BFME2)
  • launch the file launch_debug.bat of gs_login_server
  • run one of the two games said before USING an invalid cdkey (ergc key in the registry) or one already in use and/or an unexistent/invalid account
  • now you are playing online without problems :)


Top
 Profile  
 
 Post subject: Re: EAlist (Battlefield Bad Company 2 yeah)
PostPosted: 14 Jul 2010 09:31 

Joined: 14 Jul 2010 09:20
Posts: 2
Is it possible to only receive server list based on region? the string returned is B-U-region and is usually a 2 letter region code such as US, NL, OC etc..
Currently I'm receiving the entire server list then filtering out the region I want but this is taking way too long


Top
 Profile  
 
 Post subject: Re: EAlist (Battlefield Bad Company 2 yeah)
PostPosted: 14 Jul 2010 10:42 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
ealist doesn't support a filter because is still not much clear if the EA theater server supports it.

we know that it supports the following filters:
FILTER-FAV-ONLY=
FILTER-NOT-FULL=
FILTER-NOT-PRIVATE=
FILTER-NOT-CLOSED=
FILTER-MIN-SIZE=
FAV-PLAYER=
FAV-GAME=
FAV-PLAYER-UID=
FAV-GAME-UID=

but obviously they are not enough for a complete filter like country


Top
 Profile  
 
 Post subject: Re: EAlist (Battlefield Bad Company 2 yeah)
PostPosted: 14 Jul 2010 11:06 

Joined: 14 Jul 2010 09:20
Posts: 2
OK, I have worked around it by dumping all servers to a mysql database and from there I can filter by region.

Is it just me, or does the -s (search) option not work?


Top
 Profile  
 
 Post subject: Re: EAlist (Battlefield Bad Company 2 yeah)
PostPosted: 14 Jul 2010 11:08 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
-s works without problems:
ealist -s batt will return the list of games supported by ealist that contain the word "batt" in their name like battlefield bad company


Top
 Profile  
 
 Post subject: Re: EAlist (Battlefield Bad Company 2 yeah)
PostPosted: 21 Jul 2010 06:13 

Joined: 20 Jul 2010 03:35
Posts: 5
hi i m new to c++ and i can not get ealist work can i get help

C:\1\ea\ealist>gcc ealist.c -o ealist.exe -lssl -lcrypto
C:\DOCUME~1\domo\LOCALS~1\Temp/ccZCRLef.o:ealist.c:(.text+0x7): undefined referen
ce to `WSAGetLastError@0'
C:\DOCUME~1\domo\LOCALS~1\Temp/ccZCRLef.o:ealist.c:(.text+0x77f): undefined refer
ence to `WSAStartup@8'
C:\DOCUME~1\domo\LOCALS~1\Temp/ccZCRLef.o:ealist.c:(.text+0x821): undefined refer
ence to `stristr'
C:\DOCUME~1\domo\LOCALS~1\Temp/ccZCRLef.o:ealist.c:(.text+0xfbd): undefined refer
ence to `htonl@4'
C:\DOCUME~1\domo\LOCALS~1\Temp/ccZCRLef.o:ealist.c:(.text+0xfd3): undefined refer
ence to `htons@4'
C:\DOCUME~1\domo\LOCALS~1\Temp/ccZCRLef.o:ealist.c:(.text+0xffc): undefined refer
ence to `socket@12'
C:\DOCUME~1\domo\LOCALS~1\Temp/ccZCRLef.o:ealist.c:(.text+0x1038): undefined refe
rence to `setsockopt@20'
C:\DOCUME~1\domo\LOCALS~1\Temp/ccZCRLef.o:ealist.c:(.text+0x105e): undefined refe
rence to `bind@12'
C:\DOCUME~1\domo\LOCALS~1\Temp/ccZCRLef.o:ealist.c:(.text+0x107d): undefined refe
rence to `listen@8'
C:\DOCUME~1\domo\LOCALS~1\Temp/ccZCRLef.o:ealist.c:(.text+0x1095): undefined refe
rence to `ntohs@4'
C:\DOCUME~1\domo\LOCALS~1\Temp/ccZCRLef.o:ealist.c:(.text+0x10d7): undefined refe
rence to `accept@12'
C:\DOCUME~1\domo\LOCALS~1\Temp/ccZCRLef.o:ealist.c:(.text+0x1113): undefined refe
rence to `setsockopt@20'
C:\DOCUME~1\domo\LOCALS~1\Temp/ccZCRLef.o:ealist.c:(.text+0x1122): undefined refe
rence to `ntohs@4'
C:\DOCUME~1\domo\LOCALS~1\Temp/ccZCRLef.o:ealist.c:(.text+0x1133): undefined refe
rence to `inet_ntoa@4'
C:\DOCUME~1\domo\LOCALS~1\Temp/ccZCRLef.o:ealist.c:(.text+0x13a8): undefined refe
rence to `htons@4'
C:\DOCUME~1\domo\LOCALS~1\Temp/ccZCRLef.o:ealist.c:(.text+0x13c1): undefined refe
rence to `ntohs@4'
C:\DOCUME~1\domo\LOCALS~1\Temp/ccZCRLef.o:ealist.c:(.text+0x13d2): undefined refe
rence to `inet_ntoa@4'
C:\DOCUME~1\domo\LOCALS~1\Temp/ccZCRLef.o:ealist.c:(.text+0x1411): undefined refe
rence to `socket@12'
C:\DOCUME~1\domo\LOCALS~1\Temp/ccZCRLef.o:ealist.c:(.text+0x143c): undefined refe
rence to `connect@12'
C:\DOCUME~1\domo\LOCALS~1\Temp/ccZCRLef.o:ealist.c:(.text+0x1b92): undefined refe
rence to `closesocket@4'
C:\DOCUME~1\domo\LOCALS~1\Temp/ccZCRLef.o:ealist.c:(.text+0x1da4): undefined refe
rence to `closesocket@4'
C:\DOCUME~1\domo\LOCALS~1\Temp/ccZCRLef.o:ealist.c:(.text+0x1dd5): undefined refe
rence to `htons@4'
C:\DOCUME~1\domo\LOCALS~1\Temp/ccZCRLef.o:ealist.c:(.text+0x1dfe): undefined refe
rence to `socket@12'
C:\DOCUME~1\domo\LOCALS~1\Temp/ccZCRLef.o:ealist.c:(.text+0x1e29): undefined refe
rence to `connect@12'
C:\DOCUME~1\domo\LOCALS~1\Temp/ccZCRLef.o:ealist.c:(.text+0x2589): undefined refe
rence to `closesocket@4'
C:\DOCUME~1\domo\LOCALS~1\Temp/ccZCRLef.o:ealist.c:(.text+0x25cd): undefined refe
rence to `closesocket@4'
C:\DOCUME~1\domo\LOCALS~1\Temp/ccZCRLef.o:ealist.c:(.text+0x2d70): undefined refe
rence to `send@16'
C:\DOCUME~1\domo\LOCALS~1\Temp/ccZCRLef.o:ealist.c:(.text+0x2dc6): undefined refe
rence to `recv@16'
C:\DOCUME~1\domo\LOCALS~1\Temp/ccZCRLef.o:ealist.c:(.text+0x2e71): undefined refe
rence to `stristr'
C:\DOCUME~1\domo\LOCALS~1\Temp/ccZCRLef.o:ealist.c:(.text+0x2e96): undefined refe
rence to `stristr'
C:\DOCUME~1\domo\LOCALS~1\Temp/ccZCRLef.o:ealist.c:(.text+0x31cb): undefined refe
rence to `inet_addr@4'
C:\DOCUME~1\domo\LOCALS~1\Temp/ccZCRLef.o:ealist.c:(.text+0x48ea): undefined refe
rence to `closesocket@4'
C:\DOCUME~1\domo\LOCALS~1\Temp/ccZCRLef.o:ealist.c:(.text+0x4a7e): undefined refe
rence to `select@20'
C:\DOCUME~1\domo\LOCALS~1\Temp/ccZCRLef.o:ealist.c:(.text+0x4ab4): undefined refe
rence to `inet_addr@4'
C:\DOCUME~1\domo\LOCALS~1\Temp/ccZCRLef.o:ealist.c:(.text+0x4acb): undefined refe
rence to `gethostbyname@4'
/mingw/lib/libcrypto.a(bss_sock.o):bss_sock.c:(.text+0xca): undefined reference
to `shutdown@8'
/mingw/lib/libcrypto.a(bss_sock.o):bss_sock.c:(.text+0xd4): undefined reference
to `closesocket@4'
/mingw/lib/libcrypto.a(bss_sock.o):bss_sock.c:(.text+0x1b1): undefined reference
to `shutdown@8'
/mingw/lib/libcrypto.a(bss_sock.o):bss_sock.c:(.text+0x1bb): undefined reference
to `closesocket@4'
/mingw/lib/libcrypto.a(bss_sock.o):bss_sock.c:(.text+0x231): undefined reference
to `WSAGetLastError@0'
/mingw/lib/libcrypto.a(bss_sock.o):bss_sock.c:(.text+0x287): undefined reference
to `WSASetLastError@4'
/mingw/lib/libcrypto.a(bss_sock.o):bss_sock.c:(.text+0x29b): undefined reference
to `recv@16'
/mingw/lib/libcrypto.a(bss_sock.o):bss_sock.c:(.text+0x2c9): undefined reference
to `WSAGetLastError@0'
/mingw/lib/libcrypto.a(bss_sock.o):bss_sock.c:(.text+0x30c): undefined reference
to `WSASetLastError@4'
/mingw/lib/libcrypto.a(bss_sock.o):bss_sock.c:(.text+0x324): undefined reference
to `send@16'
/mingw/lib/libcrypto.a(bss_sock.o):bss_sock.c:(.text+0x359): undefined reference
to `WSAGetLastError@0'
/mingw/lib/libcrypto.a(bss_sock.o):bss_sock.c:(.text+0x3ae): undefined reference
to `WSASetLastError@4'
/mingw/lib/libcrypto.a(bss_sock.o):bss_sock.c:(.text+0x3be): undefined reference
to `send@16'
/mingw/lib/libcrypto.a(bss_sock.o):bss_sock.c:(.text+0x3e9): undefined reference
to `WSAGetLastError@0'
/mingw/lib/libcrypto.a(rand_win.o):rand_win.c:(.text+0xa0c): undefined reference
to `CreateDCA@16'
/mingw/lib/libcrypto.a(rand_win.o):rand_win.c:(.text+0xa19): undefined reference
to `CreateCompatibleDC@4'
/mingw/lib/libcrypto.a(rand_win.o):rand_win.c:(.text+0xa2a): undefined reference
to `GetDeviceCaps@8'
/mingw/lib/libcrypto.a(rand_win.o):rand_win.c:(.text+0xa3a): undefined reference
to `GetDeviceCaps@8'
/mingw/lib/libcrypto.a(rand_win.o):rand_win.c:(.text+0xa50): undefined reference
to `CreateCompatibleBitmap@12'
/mingw/lib/libcrypto.a(rand_win.o):rand_win.c:(.text+0xa5e): undefined reference
to `SelectObject@8'
/mingw/lib/libcrypto.a(rand_win.o):rand_win.c:(.text+0xa70): undefined reference
to `GetObjectA@12'
/mingw/lib/libcrypto.a(rand_win.o):rand_win.c:(.text+0xae1): undefined reference
to `BitBlt@36'
/mingw/lib/libcrypto.a(rand_win.o):rand_win.c:(.text+0xaeb): undefined reference
to `GetBitmapBits@12'
/mingw/lib/libcrypto.a(rand_win.o):rand_win.c:(.text+0xb42): undefined reference
to `SelectObject@8'
/mingw/lib/libcrypto.a(rand_win.o):rand_win.c:(.text+0xb49): undefined reference
to `DeleteObject@4'
/mingw/lib/libcrypto.a(rand_win.o):rand_win.c:(.text+0xb53): undefined reference
to `DeleteDC@4'
/mingw/lib/libcrypto.a(rand_win.o):rand_win.c:(.text+0xb5d): undefined reference
to `DeleteDC@4'
collect2: ld returned 1 exit status


Top
 Profile  
 
 Post subject: Re: EAlist (Battlefield Bad Company 2 yeah)
PostPosted: 21 Jul 2010 07:55 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
add -lws2_32 -lgdi32 to the gcc command-line
or if you are using an IDE add the ws2_32 and gdi32 libraries from its configuration


Top
 Profile  
 
 Post subject: Re: EAlist (Battlefield Bad Company 2 yeah)
PostPosted: 21 Jul 2010 08:39 

Joined: 20 Jul 2010 03:35
Posts: 5
ok ty for your help and i m use Mingw
can i get more help

C:\1\ea\ealist>gcc ealist.c -o ealist.exe -lssl -lcrypto -lws2_32 -lgdi32
C:\DOCUME~1\domo\LOCALS~1\Temp/ccxZ7oeQ.o:ealist.c:(.text+0x821): undefined refer
ence to `stristr'
C:\DOCUME~1\domo\LOCALS~1\Temp/ccxZ7oeQ.o:ealist.c:(.text+0x2e71): undefined refe
rence to `stristr'
C:\DOCUME~1\domo\LOCALS~1\Temp/ccxZ7oeQ.o:ealist.c:(.text+0x2e96): undefined refe
rence to `stristr'
collect2: ld returned 1 exit status


Top
 Profile  
 
 Post subject: Re: EAlist (Battlefield Bad Company 2 yeah)
PostPosted: 21 Jul 2010 09:17 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
ah right:
http://aluigi.org/mytoolz/stristr.c

it's bad that mingw doesn't have stristr implemented by default


Top
 Profile  
 
 Post subject: Re: EAlist (Battlefield Bad Company 2 yeah)
PostPosted: 25 Aug 2010 02:42 

Joined: 20 Jul 2010 03:35
Posts: 5
new bfbc2 pc server port for you all
bfbc2-pc-server.fesl.ea.com:19021 -theaterhost bfbc2-pc-server.theater.ea.com:19026


Top
 Profile  
 
 Post subject: Re: EAlist (Battlefield Bad Company 2 yeah)
PostPosted: 04 Nov 2010 23:13 

Joined: 04 Mar 2009 17:14
Posts: 21
aluigi wrote:
[*]launch the file launch_debug.bat of gs_login_server
[*]run one of the two games said before USING an invalid cdkey (ergc key in the registry) or one already in use and/or an unexistent/invalid account
[*]now you are playing online without problems :)[/list]


with what all games should this basically compatible?


Top
 Profile  
 
 Post subject: Re: EAlist (Battlefield Bad Company 2 yeah)
PostPosted: 05 Nov 2010 12:22 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
with those that use both the EA fesl server (authentication) and the gamespy peerchat server (chat and servers handling), so for sure bf2142 and ra3 that I tested personally.
at the moment I don't know/remember what other games use this "combination" of servers


Top
 Profile  
 
 Post subject: Re: EAlist (Battlefield Bad Company 2 yeah)
PostPosted: 22 May 2011 14:41 

Joined: 22 May 2011 14:30
Posts: 1
Hello,
i have some trouble to compile the ealist program in a 64bit environment.

gcc -o ealist ealist_orig.c -lssl -lcrypto
ealist_orig.c: In function ???main???:
ealist_orig.c:563:24: warning: assignment discards qualifiers from pointer target type

If I run this executable the output is: Error: there has been an error during the connection with the server

The same *.c file compiled and running under a 32bit environment works perfect.

Any help ?

Best,
Ralf


Top
 Profile  
 
 Post subject: Re: EAlist (Battlefield Bad Company 2 yeah)
PostPosted: 22 May 2011 18:17 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
at line 563 there is just nothing so it can't be the original file, anyway it's only a warning.

usually my tools work on both 32 and 64 bits because I use stdint.h that avoids these compatibility problems, so don't know what to suggest.


Top
 Profile  
 
 Post subject: Re: EAlist (Battlefield Bad Company 2 yeah)
PostPosted: 28 Jun 2011 16:10 

Joined: 28 Jun 2011 12:50
Posts: 1
Hi,this question of mine is not really connected with battlefield bad company 2 but with the EA list itself.
I'm kinda new in all this and i was looking at your EA list script and i'm wondering.. Is it possible
to be changed so it will support the Star Wars game?And if thats possible how can i find the port number and hostname for this game?

Thanks


Top
 Profile  
 
 Post subject: Re: EAlist (Battlefield Bad Company 2 yeah)
PostPosted: 29 Jun 2011 08:46 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
depends if this game uses those servers and that protocol.

for example the latest Medal of Honor didn't use it.

maybe later I will check if there are updates in the list of supported games, if I remember to do it :)


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 55 posts ]  Go to page Previous  1, 2

All times are UTC [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for: