TvT start time (IL)

Find the proper support area, Saga-Version.
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
mrcx
Posts: 25
Joined: Thu Apr 16, 2009 3:41 pm

TvT start time (IL)

Post 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 ?
User avatar
devo
Posts: 798
Joined: Mon Jun 15, 2009 1:19 pm

Re: TvT start time (IL)

Post by devo »

Code: Select all

TvTEventInterval = 18:00
A hero of war is that what they see...
mrcx
Posts: 25
Joined: Thu Apr 16, 2009 3:41 pm

Re: TvT start time (IL)

Post 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?
User avatar
janiii
L2j Veteran
L2j Veteran
Posts: 4269
Joined: Wed May 28, 2008 3:15 pm
Location: Slovakia

Re: TvT start time (IL)

Post by janiii »

the tvt time config was changed in this changeset:
http://www.l2jserver.com/trac/changeset/2510
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper
I don't give private support - PM will be ignored!
mrcx
Posts: 25
Joined: Thu Apr 16, 2009 3:41 pm

Re: TvT start time (IL)

Post 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?
User avatar
janiii
L2j Veteran
L2j Veteran
Posts: 4269
Joined: Wed May 28, 2008 3:15 pm
Location: Slovakia

Re: TvT start time (IL)

Post by janiii »

check both the error files: TvTEvent and TvTManager. maybe compare them to the newest files from svn, to better see the differences.
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper
I don't give private support - PM will be ignored!
mrcx
Posts: 25
Joined: Thu Apr 16, 2009 3:41 pm

Re: TvT start time (IL)

Post 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 !
Post Reply