tristano98 6 Posted September 26, 2017 Share Posted September 26, 2017 Hello guys, i add the target system in my server but when I click the button the client returns to login and I have these syserr Syserr core ch1 : UNKNOWN HEADER: 59, LAST HEADER: 0(0), REMAIN BYTES: 6, fd: 20 Syserr client : Spoiler Traceback (most recent call last): File "ui.py", line 1369, in CallEvent File "ui.py", line 88, in __call__ File "ui.py", line 70, in __call__ File "uiTarget.py", line 550, in OnPressedInfoButton File "uiTarget.py", line 141, in Open File "uiTarget.py", line 165, in __LoadInformation File "uiTarget.py", line 232, in __LoadInformation_Race ValueError: incomplete format How to fix? Link to comment Share on other sites More sharing options...
Developer Ikarus_ 2421 Posted September 26, 2017 Developer Share Posted September 26, 2017 the channel error describes an unknown header packet. This happens in two cases: If you did not insert the "case HEADER_NUMBER_56" (with another name obviously) in input_main.cpp, or if you did not run the "Set" for the package Set (HEADER_NUMBER_56, sizeof (struct_packet_num_56), false) ; (with another name obviously) I recommend you to review the installation of the system in the following files in game / src: packet.h, packet_info.cpp, input_main.cpp The second error is most likely caused by the first ... it speaks of a missing value not found while it try to write race information (the string formats are incomplete). So now fix the first problem , after that we can see for second (if it persists) My youtube channel on which you can see my works here Link to comment Share on other sites More sharing options...
tristano98 6 Posted September 26, 2017 Author Share Posted September 26, 2017 2 hours ago, riku11 said: the channel error describes an unknown header packet. This happens in two cases: If you did not insert the "case HEADER_NUMBER_56" (with another name obviously) in input_main.cpp, or if you did not run the "Set" for the package Set (HEADER_NUMBER_56, sizeof (struct_packet_num_56), false) ; (with another name obviously) I recommend you to review the installation of the system in the following files in game / src: packet.h, packet_info.cpp, input_main.cpp The second error is most likely caused by the first ... it speaks of a missing value not found while it try to write race information (the string formats are incomplete). So now fix the first problem , after that we can see for second (if it persists) 56 ? 59 ??? in my packet.h add Spoiler HEADER_GC_TARGET = 63, #ifdef __SEND_TARGET_INFO__ HEADER_GC_TARGET_INFO = 58, HEADER_CG_TARGET_INFO_LOAD = 59, #endif in my packet_info.cpp add Spoiler Set(HEADER_CG_STATE_CHECKER, sizeof(BYTE), "ServerStateCheck", false); #ifdef __SEND_TARGET_INFO__ Set(HEADER_CG_TARGET_INFO_LOAD, sizeof(TPacketCGTargetInfoLoad), "TargetInfoLoad", true); #endif in my input_main.cpp add Spoiler case HEADER_CG_XTRAP_ACK: { TPacketXTrapCSVerify* p = reinterpret_cast<TPacketXTrapCSVerify*>((void*)c_pData); CXTrapManager::instance().Verify_CSStep3(d->GetCharacter(), p->bPacketData); } break; #ifdef __SEND_TARGET_INFO__ case HEADER_CG_TARGET_INFO_LOAD: { TargetInfoLoad(ch, c_pData); } break; #endif But not work Link to comment Share on other sites More sharing options...
Premium North 1171 Posted September 26, 2017 Premium Share Posted September 26, 2017 2 hours ago, riku11 said: the channel error describes an unknown header packet. This happens in two cases: If you did not insert the "case HEADER_NUMBER_56" (with another name obviously) in input_main.cpp, or if you did not run the "Set" for the package Set (HEADER_NUMBER_56, sizeof (struct_packet_num_56), false) ; (with another name obviously) I recommend you to review the installation of the system in the following files in game / src: packet.h, packet_info.cpp, input_main.cpp The second error is most likely caused by the first ... it speaks of a missing value not found while it try to write race information (the string formats are incomplete). So now fix the first problem , after that we can see for second (if it persists) I think it`s the `integrity` of the packet that gives the error, as you can see from the python backtrace it should be a uitarget problem, but still tristano check your packets and if they are matching then post uitarget. Link to comment Share on other sites More sharing options...
tristano98 6 Posted September 26, 2017 Author Share Posted September 26, 2017 9 minuti fa, Fleon ha detto: Penso che sia l'integrità del pacchetto che dà l'errore, come si può vedere da python backtrace dovrebbe essere un uitarget problema, ma ancora tristano controllare i pacchetti e se corrispondono poi uitarget post. il mio uitarget.py https://pastebin.com/1hWHeTjx Link to comment Share on other sites More sharing options...
Developer Ikarus_ 2421 Posted September 26, 2017 Developer Share Posted September 26, 2017 Sorry i mean 59 man. Search this TARGET_INFO_SUBRACE in locale_interface.txt ( if there isn't it , search in locale_game.txt ) and post it. Search in client source (userinterface/packet.h) the header number 59 and post it. The line "#define __SEND_TARGET_INFO__" is included into packet.h (game src)? post the "#include" at the beginning of packet.h Which file did you put "#define __SEND_TARGET_INFO__"? My youtube channel on which you can see my works here Link to comment Share on other sites More sharing options...
Premium North 1171 Posted September 26, 2017 Premium Share Posted September 26, 2017 The problem is into your localeInfo.TARGET_INFO_SUBRACE , just google the python error and you will get the solution, now its up to you fixing it 1 Link to comment Share on other sites More sharing options...
tristano98 6 Posted September 26, 2017 Author Share Posted September 26, 2017 in locale_interface.txt is not present ... in locale game is this : TARGET_INFO_SUBRACE Subspecies : %s in packet.h (binary) is present HEADER_CG_TARGET_INFO_LOAD = 59 IN THE PACKET.H (GAME SRC) Is included Link to comment Share on other sites More sharing options...
Developer Ikarus_ 2421 Posted September 26, 2017 Developer Share Posted September 26, 2017 Sei Italiano eh asd. Stai inviando i quote tradotti ahah. Non voglio parlare in Italiano altrimenti nessun altro capisce , però non hai inviato gli "#include" all'inizio del packet.h del game/src Send the "#include" at the beginning of packet.h if you have not "#include" at beginning of file , add : #include "../../common/service.h" if your "#define __SEND....BLABLA" line is in that file 20 minutes ago, Fleon said: The problem is into your localeInfo.TARGET_INFO_SUBRACE , just google the python error and you will get the solution, now its up to you fixing it no man I do not think so. 2 My youtube channel on which you can see my works here Link to comment Share on other sites More sharing options...
tristano98 6 Posted September 26, 2017 Author Share Posted September 26, 2017 1 hour ago, riku11 said: Sei Italiano eh asd. Stai inviando i quote tradotti ahah. Non voglio parlare in Italiano altrimenti nessun altro capisce , però non hai inviato gli "#include" all'inizio del packet.h del game/src Send the "#include" at the beginning of packet.h if you have not "#include" at beginning of file , add : #include "../../common/service.h" if your "#define __SEND....BLABLA" line is in that file no man I do not think so. i'm add #include "../../common/service.h" in packet.h and solved crahs Fix client error : the error is the tab in locale_game.txt SOLVED, special thx @riku11 Link to comment Share on other sites More sharing options...
Developer Ikarus_ 2421 Posted September 26, 2017 Developer Share Posted September 26, 2017 1 hour ago, tristano98 said: i'm add #include "../../common/service.h" in packet.h and solved crahs Fix client error : the error is the tab in locale_game.txt SOLVED, special thx @riku11 ahah so @Fleon is the real man of situation ahah 1 My youtube channel on which you can see my works here Link to comment Share on other sites More sharing options...
Premium North 1171 Posted September 26, 2017 Premium Share Posted September 26, 2017 Sono north babbi 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now