Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::Linux Servers

Support::Linux Servers Support forum for Linux EQEMu users.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 06-27-2019, 07:17 PM
dclarkpf
Fire Beetle
 
Join Date: Jul 2005
Location: Grants Pass, Or
Posts: 20
Default FYI Script Glitch

I'm running eqemu in linux with a login server and everything works.. I'm making some pretty awesome changes to the code, that I want to have on my server. I'm rebooting eqemu often as I make these changes. Now here the glitch.. server_launcher.pl launches things sometimes. It comes up flawlessly sometimes... Other times it doesn't load world or the zones. What? Weird.. So I looked in to it. Turns out there's a bug in the server_launcher.

Code:
foreach my $val (@processes){
        if($val=~/ucs/i){
            $ucs_process_count++;
        }
        if($val=~/world/i){
            print "VALUE=->$val<-\n";
            $world_process_count++;
        }
        if($val=~/zone/i){
            $zone_process_count++;
        }
        if($val=~/queryserv/i){
            $queryserv_process_count++;
        }
        if($val=~/loginserver/i){
            $loginserver_process_count++;
        }
    }
Should be changed to ...

Code:
foreach my $val (@processes){
        if($val=~/ucs$/i){
            $ucs_process_count++;
        }
        if($val=~/world$/i){
            print "VALUE=->$val<-\n";
            $world_process_count++;
        }
        if($val=~/zone$/i){
            $zone_process_count++;
        }
        if($val=~/queryserv$/i){
            $queryserv_process_count++;
        }
        if($val=~/loginserver$/i){
            $loginserver_process_count++;
        }
    }
What was happening .. Was that I occasionally nanoed worldserver.cpp. The server launcher would see that in the ps aux, and think that it was a running copy of world. So it would skip loading it. I think that if the world is not loaded, the zones eventually timeout... or something. So that's the glitch. It had me scratching my head for a couple minutes.

Oh, and thanks for putting together the awesome eqemu server, and letting us play around with all your hard work!!
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 05:36 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3