Quantcast
Channel: RaGEZONE - MMO Development Forums
Viewing all articles
Browse latest Browse all 27563

[MSEA] Could Not Process Due To Too Many Connection

$
0
0
When I am at SERVERLIST and I tried selecting any channel other than channel 1, I receive this problem

I have no problem entering channel 1 though. What could have gone wrong? I tried looking into my SERVERLIST but I doubt it was my SERVERLIST

PHP Code:

public static byte[] getServerList(int serverIdMap<IntegerIntegerchannelLoad) {
        
MaplePacketLittleEndianWriter mplew = new MaplePacketLittleEndianWriter();

        
System.out.println("START GETSERVERLIST");
        
mplew.writeShort(SendPacketOpcode.SERVERLIST.getValue());
        
mplew.write(serverId);
        
String worldName LoginServer.getTrueServerName();
        
System.out.println("worldName: " worldName);

        
mplew.writeMapleAsciiString(worldName);
        
mplew.write(WorldOption.getById(serverId).getFlag());
        
mplew.writeMapleAsciiString(LoginServer.getEventMessage());
        
mplew.writeShort(100);
        
mplew.writeShort(100);

        
//mplew.write(0);
        
int lastChannel 1;
        
Set<Integerchannels channelLoad.keySet();
        for (
int i 300i--) {
            if (
channels.contains(i)) {
                
lastChannel i;
                break;
            }
        }
        
System.out.println("lastChannel: " lastChannel);
        
mplew.write(lastChannel);

        
int load;
        for (
int i 1<= lastChanneli++) {
            if (
channels.contains(i)) {
                
load channelLoad.get(i);
            } else {
                
load 1200;
            }
            
mplew.writeMapleAsciiString(worldName "-" i);
            
mplew.writeInt(load);
            
mplew.write(serverId);
            
mplew.writeShort(1);
        }
        
mplew.writeShort(0);
        
mplew.writeInt(GameConstants.GMS GameConstants.getCurrentDate_NoTime());
        
mplew.write(0);

        
System.out.println("END GETSERVERLIST");

        return 
mplew.getPacket();
    } 


Viewing all articles
Browse latest Browse all 27563


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>