Official eMule-Board: [help]sources - Official eMule-Board

Jump to content


Page 1 of 1

[help]sources How to change the name?

#1 User is offline   daviduzzolo 

  • /* No Comment */
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 471
  • Joined: 08-July 04

Posted 23 December 2004 - 08:52 AM

Hi all :)

I tried to mode eMule. I donwload the sources, I optimize eMule for my CPU and others changes. All work very fine, but I would to change the name of the client from eMule 0.44d to eMule 0.44d - daviduzzolo version.

I don't want to distribute my mode, but it's only a my fixation :D

Somebody can help me?

Thanks and Merry Christmas :xlaugh:
Search befor posting!!!
Somebody Hep Me???
user posted image
Help in Italiano? eMuleItalia.net & in IRC join #emule-italian - sever ircchat.emule-project.net
La guida completa in italiano di eMule č eMule.it
My Blog :P

Sorry for my english :P
0

#2 User is offline   birk 

  • Room To Let
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 5524
  • Joined: 23-May 03

Posted 23 December 2004 - 02:23 PM

This is not the completely right place to ask this question but I will leave it here. Have you tried searching the source code for that string? :)
0

#3 User is offline   daviduzzolo 

  • /* No Comment */
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 471
  • Joined: 08-July 04

Posted 23 December 2004 - 02:32 PM

I tried to search for this streang in all files, but nothing :(

Sorry for the mistake, and please move the 3d in the right place.
Search befor posting!!!
Somebody Hep Me???
user posted image
Help in Italiano? eMuleItalia.net & in IRC join #emule-italian - sever ircchat.emule-project.net
La guida completa in italiano di eMule č eMule.it
My Blog :P

Sorry for my english :P
0

#4 User is offline   birk 

  • Room To Let
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 5524
  • Joined: 23-May 03

Posted 23 December 2004 - 02:39 PM

Tried looking for it myself but no luck here either. Will leave it here to see if someone know it. :)
0

#5 User is offline   daviduzzolo 

  • /* No Comment */
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 471
  • Joined: 08-July 04

Posted 23 December 2004 - 02:41 PM

THX :)
Search befor posting!!!
Somebody Hep Me???
user posted image
Help in Italiano? eMuleItalia.net & in IRC join #emule-italian - sever ircchat.emule-project.net
La guida completa in italiano di eMule č eMule.it
My Blog :P

Sorry for my english :P
0

#6 User is offline   engarmano 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 78
  • Joined: 20-November 04

Posted 24 December 2004 - 08:42 AM

search for this in emuleDlg.cpp
//set title  	
CString buffer = _T("eMule v");    
buffer += theApp.m_strCurVersionLong;  	
SetWindowText(buffer);


just change it to
//set title  	
CString buffer = _T("eMule v");    
buffer += theApp.m_strCurVersionLong; 
buffer += " - daviduzzolo version";
SetWindowText(buffer);

happy MOD :+1:
[emule 0.47c][Windows Vista 64-Bit][3.0GHz][3071MB]
Special Thanks To <a href="http://www.emule-project.net/home/perl/general.cgi?l=1&rm=team" target="_blank">eMule Team</a>
The name <b>"eMule"</b> comes from an animal called <b>"Mule"</b> which is somehow similar to a <b><!--sizeo:2--><span style="font-size:10pt;line-height:100%"><!--/sizeo--><!--coloro:green--><span style="color:green"><!--/coloro-->DONKEY<!--sizec--></span><!--/sizec--><!--colorc--></span><!--/colorc--></b>, So give it some jobs and it will complete them, Be ‏Patience and Don't beat it.
0

#7 User is offline   daviduzzolo 

  • /* No Comment */
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 471
  • Joined: 08-July 04

Posted 24 December 2004 - 04:24 PM

Thanks a lot :clap: :clap: :clap:
Search befor posting!!!
Somebody Hep Me???
user posted image
Help in Italiano? eMuleItalia.net & in IRC join #emule-italian - sever ircchat.emule-project.net
La guida completa in italiano di eMule č eMule.it
My Blog :P

Sorry for my english :P
0

#8 User is offline   skolnick 

  • Minister of Black and Hidden Arts in the New World Order
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1871
  • Joined: 10-February 04

Posted 24 December 2004 - 05:07 PM

I think that will change the name of the window only, but, if I understood correctly, the original poster wants to change also the way the MOD identifies itself to other clients, doesn't it?

Regards.

There are 10 kinds of people: Those who can count in binary, and those who can't.
--Anonymous--

"There was me...that is Alex, and my three droogs; that is Pete, Georgie and Dim. And we sat at the Korova Milk Bar, trying to make up our rasoodocks what to do with the evening..."
-- Alexander DeLarge, A Clockwork Orange --
0

#9 User is offline   engarmano 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 78
  • Joined: 20-November 04

Posted 25 December 2004 - 02:11 AM

Of course, it will change the text of the emule window only but not actually change the emule version that other clients can see
Other clients will still detect him as "eMule v0.44d".

but i think he want that? :confused:
[emule 0.47c][Windows Vista 64-Bit][3.0GHz][3071MB]
Special Thanks To <a href="http://www.emule-project.net/home/perl/general.cgi?l=1&rm=team" target="_blank">eMule Team</a>
The name <b>"eMule"</b> comes from an animal called <b>"Mule"</b> which is somehow similar to a <b><!--sizeo:2--><span style="font-size:10pt;line-height:100%"><!--/sizeo--><!--coloro:green--><span style="color:green"><!--/coloro-->DONKEY<!--sizec--></span><!--/sizec--><!--colorc--></span><!--/colorc--></b>, So give it some jobs and it will complete them, Be ‏Patience and Don't beat it.
0

#10 User is offline   daviduzzolo 

  • /* No Comment */
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 471
  • Joined: 08-July 04

Posted 25 December 2004 - 01:42 PM

skolnick said:

I think that will change the name of the window only, but, if I understood correctly, the original poster wants to change also the way the MOD identifies itself to other clients, doesn't it?
Yes!!! Do you know the part of the source I must to change?
Search befor posting!!!
Somebody Hep Me???
user posted image
Help in Italiano? eMuleItalia.net & in IRC join #emule-italian - sever ircchat.emule-project.net
La guida completa in italiano di eMule č eMule.it
My Blog :P

Sorry for my english :P
0

#11 User is offline   skolnick 

  • Minister of Black and Hidden Arts in the New World Order
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1871
  • Joined: 10-February 04

Posted 26 December 2004 - 02:06 AM

I think you will not find the string by itself in the code, since the protocol is made of bytes, not plain chars. I don't know the exact part of the code where you should change this, all I can tell you is that this is specified in the extended emule hello, there is where the client identifies itself as an emule client or MOD. If you find where that is, I could help you figuring out what to write down, but maybe is easier to ask in the development forum.

Regards.

There are 10 kinds of people: Those who can count in binary, and those who can't.
--Anonymous--

"There was me...that is Alex, and my three droogs; that is Pete, Georgie and Dim. And we sat at the Korova Milk Bar, trying to make up our rasoodocks what to do with the evening..."
-- Alexander DeLarge, A Clockwork Orange --
0

#12 User is offline   engarmano 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 78
  • Joined: 20-November 04

Posted 26 December 2004 - 03:06 AM

its more complivated,i didn't try it, but when i try to compare the emule source with mod source, i found that they
1-declare two cstring variables in emule.h
public:
CString  m_strModVersion;
CString  m_strModLongVersion;

2-create new headerfile "ModName.h" and define these variables: (those variables defines ur modname and version)
#define MOD_VERSION_MJR	1
#define MOD_VERSION_MIN	18  
#define	MOD_VERSION	_T("Test")
#define	MOD_LONG_VERSION	_T("Test v")

3-Include this file in "emule.cpp"
4-now,in the file emule.cpp at CemuleApp::CemuleApp(LPCTSTR lpszAppName)
u will find a comment
// MOD Note: Do not change this part - Merkur
code
// MOD Note: end

of course u must not change this code, but after it write those lines
m_strModVersion = MOD_VERSION;
m_strModVersion.AppendFormat(_T(" %u.%u"), MOD_VERSION_MJR,MOD_VERSIaON_MIN);  	
m_strModLongVersion = MOD_LONG_VERSION;
m_strModLongVersion.AppendFormat(_T("%u.%u"), MOD_VERSION_MJR,MOD_VERSION_MIN);

5-now,u can neglect my first post and use this code: (in emuledlg.cpp)
//set title   
CString buffer = _T("eMule v");    
buffer += theApp.m_strCurVersionLong; 
buffer += " " + theApp.m_strModLongVersion;
SetWindowText(buffer);


6-if u use the feature "Show transfer rates on title" u must change the line in "PPgDisplay.cpp":
Change
_stprintf(buffer,_T("eMule v%s"),theApp.m_strCurVersionLong);

to
_stprintf(buffer,_T("eMule v%s [%s]"),theApp.m_strCurVersionLong,theApp.m_strModLongVersion);


7-Last Step
Sorry But i didn't find the last step, which send ur emule mod version to other clients, I think its somewhere in "BaseClient.cpp", i'm still searching 4 it,i will tell u if i find it.
I think its only one line remaining.

President Birk, can u move this topic to developers forum

skolnick, on Dec 26 2004, 04:06 AM, said:

but maybe is easier to ask in the development forum.
View Post

and we can find more help there.
thanks
[emule 0.47c][Windows Vista 64-Bit][3.0GHz][3071MB]
Special Thanks To <a href="http://www.emule-project.net/home/perl/general.cgi?l=1&rm=team" target="_blank">eMule Team</a>
The name <b>"eMule"</b> comes from an animal called <b>"Mule"</b> which is somehow similar to a <b><!--sizeo:2--><span style="font-size:10pt;line-height:100%"><!--/sizeo--><!--coloro:green--><span style="color:green"><!--/coloro-->DONKEY<!--sizec--></span><!--/sizec--><!--colorc--></span><!--/colorc--></b>, So give it some jobs and it will complete them, Be ‏Patience and Don't beat it.
0

#13 User is offline   daviduzzolo 

  • /* No Comment */
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 471
  • Joined: 08-July 04

Posted 26 December 2004 - 01:49 PM

Thx engarmano, now I try this and and I'll say you the result :)
Search befor posting!!!
Somebody Hep Me???
user posted image
Help in Italiano? eMuleItalia.net & in IRC join #emule-italian - sever ircchat.emule-project.net
La guida completa in italiano di eMule č eMule.it
My Blog :P

Sorry for my english :P
0

#14 User is offline   SlugFiller 

  • The one and only master slug
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 6988
  • Joined: 15-September 02

Posted 26 December 2004 - 06:11 PM

ModID is available in the code snippets section under "Three protocol extensions". It includes both sending and receiving(displaying). It's not 100% up to date with the latest eMule, but for the most part the code can be used as-is, while in other parts the official already provides the code you need.
The sending part, if you choose to implement only this, is only a couple of lines, so it shouldn't be hard to spot it in the patch and use it.

This post has been edited by SlugFiller: 26 December 2004 - 06:14 PM

Why haven't you clicked yet?

SlugFiller rule #1: Unsolicited PMs is the second most efficient method to piss me off.
SlugFiller rule #2: The first most efficient method is unsolicited eMails.
SlugFiller rule #3: If it started in a thread, it should end in the same thread.
SlugFiller rule #4: There is absolutely no reason to perform the same discussion twice in parallel, especially if one side is done via PM.
SlugFiller rule #5: Does it say "Group: Moderators" under my name? No? Then stop telling me about who you want to ban! I really don't care! Go bother a moderator.
SlugFiller rule #6: I can understand English, Hebrew, and a bit of Japanese(standard) and Chinese(mandarin), but if you speak to me in anything but English, do expect to be utterly ignored, at best.
0

#15 User is offline   daviduzzolo 

  • /* No Comment */
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 471
  • Joined: 08-July 04

Posted 27 December 2004 - 07:31 AM

Great support for me :clap: :clap:

I tried how engarmano posted and using the sources of the Morph I understood how to modifie all :) All work very well :)

Now I try the SlugFiller method.

Tnx a lot :)
Search befor posting!!!
Somebody Hep Me???
user posted image
Help in Italiano? eMuleItalia.net & in IRC join #emule-italian - sever ircchat.emule-project.net
La guida completa in italiano di eMule č eMule.it
My Blog :P

Sorry for my english :P
0

#16 User is offline   engarmano 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 78
  • Joined: 20-November 04

Posted 27 December 2004 - 08:58 AM

Thanks SlugFiller 4 this good topic,

daviduzzolo, To test ur eMule after modifications:
Add urself in friends list
Ip:127.0.0.1 (loopback)
Port:4662 (ur emule port)
UserName: (anything)

rightclick--->send message----> (type anything)
if the connection successed, new window appear with ur message.
now dblclick on ur name, and check ur version.

note that: u must disable the ipfilter
[emule 0.47c][Windows Vista 64-Bit][3.0GHz][3071MB]
Special Thanks To <a href="http://www.emule-project.net/home/perl/general.cgi?l=1&rm=team" target="_blank">eMule Team</a>
The name <b>"eMule"</b> comes from an animal called <b>"Mule"</b> which is somehow similar to a <b><!--sizeo:2--><span style="font-size:10pt;line-height:100%"><!--/sizeo--><!--coloro:green--><span style="color:green"><!--/coloro-->DONKEY<!--sizec--></span><!--/sizec--><!--colorc--></span><!--/colorc--></b>, So give it some jobs and it will complete them, Be ‏Patience and Don't beat it.
0

#17 User is offline   daviduzzolo 

  • /* No Comment */
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 471
  • Joined: 08-July 04

Posted 29 December 2004 - 11:23 AM

I tried, all work :)

Thanks a lot :)
Search befor posting!!!
Somebody Hep Me???
user posted image
Help in Italiano? eMuleItalia.net & in IRC join #emule-italian - sever ircchat.emule-project.net
La guida completa in italiano di eMule č eMule.it
My Blog :P

Sorry for my english :P
0

  • Member Options

Page 1 of 1

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