Jump to content

LordZiege

Seller
  • Posts

    136
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by LordZiege

  1. Thanks for release, but as far as i know it will not work with directx8, cause CreateOffscreenPlainSurface is not present there.

    Little snippet where you can capture the whole screen with directx8 (not only game window sadly)

    bool CPythonGraphic::SaveScreenShot()
    {
    	HRESULT hr;
    
    	D3DDISPLAYMODE mode;
    	if (FAILED(hr = ms_lpd3dDevice->GetDisplayMode(&mode))) {
    		TraceError("CPythonGraphic::SaveScreenShot() - GetDisplayMode failed!");
    		return false;
    	}
    
    	LPDIRECT3DSURFACE8 surf;
    	if (FAILED(hr = ms_lpd3dDevice->CreateImageSurface(mode.Width, mode.Height, D3DFMT_A8R8G8B8, &surf))) {
    		TraceError("CPythonGraphic::SaveScreenShot() - CreateImageSurface failed!");
    		return false;
    	}
    
    	if (FAILED(hr = ms_lpd3dDevice->GetFrontBuffer(surf))) {
    		TraceError("CPythonGraphic::SaveScreenShot() - GetFrontBuffer failed!");
    		surf->Release();
    		return false;
    	}
    	else
    	{
    		if (!CreateDirectory("screenshot", NULL) && ERROR_ALREADY_EXISTS != GetLastError()) {
    			TraceError("CPythonGraphic::SaveScreenShot() - Failed to create or find screenshot folder failed!");
    			return false;
    		}
    
    		SYSTEMTIME st;
    		GetSystemTime(&st);
    		char szFileName[MAX_PATH];
    		sprintf_s(szFileName, "screenshot/screenshot_%04d%02d%02d_%02d%02d%02d.bmp",
    			st.wYear, st.wMonth, st.wDay, st.wHour, st.wMinute, st.wSecond);
    
    		D3DXSaveSurfaceToFile(szFileName, D3DXIFF_BMP, surf, NULL, NULL);
    	}
    
    	if (surf)
    	{
    		surf->Release();
    		surf = nullptr;
    	}
    
    	return true;
    }

     

    • Good 1
  2. Hi guys,

    when switching from dynamic python library to static one, everthings working fine for now. (python version 2.7.6, the same version as the dynamic one that was in my client before).

    But everytime i close my client, this syserr shows up and i dont know how fix it. Anyone maybe has an idea?

     

    Spoiler
    Exception TypeError: "'NoneType' object is not callable" in <bound method Interface.__del__ of <interfaceModule.Interface object at 0x1A73ED50>> ignored
    Exception TypeError: "'NoneType' object is not callable" in <bound method UiRefineNewDialog.__del__ of <uirefine_new.UiRefineNewDialog object at 0x2B5F17D0>> ignored
    Exception TypeError: "'NoneType' object is not callable" in <bound method CheckBox.__del__ of <ui.CheckBox object at 0x2B591AF0>> ignored
    Exception TypeError: "'NoneType' object is not callable" in <bound method ImageBox.__del__ of <ui.ImageBox object at 0x2B591F50>> ignored
    Exception TypeError: "'NoneType' object is not callable" in <bound method TextLine.__del__ of <ui.TextLine object at 0x2B591F90>> ignored
    Exception TypeError: "'NoneType' object is not callable" in <bound method ImageBox.__del__ of <ui.ImageBox object at 0x2B591F70>> ignored
    Exception AttributeError: "'NoneType' object has no attribute '__del__'" in <bound method ItemToolTip.__del__ of <uiToolTip.ItemToolTip object at 0x2B591990>> ignored
    Exception TypeError: "'NoneType' object is not callable" in <bound method Bar.__del__ of <ui.Bar object at 0x2B591950>> ignored
    Exception TypeError: "'NoneType' object is not callable" in <bound method ExpandedImageBox.__del__ of <ui.ExpandedImageBox object at 0x2B591EB0>> ignored
    Exception TypeError: "'NoneType' object is not callable" in <bound method ExpandedImageBox.__del__ of <ui.ExpandedImageBox object at 0x2B591E90>> ignored
    Exception TypeError: "'NoneType' object is not callable" in <bound method ExpandedImageBox.__del__ of <ui.ExpandedImageBox object at 0x2B591E50>> ignored
    Exception TypeError: "'NoneType' object is not callable" in <bound method ExpandedImageBox.__del__ of <ui.ExpandedImageBox object at 0x2B591D50>> ignored
    Exception TypeError: "'NoneType' object is not callable" in <bound method ExpandedImageBox.__del__ of <ui.ExpandedImageBox object at 0x2B591F30>> ignored
    Exception TypeError: "'NoneType' object is not callable" in <bound method ExpandedImageBox.__del__ of <ui.ExpandedImageBox object at 0x2B591F10>> ignored
    Exception TypeError: "'NoneType' object is not callable" in <bound method ExpandedImageBox.__del__ of <ui.ExpandedImageBox object at 0x2B591EF0>> ignored
    Exception TypeError: "'NoneType' object is not callable" in <bound method ExpandedImageBox.__del__ of <ui.ExpandedImageBox object at 0x2B591ED0>> ignored
    Exception TypeError: "'NoneType' object is not callable" in <bound method Board.__del__ of <ui.Board object at 0x2B591870>> ignored
    Exception TypeError: "'NoneType' object is not callable" in <bound method ExpandedImageBox.__del__ of <ui.ExpandedImageBox object at 0x2B591890>> ignored
    Exception TypeError: "'NoneType' object is not callable" in <bound method ExpandedImageBox.__del__ of <ui.ExpandedImageBox object at 0x2B5918B0>> ignored
    Exception TypeError: "'NoneType' object is not callable" in <bound method ExpandedImageBox.__del__ of <ui.ExpandedImageBox object at 0x2B591850>> ignored
    Exception TypeError: "'NoneType' object is not callable" in <bound method ExpandedImageBox.__del__ of <ui.ExpandedImageBox object at 0x2B591830>> ignored
    Exception TypeError: "'NoneType' object is not callable" in <bound method ExpandedImageBox.__del__ of <ui.ExpandedImageBox object at 0x2B591810>> ignored
    Exception TypeError: "'NoneType' object is not callable" in <bound method ExpandedImageBox.__del__ of <ui.ExpandedImageBox object at 0x2B591930>> ignored
    Exception TypeError: "'NoneType' object is not callable" in <bound method ExpandedImageBox.__del__ of <ui.ExpandedImageBox object at 0x2B591910>> ignored
    Exception TypeError: "'NoneType' object is not callable" in <bound method ExpandedImageBox.__del__ of <ui.ExpandedImageBox object at 0x2B5918F0>> ignored
    Exception TypeError: "'NoneType' object is not callable" in <bound method ExpandedImageBox.__del__ of <ui.ExpandedImageBox object at 0x2B5918D0>> ignored
    Exception TypeError: "'NoneType' object is not callable" in <bound method ImageBox.__del__ of <ui.ImageBox object at 0x2B591CF0>> ignored
    Exception TypeError: "'NoneType' object is not callable" in <bound method ImageBox.__del__ of <ui.ImageBox object at 0x2B591E10>> ignored
    Exception TypeError: "'NoneType' object is not callable" in <bound method TextLine.__del__ of <ui.TextLine object at 0x2B591E70>> ignored
    Exception TypeError: "'NoneType' object is not callable" in <bound method ImageBox.__del__ of <ui.ImageBox object at 0x2B591DD0>> ignored
    Exception TypeError: "'NoneType' object is not callable" in <bound method TextLine.__del__ of <ui.TextLine object at 0x2B591E30>> ignored
    Exception TypeError: "'NoneType' object is not callable" in <bound method ImageBox.__del__ of <ui.ImageBox object at 0x2B591D90>> ignored
    Exception TypeError: "'NoneType' object is not callable" in <bound method TextLine.__del__ of <ui.TextLine object at 0x2B591DF0>> ignored
    Exception TypeError: "'NoneType' object is not callable" in <bound method ImageBox.__del__ of <ui.ImageBox object at 0x2B591D70>> ignored
    Exception TypeError: "'NoneType' object is not callable" in <bound method TextLine.__del__ of <ui.TextLine object at 0x2B591DB0>> ignored
    Exception TypeError: "'NoneType' object is not callable" in <bound method ImageBox.__del__ of <ui.ImageBox object at 0x2B591C70>> ignored
    Exception TypeError: "'NoneType' object is not callable" in <bound method Button.__del__ of <ui.Button object at 0x2B591D30>> ignored
    Exception TypeError: "'NoneType' object is not callable" in <bound method Button.__del__ of <ui.Button object at 0x2B591D10>> ignored
    Exception TypeError: "'NoneType' object is not callable" in <bound method ImageBox.__del__ of <ui.ImageBox object at 0x2B591BF0>> ignored
    Exception TypeError: "'NoneType' object is not callable" in <bound method SlotWindow.__del__ of <ui.SlotWindow object at 0x2B591CD0>> ignored
    Exception TypeError: "'NoneType' object is not callable" in <bound method ImageBox.__del__ of <ui.ImageBox object at 0x2B591CB0>> ignored
    Exception TypeError: "'NoneType' object is not callable" in <bound method ImageBox.__del__ of <ui.ImageBox object at 0x2B591BB0>> ignored
    Exception TypeError: "'NoneType' object is not callable" in <bound method SlotWindow.__del__ of <ui.SlotWindow object at 0x2B591C50>> ignored
    Exception TypeError: "'NoneType' object is not callable" in <bound method ImageBox.__del__ of <ui.ImageBox object at 0x2B591C30>> ignored
    Exception TypeError: "'NoneType' object is not callable" in <bound method ImageBox.__del__ of <ui.ImageBox object at 0x2B591C10>> ignored
    Exception TypeError: "'NoneType' object is not callable" in <bound method ImageBox.__del__ of <ui.ImageBox object at 0x2B591B70>> ignored
    Exception TypeError: "'NoneType' object is not callable" in <bound method TextLine.__del__ of <ui.TextLine object at 0x2B591BD0>> ignored
    Exception TypeError: "'NoneType' object is not callable" in <bound method ImageBox.__del__ of <ui.ImageBox object at 0x2B591B30>> ignored
    Exception TypeError: "'NoneType' object is not callable" in <bound method TextLine.__del__ of <ui.TextLine object at 0x2B591B90>> ignored
    Exception TypeError: "'NoneType' object is not callable" in <bound method ImageBox.__del__ of <ui.ImageBox object at 0x2B591AD0>> ignored
    Exception TypeError: "'NoneType' object is not callable" in <bound method TextLine.__del__ of <ui.TextLine object at 0x2B591B50>> ignored
    Exception TypeError: "'NoneType' object is not callable" in <bound method ImageBox.__del__ of <ui.ImageBox object at 0x2B591A90>> ignored
    Exception TypeError: "'NoneType' object is not callable" in <bound method TextLine.__del__ of <ui.TextLine object at 0x2B591B10>> ignored
    Exception TypeError: "'NoneType' object is not callable" in <bound method TitleBar.__del__ of <ui.TitleBar object at 0x2B5919B0>> ignored
    Exception TypeError: "'NoneType' object is not callable" in <bound method ImageBox.__del__ of <ui.ImageBox object at 0x2B591A10>> ignored
    Exception TypeError: "'NoneType' object is not callable" in <bound method ImageBox.__del__ of <ui.ImageBox object at 0x2B5919D0>> ignored
    Exception TypeError: "'NoneType' object is not callable" in <bound method TextLine.__del__ of <ui.TextLine object at 0x2B591A70>> ignored
    Exception TypeError: "'NoneType' object is not callable" in <bound method Button.__del__ of <ui.Button object at 0x2B591A30>> ignored
    Exception TypeError: "'NoneType' object is not callable" in <bound method TextLine.__del__ of <ui.TextLine object at 0x2B591A50>> ignored
    Exception TypeError: "'NoneType' object is not callable" in <bound method ExpandedImageBox.__del__ of <ui.ExpandedImageBox object at 0x2B5919F0>> ignored
    Exception TypeError: "'NoneType' object is not callable" in <bound method TextLine.__del__ of <ui.TextLine object at 0x2B591AB0>> ignored
    close failed in file object destructor:
    sys.excepthook is missing
    lost sys.stderr

     

     

  3. On 2/2/2023 at 8:39 AM, LordZiege said:

    Create a debug binary and run it through visual studio oder attach the process of the debug binary to visual studio. Then you will find the source parts which cause the crashes.

    You could find the problem easier, if you'd follow this. As @ Draveniou1also mentioned, you need to debug the client through visual studio to find the point where it fails.

    • Good 1
  4. 4 minutes ago, blaxis said:

    I did what you said but it didn't work because the counter is not 0. So I made the following edit:

    	if(mountSystem->CountSummoned() == 0)
    	{
    		mountSystem->Summon(mobVnum, mountItem, false);
    	}
    	else if(mountSystem->CountSummoned() == 1)
    	{
    		mountSystem->Mount(mobVnum, mountItem);
    		return;
    	}

    I've tried this before. But a problem occurs:

    spacer.png

     

    I also tried to stop the code with "return" by trying this way, but nothing changes as in GIF.

     

    	if(mountSystem->CountSummoned() == 1)
    	{
    		mountSystem->Mount(mobVnum, mountItem);
    		return;
    	}
    	if(mountSystem->CountSummoned() == 0)
    	{
    		mountSystem->Summon(mobVnum, mountItem, false);
    	}

     

    that gif is a known bug from that mount system renewal, thats why this system is shit. not the only bug, also there are attributes duplications etc.

  5. I found a little bug, if you have the same item as drop, both with count 1 but different pct, the target info only show the one with higher pct, but not that one with lower pct. Anyone has fixxed that problem? (When you make different counts, it works, only problem is with same count),

    mob_drop_item: https://metin2.download/picture/toa06GE8ClHUvcFZpA2V6HjqUCL4R7ok/.png

    ingame: https://metin2.download/picture/GPpRn94DBekNFWpa7r11Q3WB2UsWpPzQ/.png

  6. 4 hours ago, sefuthauy said:

    My server is private to myself only, how would someone gather the SQL Info?

    How they enter then via backdoor🤣? If its available on the internet, its easy to scan for open ports and brute force on that ports (ssh, mysql, etc.)

  7. 3 hours ago, sefuthauy said:

    Fuck your retarded backdoored server.

     

    Don't use, your MySQL database will be deleted completly and then they'll ask you to pay .25 BTC to restore.

    YFbp4TR.png

    Thats mostly when you use insecure mysql server installation with default mysql users. In 99% of time, its not a backdoor, only your own fault.

  8. 1 hour ago, xXIntelXx said:

    Just comment that:

    void CInstanceBase::PushTCPState(DWORD dwCmdTime, const TPixelPosition& c_rkPPosDst, float fDstRot, UINT eFunc, UINT uArg)
    {	
    	//if (__IsMainInstance())
    	//{
    	//	TraceError("CInstanceBase::PushTCPState Cannot Push TCPState on a main instance");
    	//	return;
    	//}
    
    	[...]
    }

     

    6n8a8p.jpg

    Also, if you want to comment, then please only the TraceError and not the whole if clause.

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