Jump to content

Mikel Alan

Members
  • Posts

    17
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by Mikel Alan

  1. 4 hours ago, adidaskipowah said:

    it is fandc but they made alot of changes on them so its worst than fandc :D

    so i want your advice , i buy it or not ? cause i'm going to create mid-rate server i'll work on it for months 

     

    please tell me which best files for mid rate , balance , events engine , rewards methods .. etc .

  2. Hi Guys some times i have this error in game console [l2-ro team files ] 

     

    7:01:02] ERROR Client: IN_GAME IP: 37.127.17.116 Account: mahdy Player : Copper[268489078] - Failed running: [C] Appearing - Server Version: -1
    va.lang.NullPointerException
          at l2ro.gameserver.model.instances.residences.SiegeFlagInstance.getName(SiegeFlagInstance.java:32)
          at l2ro.gameserver.network.serverpackets.NpcInfo.<init>(NpcInfo.java:39)
          at l2ro.gameserver.model.instances.NpcInstance.addPacketList(NpcInstance.java:2121)
          at l2ro.gameserver.model.Player.addVisibleObject(Player.java:4771)
          at l2ro.gameserver.model.WorldRegion.addToPlayers(WorldRegion.java:141)
          at l2ro.gameserver.model.World.addVisibleObject(World.java:221)
          at l2ro.gameserver.model.GameObject.spawn0(GameObject.java:263)
          at l2ro.gameserver.model.GameObject.spawnMe(GameObject.java:251)
          at l2ro.gameserver.model.Player.onTeleported(Player.java:7343)
          at l2ro.gameserver.network.clientpackets.Appearing.runImpl(Appearing.java:42)
          at l2ro.gameserver.network.clientpackets.L2GameClientPacket.run(L2GameClientPacket.java:49)
          at l2ro.commons.net.nio.impl.MMOExecutableQueue.run(MMOExecutableQueue.java:39)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
          at java.lang.Thread.run(Unknown Source)

     

    i use java 8 update 121

    mysql 5.5.31

     

    please help me

  3. 1 hour ago, abumini said:

    Your having permission errors, see if the user running the program has enought privileges.

    Thanks sloved 

     

    now when i open the url the control panel not open what must be the right path ? 

     

    my path %SystemDrive%\www\www.l2acpAr.com

     

    Is there a specific folder that I should be specific to?
     

  4. 
    
    java.lang.Exception: Stack trace
    at java.lang.Thread.dumpStack (Unknown Source)
    at l2f.gameserver.model.entity.olympiad.OlympiadGameTask.runImpl (Olympia
    dGameTask.java:193)
    at l2f.commons.threading.RunnableImpl.run (RunnableImpl.java:21)
    at java.util.concurrent.Executors $ RunnableAdapter.call (Unknown Source)
    at java.util.concurrent.FutureTask $ Sync.innerRun (Unknown Source)
    at java.util.concurrent.FutureTask.run (Unknown Source)
    at java.util.concurrent.ScheduledThreadPoolExecutor $ ScheduledFutureTask.
    access $ 201 (Unknown Source)
    at java.util.concurrent.ScheduledThreadPoolExecutor $ ScheduledFutureTask.
    run (Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor.runWorker (Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor $ Worker.run (Unknown Source)
    at java.lang.Thread.run (Unknown Source)

    Hello i have this problem when i register in olympiad the timer reach 7 seconds then console show this error 

     

    my files l2 tales old source .

     

    this file OlympiadGameTask.java

     

    package l2f.gameserver.model.entity.olympiad;
    
    import l2f.commons.threading.RunnableImpl;
    import l2f.gameserver.Config;
    import l2f.gameserver.ThreadPoolManager;
    import l2f.gameserver.cache.Msg;
    import l2f.gameserver.network.serverpackets.SystemMessage;
    import l2f.gameserver.utils.Log;
    import org.slf4j.Logger;
    import org.slf4j.LoggerFactory;
    
    import java.util.concurrent.ScheduledFuture;
    
    public class OlympiadGameTask extends RunnableImpl
    {
    	private static final Logger _log = LoggerFactory.getLogger(OlympiadGameTask.class);
    
    	private OlympiadGame _game;
    	private BattleStatus _status;
    	private int _count;
    	private long _time;
    
    	private boolean _terminated = false;
    
    	public boolean isTerminated()
    	{
    		return _terminated;
    	}
    
    	public BattleStatus getStatus()
    	{
    		return _status;
    	}
    
    	public int getCount()
    	{
    		return _count;
    	}
    
    	public OlympiadGame getGame()
    	{
    		return _game;
    	}
    
    	public long getTime()
    	{
    		return _count;
    	}
    
    	public ScheduledFuture<?> shedule()
    	{
    		return ThreadPoolManager.getInstance().schedule(this, _time);
    	}
    
    	public OlympiadGameTask(OlympiadGame game, BattleStatus status, int count, long time)
    	{
    		_game = game;
    		_status = status;
    		_count = count;
    		_time = time;
    	}
    
    	@Override
    	public void runImpl() throws Exception
    	{
    		if (_game == null || _terminated)
    			return;
    
    		OlympiadGameTask task = null;
    
    		int gameId = _game.getId();
    
    		try
    		{
    			if (!Olympiad.inCompPeriod())
    				return;
    
    			// Прерываем игру, если один из игроков не онлайн, и игра еще не прервана
    			if (!_game.checkPlayersOnline() && _status != BattleStatus.ValidateWinner && _status != BattleStatus.Ending)
    			{
    				Log.add("Player is offline for game " + gameId + ", status: " + _status, "olympiad");
    				_game.endGame(1000, true);
    				return;
    			}
    
    			switch (_status)
    			{
    				case Begining:
    				{
    					_game.broadcastPacket(new SystemMessage(SystemMessage.YOU_WILL_ENTER_THE_OLYMPIAD_STADIUM_IN_S1_SECOND_S).addNumber(Config.OLYMPIAD_BEGIN_TIME), true, false);
    					task = new OlympiadGameTask(_game, BattleStatus.Begin_Countdown, Config.OLYMPIAD_BEGIN_TIME / 2, (Config.OLYMPIAD_BEGIN_TIME / 2) * 1000);
    					break;
    				}
    				case Begin_Countdown:
    				{
    					_game.broadcastPacket(new SystemMessage(SystemMessage.YOU_WILL_ENTER_THE_OLYMPIAD_STADIUM_IN_S1_SECOND_S).addNumber(_count), true, false);
    					if (_count == 60)
    						task = new OlympiadGameTask(_game, BattleStatus.Begin_Countdown, 30, 30000);
    					else if (_count == 30)
    						task = new OlympiadGameTask(_game, BattleStatus.Begin_Countdown, 15, 15000);
    					else if (_count == 15)
    						task = new OlympiadGameTask(_game, BattleStatus.Begin_Countdown, 5, 10000);
    					else if (_count < 6 && _count > 1)
    						task = new OlympiadGameTask(_game, BattleStatus.Begin_Countdown, _count - 1, 1000);
    					else if (_count == 1)
    						task = new OlympiadGameTask(_game, BattleStatus.PortPlayers, 0, 1000);
    					break;
    				}
    				case PortPlayers:
    				{
    					_game.portPlayersToArena();
    					_game.managerShout();
    					task = new OlympiadGameTask(_game, BattleStatus.Started, 60, 1000);
    					break;
    				}
    				case Started:
    				{
    					if (_count == 60)
    					{
    						_game.setState(1);
    						_game.preparePlayers();
    						_game.addBuffers();
    						_game.restorePreparePlayers();
    					}
    
    					_game.broadcastPacket(new SystemMessage(SystemMessage.THE_GAME_WILL_START_IN_S1_SECOND_S).addNumber(_count), true, true);
    					_count -= 10;
    
    					if (_count > 0)
    					{
    						task = new OlympiadGameTask(_game, BattleStatus.Started, _count, 10000);
    						break;
    					}
    
    					_game.openDoors();
    
    					task = new OlympiadGameTask(_game, BattleStatus.CountDown, 5, 5000);
    					break;
    				}
    				case CountDown:
    				{
    					_game.broadcastPacket(new SystemMessage(SystemMessage.THE_GAME_WILL_START_IN_S1_SECOND_S).addNumber(_count), true, true);
    					_count--;
    					if (_count <= 0)
    						task = new OlympiadGameTask(_game, BattleStatus.StartComp, 36, 1000);
    					else
    						task = new OlympiadGameTask(_game, BattleStatus.CountDown, _count, 1000);
    					break;
    				}
    				case StartComp:
    				{
    					_game.deleteBuffers();
    					if (_count == 36)
    					{
    						_game.setState(2);
    						_game.broadcastPacket(Msg.STARTS_THE_GAME, true, true);
    						_game.broadcastInfo(null, null, false);
    					}
    					// Wait 3 mins (Battle)
    					_count--;
    					if (_count == 0)
    						task = new OlympiadGameTask(_game, BattleStatus.ValidateWinner, 0, 10000);
    					else
    						task = new OlympiadGameTask(_game, BattleStatus.StartComp, _count, 10000);
    					break;
    				}
    				case ValidateWinner:
    				{
    					try
    					{
    						_game.validateWinner(_count > 0);
    					}
    					catch (RuntimeException e)
    					{
    						_log.error("Error on Olympiad Validate Winner", e);
    					}
    					task = new OlympiadGameTask(_game, BattleStatus.Ending, 0, 20000);
    					break;
    				}
    				case Ending:
    				{
    					_game.collapse();
    					_terminated = true;
    					if (Olympiad._manager != null)
    						Olympiad._manager.freeOlympiadInstance(_game.getId());
    					return;
    				}
    			}
    
    			if (task == null)
    			{
    				Log.add("task == null for game " + gameId, "olympiad");
    				Thread.dumpStack();
    				_game.endGame(1000, true);
    				return;
    			}
    
    			_game.sheduleTask(task);
    		}
    		catch (RuntimeException e)
    		{
    			_log.error("Error on Olympiad Game Task", e);
    			_game.endGame(1000, true);
    		}
    	}
    }

     

×
×
  • Create New...