Jump to content
  • 0

Strange Problem With Loading Clans/clan Wars


Question

Posted

Hi,

 

on some machines I encounter this problem:

 

06/17/2016 04:36:05.828, [NO ERROR] JobType: 6 Duration: 30/30sec  
06/17/2016 04:36:05.828, Problem occurred in Loading Declared War
06/17/2016 04:36:35.827, [NO ERROR] JobType: 8 Duration: 30/30sec  
06/17/2016 04:36:35.827, Problem occurred in Loading Pledge [1]
06/17/2016 04:36:35.829, Problem occurred in Loading Pledge [2]
 
Tried to analyze what's wrong and I think it's related somehow to some IO threads, that don't execute as expected (it seems like there's some thing that prevents packets coming from cached to be processed). For time reasons, I stopped with this and wrote simple workaround involving some function hooking, mutexes and conditional variables, so all those operations run in threads which are fine and "bad" threads only wait on conditional variable until "alternative" thread finishes its work. So now everything loads fine:
 
06/15/2016 00:05:18.083, [NO ERROR] JobType: 6 Duration: 0/30sec  
06/15/2016 00:05:18.124, [NO ERROR] JobType: 8 Duration: 0/600sec  
 
Does anyone encounter the same problem? Did anyone come with a better solution (or at least better analysis)?
 

4 answers to this question

Recommended Posts

  • 0
Posted (edited)

DB errors if i remember correctly  - that makes cached go hicky hicky once sending packets to l2server upon startup.

Verify ALL fields have correct data in the value-types their declared for said pledges in ALL pledge tables.

 

Nothing to do with internal network\memory.

 

...but i can only check over a week from now so.

Edited by mcbigmac
  • 0
Posted

Hi,

 

I see no error in logs :( Are there any "silent" errors that don't show up in error log?

It's really strange because when I run the code in other thread, it runs fine:


void __cdecl Server::CPledgeInitPledge()
{
	for (;;) {
		Sleep(100);
		ScopedLock lock(pledgeInitCS);
		if (pledgeInitialized) {
			break;
		}
	}
	reinterpret_cast<void(*)()>(0x5F4EAC)();
}

void __cdecl Server::CDominionInitDominion()
{
	reinterpret_cast<void(*)()>(0x5EA29C)();
	reinterpret_cast<void(*)()>(0x7D831C)();
	ScopedLock lock(pledgeInitCS);
	pledgeInitialized = true;
}

...

WriteInstructionCall(0x6B24B9, reinterpret_cast<UINT32>(CDominionInitDominion));
WriteInstructionCall(0x6915D3, reinterpret_cast<UINT32>(CPledgeInitPledge));
NOPMemory(0x7D853E, 5);

and no errors are shown in L2Server...

 

Maybe it has something to do with running in virtual machine (but it does in both VirtualBox and KVM-QEMU)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • Added FloodProtector utility to prevent packet flooding for actions like item use and dice rolling. Integrated flood protection checks in relevant client packet handlers and registered/removal hooks in player lifecycle. Updated movement logic in L2PcInstance for improved position synchronization and geodata handling. Minor fixes and refactoring in attack logic, private store handling, and admin NPC editing. Refactored AI classes to enhance movement, attack, and skill usage logic for characters and mobs. Improved distance checks, attack range calculations, and skill casting conditions. Removed unused intention command logic from L2CharacterAI. Updated configuration to enable CellPathFinding. Minor code cleanups and bug fixes for more reliable AI behavior. Enhanced GeoPathFinding with detailed debug and error messages for region loading, including success/failure counts and file checks. Refactored L2AttackableAI and L2CharacterAI to improve attack range tolerance, immediate attack behavior, and added safety checks for missing targets. Updated configuration to disable CellPathFinding by default and added a new ShowRedName option for aggressive mobs. Minor config and log updates included. Applied TCP socket optimizations (e.g., TCP_NODELAY, buffer sizes, keepalive) in ClientThread, Connection, and SelectorThread to reduce latency and improve throughput. Enhanced L2AttackableAI with better random walk, aggro, and attack logic, including silent move checks, quest monster handling, and improved faction/raid/minion behavior. Added silent move support to L2PlayableInstance and quest monster flag to L2NpcTemplate/L2NpcInstance. These changes aim to improve server responsiveness, AI realism, and overall stability.
    • I’ve been using this Escape from Tarkov Hack for about a week now with no issues at all. ESP works great without any lag, and the aimbot is smooth and doesn't feel obvious. Had a quick setup with the loader, and support answered my questions right away. The HWID spoofer also did its job without messing with my system. So far, the cheat's staying undetected on my side.
    • Hello everyone, this is ADENA L2REBORN / LU4 / MASTERWORK We also have items, epics, etc. discord - adver745645 Our prices are reasonable, so have a nice shopping and a nice day.
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock