santa12
-
Posts
71 -
Joined
-
Last visited
-
Feedback
0%
Content Type
Forums
Store
Third Party - Providers Directory
Feature Plan
Release Notes
Docs
Events
Posts posted by santa12
-
-
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 1Any idea?
My makefile:
-
12 hours ago, ReFresh said:
Link patch: Google drive - dont work
-
Hi, I remember that once this window was on the internet but I can't find it now, does anyone have a download?
-
hello is it safe to do cooldown for 1 second using questflag? or maybe there are better solutions for such short cooldowns than questflag what do you think, how would you do a cooldown for 1 second or less questflag or no?
give some examples and explain why
-
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
-
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
-
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?
- 1
-
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 -
8 minutes ago, Kidro said:
change auto_ptr with unique_ptr
I've done that before - no change
This is what the original files look like without editing. There has always been a problem with shared_ptr
PythonRaking.cpp
PyhonRanking.h
-
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
PyhonRanking.h
-
Hello, I am looking for a person who will help me call a button on the keyboard, e.g. F5, F6, A, B, C by clicking a button in the game, e.g. some gui.
Hope you know what I mean. Can anybody help me?
wants to trigger in-game keyboard clicking in the button
-
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)
-
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; }
-
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
-
Hello anyone know why is this happening? db.core spits errors like this
- 1
-
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) -
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;
} -
On 4/28/2020 at 11:18 PM, bogdan1809 said:
have you fixed it already? I have a solution, write to PW
-
18 hours ago, Asentrix said:
it comes from here:
local price, owner, guild_level_limit = building.get_land_info(land_id)
so it takes the price, level from ALUA(building_get_land_info)
(game/questlua_building.cpp)
check it, you should be able to change it from there
editing in this file does nothing.
-
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
-
if bad department then sorry.
I am looking for a cheap programmer on commission, these will be minor corrections to the already existing code. Write priv on forum right away with your name discord
-
anyone know what might be going on? Standard files
-
Hello, someone knows how to fix it when I'm on ch1 and another person on ch2, I can't write to her. I can't write in general chat, just everyone is offline
-
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 1My makefile: https://pastebin.com/HMjsRRdY
Python gui coordinates
in Community Support - Questions & Answers
Posted
Hi i am looking function in python to find X and Y position from gui, does anyone have something like this? i don't want to restart client 9999 times. i hover over and it shows gui coordinates