Fortress Captains not respawn

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
deadlyroulette
Posts: 36
Joined: Sat Sep 19, 2009 8:35 am

Fortress Captains not respawn

Post by deadlyroulette »

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 :P

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);                }
maybe a problem on "_commanders" array (that contains all commanders/captains)?
User avatar
Gnacik
L2j Veteran
L2j Veteran
Posts: 925
Joined: Tue Dec 16, 2008 3:49 pm
Location: Wąchock ٩(̾●̮̮̃̾•̃̾)۶ Polska
Contact:

Re: Fortress Captains not respawn

Post by Gnacik »

Code: Select all

Index: java/com/l2jserver/gameserver/model/entity/FortSiege.java===================================================================--- java/com/l2jserver/gameserver/model/entity/FortSiege.java   (revision 4412)+++ java/com/l2jserver/gameserver/model/entity/FortSiege.java   (working copy)@@ -640,6 +640,7 @@                    if (_siegeRestore != null)                    {                        _siegeRestore.cancel(true);+                       _siegeRestore = null;                    }                    // open doors in main building                    for (L2DoorInstance door : getFort().getDoors()) 
try
User avatar
UnAfraid
L2j Veteran
L2j Veteran
Posts: 4199
Joined: Mon Jul 23, 2007 4:25 pm
Location: Bulgaria
Contact:

Re: Fortress Captains not respawn

Post by UnAfraid »

What about the upper lines

Code: Select all

Index: java/com/l2jserver/gameserver/model/entity/FortSiege.java===================================================================--- java/com/l2jserver/gameserver/model/entity/FortSiege.java   (revision 8)+++ java/com/l2jserver/gameserver/model/entity/FortSiege.java   (working copy)@@ -283,9 +283,15 @@            setSiegeDateTime(true); // store suspicious merchant spawn in DB                        if (_siegeEnd != null)+           {                _siegeEnd.cancel(true);+               _siegeEnd = null;+           }            if (_siegeRestore != null)+           {                _siegeRestore.cancel(true);+               _siegeRestore = null;+           }                        if (getFort().getOwnerClan() != null && getFort().getFlagPole().getMeshIndex() == 0)                getFort().setVisibleFlag(true); 
should be looks like that?
Image
User avatar
JIV
L2j Veteran
L2j Veteran
Posts: 1882
Joined: Sun Jan 06, 2008 8:17 pm
Location: Slovakia
Contact:

Re: Fortress Captains not respawn

Post by JIV »

already fixed in freya, for now use gnat's temp patch.
User avatar
Gnacik
L2j Veteran
L2j Veteran
Posts: 925
Joined: Tue Dec 16, 2008 3:49 pm
Location: Wąchock ٩(̾●̮̮̃̾•̃̾)۶ Polska
Contact:

Re: Fortress Captains not respawn

Post by Gnacik »

JIV wrote:already fixed in freya, for now use gnat's temp patch.
It's your patch in fact, so thanks to you, not me. :lol:
User avatar
UnAfraid
L2j Veteran
L2j Veteran
Posts: 4199
Joined: Mon Jul 23, 2007 4:25 pm
Location: Bulgaria
Contact:

Re: Fortress Captains not respawn

Post by UnAfraid »

// offtopic
should i add bla = null; after bla.cancel(true); everywhere?

i've think that method cancel making variable null; isn't ?
Image
deadlyroulette
Posts: 36
Joined: Sat Sep 19, 2009 8:35 am

Re: Fortress Captains not respawn

Post by deadlyroulette »

thz to all, i'll try this night :)
Post Reply