Worldserver buffer overrun

12/29/2017 18:41 firesqual#1
Hello,

I have an issue when i'm trying to start my worldserver with official v16 maps

If i remove WdMadrigal from CoreServer.ini, Worldserver will launch fine, if i put it back it will crash BUT if i remove 4/5 more maps but keep WdMadrigal, it will work fine again. I wonder if there is a map count limit or something like that..

Here is my debug :

[Only registered and activated users can see links. Click Here To Register...]


If someone would help me ! Would be much appreciated =)
12/29/2017 19:59 Sedrika#2
You're probably spawning to much monsters.
12/29/2017 22:03 firesqual#3
Is there a way to maybe increase the maximum spawn limit or maybe delay the spawn so the world don't spawn too much monsters at the same time ?
12/30/2017 15:29 - DK#4
Go in Source -> Wordfile.cpp and look for BOOL CWorld::ReadRespawn( CScript& s )
then you can edit as example:
Code:
pInfo->m_nMaxcb		 = s.GetNumber();
to
Code:
#ifdef __INCREASED_SPAWN
	if( dwType == OT_MOVER )
	{
		long nMobSpawn = (long)( s.GetNumber() * 1.25F );
		if( nMobSpawn > 64 )
			nMobSpawn = 64;
		pInfo->m_nMaxcb = nMobSpawn;
	}
	else
		pInfo->m_nMaxcb = s.GetNumber();
#else // __INCREASED_SPAWN
	pInfo->m_nMaxcb		 = s.GetNumber();
#endif // __INCREASED_SPAWN
1.25f is the Rate of Monster Spawning -> 1.0 is normal | Double Monster Spawns -> 2.0 (Giants too)..
12/30/2017 16:59 Nortix#5
Quote:
Originally Posted by DK ACE View Post
Go in Source -> Wordfile.cpp and look for BOOL CWorld::ReadRespawn( CScript& s )
then you can edit as example:
Code:
pInfo->m_nMaxcb		 = s.GetNumber();
to
Code:
#ifdef __INCREASED_SPAWN
	if( dwType == OT_MOVER )
	{
		long nMobSpawn = (long)( s.GetNumber() * 1.25F );
		if( nMobSpawn > 64 )
			nMobSpawn = 64;
		pInfo->m_nMaxcb = nMobSpawn;
	}
	else
		pInfo->m_nMaxcb = s.GetNumber();
#else // __INCREASED_SPAWN
	pInfo->m_nMaxcb		 = s.GetNumber();
#endif // __INCREASED_SPAWN
1.25f is the Rate of Monster Spawning -> 1.0 is normal | Double Monster Spawns -> 2.0 (Giants too)..
He *maybe* has a problem that too many movers are spawned and you suggest to spawn even more?
12/30/2017 17:23 - DK#6
Quote:
Originally Posted by Nortix View Post
He *maybe* has a problem that too many movers are spawned and you suggest to spawn even more?
This was a option to increase and decrease the spawn.. :rtfm::rolleyes:
12/30/2017 20:36 firesqual#7
Well that doesnt really help me since my problem is that too many movers are spawning at the same time (i think)
12/31/2017 22:30 xTwiLightx#8
Quote:
Originally Posted by firesqual View Post
Well that doesnt really help me since my problem is that too many movers are spawning at the same time (i think)
That would be causing a buffer overflow (and only if a buffer size is not enough for something) or 100% CPU usage (for whatever reason), but not an AfxMemoryException I guess.

It would be interesting how much RAM you have and how much memory your Worldserver needs when that crash occurs. It might be that 2,1GB are exceeded, which is the limit for 32bit applications.
01/01/2018 16:50 cookie69#9
Quote:
Originally Posted by xTwiLightx View Post
That would be causing a buffer overflow (and only if a buffer size is not enough for something) or 100% CPU usage (for whatever reason), but not an AfxMemoryException I guess.

It would be interesting how much RAM you have and how much memory your Worldserver needs when that crash occurs. It might be that 2,1GB are exceeded, which is the limit for 32bit applications.
Taken from [Only registered and activated users can see links. Click Here To Register...] "On x86, applications have 2GB of virtual memory out of 4GB (the other 2GB are reserved for the system).
On x64, these two other GB can now be accessed by 32bit applications.
In order to achieve this, a flag has to be set in the file's internal format..."

That limit can be bypassed in a x64 bits OS according to this guy but this is not suitable IMO in any case for the OP issue, still can be useful to know if there is a lack of memory or not...
01/01/2018 18:45 firesqual#10
Well my Worldserver only have 1.3gb ram so i don't think that's what caused my issue. And my CPU is at 2% usage so xD
01/06/2018 08:35 aoyamananami#11
Quote:
Originally Posted by firesqual View Post
Well my Worldserver only have 1.3gb ram so i don't think that's what caused my issue. And my CPU is at 2% usage so xD
you added some stuff on your resource didnt you?
01/06/2018 22:35 firesqual#12
Nope, it is 100% official v19