Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Flyff > Flyff Private Server
You last visited: Today at 09:22

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Worldserver buffer overrun

Discussion on Worldserver buffer overrun within the Flyff Private Server forum part of the Flyff category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Apr 2011
Posts: 91
Received Thanks: 10
Worldserver buffer overrun

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 :




If someone would help me ! Would be much appreciated =)
firesqual is offline  
Old 12/29/2017, 19:59   #2



 
Sedrika's Avatar
 
elite*gold: 18
The Black Market: 103/0/0
Join Date: Sep 2009
Posts: 20,177
Received Thanks: 14,471
You're probably spawning to much monsters.
Sedrika is offline  
Thanks
1 User
Old 12/29/2017, 22:03   #3
 
elite*gold: 0
Join Date: Apr 2011
Posts: 91
Received Thanks: 10
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 ?
firesqual is offline  
Old 12/30/2017, 15:29   #4


 
- Major's Avatar
 
elite*gold: 7
Join Date: Sep 2012
Posts: 4,462
Received Thanks: 3,213
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)..
- Major is offline  
Old 12/30/2017, 16:59   #5
 
elite*gold: 0
Join Date: Mar 2008
Posts: 333
Received Thanks: 284
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?
Nortix is offline  
Thanks
4 Users
Old 12/30/2017, 17:23   #6


 
- Major's Avatar
 
elite*gold: 7
Join Date: Sep 2012
Posts: 4,462
Received Thanks: 3,213
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..
- Major is offline  
Old 12/30/2017, 20:36   #7
 
elite*gold: 0
Join Date: Apr 2011
Posts: 91
Received Thanks: 10
Well that doesnt really help me since my problem is that too many movers are spawning at the same time (i think)
firesqual is offline  
Old 12/31/2017, 22:30   #8
 
xTwiLightx's Avatar
 
elite*gold: 0
Join Date: Jan 2009
Posts: 1,739
Received Thanks: 1,669
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.
xTwiLightx is offline  
Old 01/01/2018, 16:50   #9
 
cookie69's Avatar
 
elite*gold: 0
Join Date: Nov 2009
Posts: 627
Received Thanks: 686
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 "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...
cookie69 is offline  
Old 01/01/2018, 18:45   #10
 
elite*gold: 0
Join Date: Apr 2011
Posts: 91
Received Thanks: 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
firesqual is offline  
Old 01/06/2018, 08:35   #11
 
aoyamananami's Avatar
 
elite*gold: 0
Join Date: Mar 2014
Posts: 243
Received Thanks: 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?
aoyamananami is offline  
Old 01/06/2018, 22:35   #12
 
elite*gold: 0
Join Date: Apr 2011
Posts: 91
Received Thanks: 10
Nope, it is 100% official v19
firesqual is offline  
Reply


Similar Threads Similar Threads
Help Buffer Overrun in 7-WorldServer.exe
07/11/2013 - Flyff Private Server - 2 Replies
Hellow Elitepvpers ! Anyone Know How to Fix my Problem ? I making Private Server flyff .. VPS Server My OS is Windows 8 My Problem is Buffer overrun in 7-WorldServer.exe
Buffer overrun detecdet?
06/30/2010 - WarRock - 16 Replies
Hallo Wollte warrock starten aufem alten pc aber da kam dann so einen Microsoft C++ meldund in der stand Buffer Overrun detecdet Was machen? PS:Kein Hack an
Buffer overrun detected ! WR Startproblem
06/09/2010 - WarRock - 9 Replies
Neuerdings bekomme ich diese Meldung nach dem Hackshield: http://www.abload.de/img/unbenanntrs0d.png Ich spiele ohne Hacks und wenn dann nur Chams, aber selten. Vor 5 mins ging WR noch. Jetzt nicht mehr. Das mit der .cfg Datei auch öfters gemacht. Worran liegts?



All times are GMT +2. The time now is 09:22.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.