Jump to content

Kafa

Inactive Member
  • Posts

    269
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by Kafa

  1. Yes i also replaced scriptLib could be the reason why, i will try both solutions thank you ? 

    48 minutes ago, Catii said:

    I guess you added a new system and there is a mismatch with your Client src, I think in PythonUtils

     

    I replaced the old files now im getting this error:

     


    0518 13:54:06432 :: Traceback (most recent call last):

    0518 13:54:06432 ::   File "mouseModule.py", line 384, in Render

    0518 13:54:06433 :: OverflowError
    0518 13:54:06433 :: : 
    0518 13:54:06433 :: can't convert negative value to unsigned long
    0518 13:54:06433 :: 

     

    its only that left. ? 

     

    do you have any ideas bro?

     

     

     

     

    and @DrTurk thank you but your solution didnt help

  2. Hey guys,

     

    After i deleted foxfs & vfsfile & Cython on my Serverfile i got this Whitescreen after 

    character selection

     

    does anyone have ideas why something like this can happen? I dont expect you to fix my solution just some advices would be good so i can try something :((

     

    HLtVlpV.png

     

    here is a screen of the metin2window yes it looks exactly like this..

     

    here is the syserr:

     

     

    0518 11:57:00440 :: CSoundManager::PlayMusic - Failed to load stream sound : BGM/login_window.mp3
    0518 11:57:02571 :: mouseModule:371: RuntimeWarning: tp_compare didn't return -1 or -2 for exception
    
    0518 11:57:02571 :: Traceback (most recent call last):
    
    0518 11:57:02571 ::   File "mouseModule.py", line 371, in Update
    
    0518 11:57:02571 :: SystemError
    0518 11:57:02571 :: : 
    0518 11:57:02571 :: ..\Objects\longobject.c:998: bad argument to internal function
    0518 11:57:02571 :: 
    
    0518 11:57:02572 :: Traceback (most recent call last):
    
    0518 11:57:02572 ::   File "mouseModule.py", line 371, in Update
    
    0518 11:57:02572 :: SystemError
    0518 11:57:02572 :: : 
    0518 11:57:02572 :: ..\Objects\longobject.c:998: bad argument to internal function
    0518 11:57:02572 :: 
    
    0518 11:57:02572 :: Traceback (most recent call last):
    
    0518 11:57:02572 ::   File "mouseModule.py", line 371, in Update
    
    0518 11:57:02572 :: SystemError
    0518 11:57:02572 :: : 
    0518 11:57:02572 :: ..\Objects\longobject.c:998: bad argument to internal function
    0518 11:57:02572 :: 
    
    0518 11:57:02573 :: Traceback (most recent call last):
    
    0518 11:57:02573 ::   File "mouseModule.py", line 371, in Update
    
    0518 11:57:02573 :: SystemError
    0518 11:57:02573 :: : 
    0518 11:57:02573 :: ..\Objects\longobject.c:998: bad argument to internal function
    0518 11:57:02573 :: 
    
    0518 11:57:02573 :: Traceback (most recent call last):
    
    0518 11:57:02573 ::   File "mouseModule.py", line 371, in Update
    
    0518 11:57:02573 :: SystemError
    0518 11:57:02573 :: : 
    0518 11:57:02573 :: ..\Objects\longobject.c:998: bad argument to internal function
    0518 11:57:02573 :: 
    
    0518 11:57:02573 :: Traceback (most recent call last):
    
    0518 11:57:02573 ::   File "mouseModule.py", line 371, in Update
    
    0518 11:57:02573 :: SystemError
    0518 11:57:02573 :: : 
    0518 11:57:02573 :: ..\Objects\longobject.c:998: bad argument to internal function
    0518 11:57:02573 :: 
    
    0518 11:57:02573 :: Traceback (most recent call last):
    
    0518 11:57:02573 ::   File "mouseModule.py", line 371, in Update
    
    0518 11:57:02574 :: SystemError
    0518 11:57:02574 :: : 
    0518 11:57:02574 :: ..\Objects\longobject.c:998: bad argument to internal function
    0518 11:57:02574 :: 
    
    0518 11:57:02574 :: Traceback (most recent call last):
    
    0518 11:57:02574 ::   File "mouseModule.py", line 371, in Update
    
    0518 11:57:02574 :: SystemError
    0518 11:57:02574 :: : 
    0518 11:57:02574 :: ..\Objects\longobject.c:998: bad argument to internal function
    0518 11:57:02574 :: 
    
    0518 11:57:02574 :: Traceback (most recent call last):
    
    0518 11:57:02574 ::   File "mouseModule.py", line 371, in Update
    
    0518 11:57:02574 :: SystemError
    0518 11:57:02574 :: : 
    0518 11:57:02574 :: ..\Objects\longobject.c:998: bad argument to internal function
    0518 11:57:02574 :: 
    
    0518 11:57:02742 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/effect/etc/recuperation/full_potion.mse) Error
    0518 11:57:02742 :: CInstanceBase::RegisterEffect(eEftType=284, c_szEftAttachBone=, c_szEftName=d:/ymir work/effect/etc/recuperation/full_potion.mse, isCache=1) - Error
    0518 11:57:02868 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/effect/affect/damagevalue/bleed.mse) Error
    0518 11:57:02868 :: CInstanceBase::RegisterEffect(eEftType=286, c_szEftAttachBone=, c_szEftName=d:/ymir work/effect/affect/damagevalue/bleed.mse, isCache=1) - Error
    0518 11:57:02868 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/effect/affect/damagevalue/burn.mse) Error
    0518 11:57:02868 :: CInstanceBase::RegisterEffect(eEftType=287, c_szEftAttachBone=, c_szEftName=d:/ymir work/effect/affect/damagevalue/burn.mse, isCache=1) - Error
    0518 11:57:02868 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/effect/success.mse) Error
    0518 11:57:02868 :: CInstanceBase::RegisterEffect(eEftType=266, c_szEftAttachBone=, c_szEftName=d:/ymir work/effect/success.mse, isCache=1) - Error
    0518 11:57:02868 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/effect/fail.mse) Error
    0518 11:57:02868 :: CInstanceBase::RegisterEffect(eEftType=267, c_szEftAttachBone=, c_szEftName=d:/ymir work/effect/fail.mse, isCache=1) - Error
    0518 11:57:03924 :: Traceback (most recent call last):
    
    0518 11:57:03924 ::   File "uiPhaseCurtain.py", line 55, in OnUpdate
    
    0518 11:57:03924 ::   File "networkModule.py", line 161, in __ChangePhaseWindow
    
    0518 11:57:03924 ::   File "new_introselect.py", line 357, in Open
    
    0518 11:57:03924 ::   File "ui.py", line 4319, in LoadScriptFile
    
    0518 11:57:03924 ::   File "ui.py", line 4540, in LoadChildren
    
    0518 11:57:03924 ::   File "ui.py", line 4466, in LoadChildren
    
    0518 11:57:03924 ::   File "ui.py", line 5002, in LoadElementThinBoardCircle
    
    0518 11:57:03924 ::   File "ui.py", line 4546, in CheckKeyList
    
    0518 11:57:03925 :: SystemError
    0518 11:57:03925 :: : 
    0518 11:57:03925 :: ..\Objects\longobject.c:998: bad argument to internal function
    0518 11:57:03925 :: 
    
    0518 11:57:03925 :: mouseModule:384: RuntimeWarning: tp_compare didn't return -1 or -2 for exception
    
    0518 11:57:03925 :: Traceback (most recent call last):
    
    0518 11:57:03925 ::   File "mouseModule.py", line 384, in Render
    
    0518 11:57:03925 :: SystemError
    0518 11:57:03925 :: : 
    0518 11:57:03925 :: ..\Objects\longobject.c:998: bad argument to internal function
    0518 11:57:03926 :: 
    
    0518 11:57:03944 :: Traceback (most recent call last):
    
    0518 11:57:03944 ::   File "mouseModule.py", line 384, in Render
    
    0518 11:57:03944 :: SystemError
    0518 11:57:03944 :: : 
    0518 11:57:03944 :: ..\Objects\longobject.c:998: bad argument to internal function
    0518 11:57:03944 :: 
    
    0518 11:57:03959 :: Traceback (most recent call last):
    
    0518 11:57:03959 ::   File "mouseModule.py", line 384, in Render
    
    0518 11:57:03959 :: SystemError
    0518 11:57:03959 :: : 
    0518 11:57:03959 :: ..\Objects\longobject.c:998: bad argument to internal function
    0518 11:57:03959 :: 
    
    0518 11:57:03975 :: Traceback (most recent call last):
    
    0518 11:57:03975 ::   File "mouseModule.py", line 384, in Render
    
    0518 11:57:03975 :: SystemError
    0518 11:57:03975 :: : 
    0518 11:57:03975 :: ..\Objects\longobject.c:998: bad argument to internal function
    0518 11:57:03975 :: 
    
    0518 11:57:03992 :: Traceback (most recent call last):
    
    0518 11:57:03992 ::   File "mouseModule.py", line 384, in Render
    
    0518 11:57:03992 :: SystemError
    0518 11:57:03992 :: : 
    0518 11:57:03992 :: ..\Objects\longobject.c:998: bad argument to internal function
    0518 11:57:03992 :: 
    
    0518 11:57:04009 :: Traceback (most recent call last):
    
    0518 11:57:04009 ::   File "mouseModule.py", line 384, in Render
    
    0518 11:57:04009 :: SystemError
    0518 11:57:04009 :: : 
    0518 11:57:04009 :: ..\Objects\longobject.c:998: bad argument to internal function
    0518 11:57:04009 :: 
    
    0518 11:57:04025 :: Traceback (most recent call last):
    
    0518 11:57:04025 ::   File "mouseModule.py", line 384, in Render
    
    0518 11:57:04025 :: SystemError
    0518 11:57:04025 :: : 
    0518 11:57:04025 :: ..\Objects\longobject.c:998: bad argument to internal function
    0518 11:57:04025 :: 
    
    0518 11:57:04042 :: Traceback (most recent call last):
    
    0518 11:57:04042 ::   File "mouseModule.py", line 384, in Render
    
    0518 11:57:04042 :: SystemError
    0518 11:57:04042 :: : 
    0518 11:57:04042 :: ..\Objects\longobject.c:998: bad argument to internal function
    0518 11:57:04042 :: 
    
    0518 11:57:04058 :: Traceback (most recent call last):
    
    0518 11:57:04058 ::   File "mouseModule.py", line 384, in Render
    
    0518 11:57:04058 :: SystemError
    0518 11:57:04058 :: : 
    0518 11:57:04058 :: ..\Objects\longobject.c:998: bad argument to internal function
    0518 11:57:04058 :: 
    
    0518 11:57:04075 :: Traceback (most recent call last):
    
    0518 11:57:04075 ::   File "mouseModule.py", line 384, in Render
    
    0518 11:57:04075 :: SystemError
    0518 11:57:04075 :: : 
    0518 11:57:04075 :: ..\Objects\longobject.c:998: bad argument to internal function
    0518 11:57:04075 :: 
    

     

  3.  

    15 minutes ago, Vanilla said:

    beep beep beep boop boop beep bopp

     

    beep beep beep. boop. beep boop beep.

     

    (translates to: locale_find: LOCALE_ERROR: "beep beep beep boop boop beep bopp beep beep beep. boop. beep boop beep.")

     

    Let's stick to our newest addition to our collection. Neurooooooooooooooooooooo *dramatic music plays here*

     

    Beep Beep Booooooooooop!

    translates to:(nanobegin

     

    Armadillo nanomite protection);

     

     

    • Love 1
  4. 6 hours ago, Speachless said:

    In void CNewPetActor::Unsummon()

     

    Replace

    ITEM_MANAGER::instance().FindByVID(this->GetSummonItemVID())->GetID()

    
     ITEM_MANAGER::instance().FindByVID(this->GetSummonItemVID())->GetID()

    With

    pSummonItem->GetID()

    
    pSummonItem->GetID()

     

     

    Thanks! (You're close to being a junior og)

  5. Hey guys, im currently trying to code some parts of monster card (just the loading part of .txt and some functions, later i will pay a developer to do the rest)

    but i'm getting a unhandled exception error i attached the proces to visual studio after the login it crashs and the error is "unhandled exception ..."

     

    here is the function

     

    bool CPythonPlayer::LoadMonsterCard(const char* c_szFileName)
    {
    	const VOID* pvData;
    	CMappedFile kFile;
    	if (!CEterPackManager::Instance().Get(kFile, c_szFileName, &pvData))
    		return false;
    
    	CMemoryTextFileLoader kTextFileLoader;
    	kTextFileLoader.Bind(kFile.Size(), pvData);
    
    	CTokenVector kTokenVector;
    	for (DWORD i = 0; i < kTextFileLoader.GetLineCount(); ++i)
    	{
    		if (!kTextFileLoader.SplitLineByTab(i, &kTokenVector))
    			continue;
    
    		int pkMap2, pkMap3 = 0;
    
    		int pkGroup = std::stoi(kTokenVector[MONSTER_CARD_GROUP]);
    		int pkIndex = std::stoi(kTokenVector[MONSTER_CARD_INDEX]);
    		int pkVnum = std::stoi(kTokenVector[MONSTER_CARD_VNUM]);
    		int pkType = std::stoi(kTokenVector[MONSTER_CARD_TYPE]);
    		int pkMap1 = std::stoi(kTokenVector[MONSTER_CARD_MAP1]);
    		pkMap2 = std::stoi(kTokenVector[MONSTER_CARD_MAP2]);
    		pkMap3 = std::stoi(kTokenVector[MONSTER_CARD_MAP3]);
    
    		TMonsterCardTable * pTable = new TMonsterCardTable;
    		pTable->pkGroup = pkGroup;
    		pTable->pkIndex = pkIndex;
    		pTable->pkVnum = pkVnum;
    		pTable->pkType = pkType;
    		pTable->pkMap1 = pkMap1;
    		pTable->pkMap2 = pkMap2;
    		pTable->pkMap3 = pkMap3;
    		m_MonsterCardDataMap.insert(TMonsterCardTableDataMap::value_type(pkIndex, pTable));
    		if (pTable->pkType == 0) m_iMonsterCardDataSoloMax++;
    		if (pTable->pkType == 1) m_iMonsterCardDataPartyMax++;
    	}
    
    	if (m_MonsterCardDataMap.size() > 0)
    		SetLoadMonsterCard(true);
    	else
    		SetLoadMonsterCard(false);
    }

     

    the result of attaching the process is this line: int pkGroup = std::stoi(kTokenVector[MONSTER_CARD_GROUP]);

     

    Can someone help me? unfortunatly i do not understand anything about coding i just copy & paste & use my brain :(

    @WeedHex @VegaS™ @Nirray

     

     

    €dit: problem solved with the solution of vegas, thank you!! 

  6. 13 hours ago, Denis said:

    Take a look into setcell func or equipitem, there you can iterate through equip slots and count if the vnums you want are equiped

     

    Hey Denis,

     

    first of all thank you for answer, but there is no function called SetCell and in EquipItem i do not know howto remove the affect, if the condition isnt correct anymore.

     

    edit:

     

    i have done it now this way:

     

    in setwear

  7. Hey guys, i want to create a new Special bonus depending on which Equipment Part (checked by vnum) is equipped. So i tried this with the updatepacket function in Char.cpp but i hardcoded it a lot and i actually didnt knew how to do it correct.

     

    For example if two of 3 Costume Hair/Weapon/Armor equipped then give a AddAffect Bonus and if 3 are equipped then increase one of the values or even add new bonus. this should be depending on vnum..

    Can someone help me please ? I don’t even think the UpdatePacket function is the correct place to do this. :(
     

    @VegaS™@Nirray

     

    sorry Vegas for always quoting you but you always help :D

  8. Hey guys, im trying to do my own System instead of using public stuff (:D) 

     

    i have a problem with setevent on a button, if i do this:

     

     

    i get a error like this: LuckyBoxWindow.LoadDialog.BindObject - <type 'exceptions.AttributeError'>:'Button' object has no attribute 'im_func'

     

    	def __Window(self):
    		try:
    			LoadPython = ui.PythonScriptLoader()
    			LoadPython.LoadScriptFile(self, "UIScript/luckyboxwindow.py")
    		except:
    			import exception
    			exception.Abort("LuckyBoxWindow.__LoadScript.LoadObject")
    		try:
    			GetObject = self.GetChild
    			self.board = GetObject("board")
    			self.titleBar = GetObject("LuckyBox_TitleBar")
    			self.LuckyBox_Reward = GetObject("LuckyBox_Reward") #Zielitem Slot
    			self.LuckyBox_Name = GetObject("LuckyBox_Name") #Ergänzung Slot
    			self.RewardItemSlot = GetObject("RewardItemSlot") #Bonus hinzufügen Slot
    			self.RetryButton = GetObject("RetryButton") # Fragezeichen - Systemerklärung
    			self.RecvButton = GetObject("RecvButton") #Succestext
    			self.Notice_Yang = self.GetChild("Notice_Yang")
    			self.RecycleTitleName = self.GetChild("RecycleTitleName")
    			self.NeedMoneySlot = self.GetChild("NeedMoneySlot")
    			self.NeedMoney = self.GetChild("NeedMoney")
    		except:
    			import exception
    			exception.Abort("LuckyBoxWindow.LoadDialog.BindObject")
    		self.titleBar.SetCloseEvent(ui.__mem_func__(self.Close))
    		self.NeedMoney.Hide()
    		self.RewardItemSlot.SetOverInItemEvent(ui.__mem_func__(self.__OnOverInItem))
    		self.RewardItemSlot.SetOverOutItemEvent(ui.__mem_func__(self.__OnOverOutItem))
    
    		self.RetryButton.SetEvent(ui.__mem_func__(self.RetryButton))
    		self.RecvButton.SetEvent(ui.__mem_func__(self.RecvButton))
    
    		self.pos = int(pos)
    		self.dwBoxVnum = int(itemVnum)
    		self.current_trys = int(trys)
    		self.start_gold = int(start_gold)
    		self.reward_vnum = int(reward_vnum)
    
    		self.tooltipItem = uiToolTip.ItemToolTip()
    		self.tooltipItem.Hide()

     

    @VegaS™ @Nirray @xP3NG3Rx 

     

     

    @Gurgarath

     

    Please buddys, try to help me :(

  9. 32 minutes ago, Nirray said:


    PythonItemModule.cpp

    
    PyObject * itemGetItemNameByVnum(PyObject * poSelf, PyObject * poArgs)
    {
    	int iIndex;
    	if (!PyTuple_GetInteger(poArgs, 0, &iIndex))
    		return Py_BadArgument();
    
    	if (!CItemManager::Instance().SelectItemData(iIndex))
    	{
    		TraceError("Cannot find item by %d", iIndex);
    		return Py_BuildNone(); // or
    		// CItemManager::Instance().SelectItemData(60001);
    	}
    
    	CItemData * pItemData = CItemManager::Instance().GetSelectedItemDataPointer();
    	if (!pItemData)
    		return Py_BuildException("no selected item data");
    
    	return Py_BuildValue("s", pItemData->GetName());
    }

    and 

    
    { "GetItemNameByVnum",					itemGetItemNameByVnum,						METH_VARARGS },

     

     

    Now i have 3 people to quote if i need help (Nirray, Vegas, Penger) ❤️

     

    Thank you guys (vegas,nirray) 

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