Jump to content

santa12

Member
  • Posts

    71
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by santa12

  1. Hi when i try add -static to my makefile in gcc10 on freebsd 12.3 i have this errors:

     

    /usr/local/bin/ld: /usr/lib/liblzma.a(check.o): in function `lzma_sha256_init':
    /usr/src/contrib/xz/src/liblzma/check/check.h:143: undefined reference to `_libm                                                                                                                                                             d_SHA256_Init'
    /usr/local/bin/ld: /usr/lib/liblzma.a(check.o): in function `lzma_sha256_update'                                                                                                                                                             :
    /usr/src/contrib/xz/src/liblzma/check/check.h:160: undefined reference to `_libm                                                                                                                                                             d_SHA256_Update'
    /usr/local/bin/ld: /usr/lib/liblzma.a(check.o): in function `lzma_sha256_finish'                                                                                                                                                             :
    /usr/src/contrib/xz/src/liblzma/check/check.h:167: undefined reference to `_libm                                                                                                                                                             d_SHA256_Final'
    collect2: error: ld returned 1 exit status
    gmake: *** [Makefile:196: ../game_r] Error 1

     

    Any idea?

     

    My makefile:

    https://pastebin.com/Uwsq6Pyk

  2. Hi my client source use python 2.7.6 but I can't find a build anywhere for visual studio 2019 so i use 2.7.10

    the situation is that I can't replace files in client source because there are errors, but I did so using 2.7.6 include in the client source + replaced lib and .dll with 2.7.10. the situation looks like it works fine now but i'm afraid of these include

    e.g. in old files I have disabled #define BYTE char but in new lib, dll are enabled. There are more of these changes, but the size of the dll and lib is similar to the old files.

    what can such action result in? I am a bit afraid but it seems that everything works. Or rather, I should replace everything

     

    [IN SHORT]

    I have replaced Extern/lib/python.lib and Client/python.dll      but not  Extern/include/Python   (but I don't see any bugs when I join game myself)

    can anyone tell what this can cause? Or if someone has a compiler ready he can send it

  3. On 9/10/2021 at 8:26 AM, TMP4 said:

    You do 2 things wrong. First is the ">", you should use "==". Second you are checking the shop owner player id every time instead of the current character.

    	if (m_pkPC->GetPrivShopOwner() == ch->GetPlayerID())
    	{
    		ch->ChatPacket(CHAT_TYPE_INFO, "You can't buy from yourself.");
    		return SHOP_SUBHEADER_GC_SOLD_OUT;
    	}

    Also GetPrivShopOwner is not exists by default (it is some offline shop?) but for simple shop you can use m_pkPC->GetPlayerID() too.
    +1 your GetPrivShopOwner does actually returns the player id? If it returns something else, it will not works.

    Thanks ❤️ Check private messages

  4. hello i'm trying to block the shop owner to buy his own items, i try many phrases but each time a different player can't buy either... Currently, I am testing, although there were many more attempts, I started with the standard function

    	if (m_pkPC->GetPrivShopOwner() > m_pkPC->GetPlayerID())
    	{
    		ch->ChatPacket(CHAT_TYPE_INFO, "You cant but.");
    		return SHOP_SUBHEADER_GC_SOLD_OUT;
    	}

    no matter what I do, once it is running, no other player can buy either. Any ideas?

    • Good 1
  5. I have wasted so many hours and I still don't know why I can't connect to class in python ....

    i want to create new class and button eg. self.GameWindow.siralamaopen()  or self.interface.siralamaopen() but always ERROR FUC*ING ERROR

    will someone help me explain how to connect these functions from scratch? I have no idea anymore, I never want to work.

    I have now reverted everything I edited to its original state, can anyone help me with this and explain why he never wants to act?


    My code now

    https://pastebin.com/7C25j1Em

  6. Hi, could you please help me upgrade to Visual Studio 2013? Currently I have yes, but I always have a bug.

    I've changed most, made a million tries but still don't understand why I can't compile

    i try this with unique_ptr / auto_ptr / shared_ptr / but nothing

     

    Error    27    error C2664: 'bool (__vectorcall *)(std::auto_ptr<CPythonRanking::SRankingData> &)' : cannot convert argument 1 from 'const std::auto_ptr<CPythonRanking::SRankingData>' to 'std::auto_ptr<CPythonRanking::SRankingData> &'    C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\algorithm    44    1    UserInterface
     

    my current files:

    PythonRaking.cpp

    https://pastebin.com/j6MDesD5

    PyhonRanking.h

    https://pastebin.com/FRBq2W8M

  7. Hi, I have a problem with cython, namely with cython turned off = then python works fine but on cython I have a problem with the cPickle function.

    when booting cython source client, cPickle import exits the game completely without any errors. Does anyone know why this is happening? Does cython have a problem using this function? Apparently it's some python function

     

    in short, a client built in the new language cython does not detect this function at all and is nowhere in the client

     

    sample code that uses this

    	def LoadConfigurations(self):
    		try:
    			f = open('settings/switchbot.pkl', 'rb')
    			self.dict = cPickle.load(f)
    			f.close()
    		except IOError:
    			self.dict = {}	
    		
    		self.listBox.RemoveAllItems()
    			
    		lineWidth = self.listBox.GetWidth()
    		if len(self.dict) > self.__GetViewItemCount():	
    			lineWidth -= 20
    			
    		self.__AdjustScrollbar()
    			
    		for key in self.dict.iterkeys():
    			config = self.dict.get(key, None)
    			if not config:
    				continue
    				
    			line = self.ConfigurationLine(lineWidth)
    			line.Load(key, config["name"])
    			line.SetLoadEvent(ui.__mem_func__(self.__OnApplyConfiguration))
    			line.SetDeleteEvent(ui.__mem_func__(self.__OnDeleteConfiguration))
    			self.listBox.AppendItem(line)
    			
    			self.listItems[key] = line
    
    	def SaveConfigurations(self):
    		with open('settings/switchbot.pkl', 'wb') as f:
    			cPickle.dump(self.dict, f)

     

  8. Hello, how to write a function that, after doing something, the server will type the command like a game master?

    i tried to do via chatpacket: CHAT_TYPE_COMMAND - but on the server the command does not enter / syslog / syser works fine

    I want the server to just type any administrator command when a player does something forbidden. But I don't know how to get started and all chatpacket won't work

     

    Examples: 

    	if (!pkSafebox || !pkItem)
    	{
    		ch->ChatPacket(CHAT_TYPE_INFO, "Test the message");
    		ch->ChatPacket(CHAT_TYPE_COMMAND, "hbann_hwid %s", GetName());
    		sys_err("TEST %s", ch->GetName());
    		return;
    	}

     

  9. 53 minutes ago, Ikarus_ said:

    I think you are trying to read a stripped file. 

    When game and db are linked they got all debug information used from gdb to read where is it crashing.

    The process called stripping remove the debug symbols from the executable (and so reduce its size).

    Unfortunately doesn't give any information try to read a db.core using a stripped db file.

    You have to find the unstripped file and to read its symbol table.


    You might have a "-s" flag to your linking commands in your makefile that strip the output file automatically.

     

    I deleted the strip a long time ago

  10. hello, from time to time I have such errors when I enter the game. Db and game don't close, the whole server is working normally. But it spits such mistakes at me

    Anybody knows what's going on?

     

    SYSERR: Oct 26 09:35:43 :: ChildLoop: MySQL connection was reconnected. querying locale set
    Oct 26 09:35:43 ::     --mysql_set_character_set(latin2)

  11. Hi anyone know how to trigger this fix? I have a feeling it doesn't work. Possibly anyone knows how to convert it to work?

    file exchange.cpp - in the bool CExchange::Accept(bool bAccept)

     

     

            if (quest::CQuestManager::instance().GetPCForce(GetOwner()->GetPlayerID())->IsRunning() == true)
            {
                GetOwner()->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("You cannot trade if you're using quests"));
                victim->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("You cannot trade if the other part using quests"));
                goto EXCHANGE_END;
            }
            else if (quest::CQuestManager::instance().GetPCForce(victim->GetPlayerID())->IsRunning() == true)
            {
                victim->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("You cannot trade if you're using quests"));
                GetOwner()->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("You cannot trade if the other part using quests"));
                goto EXCHANGE_END;
            }

  12. On 4/28/2020 at 11:18 PM, bogdan1809 said:

    Version of Files XXX

    Hello,

     

    1. Description of the problem / Question :

    Today i tested to implement elemental bonuses but if i set the bonuses in Proto i got this:

     

    spacer.png

     

    but if i set by setting bonuses normal i got the right stuff:

     

    spacer.png

     

    Thanks,

     

     

    have you fixed it already? I have a solution, write to PW

  13. Hello, I can't see the guild site build settings anywhere, I searched all files with a notepad and I can't find anything about editing building settings. Namely, now I have to be level 10 guild and have 700,000 yang but I don't see any function where I can set it

    the quest features are literally spirit, that is nowhere to be found in WTF

     

    Quest: https://pastebin.com/21C04kHV

     

    2d9wX0s.png

  14. Hello, I do not understand this error, in addition I have gcc49 and here I am showing some funny gcc48. Anyone know what's going on?

     

    /usr/local/bin/ld: .obj/ClientManagerPlayer.o: undefined reference to symbol '_Znaj@@GLIBCXX_3.4'
    //usr/local/lib/gcc48/libstdc++.so.6: error adding symbols: DSO missing from command line
    collect2: error: ld returned 1 exit status
    gmake: *** [Makefile:51: ../db] Error 1

     

    My makefile: https://pastebin.com/HMjsRRdY

×
×
  • 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.