View Single Post
  #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