Page 1 of 1

TvT start time (IL)

Posted: Wed Aug 19, 2009 10:22 pm
by mrcx
If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision Number: Latest interlude
L2JDP Revision Number: Latest interlude

Is there anyway to make TvT to start automaticly at same time everyday. Example : i want to start TvT everoday at 6 p.m. (1 time in day,no more) Is there any solution to do it ?

Re: TvT start time (IL)

Posted: Wed Aug 19, 2009 10:37 pm
by devo

Code: Select all

TvTEventInterval = 18:00

Re: TvT start time (IL)

Posted: Thu Aug 20, 2009 8:02 am
by mrcx
devo wrote:

Code: Select all

TvTEventInterval = 18:00
Already tried this way.As I said i'm using Latest Interlude version. So when i write in TvTEventInterval = 18:00 my GS makes this error :

Code: Select all

Starting L2J Game Server. loading gameserver configjava.lang.NumberFormatException: For input string: "18:00"        at java.lang.NumberFormatException.forInputString(Unknown Source)        at java.lang.Integer.parseInt(Unknown Source)        at java.lang.Integer.parseInt(Unknown Source)        at net.sf.l2j.Config.load(Config.java:1862)        at net.sf.l2j.gameserver.GameServer.main(GameServer.java:688)Exception in thread "main" java.lang.Error: Failed to Load ./config/l2jmods.properties File.        at net.sf.l2j.Config.load(Config.java:1998)        at net.sf.l2j.gameserver.GameServer.main(GameServer.java:688) Server terminated abnormaly  server terminated Press any key to continue . . .
I think i need some core modification... Or there is any other way?

Re: TvT start time (IL)

Posted: Thu Aug 20, 2009 8:11 am
by janiii
the tvt time config was changed in this changeset:
http://www.l2jserver.com/trac/changeset/2510

Re: TvT start time (IL)

Posted: Thu Aug 20, 2009 9:48 am
by mrcx
janiii wrote:the tvt time config was changed in this changeset:
http://www.l2jserver.com/trac/changeset/2510
thanks a lot,i used some other changset from timeline and got compiled gameserver. Everything was ok,but when time was come to start event i got this error in game server :

Code: Select all

TvTEventEngine[TvTEvent.startParticipation()]: exception: java.lang.NullPointerExceptionTvTEventEngine[TvTManager.run()]: Error spawning event npc for participation.
Maybe someone know where is the problem? Or where it can be?

Re: TvT start time (IL)

Posted: Thu Aug 20, 2009 9:57 am
by janiii
check both the error files: TvTEvent and TvTManager. maybe compare them to the newest files from svn, to better see the differences.

Re: TvT start time (IL)

Posted: Thu Aug 20, 2009 12:31 pm
by mrcx
hm,i think i done one stupid mistake. Trying to do it again .

EDIT1:
Nah,problem still exist :/

Diffs used :
http://www.l2jserver.com/trac/changeset/1668
http://www.l2jserver.com/trac/changeset/1741
http://www.l2jserver.com/trac/changeset/2510

EDIT2:
can't believe i made it :shock: reapplied all diff's but problem was still existing. But then noticed in gameserver some other errors of AutoSpawnHandler. Then applied this diff :

Code: Select all

Index: C:/Users/sami/workspace/L2_GameServer_t1/java/net/sf/l2j/gameserver/datatables/SpawnTable.java===================================================================--- C:/Users/sami/workspace/L2_GameServer_t1/java/net/sf/l2j/gameserver/datatables/SpawnTable.java	(revision 1622)+++ C:/Users/sami/workspace/L2_GameServer_t1/java/net/sf/l2j/gameserver/datatables/SpawnTable.java	(working copy)@@ -39,7 +39,7 @@      private static final SpawnTable _instance = new SpawnTable(); -    private Map<Integer, L2Spawn> _spawntable = new FastMap<Integer, L2Spawn>();+    private Map<Integer, L2Spawn> _spawntable = new FastMap<Integer, L2Spawn>().setShared(true);     private int _npcSpawnCount;      private int _highestId;
(Credits Sami)

and then tvt started right time as i was setted :) Now u can lock or delete thread. Problem solved ! :) BTW thanks for help !