L2JMobius

C6 CTF - TVT - DM

kuwahara · 9 · 7607

Offline kuwahara

  • Vassal
  • *
    • Posts: 1
hi all

I have an issue with events:

when the CTF and TVT finish the state of event remains never left, and if other event start stay in the teams was before.

there is the game server console:

Quote
[04/07 03:51:34] ------------------------------------------------=[ Database ]
[04/07 03:51:34] Database: Initialized.
[04/07 03:51:34] ----------------------------------------------=[ ThreadPool ]
[04/07 03:51:34] ThreadPool: Initialized
[04/07 03:51:34] ...scheduled pool executor with 160 total threads.
[04/07 03:51:34] ...instant pool executor with 120 total threads.
[04/07 03:51:34] -----------------------------------------------=[ IdFactory ]
[04/07 03:51:34] Updated characters online status.
[04/07 03:51:34] IdFactory: Cleaned 0 elements from database in 0 seconds.
[04/07 03:51:34] IdFactory: Cleaned 0 expired timestamps from database.
[04/07 03:51:34] IdFactory: 102912 id's available.
[04/07 03:51:34] Cache[HTML]: Running lazy cache
[04/07 03:51:34] Cache[Crest]: 0,000MB on 0 files loaded.
[04/07 03:51:34] Loaded 1 files to exclude.
[04/07 03:51:34] ---------------------------------------------------=[ World ]
[04/07 03:51:34] World: Setting up World Regions
[04/07 03:51:34] World: (88x128) World Region Grid set up.
[04/07 03:51:34] Announcements: Loaded 2 Announcements.
[04/07 03:51:34] GameServer: Loaded 0 Auto Announcements.
[04/07 03:51:34] GlobalVariablesManager: Loaded 2 variables.
[04/07 03:51:34] StaticObjectData: Loaded 29 static objects.
[04/07 03:51:34] TeleportLocationTable: Loaded 828 Teleport Location Templates
[04/07 03:51:34] ExperienceData: Loaded 87 levels
[04/07 03:51:34] ExperienceData: Max Player Level is: 80
[04/07 03:51:34] ExperienceData: Max Pet Level is: 80
[04/07 03:51:34] Initializing DuelManager
[04/07 03:51:34] -------------------------------------------------=[ Players ]
[04/07 03:51:34] PlayerTemplateData: Loaded 89 player templates.
[04/07 03:51:34] Restored 0 clans from the database.
[04/07 03:51:34] Loaded 9 forums. Last forum id used: 9
[04/07 03:51:34] --------------------------------------------------=[ Skills ]
[04/07 03:51:34] SkillTreeTable: Loaded 13851 skills.
[04/07 03:51:34] FishingSkillTreeTable: Loaded 109 general skills.
[04/07 03:51:34] FishingSkillTreeTable: Loaded 8 dwarven skills.
[04/07 03:51:34] EnchantSkillTreeTable: Loaded 14520 enchant skills.
[04/07 03:51:34] PledgeSkillTreeTable: Loaded 64 pledge skills.
[04/07 03:51:35] SkillsEngine: Loaded 30485 skill templates.
[04/07 03:51:35] SkillSpellbookTable: Loaded 334 spellbooks
[04/07 03:51:35] HelperBuffTable: Loaded 14 templates.
[04/07 03:51:35] Skills: All skills loaded.
[04/07 03:51:35] ---------------------------------------------------=[ Items ]
[04/07 03:51:36] Highest item id used: 9213
[04/07 03:51:36] ArmorSetData: Loaded 51 armor sets.
[04/07 03:51:36] ExtractableItemData: Loaded 334 extractable items.
[04/07 03:51:36] SummonItemData: Loaded 14 summon items.
[04/07 03:51:36] HennaData: Loaded 180 hennas.
[04/07 03:51:36] FishData: Loaded 270 fish.
[04/07 03:51:36] -----------------------------------------------------=[ Npc ]
[04/07 03:51:36] SchemeBufferTable: Loaded 15 players schemes and 68 available buffs.
[04/07 03:51:36] WalkerRouteData: Loaded 12 walker routes.
[04/07 03:51:36] NpcTable: Loaded 6594 Npc Templates.
[04/07 03:51:36] NpcTable: Loaded 6602 Npc Templates.
[04/07 03:51:36] CustomDropList : Added 0 custom droplist
[04/07 03:51:36] NpcTable: Loaded 451 Minions.
[04/07 03:51:36] -------------------------------------------------=[ Geodata ]
[04/07 03:51:36] GeoEngine: Initializing...
[04/07 03:51:36] GeoEngine: Loaded 0 geodata files.
[04/07 03:51:36] GeoEngine: Forcing PathFinding setting to false.
[04/07 03:51:36] GeoEngine: Forcing CoordSynchronize setting to -1.
[04/07 03:51:36] GeoEnginePathfinding: Loaded 32 node buffers.
[04/07 03:51:36] -------------------------------------------------=[ Economy ]
[04/07 03:51:36] No buylists found in data folder, using SQL buylist instead.
[04/07 03:51:37] TradeController: Loaded 508 Buylists.
[04/07 03:51:37] TradeController: Loaded 132 Limited Buylists.
[04/07 03:51:37] TradeController: Loaded 0 Custom Buylists.
[04/07 03:51:37] Multisell 90007 entryId  1 has an ADENA price less then total products reference price.. Automatically Updating it..
[04/07 03:51:37] Multisell 99994 entryId  1 has an ADENA price less then total products reference price.. Automatically Updating it..
[04/07 03:51:37] Multisell: loaded.
[04/07 03:51:37] ----------------------------------------------=[ Clan Halls ]
[04/07 03:51:37] Initializing ClanHallManager
[04/07 03:51:37] Loaded: 0 clan halls
[04/07 03:51:37] Loaded: 44 free clan halls
[04/07 03:51:37] Fortress of Resistanse: siege will start the 2020/07/10 21:00
[04/07 03:51:37] Devastated Castle: siege will start the 2020/07/06 18:00
[04/07 03:51:37] SiegeManager of Bandits Stronghold
[04/07 03:51:37] Initializing AuctionManager
[04/07 03:51:37] Loaded: 38 auction(s)
[04/07 03:51:37] ----------------------------------------------------=[ Zone ]
[04/07 03:51:37] ZoneData: Loading zones...
[04/07 03:51:37] GrandBossManager: Loaded 15 Instances
[04/07 03:51:37] Initializing CastleManager
[04/07 03:51:37] Loaded: 9 castles
[04/07 03:51:38] Initializing FortManager
[04/07 03:51:38] Loaded: 21 fortress
[04/07 03:51:40] ZoneData: Loaded 22 zones classes and total 1002 zones.
[04/07 03:51:40] -----------------------------------------------=[ Spawnlist ]
[04/07 03:51:40] CustomNpcInstanceManager: loaded 0 NPC to PC polymorphs.
[04/07 03:51:40] Siege of Dion: Sat Jul 11 20:00:00 CLT 2020
[04/07 03:51:40] Siege of Oren: Sun Jul 12 16:00:00 CLT 2020
[04/07 03:51:41] Siege of Gludio: Sat Jul 11 20:00:00 CLT 2020
[04/07 03:51:41] Siege of Giran: Sun Jul 12 16:00:00 CLT 2020
[04/07 03:51:41] Siege of Innadril: Sun Jul 12 16:00:00 CLT 2020
[04/07 03:51:41] Siege of Aden: Sat Jul 11 20:00:00 CLT 2020
[04/07 03:51:41] Siege of Goddard: Sun Jul 12 16:00:00 CLT 2020
[04/07 03:51:41] Siege of Rune: Sat Jul 11 20:00:00 CLT 2020
[04/07 03:51:41] Siege of Schuttgart: Sat Jul 11 20:00:00 CLT 2020
[04/07 03:51:41] SpawnTable: Data missing in NPC table for ID: 36015.
[04/07 03:51:41] SpawnTable: Data missing in NPC table for ID: 70013.
[04/07 03:51:41] SpawnTable: Data missing in NPC table for ID: 70013.
[04/07 03:51:41] SpawnTable: Data missing in NPC table for ID: 70009.
[04/07 03:51:41] SpawnTable: Data missing in NPC table for ID: 70007.
[04/07 03:51:41] SpawnTable: Data missing in NPC table for ID: 70013.
[04/07 03:51:41] SpawnTable: Data missing in NPC table for ID: 70009.
[04/07 03:51:41] SpawnTable: Data missing in NPC table for ID: 70007.
[04/07 03:51:41] SpawnTable: Data missing in NPC table for ID: 70009.
[04/07 03:51:41] SpawnTable: Data missing in NPC table for ID: 70009.
[04/07 03:51:41] SpawnTable: Data missing in NPC table for ID: 70013.
[04/07 03:51:41] SpawnTable: Data missing in NPC table for ID: 70007.
[04/07 03:51:41] SpawnTable: Data missing in NPC table for ID: 70007.
[04/07 03:51:41] SpawnTable: Data missing in NPC table for ID: 70009.
[04/07 03:51:41] SpawnTable: Data missing in NPC table for ID: 70013.
[04/07 03:51:41] SpawnTable: Data missing in NPC table for ID: 70013.
[04/07 03:51:41] SpawnTable: Data missing in NPC table for ID: 70009.
[04/07 03:51:41] SpawnTable: Data missing in NPC table for ID: 70007.
[04/07 03:51:41] SpawnTable: Data missing in NPC table for ID: 70013.
[04/07 03:51:41] SpawnTable: Data missing in NPC table for ID: 70009.
[04/07 03:51:41] SpawnTable: Data missing in NPC table for ID: 70007.
[04/07 03:51:41] SpawnTable: Data missing in NPC table for ID: 70013.
[04/07 03:51:41] SpawnTable: Data missing in NPC table for ID: 70009.
[04/07 03:51:41] SpawnTable: Data missing in NPC table for ID: 70007.
[04/07 03:51:41] SpawnTable: Data missing in NPC table for ID: 70013.
[04/07 03:51:41] SpawnTable: Data missing in NPC table for ID: 70009.
[04/07 03:51:41] SpawnTable: Data missing in NPC table for ID: 70007.
[04/07 03:51:41] SpawnTable: Data missing in NPC table for ID: 70013.
[04/07 03:51:41] SpawnTable: Data missing in NPC table for ID: 70009.
[04/07 03:51:41] SpawnTable: Data missing in NPC table for ID: 70007.
[04/07 03:51:41] SpawnTable: Data missing in NPC table for ID: 70013.
[04/07 03:51:41] SpawnTable: Data missing in NPC table for ID: 70009.
[04/07 03:51:41] SpawnTable: Data missing in NPC table for ID: 70007.
[04/07 03:51:41] SpawnTable: Data missing in NPC table for ID: 70013.
[04/07 03:51:41] SpawnTable: Data missing in NPC table for ID: 70007.
[04/07 03:51:41] SpawnTable: Data missing in NPC table for ID: 70009.
[04/07 03:51:41] SpawnTable: Data missing in NPC table for ID: 70013.
[04/07 03:51:41] SpawnTable: Data missing in NPC table for ID: 70009.
[04/07 03:51:41] SpawnTable: Data missing in NPC table for ID: 70007.
[04/07 03:51:41] SpawnTable: Data missing in NPC table for ID: 70013.
[04/07 03:51:41] SpawnTable: Data missing in NPC table for ID: 70009.
[04/07 03:51:41] SpawnTable: Data missing in NPC table for ID: 70007.
[04/07 03:51:41] SpawnTable: Data missing in NPC table for ID: 70013.
[04/07 03:51:41] SpawnTable: Data missing in NPC table for ID: 70009.
[04/07 03:51:41] SpawnTable: Data missing in NPC table for ID: 70007.
[04/07 03:51:41] SpawnTable: Data missing in NPC table for ID: 50007.
[04/07 03:51:41] SpawnTable: Data missing in NPC table for ID: 70009.
[04/07 03:51:41] SpawnTable: Loaded 39861 Npc Spawn Locations.
[04/07 03:51:41] SpawnTable: Total number of NPCs in the world: 39866
[04/07 03:51:41] CustomSpawnTable: Data missing in NPC table for ID: 50008.
[04/07 03:51:41] CustomSpawnTable: Loaded 1 Npc Spawn Locations.
[04/07 03:51:41] CustomSpawnTable: Total number of NPCs in the world: 1
[04/07 03:51:41] RaidBossSpawnManager: Loaded 186 instances.
[04/07 03:51:41] RaidBossSpawnManager: Scheduled 0 instances.
[04/07 03:51:41] DayNightSpawnManager: Removed 0 night creatures
[04/07 03:51:41] DayNightSpawnManager: Spawned 232 day creatures
[04/07 03:51:42] ----------------------------------------=[ Dimensional Rift ]
[04/07 03:51:42] DimensionalRiftManager: Loaded 7 room types with 56 rooms.
[04/07 03:51:42] DimensionalRiftManager: Loaded 462 dimensional rift spawns.
[04/07 03:51:42] ----------------------------------------------------=[ Misc ]
[04/07 03:51:42] RecipeData: Loaded 871 recipes.
[04/07 03:51:42] Initializing AugmentationData.
[04/07 03:51:42] AugmentationData: Loaded 52 augmentation stats.
[04/07 03:51:42] MonsterRace: loaded 70 records, currently on race #71
[04/07 03:51:42] Initializing MercTicketManager
[04/07 03:51:42] Loaded: 0 Mercenary Tickets
[04/07 03:51:42] Initializing CursedWeaponsManager.
[04/07 03:51:42] Loaded: 2 cursed weapon(s).
[04/07 03:51:42] Initializing ItemsOnGroundManager
[04/07 03:51:42] Initializing ItemsOnGroundManager.
[04/07 03:51:42] ---------------------------------------------------=[ Manor ]
[04/07 03:51:42] ManorSeedData: Loaded 256 seeds.
[04/07 03:51:42] -------------------------------------------------=[ Castles ]
[04/07 03:51:42] Initializing SiegeManager
[04/07 03:51:42] Initializing FortSiegeManager
[04/07 03:51:42] ----------------------------------------------------=[ Boat ]
[04/07 03:51:42] BoatData: Loaded 5 boats.
[04/07 03:51:42] BoatData: Loaded 9 paths.
[04/07 03:51:42] ---------------------------------------------------=[ Doors ]
[04/07 03:51:42] DoorData: Loaded 1001 doors.
[04/07 03:51:42] FenceData: Loaded 1 Fences.
[04/07 03:51:42] -----------------------------------------=[ Four Sepulchers ]
[04/07 03:51:42] GrandBossManager: Loaded 15 Instances
[04/07 03:51:42] FourSepulchersManager: Beginning in Cooldown time
[04/07 03:51:42] ---------------------------------------------=[ Seven Signs ]
[04/07 03:51:42] SevenSigns: Currently in the Competition (Quest Event) period!
[04/07 03:51:42] SevenSigns: The Seal of Avarice remains unclaimed.
[04/07 03:51:42] SevenSigns: The Seal of Gnosis remains unclaimed.
[04/07 03:51:42] SevenSigns: The Seal of Strife remains unclaimed.
[04/07 03:51:42] SevenSigns: The competition, if the current trend continues, will end in a tie this week.
[04/07 03:51:42] SevenSigns: Next period in 2 days, 14 hours and 8 mins.
[04/07 03:51:42] SevenSignsFestival: The first Festival of Darkness cycle begins in 2 minute(s).
[04/07 03:51:42] -----------------------------------------=[ Olympiad System ]
[04/07 03:51:42] Olympiad System: Loading Olympiad System....
[04/07 03:51:42] Olympiad System: Currently in Olympiad Period
[04/07 03:51:42] Olympiad System: 40808 minutes until period ends
[04/07 03:51:42] Olympiad System: Next weekly change is in 8399 minutes
[04/07 03:51:42] Olympiad System: Loaded 0 Nobles
[04/07 03:51:42] Olympiad System: Competition Period Starts in 0 days, 14 hours and 8 mins.
[04/07 03:51:42] Olympiad System: Event starts/started : Sat Jul 04 18:00:42 CLT 2020
[04/07 03:51:42] Hero System: Loaded 0 Heroes.
[04/07 03:51:42] Hero System: Loaded 0 all time Heroes.
[04/07 03:51:42] -------------------------------------------=[ Access Levels ]
[04/07 03:51:42] AdminData: Loaded 7 access levels.
[04/07 03:51:42] AdminData: Loaded 490 access commands.
[04/07 03:51:42] ------------------------------------------------=[ Handlers ]
[04/07 03:51:42] ItemHandler: Loaded 2047 handlers.
[04/07 03:51:42] SkillHandler: Loaded 76 handlers.
[04/07 03:51:42] AdminCommandHandler: Loaded 503 handlers.
[04/07 03:51:42] UserCommandHandler: Loaded 16 handlers.
[04/07 03:51:42] VoicedCommandHandler: Loaded 13 handlers.
[04/07 03:51:42] AutoChatHandler: Loaded 32 handlers in total.
[04/07 03:51:42] AutoSpawnHandler: Loaded 129 handlers in total.
[04/07 03:51:42] -------------------------------------------------=[ Scripts ]
[04/07 03:51:42] ScriptEngineManager: Loading server scripts:
[04/07 03:51:49] Updated High Priestess van Halter(29062) status to 1
[04/07 03:51:49] --------------------------------------------------=[ Quests ]
[04/07 03:51:49] Loaded: 342 quest scripts.
[04/07 03:51:49] ---------------------------------------------=[ Game Server ]
[04/07 03:51:49] IdFactory: Free ObjectID's remaining: 1879003363
[04/07 03:51:49] --------------------------------------------=[ EventManager ]
[04/07 03:51:49] TVT Event is Enabled.
[04/07 03:51:49] CTF Event is Enabled.
[04/07 03:51:49] DM Event is Enabled.
[04/07 03:51:49] Loading offline traders...
[04/07 03:51:49] Loaded 0 offline traders.
[04/07 03:51:49] ----------------------------------------------=[ Protection ]
[04/07 03:51:49] Check skills on enter actived.
[04/07 03:51:49] Check bad name on enter actived.
[04/07 03:51:49] Check OverEnchant items on enter actived.
[04/07 03:51:49] Bypass Validation actived.
[04/07 03:51:49] ----------------------------------------------------=[ Info ]
[04/07 03:51:49] Maximum Numbers of Connected Players: 2000
[04/07 03:51:49] GameServer Started, free memory 3730 Mb of 4096 Mb
[04/07 03:51:49] Used memory: 366 MB
[04/07 03:51:49] --------------------------------------------------=[ Status ]
[04/07 03:51:49] Server Loaded in 16 seconds.
[04/07 03:51:49] --------------------------------------------------=[ Telnet ]
[04/07 03:51:49] Telnet server is disabled.
[04/07 03:51:49] ---------------------------------------------------=[ Login ]
[04/07 03:51:49] Connecting to login on 127.0.0.1:9014
[04/07 03:51:49] Registered on login as Server 1 : Bartz
[04/07 03:52:02] Access level 100 set for character nothesonic! Just a warning ;)
[04/07 03:52:15] Admin Access Rights: No rights defined for admin command admin_dmevent_startevent.
[04/07 04:03:55] Could not restore active effect data: java.lang.NullPointerException
[04/07 04:04:44] DM:Not enough players for event. Min Requested : 2, Participating : 3
[04/07 04:04:58] DM:Not enough players for event. Min Requested : 2, Participating : 2
[04/07 04:09:23] Starting TVT!
[04/07 04:09:23] Matchs Are Restarted At Every: 5 Minutes.
[04/07 04:14:53] TVT: waiting.....minutes for event time 5
[04/07 04:19:53] **** TVT ****
[04/07 04:19:53] TVT Team Statistics:
[04/07 04:19:53] Team: Blue - Kills: 6
[04/07 04:19:53] Team: Red - Kills: 0
[04/07 04:19:53] Top killer: Bakzys - Kills: 5
[04/07 04:19:53] Top looser: test2 - Dies: 6
[04/07 04:19:53] TVT: Blue's win the match! 6 kills.
[04/07 04:19:53] TVT: waiting... delay for final messages
Exception in thread "pool-2-thread-91" java.util.ConcurrentModificationException
   at java.base/java.util.ArrayList$Itr.checkForComodification(ArrayList.java:1012)
   at java.base/java.util.ArrayList$Itr.next(ArrayList.java:966)
   at org.l2jmobius.gameserver.model.entity.event.TvT.cleanTvT(TvT.java:1984)
   at org.l2jmobius.gameserver.model.entity.event.TvT.lambda$teleportFinish$1(TvT.java:1040)
   at org.l2jmobius.commons.concurrent.RunnableWrapper.run(RunnableWrapper.java:38)
   at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
   at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
   at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
   at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
   at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
   at java.base/java.lang.Thread.run(Thread.java:832)
[04/07 04:20:53] TVT: waiting.....delay for restart event  300000 minutes.
[04/07 04:21:42] [GlobalTask] SevenSigns save launched.
[04/07 04:21:53] TVT: Event has been restarted...


Offline phanie

  • Heir
  • **
    • Posts: 12
I have a problem with the TVT, CTF and DM events. I put a value for min players in the db, but it doesn't work. Events start even when no one registers.


Offline phanie

  • Heir
  • **
    • Posts: 12
I discovered the problem. The condition of checkMaxPlayers and checkMinPlayers are reversed.


Online Mobius

  • Distinguished King
  • *****
    • Posts: 16010
Thank you for sharing this.
How should the values be?
Can you make a patch for it?
;D


Offline G-hamsteR

  • Viscount
  • *****
    • Posts: 326
Unfortunatelly I can't test it, but checking the code these functions have the reverse outcome. Here is a fix for TvT:

Code: [Select]
diff --git java/org/l2jmobius/gameserver/model/entity/event/TvT.java java/org/l2jmobius/gameserver/model/entity/event/TvT.java
index c209430..508ee36 100644
--- java/org/l2jmobius/gameserver/model/entity/event/TvT.java
+++ java/org/l2jmobius/gameserver/model/entity/event/TvT.java
@@ -537,7 +537,7 @@
  */
  public static boolean checkMinPlayers(int players)
  {
- return _minPlayers > players;
+ return _minPlayers <= players;
  }
 
  /**
@@ -547,7 +547,7 @@
  */
  public static boolean checkMaxPlayers(int players)
  {
- return _maxPlayers <= players;
+ return _maxPlayers > players;
  }
 
  /**

If someone can test it, the same applies to other events.


Offline FanaticoLineage2

  • Heir
  • **
    • Posts: 13
When registering, the characters do not teleport to the coliseum and the event does not start, nor does the npc appear to register, use the command .tvtjoin


IMG:
1:
https://ibb.co/hXRWcyZ
2:
https://ibb.co/MGmgj4m


Online Mobius

  • Distinguished King
  • *****
    • Posts: 16010
Tripple post.
Topics merged.
Test the patch above.


Offline FanaticoLineage2

  • Heir
  • **
    • Posts: 13
Fixed issue, another issue I found was that the npcs for these events were missing.

INSERT INTO `custom_npc` VALUES ('70010', '31606', 'Catrina', '1', 'TvT Event Manager', '1', 'Monster.cat_the_cat', '8.00', '15.00', '70', 'female', 'Npc', '40', '3862', '1493', '11.85', '2.78', '40', '43', '30', '21', '20', '10', '0', '0', '1314', '470', '780', '382', '278', '0', '333', '0', '0', '0', '28', '132', '', '0', '0', '0', 'LAST_HIT');

INSERT INTO `custom_npc` VALUES ('70011', '31606', 'Wendy', '1', 'CTF Event Manager', '1', 'Monster.cat_the_cat', '8.00', '15.00', '70', 'female', 'Npc', '40', '3862', '1493', '11.85', '2.78', '40', '43', '30', '21', '20', '10', '0', '0', '1314', '470', '780', '382', '278', '0', '333', '0', '0', '0', '28', '132', '', '0', '0', '0', 'LAST_HIT');

INSERT INTO `custom_npc` VALUES ('70014', '31606', 'Queity', '1', 'DM Event Manager', '1', 'Monster.cat_the_cat', '8.00', '15.00', '70', 'female', 'Npc', '40', '3862', '1493', '11.85', '2.78', '40', '43', '30', '21', '20', '10', '0', '0', '1314', '470', '780', '382', '278', '0', '333', '0', '0', '0', '28', '132', '', '0', '0', '0', 'LAST_HIT');