Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Flyff > Flyff Private Server
You last visited: Today at 05:31

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

Advertisement



Weird bug changing MAX_JOB

Discussion on Weird bug changing MAX_JOB within the Flyff Private Server forum part of the Flyff category.

Closed Thread
 
Old   #1
 
elite*gold: 0
Join Date: Oct 2012
Posts: 948
Received Thanks: 157
Weird bug changing MAX_JOB

Hi players,

I have removed the Hero Master jobs.
So far everything is ok.

Now i changed the MAX_JOB from 32 to 16 rebuild the source.

When launching the servers. WorldServer crashed. Giving me the following error.

Code:
GetModelElem - out of range: type=0, size=1220, index=1

2016/10/ 6   10:28:26   CModelMng::loadModel mdlObj/mdlDyna ¿¡ objtype=0 index=1 bpart=0 ÀÇ Á¤º¸°¡ ¾ø±º¿©.

2016/10/ 6   10:28:26   GetModelElem - out of range: type=1, size=100, index=0
So well guess i am going to debug the worldserver.

BreakPoint @ CObj** CLinkMap::GetObjPtr( const D3DXVECTOR3 & vPos, DWORD dwLinkType, int nLinkLevel )

Line int nPos = int( vPos.z / m_iMPU / nUnit ) * nMaxWidth + int( vPos.x / m_iMPU / nUnit );

Error: Division by Zero.

When i change the MAX_JOB back to 32 again i can launch the server without problems.

Any tips will be appriciated.

With kind regards.
raventh1984 is offline  
Old 10/06/2016, 11:25   #2
 
elite*gold: 0
Join Date: Mar 2008
Posts: 665
Received Thanks: 227
If I remember correctly it was this function CWorld::ReadRespawn
alfredico is offline  
Old 10/06/2016, 13:21   #3
 
elite*gold: 0
Join Date: Oct 2012
Posts: 948
Received Thanks: 157
Thanks Alfredico.

Its not solved. The strange part is is that i am running an clean v15.
And still its giving me error logs that its missing models. So i checked mdlobj.inc from official and its all about Kalgas etc so i find it strange. That if you changed the MAX_JOB from 32 to 16 that its saying its missing models.

So its somewhat releated to each other only i am not seeing the link.

Updated.

Added everything inside mdlObj.inc from Official Flyff.

Still missing some parts.

Code:
GetModelElem - out of range: type=0, size=1974, index=0

2016/10/ 6   13:26:52   CModelMng::loadModel mdlObj/mdlDyna ¿¡ objtype=0 index=0 bpart=0 ÀÇ Á¤º¸°¡ ¾ø±º¿©.

2016/10/ 6   13:26:52   GetModelElem - out of range: type=0, size=1974, index=1

2016/10/ 6   13:26:52   CModelMng::loadModel mdlObj/mdlDyna ¿¡ objtype=0 index=1 bpart=0 ÀÇ Á¤º¸°¡ ¾ø±º¿©.

2016/10/ 6   13:26:52   GetModelElem - out of range: type=1, size=100, index=0

2016/10/ 6   13:26:52   CModelMng::loadModel mdlObj/mdlDyna ¿¡ objtype=1 index=0 bpart=0 ÀÇ Á¤º¸°¡ ¾ø±º¿©.

2016/10/ 6   13:26:52   GetModelElem - out of range: type=0, size=1974, index=0

2016/10/ 6   13:26:52   CModelMng::loadModel mdlObj/mdlDyna ¿¡ objtype=0 index=0 bpart=0 ÀÇ Á¤º¸°¡ ¾ø±º¿©.

2016/10/ 6   13:26:52   GetModelElem - out of range: type=0, size=1974, index=0

2016/10/ 6   13:26:52   CModelMng::loadModel mdlObj/mdlDyna ¿¡ objtype=0 index=0 bpart=0 ÀÇ Á¤º¸°¡ ¾ø±º¿©.

2016/10/ 6   13:26:52   GetModelElem - out of range: type=0, size=1974, index=0

2016/10/ 6   13:26:52   CModelMng::loadModel mdlObj/mdlDyna ¿¡ objtype=0 index=0 bpart=0 ÀÇ Á¤º¸°¡ ¾ø±º¿©.

2016/10/ 6   13:26:52   GetModelElem - out of range: type=1, size=100, index=0

2016/10/ 6   13:26:52   CModelMng::loadModel mdlObj/mdlDyna ¿¡ objtype=1 index=0 bpart=0 ÀÇ Á¤º¸°¡ ¾ø±º¿©.
Also new error

Çä InsObjInFld¿¡¼* ¹üÀ§¸¦ ¹þ¾î³*°Ô Ãß°¡µÇ·Á°í Çϳ×?

Strange.

UPDATE::

i have changed part of the code at BOOL CWorld::ReadRespawn( CScript& s )

Code:
for (i = 0; i < MAX_JOB; i++)
				pInfo->m_CtrlElem.m_bSetJob[ i ] = s.GetNumber();
To
Code:
int maxjob = 16

for (i = 0; i < maxjob; i++)
				pInfo->m_CtrlElem.m_bSetJob[ i ] = s.GetNumber();
Changed the bSetJob also to 16 cause it was defined as BOOL bSetJob[MAX_JOB];

Started world server. Giving me errors about the mdlobj.

So changed maxjob = 16 to 32 and BOOL bSetJob[16] to [32]
Started worldserver and no more errors.

bSetJob is only used inside WorldFile.cpp and in User.cpp for opening an Box.
raventh1984 is offline  
Old 10/06/2016, 21:07   #4
 
elite*gold: 294
Join Date: Jun 2009
Posts: 407
Received Thanks: 587
Quote:
Originally Posted by raventh1984 View Post
Changed the bSetJob also to 16 cause it was defined as BOOL bSetJob[MAX_JOB];

Started world server. Giving me errors about the mdlobj.

So changed maxjob = 16 to 32 and BOOL bSetJob[16] to [32]
Started worldserver and no more errors.

bSetJob is only used inside WorldFile.cpp and in User.cpp for opening an Box.
You have to keep it 32 or open every file that goes through that and re-save the file without the extra 16 ints or else the scanner will throw errors and cause that crash you're getting.
Avalion is offline  
Old 10/07/2016, 12:44   #5
 
elite*gold: 0
Join Date: Mar 2008
Posts: 665
Received Thanks: 227
You only need to change the m_bSetJob to 32. Leave the rest as it is, the version is defined on respawn stuff, is not same as client version and not the same for all the cases.
Expected you to figure out this...
alfredico is offline  
Old 10/08/2016, 08:49   #6
 
elite*gold: 0
Join Date: Oct 2012
Posts: 948
Received Thanks: 157
Yeah i already figured it out.

Thank you all.
raventh1984 is offline  
Closed Thread


Similar Threads Similar Threads
Weird.... Just weird ( inside )
08/05/2011 - Shaiya Private Server - 14 Replies
Windows 2008 webserver S2 , service pack 4 , 64 bit Os. when i go to install Sql 2005 it does its little pre install check list, well i get a warning on asp.net , it tells me that 64 bit is installed and mysql report services require 32 bit.. So i sorta stumble around a bit, well i ran across Banes tut on sql 2008 , so i thought allright lets try it. as i click on the installserver.bat for the client,, the cmd prompt comes up, goes thew it steps, then tells me that Shaiya is not...
[Guide] Just changing the drops of VIP maps without changing of its place
10/08/2010 - EO PServer Guides & Releases - 2 Replies
in revo's DB when u add the VIP tele it apears on the old market .. some ppl dont know how to change its place thats why i made this query for them delete from cq_generator where id >= 0113 and id <= 0128; INSERT INTO `cq_generator` VALUES ('0113', '8900', '0062', '0033', '0001', '0001', '0001', '0025', '0001', '0110', '0000', '0000', '0000', '0000', '0000'); INSERT INTO `cq_generator` VALUES ('0114', '8900', '0072', '0037', '0001', '0001', '0001', '0025', '0001', '0110', '0000',...
Weird
09/04/2010 - Cabal Online - 2 Replies
For a popular game, it has very limited hacks, is the GG really that hard to bypass or is it other reasons?
This is weird
04/22/2009 - SRO Private Server - 3 Replies
:confused: wow i finally Download everything and when i get on game the only server that's up is Vip ecsro why aren't fembria and ecsro up?
A weird bug
03/23/2009 - CO2 Exploits, Hacks & Tools - 12 Replies
hello all ^^ i want to tell something about a bug it duplicates item but YOU CANT USE IT OR TRADE IT! it happend me this week i played on my 2 char's *1 hunting and 1 market* after awhile i logged off *except my market guy* because i was doing something else and around few hours later when i logged back.



All times are GMT +2. The time now is 05:31.


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.