Official eMule-Board: Simple Emule 0.50A + Show Country Flags? - Official eMule-Board

Jump to content


Page 1 of 1

Simple Emule 0.50A + Show Country Flags?

#1 User is offline   giquem 

  • Member
  • PipPip
  • Group: Members
  • Posts: 15
  • Joined: 10-May 14

Posted 04 July 2014 - 05:00 PM

May be someone has build a release of the official version including this feature? I don't want any mod, only the "simple" eMule, showing the country flags of the clients and servers (ip to country feature present in MorphXT, Scarangel, Mephisto...).
If not, I would appreciate some help in order to compile the source code including the feature. Thanks in advance.
0

#2 User is offline   hooligan3000 

  • European Community
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 337
  • Joined: 19-December 09

Posted 06 July 2014 - 04:50 PM

you can merg from xray mod into offi eMule.
search for "ip to country"

ed2k://|server|91.208.162.87|4232|/
ed2k://|server|85.239.33.123|4232|/
ed2k://|server|91.208.162.55|4232|/


SD - Telegram

Air VPN - The air to breathe the real Internet

BTC
bc1qdrk0ld07jtg99ym2zg68cpqhqj34qnf2txm93n
XMR
48ja6xJ2NyPMNzmY1pA3ZZPpX5yTaw9Ym28jrDPCL7Y7L7pr5wXFdpeK4WqBbvVY5qEa6VDfhFKTnHWef3EPC4zgQNTnAwg
0

#3 User is offline   tHeWiZaRdOfDoS 

  • Man, what a bunch of jokers...
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 5630
  • Joined: 28-December 02

Posted 06 July 2014 - 04:53 PM

I wouldn't recommend X-Ray but in general it's pretty easy to merge this feature :angelnot:
0

#4 User is offline   giquem 

  • Member
  • PipPip
  • Group: Members
  • Posts: 15
  • Joined: 10-May 14

Posted 09 July 2014 - 01:25 PM

View PosttHeWiZaRdOfDoS, on 06 July 2014 - 05:53 PM, said:

I wouldn't recommend X-Ray but in general it's pretty easy to merge this feature :angelnot:

OK tHeWiZaRdOfDoS. Really I have seen this xray mod and I don't like it. I have tried to add the ip2country.h and ip2country.cpp from the MorphXT mod in the source code of the official simple eMule and to compile it. I have introduced both files in the emule_vc9.vcproj, of course. Building the eMule.exe with VS 2008, I see a lot of errors like these:

.\IP2Country.cpp(82) : error C2065: 'IDS_IP2COUNTRY_NASHORT' : identificador no declarado (many errors like this one)
.\IP2Country.cpp(93) : error C2039: 'QueueModLogLineEx' : no es un miembro de 'CemuleApp'
.\IP2Country.cpp(138) : error C2039: 'ResetIP2Country' : no es un miembro de 'CServerList'
.\IP2Country.cpp(139) : error C2039: 'ResetIP2Country' : no es un miembro de 'CClientList'
.\IP2Country.cpp(140) : error C2039: 'ResetIP2Country' : no es un miembro de 'CKademliaWnd'
.\IP2Country.cpp(145) : error C2039: 'RefreshAllServer' : no es un miembro de 'CServerListCtrl'
.\IP2Country.cpp(527) : error C2039: 'GetIP2CountryNameMode' : no es un miembro de 'CPreferences'

And the most important (I think):

Emule.cpp
.\Emule.cpp(678) : error C2512: 'CIP2Country' : no hay disponible un constructor predeterminado adecuado (there is no default constructor)

May be for someone with more experience it is very easy to solve these problems, but I have not. May be you can give me some indications? Note that I would to build a release of the "normal" version of eMule, not to create a new mod. What instructions must I introduce in the IP2Country.cpp and in the Emule.cpp or in the Preferences.cpp, for example? For me it is not so easy.
Your help will be very appreciated. :confused:
0

#5 User is offline   hooligan3000 

  • European Community
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 337
  • Joined: 19-December 09

Posted 09 July 2014 - 05:43 PM

from xray to offi eMule with all libs
build with vs2003

dont forget the flags @ the addons folder.

merg

Addons //ip2c
flag //ip2c
res //icons
im kad ordner //ip2c

BaseClient.cpp //ip2c
ClientList.cpp //ip2c
ClientList.h //ip2c
ClientListCtrl.cpp //ip2c
DownloadClientsCtrl.cpp //ip2c
DownloadListCtrl.cpp //ip2c
emule.cpp //ip2c
emule.h //ip2c
emule.rc //ip2c
emuleDlg.cpp //ip2c
emule_vc71.vcproj //ip2c
KadContactListCtrl.cpp //ip2c
KadContactListCtrl.h //ip2c
KademliaWnd.cpp //ip2c
KademliaWnd.h //ip2c
otherfunctions.cpp //ip2c
otherfunctions.h //ip2c
Preferences.cpp //ip2c
Preferences.h //ip2c
QueueListCtrl.cpp //ip2c
resource.h //ip2c
server.cpp //ip2c
server.h //ip2c
ServerList.cpp //ip2c
ServerList.h //ip2c
ServerListCtrl.cpp //ip2c
ServerListCtrl.h //ip2c
updownclient.h //ip2c
UploadListCtrl.cpp //ip2c
URLClient.cpp //ip2c

this method sorts after ipranges.
but ipranges are outdate.
a connection to current DB would be better.

ed2k://|server|91.208.162.87|4232|/
ed2k://|server|85.239.33.123|4232|/
ed2k://|server|91.208.162.55|4232|/


SD - Telegram

Air VPN - The air to breathe the real Internet

BTC
bc1qdrk0ld07jtg99ym2zg68cpqhqj34qnf2txm93n
XMR
48ja6xJ2NyPMNzmY1pA3ZZPpX5yTaw9Ym28jrDPCL7Y7L7pr5wXFdpeK4WqBbvVY5qEa6VDfhFKTnHWef3EPC4zgQNTnAwg
0

#6 User is offline   giquem 

  • Member
  • PipPip
  • Group: Members
  • Posts: 15
  • Joined: 10-May 14

Posted 10 July 2014 - 01:50 PM

View Posthooligan3000, on 09 July 2014 - 06:43 PM, said:

from xray to offi eMule with all libs
build with vs2003

dont forget the flags @ the addons folder.

merg

Addons //ip2c
flag //ip2c
res //icons
im kad ordner //ip2c

BaseClient.cpp //ip2c
ClientList.cpp //ip2c
ClientList.h //ip2c
ClientListCtrl.cpp //ip2c
DownloadClientsCtrl.cpp //ip2c
DownloadListCtrl.cpp //ip2c
emule.cpp //ip2c
emule.h //ip2c
emule.rc //ip2c
emuleDlg.cpp //ip2c
emule_vc71.vcproj //ip2c
KadContactListCtrl.cpp //ip2c
KadContactListCtrl.h //ip2c
KademliaWnd.cpp //ip2c
KademliaWnd.h //ip2c
otherfunctions.cpp //ip2c
otherfunctions.h //ip2c
Preferences.cpp //ip2c
Preferences.h //ip2c
QueueListCtrl.cpp //ip2c
resource.h //ip2c
server.cpp //ip2c
server.h //ip2c
ServerList.cpp //ip2c
ServerList.h //ip2c
ServerListCtrl.cpp //ip2c
ServerListCtrl.h //ip2c
updownclient.h //ip2c
UploadListCtrl.cpp //ip2c
URLClient.cpp //ip2c

this method sorts after ipranges.
but ipranges are outdate.
a connection to current DB would be better.

Thanks hooligan 3000. But the release are about 1000 errors and I can't build the exe. May be I have done some mistake, I don't know. If I have well understood, I must replace all the files of your list from the files of the official version of eMule 0.50a, with the same files of the xray mod. Isn't it?
However, I insist in my idea: I would to create a version of eMule 0.50 that has the feature of the country flags, nothing more. Is it possible? And how?
0

#7 User is offline   tHeWiZaRdOfDoS 

  • Man, what a bunch of jokers...
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 5630
  • Joined: 28-December 02

Posted 10 July 2014 - 03:52 PM

View Postgiquem, on 10 July 2014 - 02:50 PM, said:

Thanks hooligan 3000. But the release are about 1000 errors and I can't build the exe. May be I have done some mistake, I don't know. If I have well understood, I must replace all the files of your list from the files of the official version of eMule 0.50a, with the same files of the xray mod. Isn't it?
However, I insist in my idea: I would to create a version of eMule 0.50 that has the feature of the country flags, nothing more. Is it possible? And how?

NO, don't REPLACE the files. Only replace CODEPARTS tagged with IP2Country.

Adding just IP2Country is possible and pretty easy, you just have to merge the feature from another mod but as I mentioned: do NOT use X-Ray, it's too complex, use a mod with minor modifications.
0

#8 User is offline   giquem 

  • Member
  • PipPip
  • Group: Members
  • Posts: 15
  • Joined: 10-May 14

Posted 13 July 2014 - 02:16 PM

View PosttHeWiZaRdOfDoS, on 10 July 2014 - 04:52 PM, said:

View Postgiquem, on 10 July 2014 - 02:50 PM, said:

Thanks hooligan 3000. But the release are about 1000 errors and I can't build the exe. May be I have done some mistake, I don't know. If I have well understood, I must replace all the files of your list from the files of the official version of eMule 0.50a, with the same files of the xray mod. Isn't it?
However, I insist in my idea: I would to create a version of eMule 0.50 that has the feature of the country flags, nothing more. Is it possible? And how?

NO, don't REPLACE the files. Only replace CODEPARTS tagged with IP2Country.

Adding just IP2Country is possible and pretty easy, you just have to merge the feature from another mod but as I mentioned: do NOT use X-Ray, it's too complex, use a mod with minor modifications.

Thanks a lot for your comprehension. I try with the Morph mod (if you think that it is another more indicated, tell me, please) and I recieved a lot of errors (64). These are some om them:

.\ClientListCtrl.cpp(235) : error C2027: uso del tipo 'CIP2Country' sin definir
c:\documents and settings\pc\escritorio\emule\srchybrid\emule.h(55) : vea la declaración de 'CIP2Country'
(This one is repeted much times)
.\ClientListCtrl.cpp(235) : error C2227: el operando izquierdo de '->ShowCountryFlag' debe señalar al tipo class/struct/union/generic
.\ClientListCtrl.cpp(240) : error C2227: el operando izquierdo de '->GetFlagImageList' debe señalar al tipo class/struct/union/generic
.\ClientListCtrl.cpp(240) : error C2227: el operando izquierdo de '->DrawIndirect' debe señalar al tipo class/struct/union/generic
...and much of that type

I don't understand. In the emule.h file (55) I wrote:
"struct SLogItem;
class CIP2Country; //EastShare - added by AndCycle, IP to Country".
I puted both ip2country.cpp and ip2country.h in the vc9 project and added "#define IDS_IP2COUNTRY" in the resource.h file. Why sais to me "type Cip2country undefined"? Somethink is wrong, but what? Thanks again in advance.

P.S.: May you know how to fix the hundreds errors (more than 500) compiling the official eMule that appears related to cryptopp library? The exe file works, but it is annoying. Now, I use the 5.5.2 version, but the same occours with the 5.6.0 or 5.6.1.
0

#9 User is offline   tHeWiZaRdOfDoS 

  • Man, what a bunch of jokers...
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 5630
  • Joined: 28-December 02

Posted 13 July 2014 - 03:56 PM

You may have to include the ip2country files in the files that throw errors.

There are know cryptopp errors that I know of - just warnings. That's related to the, well, "code-style" (or absence of it) of the cryptopp project and the enhanced warning-level used by eMule. I'm not sure which version I use, personally, but I think it's 5.6x
0

#10 User is offline   giquem 

  • Member
  • PipPip
  • Group: Members
  • Posts: 15
  • Joined: 10-May 14

Posted 13 July 2014 - 04:52 PM

View PosttHeWiZaRdOfDoS, on 13 July 2014 - 04:56 PM, said:

You may have to include the ip2country files in the files that throw errors.

There are know cryptopp errors that I know of - just warnings. That's related to the, well, "code-style" (or absence of it) of the cryptopp project and the enhanced warning-level used by eMule. I'm not sure which version I use, personally, but I think it's 5.6x

Hellow! You mean to add #include "ip2country.cpp" (and ip2country.h) in the beginning of the files? Is it a good option to merge from the MorphXT mod?

This post has been edited by giquem: 13 July 2014 - 04:56 PM

0

#11 User is offline   tHeWiZaRdOfDoS 

  • Man, what a bunch of jokers...
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 5630
  • Joined: 28-December 02

Posted 14 July 2014 - 06:39 AM

Not the .cpp, the .h file which declares the classes.
I didn't check Morph for a long time but I would prefer a mod with not so many additional features as a base as some features work together with others and merging requires some knowledge instead of pur copy & paste.
0

#12 User is offline   giquem 

  • Member
  • PipPip
  • Group: Members
  • Posts: 15
  • Joined: 10-May 14

Posted 14 July 2014 - 05:19 PM

View PosttHeWiZaRdOfDoS, on 14 July 2014 - 07:39 AM, said:

Not the .cpp, the .h file which declares the classes.
I didn't check Morph for a long time but I would prefer a mod with not so many additional features as a base as some features work together with others and merging requires some knowledge instead of pur copy & paste.

This is the result after adding IP2Country.h where it was necessary:
1>ClientList.obj : error LNK2001: símbolo externo "public: void __thiscall CUpDownClient::ResetIP2Country(unsigned int)" (?ResetIP2Country@CUpDownClient@@QAEXI@Z) sin resolver
1>IP2Country.obj : error LNK2001: símbolo externo "public: static int CPreferences::m_iIP2CountryNameMode" (?m_iIP2CountryNameMode@CPreferences@@2HA) sin resolver
1>ClientListCtrl.obj : error LNK2001: símbolo externo "public: static int CPreferences::m_iIP2CountryNameMode" (?m_iIP2CountryNameMode@CPreferences@@2HA) sin resolver
1>IP2Country.obj : error LNK2001: símbolo externo "public: static bool CPreferences::m_bIP2CountryShowFlag" (?m_bIP2CountryShowFlag@CPreferences@@2_NA) sin resolver
1>IP2Country.obj : error LNK2001: símbolo externo "public: void __thiscall CServerList::ResetIP2Country(void)" (?ResetIP2Country@CServerList@@QAEXXZ) sin resolver
1>IP2Country.obj : error LNK2001: símbolo externo "public: void __thiscall CServerListCtrl::RefreshAllServer(void)" (?RefreshAllServer@CServerListCtrl@@QAEXXZ) sin resolver
1>Release_vc9\emule.exe : fatal error LNK1120: 5 externos sin resolver

Any ideas? Thanks
0

#13 User is offline   tHeWiZaRdOfDoS 

  • Man, what a bunch of jokers...
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 5630
  • Joined: 28-December 02

Posted 15 July 2014 - 08:51 AM

Add the ip2 files to your project, so they are compiled and linked against.
0

  • Member Options

Page 1 of 1

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users