Jump to content

Juppsy

Inactive Member
  • Posts

    48
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by Juppsy

  1. Hello community, today I decided to upgrade boost-libs (1.55.0_10) and cryptopp (5.6.2_2) via pkg.

    I rezolved the compilation errors, but I have linking errors, most probably from cryptopp.

    Spoiler

    linking ../game_juppsy....

    OBJDIR/cipher.o:(.rodata._ZTVN8CryptoPP36CipherModeFinalTemplate_CipherHolderINS _16BlockCipherFinalILNS_9CipherDirE0ENS_7SHACAL23EncEEENS_20ConcretePolicyHolder INS_5EmptyENS_22AdditiveCipherTemplateINS_20AbstractPolicyHolderINS_28AdditiveCi pherAbstractPolicyENS_14CTR_ModePolicyEEEEESA_EEEE[_ZTVN8CryptoPP36CipherModeFin alTemplate_CipherHolderINS_16BlockCipherFinalILNS_9CipherDirE0ENS_7SHACAL23EncEE ENS_20ConcretePolicyHolderINS_5EmptyENS_22AdditiveCipherTemplateINS_20AbstractPo licyHolderINS_28AdditiveCipherAbstractPolicyENS_14CTR_ModePolicyEEEEESA_EEEE]+0x 15c): undefined reference to `CryptoPP::RandomNumberGenerator::GenerateIntoBuffe redTransformation(CryptoPP::BufferedTransformation&, std::__cxx11::basic_string< char, std::char_traits<char>, std::allocator<char> > const&, unsigned long long) '

    OBJDIR/cipher.o:(.rodata._ZTVN8CryptoPP36CipherModeFinalTemplate_CipherHolderINS _16BlockCipherFinalILNS_9CipherDirE0ENS_3TEA3EncEEENS_20ConcretePolicyHolderINS_ 5EmptyENS_22AdditiveCipherTemplateINS_20AbstractPolicyHolderINS_28AdditiveCipher AbstractPolicyENS_14CTR_ModePolicyEEEEESA_EEEE[_ZTVN8CryptoPP36CipherModeFinalTe mplate_CipherHolderINS_16BlockCipherFinalILNS_9CipherDirE0ENS_3TEA3EncEEENS_20Co ncretePolicyHolderINS_5EmptyENS_22AdditiveCipherTemplateINS_20AbstractPolicyHold erINS_28AdditiveCipherAbstractPolicyENS_14CTR_ModePolicyEEEEESA_EEEE]+0x15c): un defined reference to `CryptoPP::RandomNumberGenerator::GenerateIntoBufferedTrans formation(CryptoPP::BufferedTransformation&, std::__cxx11::basic_string<char, st d::char_traits<char>, std::allocator<char> > const&, unsigned long long)'

    OBJDIR/cipher.o:(.rodata._ZTVN8CryptoPP36CipherModeFinalTemplate_CipherHolderINS _16BlockCipherFinalILNS_9CipherDirE0ENS_8Blowfish4BaseEEENS_20ConcretePolicyHold erINS_5EmptyENS_22AdditiveCipherTemplateINS_20AbstractPolicyHolderINS_28Additive CipherAbstractPolicyENS_14CTR_ModePolicyEEEEESA_EEEE[_ZTVN8CryptoPP36CipherModeF inalTemplate_CipherHolderINS_16BlockCipherFinalILNS_9CipherDirE0ENS_8Blowfish4Ba seEEENS_20ConcretePolicyHolderINS_5EmptyENS_22AdditiveCipherTemplateINS_20Abstra ctPolicyHolderINS_28AdditiveCipherAbstractPolicyENS_14CTR_ModePolicyEEEEESA_EEEE ]+0x15c): undefined reference to `CryptoPP::RandomNumberGenerator::GenerateIntoB ufferedTransformation(CryptoPP::BufferedTransformation&, std::__cxx11::basic_str ing<char, std::char_traits<char>, std::allocator<char> > const&, unsigned long l ong)'

    OBJDIR/cipher.o:(.rodata._ZTVN8CryptoPP36CipherModeFinalTemplate_CipherHolderINS _16BlockCipherFinalILNS_9CipherDirE0ENS_3RC53EncEEENS_20ConcretePolicyHolderINS_ 5EmptyENS_22AdditiveCipherTemplateINS_20AbstractPolicyHolderINS_28AdditiveCipher AbstractPolicyENS_14CTR_ModePolicyEEEEESA_EEEE[_ZTVN8CryptoPP36CipherModeFinalTe mplate_CipherHolderINS_16BlockCipherFinalILNS_9CipherDirE0ENS_3RC53EncEEENS_20Co ncretePolicyHolderINS_5EmptyENS_22AdditiveCipherTemplateINS_20AbstractPolicyHold erINS_28AdditiveCipherAbstractPolicyENS_14CTR_ModePolicyEEEEESA_EEEE]+0x15c): un defined reference to `CryptoPP::RandomNumberGenerator::GenerateIntoBufferedTrans formation(CryptoPP::BufferedTransformation&, std::__cxx11::basic_string<char, st d::char_traits<char>, std::allocator<char> > const&, unsigned long long)'

    OBJDIR/cipher.o:(.rodata._ZTVN8CryptoPP36CipherModeFinalTemplate_CipherHolderINS _16BlockCipherFinalILNS_9CipherDirE0ENS_4SEED4BaseEEENS_20ConcretePolicyHolderIN S_5EmptyENS_22AdditiveCipherTemplateINS_20AbstractPolicyHolderINS_28AdditiveCiph erAbstractPolicyENS_14CTR_ModePolicyEEEEESA_EEEE[_ZTVN8CryptoPP36CipherModeFinal Template_CipherHolderINS_16BlockCipherFinalILNS_9CipherDirE0ENS_4SEED4BaseEEENS_ 20ConcretePolicyHolderINS_5EmptyENS_22AdditiveCipherTemplateINS_20AbstractPolicy HolderINS_28AdditiveCipherAbstractPolicyENS_14CTR_ModePolicyEEEEESA_EEEE]+0x15c) : undefined reference to `CryptoPP::RandomNumberGenerator::GenerateIntoBufferedT ransformation(CryptoPP::BufferedTransformation&, std::__cxx11::basic_string<char , std::char_traits<char>, std::allocator<char> > const&, unsigned long long)'

    OBJDIR/cipher.o:(.rodata._ZTVN8CryptoPP36CipherModeFinalTemplate_CipherHolderINS _16BlockCipherFinalILNS_9CipherDirE0ENS_8Camellia4BaseEEENS_20ConcretePolicyHold erINS_5EmptyENS_22AdditiveCipherTemplateINS_20AbstractPolicyHolderINS_28Additive CipherAbstractPolicyENS_14CTR_ModePolicyEEEEESA_EEEE[_ZTVN8CryptoPP36CipherModeF inalTemplate_CipherHolderINS_16BlockCipherFinalILNS_9CipherDirE0ENS_8Camellia4Ba seEEENS_20ConcretePolicyHolderINS_5EmptyENS_22AdditiveCipherTemplateINS_20Abstra ctPolicyHolderINS_28AdditiveCipherAbstractPolicyENS_14CTR_ModePolicyEEEEESA_EEEE ]+0x15c): more undefined references to `CryptoPP::RandomNumberGenerator::Generat eIntoBufferedTransformation(CryptoPP::BufferedTransformation&, std::__cxx11::bas ic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned  long long)' follow

    OBJDIR/cipher.o:(.rodata._ZTVN8CryptoPP20AutoSeededRandomPoolE[_ZTVN8CryptoPP20A utoSeededRandomPoolE]+0x34): undefined reference to `CryptoPP::RandomPool::Gener ateIntoBufferedTransformation(CryptoPP::BufferedTransformation&, std::__cxx11::b asic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigne d long long)'

    collect2: error: ld returned 1 exit status

    Makefile:118: recipe for target '../game_juppsy' failed (line: @echo linking $(TARGET)....)

    gmake: *** [../game_juppsy] Error 1

     

  2. You have a little mistake.

    On char_item.cpp part you have "estination_size" instread of "destination_size".

    Regards.

     

    #Edit:

    I tested it, it works good but my client syserr spam

    0415 19:07:11581 :: Cannot find item by 0

    Anyone know why?

    • Love 1
  3. Thanks again ... finally i knew what is the problem for 40k files :) and i'll share my code to people

    ... thanks to denis and shogun and .plechito' (i copyed some of your codes)

    uicharacter.py

    		for i in questRange[:questCount]:
    			(questName, questIcon, questCounterName, questCounterValue) = quest.GetQuestData(self.questShowingStartIndex+i)
    			# start colored scrolls
    			if questName[0] == '*':
    				questName = questName[1:]
    			elif questName[0] == '&':
    				questName = questName[1:]
    			elif questName[0] == '~':
    				questName = questName[1:]
    			elif questName[0] == '+':
    				questName = questName[1:]
    			# end colored scrolls
    			self.questNameList[i].SetText(questName)
    			self.questNameList[i].Show()
    			self.questLastCountList[i].Show()
    			self.questLastTimeList[i].Show()
    

    interfacemodule.py

    		QUESTICON = "%s/ui/questicon/" %(app.GetLocalePath(),)
    		
    		if name[0] == '*':
    			btn.SetUpVisual(QUESTICON + "scroll_close_green.tga")
    			btn.SetOverVisual(QUESTICON + "scroll_open_green.tga")
    			btn.SetDownVisual(QUESTICON + "scroll_open_green.tga")
    			name = name[1:]
    		elif name[0] == '&':
    			btn.SetUpVisual(QUESTICON + "scroll_close_blue.tga")
    			btn.SetOverVisual(QUESTICON + "scroll_open_blue.tga")
    			btn.SetDownVisual(QUESTICON + "scroll_open_blue.tga")
    			name = name[1:]
    		elif name[0] == '~':
    			btn.SetUpVisual(QUESTICON + "scroll_close_golden.tga")
    			btn.SetOverVisual(QUESTICON + "scroll_open_golden.tga")
    			btn.SetDownVisual(QUESTICON + "scroll_open_golden.tga")
    			name = name[1:]
    		elif name[0] == '+':
    			btn.SetUpVisual(QUESTICON + "scroll_close_purple.tga")
    			btn.SetOverVisual(QUESTICON + "scroll_open_purple.tga")
    			btn.SetDownVisual(QUESTICON + "scroll_open_purple.tga")
    			name = name[1:]
    		else:
    			btn.SetUpVisual(QUESTICON + "scroll_close_red.tga")
    			btn.SetOverVisual(QUESTICON + "scroll_open_red.tga")
    			btn.SetDownVisual(QUESTICON + "scroll_open_red.tga")
    
    		# END_OF_QUEST_LETTER_IMAGE

    just change the this line "QUESTICON = "%s/ui/questicon/" %(app.GetLocalePath(),)"

     

    questlib.lua (send_letter function)

    function send_letter(name)
    	local files = 
    	{
    		["*"] = "scroll_open_green.tga",
    		["~"] = "scroll_open_golden.tga",
    		["&"] = "scroll_open_blue.tga",
    		["+"] = "scroll_open_purple.tga",
    	}
    	local chr = string.sub(name,1,1)
    	if chr == '*' or chr == '~' or chr == '&' or chr == '+' then
    		q.set_icon(files[chr])
    	end
    	makequestbutton(name) 
    	set_skin(NOWINDOW) 
    	q.set_title(name) 
    	q.start() 
    end

    ok every thing now must work if you put the .tga file in this folder "d:/ymir work/ui/game/quest/questicon/" .

    if you put them in other folder the tut will fail .. open PlayerQuest.cpp in binary source

     

    and search for "if (!pQuestInstance->strIconFileName.empty())" in "questGetQuestData"

    and change the link to the folder

     

    if you want to put them in locale like me change the code to this

    	if (!pQuestInstance->strIconFileName.empty())
    	{
    		std::string strIconFileName (LocaleService_GetLocalePath());
    		strIconFileName += "/ui/questicon/";
    		strIconFileName += pQuestInstance->strIconFileName.c_str();
    		pImage = (CGraphicImage *)CResourceManager::Instance().GetResourcePointer(strIconFileName.c_str());
    	}

    sorry for my bad english

    best regards

     FlyGun :P

    I do like this but I have this problem:

    https://metin2.download/picture/3bd8HCx86IrXXOLs5q61mT7Tb49TwhPy/.jpg

  4. Go to your_client_source/UserInterface/GameType.h and after:

    #ifdef ENABLE_COSTUME_SYSTEM
        const DWORD c_Costume_Slot_Start    = c_Equipment_Start + 19;    // [ÁÖÀÇ] ¼ýÀÚ(19) ÇϵåÄÚµù ÁÖÀÇ. ÇöÀç ¼­¹ö¿¡¼­ ÄÚ½ºÃõ ½½·ÔÀº 19ºÎÅÍÀÓ. ¼­¹ö common/length.h ÆÄÀÏÀÇ EWearPositions ¿­°ÅÇü Âü°í.
        const DWORD    c_Costume_Slot_Body        = c_Costume_Slot_Start + 0;
        const DWORD    c_Costume_Slot_Hair        = c_Costume_Slot_Start + 1;
        const DWORD c_Costume_Slot_Count    = 2;
        const DWORD c_Costume_Slot_End        = c_Costume_Slot_Start + c_Costume_Slot_Count;
    #endif

    That:

    #ifdef ENABLE_MOUNT_COSTUME_SYSTEM
        const DWORD c_Costume_Mount_Slot_Start = c_Equipment_Start + 24; 
        const DWORD c_Costume_Mount_Slot_Shoulder = c_Costume_Slot_Start + 0;
        const DWORD c_Costume_Mount_Slot_Count = 1;
        const DWORD c_Costume_Mount_Slot_End = c_Costume_Mount_Slot_Start + c_Costume_Mount_Slot_Count;
    #endif

    Regards.

×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.