|
You last visited: Today at 16:42
Advertisement
TMap without VersionID
Discussion on TMap without VersionID within the 4Story forum part of the MMORPGs category.
03/16/2015, 21:40
|
#1
|
elite*gold: 0
Join Date: Mar 2015
Posts: 59
Received Thanks: 23
|
TMap without VersionID
Well i forgot where is my version id for tclient and where is my last source  ) ... i want to do tmap to running without checked version id...... well after "Wrong version id" kicked me ... what can i do ?
TMAP/CSHandler.cpp
PHP Code:
if( wVersion != TVERSION ) { pPlayer->SendCS_CONNECT_ACK(CN_INVALIDVER); return EC_SESSION_INVALIDCHAR; }
|
|
|
03/16/2015, 22:44
|
#2
|
elite*gold: 0
Join Date: May 2014
Posts: 91
Received Thanks: 9
|
It's fixed TMAP or ? because i have sometimes server crashed, (Tmap still online) only down serv need fix  what is so?
|
|
|
03/17/2015, 08:13
|
#3
|
elite*gold: 0
Join Date: Aug 2011
Posts: 662
Received Thanks: 658
|
Quote:
Originally Posted by Appius4S
Well i forgot where is my version id for tclient and where is my last source  ) ... i want to do tmap to running without checked version id...... well after "Wrong version id" kicked me ... what can i do ?
TMAP/CSHandler.cpp
PHP Code:
if( wVersion != TVERSION ) { pPlayer->SendCS_CONNECT_ACK(CN_INVALIDVER); return EC_SESSION_INVALIDCHAR; }
|
Why?
Excuse me, I didn't want to be rude, but why don't you use your brain.exe?
If you've already found the code that needs to be edited to fit your needs, why don't you simply edit it? Why have you opened a new thread because of that?
ps. you could just simply remove the whole code where it checks TVERSION in tmap's cshandler. Just remove it.
|
|
|
03/17/2015, 08:40
|
#4
|
elite*gold: 0
Join Date: Mar 2015
Posts: 59
Received Thanks: 23
|
Quote:
|
ps. you could just simply remove the whole code where it checks TVERSION in tmap's cshandler. Just remove it
|
Like this?
PHP Code:
if( wVersion ) { pPlayer->SendCS_CONNECT_ACK(CN_INVALIDVER); return EC_SESSION_INVALIDCHAR; }
I'm not good in c++ ....
but ... i want learn
|
|
|
03/17/2015, 10:25
|
#5
|
elite*gold: 192
Join Date: May 2009
Posts: 2,227
Received Thanks: 3,262
|
Quote:
Originally Posted by Appius4S
I'm not good in c++ ....
but ... i want learn 
|
Well, here is a good reference/beginner book. Have fun!
B2t: You have just to remove the entire code that you've posted from the source..
|
|
|
03/17/2015, 10:49
|
#6
|
elite*gold: 0
Join Date: Mar 2015
Posts: 59
Received Thanks: 23
|
Quote:
Originally Posted by Logtetsch
Well, here is a good reference/beginner book. Have fun!
B2t: You have just to remove the entire code that you've posted from the source..
|
i have do this .... but without success i got kick every time
Well guys i have do this but without success ....
PHP Code:
DWORD CTMapSvrModule::OnCS_CONNECT_REQ( LPPACKETBUF pBUF)
{
CTPlayer *pPlayer = (CTPlayer *) pBUF->m_pSESSION;
WORD wVersion;
pBUF->m_packet
>> wVersion;
/*if( wVersion != TVERSION )
{
pPlayer->SendCS_CONNECT_ACK(CN_INVALIDVER);
return EC_SESSION_INVALIDCHAR;
}*/
BYTE bChannel;
DWORD dwUserID;
DWORD dwID;
DWORD dwKEY;
DWORD dwIPAddr;
WORD wPort;
pBUF->m_packet
>> bChannel
>> dwUserID
>> dwID
>> dwKEY
>> dwIPAddr
>> wPort;
MAPPLAYER::iterator itCHAR = m_mapPLAYER.find(dwID);
if( itCHAR != m_mapPLAYER.end() )
{
CloseSession((*itCHAR).second);
if((*itCHAR).second->m_bExit)
{
MAPPLAYER::iterator itNew = m_mapSUSPENDER.find(dwID);
if(itNew != m_mapSUSPENDER.end())
{
(*itNew).second->m_dwID = 0;
CloseSession((*itNew).second);
m_mapSUSPENDER.erase(itNew);
}
pPlayer->m_bCloseAll = FALSE;
pPlayer->m_bChannel = bChannel;
pPlayer->m_dwUserID = dwUserID;
pPlayer->m_dwID = dwID;
pPlayer->m_dwKEY = dwKEY;
pPlayer->m_dwIPAddr = dwIPAddr;
pPlayer->m_wPort = wPort;
m_mapSUSPENDER.insert(MAPPLAYER::value_type(pPlayer->m_dwID, pPlayer));
return EC_NOERROR;
}
/*else
{
(*itCHAR).second->m_bCloseAll = TRUE;
pPlayer->m_bCloseAll = FALSE;
return EC_SESSION_INVALIDCHAR;
}*/
}
....
I want to thank you all for your help! Well I am glad that there are still people who help the so-called "Beginners" for free! I hope I can help and I will someday!
UP!
|
|
|
03/17/2015, 14:55
|
#7
|
elite*gold: 0
Join Date: Nov 2010
Posts: 214
Received Thanks: 171
|
This is an example
Quote:
if( wVersion != 258)
{
pPlayer->SendCS_CONNECT_ACK(CN_INVALIDVER);
return EC_SESSION_INVALIDCHAR;
}
|
|
|
|
03/17/2015, 15:03
|
#8
|
elite*gold: 0
Join Date: Mar 2015
Posts: 59
Received Thanks: 23
|
Quote:
Originally Posted by Sicarium
This is an example
|
but i don't remember the version id of tclient ... and i don't have source...
|
|
|
03/17/2015, 15:41
|
#9
|
elite*gold: 1
Join Date: Jan 2013
Posts: 899
Received Thanks: 689
|
then easily do
if( wVersion < 0)
{
pPlayer->SendCS_CONNECT_ACK(CN_INVALIDVER);
return EC_SESSION_INVALIDCHAR;
}
|
|
|
03/17/2015, 15:43
|
#10
|
elite*gold: 215
Join Date: May 2011
Posts: 217
Received Thanks: 461
|
If it donīt work with that comment-outed wVersion, problem is somewhere else, maybe if you are using odin source, there is one it isnīt bug, but itīs a ... ok find it yourself
|
|
|
03/17/2015, 15:49
|
#11
|
elite*gold: 0
Join Date: Mar 2015
Posts: 59
Received Thanks: 23
|
Quote:
Originally Posted by 121jirkus
If it donīt work with that comment-outed wVersion, problem is somewhere else, maybe if you are using odin source, there is one it isnīt bug, but itīs a ... ok find it yourself 
|
i don't use odin source .... tmap is from sicarium . Tlogin ,ctrl ,world and tclient is from e4story global , glossy
|
|
|
03/17/2015, 16:09
|
#12
|
elite*gold: 215
Join Date: May 2011
Posts: 217
Received Thanks: 461
|
And.. If you change it to that ok version, it works?
|
|
|
03/17/2015, 16:09
|
#13
|
elite*gold: 0
Join Date: Mar 2015
Posts: 59
Received Thanks: 23
|
Quote:
Originally Posted by iSuicideBomber
then easily do
if( wVersion < 0)
{
pPlayer->SendCS_CONNECT_ACK(CN_INVALIDVER);
return EC_SESSION_INVALIDCHAR;
}
|
don't work ...
Quote:
Originally Posted by 121jirkus
And.. If you change it to that ok version, it works?
|
i think so... but i don't know the corect version id of client ...
|
|
|
03/17/2015, 16:24
|
#14
|
elite*gold: 0
Join Date: Oct 2010
Posts: 546
Received Thanks: 152
|
You use our old E4story global client O_o, your server still be outdated
|
|
|
03/17/2015, 16:37
|
#15
|
elite*gold: 0
Join Date: Mar 2015
Posts: 59
Received Thanks: 23
|
yes is from 2014 ....
Quote:
send me the tclient, and a tlogin which may be compatible with the client (version doesnt matter)
i'll extract the version id for you
|
but he don't have free time for me now , is here any one who know how to do this ?
|
|
|
Similar Threads
|
[HELP]Second TMap
11/25/2014 - 4Story - 2 Replies
hello guys When i try launch second Tmap in services i got error someone know how i can fix it ? :(
Close Topic
|
TMAP Problem
03/19/2014 - 4Story - 6 Replies
Hello guys,i've got a problem with one service "TMAP",It starts,runs online for a while and then it crashes and all char name & country got changed random,someone know where can be the problem? Thank in advance :)
|
[HELP]CANT START TMAP[HELP]
01/21/2013 - 4Story - 3 Replies
i installed the server on my win7 (32bit) and cant start tmap
yes i started after tworld etc.. + checked the TServices_GSP its in C:
odbc done too
someone plz help :/
|
TMap Problem
12/29/2012 - 4Story - 1 Replies
#closerequest
|
how to creat a tmap ?
12/31/2010 - Cabal Private Server - 1 Replies
tmap.bin how to get files from the MCL.
could someone tell me or help me:confused:
|
All times are GMT +1. The time now is 16:42.
|
|