EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Support::Linux Servers (https://www.eqemulator.org/forums/forumdisplay.php?f=588)
-   -   Strange Crash (https://www.eqemulator.org/forums/showthread.php?t=30247)

KingMort 02-04-2010 02:23 PM

Would you be able to post a code fix for this ?? I can put stuff into files and compile ok just not very good with C++ in general if you would tell me what code to fix and with what would be a huge help..

:) Thank you guys appreciate it

OscarGrouch05 02-04-2010 08:53 PM

look at the code edit and fine BotOwner->IsBot()) - changes that need to be done or corrected Isbot change to Isgoon recompile program that should help fix the problem. i'm just good at reading the error code i program in Pascal i would have to covert to my lang so i could understand what it's doing i hope someone else can correct this for you. after changing in program you should be able to run the debug program to check the code.

your error are coming from (GetAppearance() == eaDead) || BotOwner->IsBot()) =GDB
look what you have been posting you'll see (gdb) there is your problem.

OscarGrouch05 02-04-2010 10:49 PM

KingMort are you using EQEmu-Rev1180a-Bots? or if your pulling the code from the exe all smiles here 80)

gaeorn 02-05-2010 12:15 AM

The function names containing the word 'bot' does not matter. If you have changed the commands to "goon" it will work fine. If you had changed some of the functions but not all references to the functions, the code would not compile due to unreferenced symbols. No offense, but OscarGrouch05 does not know what he is talking about in this regard.

OscarGrouch05 02-05-2010 12:53 AM

Ref code 2147 if(BotOwner->qglobal || (GetAppearance() == eaDead) || BotOwner->IsBot()) does stand for GetApperance,Dead,Bot = gdb this is where your errors are coming from i would like and update when you solve this problem Thank You!

KingMort 02-05-2010 05:00 PM

Yeah hehe i just want to see this bug fixed it's terrible having players crash every 15 minutes..

Probably one of the major reasons my servers population is so low atm

OscarGrouch05 02-06-2010 03:10 PM

1. make sure you installed InnoDB using your perl client
2. double check your database table's

I)Database changes

-- Table "botinventory" DDL

CREATE TABLE `botinventory` (
`npctypeid` int(11) NOT NULL default '0',
`botslotid` int(11) default NULL,
`itemid` int(11) default NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- Table "botleader" DDL

CREATE TABLE `botleader` (
`botid` int(11) NOT NULL default '0',
`leaderid` int(11) default NULL,
PRIMARY KEY (`botid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-----> Table "botsowners" DDL <-------- double check this one and the one below

CREATE TABLE `botsowners` (
`botnpctypeid` int(11) NOT NULL default '0',
`botleadercharacterid` int(11) NOT NULL default '0',
PRIMARY KEY (`botnpctypeid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--- The table npc_types must have a new field:
ALTER TABLE npc_types add `isbot` tinyint(4) NOT NULL;

KingMort 02-06-2010 06:05 PM

I thought botsowners wasn't used anymore .. isn't it just "bots" now or ??

If not then somethings out of whack i have 188 records in bots and 161 in botsowners

At any rate i switched them to Innodb

KingMort 02-11-2010 11:19 PM

Just another update it seems like this crash is happening when people camp with goons in group or when multiple people camp at the same time

KingMort 02-13-2010 06:28 PM

It's worse than ever before at this time... 15 crashed zones in less than 24 hours.

King

Ansley1 02-14-2010 04:59 AM

Quote:

Originally Posted by trevius (Post 182906)
Could this be due to players being charmed there by chance?

Alot of servers I've played on mobs will assist charmed pets. Just throwing that out there....randomly probably :D

KingMort 03-04-2010 04:49 PM

At this point in time, the crashing has gotten so bad that it's averaging about 30 crashes in a 24 hour period..

So at this point in time, i'm offering $$$ to whoever can fix this shit once and for all !!!

Please contact me for more details and how much $$$ i am willing to offer @ KingMortenson@yahoo.com

Thanks

King

Angelox 04-16-2010 08:41 AM

I take you're using Linux server?
Your problem is probably in your hardware, namely your hard disk.
In Windows, the drive gets fragmented. to a point where I had to buy a second party de-fragmenter ("PerfectDisk") and schedule daily de-frags.
Zones will start to crash with little fragmentation, so de-frag, regardless.
Swap drives get fragmented too.
Not sure what happens to Linux, but a Linux swap drive on the same hard disk will slow you down.
100+ static zones on your server will cause zone crashes if your hard disks are not properly tweaked, or are just too slow.
Maybe your hard disk is getting old and slow. Try adding a second hard disk and move your Linux swap partition there there (in Windows, just move the swap file to the new HD).

I've had these problems under both Windows and Linux and have solved them by tweaking the hard disks. Took me all these years to realize this.

KingMort 04-16-2010 02:51 PM

Yeah the nice thing about Renting is that they will replace stuff for you anytime you want.. Guess it's due time for me to do this..

mmaker 04-16-2010 09:20 PM

Quote:

Originally Posted by OscarGrouch05 (Post 183470)
What's up with the nulls in the characters' names?

That question is a couple of months old now, but in case it helps with future debugging I presume they're defined as char[64] instead of char*, so gdb prints out the full 64 character array. Which could contain any old junk after the first null.


All times are GMT -4. The time now is 04:29 AM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.