Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Monster Carnival

Legendary Battlemage
Joined
Mar 7, 2013
Messages
686
Reaction score
43
Hello i have a problem , when enter in CPQ Lobby, show this message "MP will start, but over 10 seconds and nothing happened, and no errors in server console...
you can helpme?


pic:



mixtamal6 - Monster Carnival - RaGEZONE Forums


Solved Thanks to ERICK and Yuuroido n.n
 
Last edited:
Legendary Battlemage
Joined
Mar 7, 2013
Messages
686
Reaction score
43
because if have a

Code:
private byte team; 

public void setTeam(int team) {
        this.team = (byte) team;
    }



in maplecharacter.java

so, this problem reference this part?

Code:
int redPortal = 0;
        int bluePortal = 0;
        if (map.isPurpleCPQMap()) {
            redPortal = 2;
            bluePortal = 1;
        }
        for (MaplePartyCharacter mpc : p1.getMembers()) {
            MapleCharacter mc;
            mc = cs.getPlayerStorage().getCharacterByName(mpc.getName());
            if (mc != null) {
                mc.setMonsterCarnival(this);
                [COLOR=#ff8c00][B]mc.changeMap(map, map.getPortal(redPortal));[/B][/COLOR]
                                mc.changeMap(map);
                mc.setTeam(0);
                if (p1.getLeader().getId() == mc.getId()) {
                    leader1 = mc;
                }
                                Grupo1 = mc;
            }
        }
        for (MaplePartyCharacter mpc : p2.getMembers()) {
            MapleCharacter mc;
            mc = cs.getPlayerStorage().getCharacterByName(mpc.getName());
            if (mc != null) {
                mc.setMonsterCarnival(this);
                [COLOR=#ff8c00][B]mc.changeMap(map, map.getPortal(bluePortal));[/B][/COLOR]
                mc.setTeam(1);
                if (p2.getLeader().getId() == mc.getId()) {
                    leader2 = mc;
                }
                                Grupo2 = mc;
            }
        }
 
Upvote 0
Skilled Illusionist
Joined
Jul 17, 2010
Messages
333
Reaction score
165
for (MaplePartyCharacter mpc : p1.getMembers()) {
MapleCharacter mc;
mc = cs.getPlayerStorage().getCharacterByName(mpc.getName());
if (mc != null) {
mc.setMonsterCarnival(this);
mc.changeMap(map, map.getPortal(redPortal));
mc.changeMap(map);
mc.setTeam(0);
if (p1.getLeader().getId() == mc.getId()) {
leader1 = mc;
}
Grupo1 = mc;
}
}
Code:
[COLOR="#898989"][SIZE=3]mc.setMonsterCarnival(this);[/COLOR][/SIZE]
mc.changeMap(map, map.getPortal(redPortal));

[SIZE=4]_人人人人人人人人人人人人_

>  mc.changeMap(map);  <

 ̄Y^Y^Y^Y^Y^Y^Y^Y^Y^Y ̄[/SIZE]

[SIZE=3]mc.setTeam(0);
[COLOR="#898989"]if (p1.getLeader().getId() == mc.getId()) {
    leader1 = mc;
}[/COLOR][/SIZE]



mixtamal6 - Monster Carnival - RaGEZONE Forums


Joking aside, it should set team Id before a player changes the map. (ref. MapleCharacter#changeMap -> MapleMap#addPlayer)
 
Upvote 0
Legendary Battlemage
Joined
Mar 7, 2013
Messages
686
Reaction score
43
ok, im fix the setTeams :D
thanks for reply yurooido , im fix complety carnival :D thanks
 
Last edited:
Upvote 0
Back
Top