Fortress Captains not respawn
Posted: Thu Sep 02, 2010 9:00 am
Hi all 
I have a problem with fortress and captains. Normaly i see that every 12-13 mins captains function are restored and there are no problem. But... it happens that during a fortress captains not spawn again after that time and on map u can see that all barracks are seized (and is not true, cuz all time i have tested killing only 3 captains, archer, mage and guard captain). When during a fortress something goes wrong, captains never spawn again (only when fortress starts again, but they spawn only first time, never after u kill them).
The problem is "solved" if u restart the server but obviously not seems to be the best solution
i think that something happens on /gameserver/model/entity/FortSiege.java at line 635:
maybe a problem on "_commanders" array (that contains all commanders/captains)?

I have a problem with fortress and captains. Normaly i see that every 12-13 mins captains function are restored and there are no problem. But... it happens that during a fortress captains not spawn again after that time and on map u can see that all barracks are seized (and is not true, cuz all time i have tested killing only 3 captains, archer, mage and guard captain). When during a fortress something goes wrong, captains never spawn again (only when fortress starts again, but they spawn only first time, never after u kill them).
The problem is "solved" if u restart the server but obviously not seems to be the best solution

i think that something happens on /gameserver/model/entity/FortSiege.java at line 635:
Code: Select all
if (_commanders.get(getFort().getFortId()).isEmpty()) {[...] } // schedule restoring doors/commanders respawn else if (_siegeRestore == null) { getFort().getSiege().announceToPlayer(new SystemMessage(SystemMessageId.SEIZED_BARRACKS)); _siegeRestore = ThreadPoolManager.getInstance().scheduleGeneral(new ScheduleSiegeRestore(getFort()), FortSiegeManager.getInstance().getCountDownLength() * 60 * 1000); }