Mentrillum / Slender-Fortress-Modified-Versions

A modification of Team Fortress 2 based on the game Slender: The Eight Pages.
GNU General Public License v3.0
32 stars 22 forks source link

When the server map changes, the server is stop #133

Open gaejuck opened 4 months ago

gaejuck commented 4 months ago

When I'm playing Slender, if the server map change, the can't go next the steps after unloading SF2 bosses and the server is unresponsive.

L 04/24/2024 - 00:04:44: [game_mode/sf2/sf2.smx] -------- Mapchange to slender_elementary_b2d -------
L 04/24/2024 - 00:04:44: [game_mode/sf2/sf2.smx] Loading boss profile files from directory configs/sf2/profiles...
L 04/24/2024 - 00:04:44: [game_mode/sf2/sf2.smx] hypersnatcher_nerfed...
L 04/24/2024 - 00:04:44: [game_mode/sf2/sf2.smx] fakepropstoolbox...
L 04/24/2024 - 00:04:44: [game_mode/sf2/sf2.smx] fakepropsbarrel...
L 04/24/2024 - 00:04:44: [game_mode/sf2/sf2.smx] fakepropswoodboxsmall...
L 04/24/2024 - 00:04:44: [game_mode/sf2/sf2.smx] fakepropstire...
L 04/24/2024 - 00:04:44: [game_mode/sf2/sf2.smx] spanishlibertyprime...
L 04/24/2024 - 00:04:44: [game_mode/sf2/sf2.smx] fakepropscratesmall...
L 04/24/2024 - 00:04:44: [game_mode/sf2/sf2.smx] fakepropsbucket...
L 04/24/2024 - 00:04:44: [game_mode/sf2/sf2.smx] monsterostrich...
L 04/24/2024 - 00:04:44: [game_mode/sf2/sf2.smx] fakepropswoodboxbig...
L 04/24/2024 - 00:04:44: [game_mode/sf2/sf2.smx] fakepropscratebig...
L 04/24/2024 - 00:04:44: [game_mode/sf2/sf2.smx] monsterrabbit...
L 04/24/2024 - 00:04:44: [game_mode/sf2/sf2.smx] fakepropsclock...
L 04/24/2024 - 00:04:44: [game_mode/sf2/sf2.smx] fakepropsconcreteblock...
L 04/24/2024 - 00:04:44: [game_mode/sf2/sf2.smx] fakepropsfrog...
L 04/24/2024 - 00:04:44: [game_mode/sf2/sf2.smx] fakepropsmetalpile...
L 04/24/2024 - 00:04:44: [game_mode/sf2/sf2.smx] smilecat...
L 04/24/2024 - 00:04:44: [game_mode/sf2/sf2.smx] fakepropschair...
L 04/24/2024 - 00:04:44: [game_mode/sf2/sf2.smx] fakepropsleaderoil...
L 04/24/2024 - 00:04:44: [game_mode/sf2/sf2.smx] Unloading fakepropscratesmall...
L 04/24/2024 - 00:04:44: [game_mode/sf2/sf2.smx] fakepropscratesmall...
L 04/24/2024 - 00:04:44: [game_mode/sf2/sf2.smx] fakepropsgroundlight...
L 04/24/2024 - 00:04:44: [game_mode/sf2/sf2.smx] fakepropspage...
L 04/24/2024 - 00:04:44: [game_mode/sf2/sf2.smx] fakepropswoodpile...
L 04/24/2024 - 00:04:44: [game_mode/sf2/sf2.smx] leopoldbuff...
L 04/24/2024 - 00:04:44: [game_mode/sf2/sf2.smx] wicked...
L 04/24/2024 - 00:04:44: [game_mode/sf2/sf2.smx] fakepropsbarrelbig...
L 04/24/2024 - 00:04:44: [game_mode/sf2/sf2.smx] fakepropsoilcan...
L 04/24/2024 - 00:04:44: [game_mode/sf2/sf2.smx] fakepropsboxcluster...
L 04/24/2024 - 00:04:44: [game_mode/sf2/sf2.smx] Loaded 28 boss profile(s) from directory configs/sf2/profiles!
L 04/24/2024 - 00:04:44: [game_mode/sf2/sf2.smx] Loading boss profile files from directory configs/sf2/profiles/packs/bosspack1...
L 04/24/2024 - 00:04:44: [game_mode/sf2/sf2.smx] psycho2...
L 04/24/2024 - 00:04:44: [game_mode/sf2/sf2.smx] kf1_tm_pinwheel_wtf...
L 04/24/2024 - 00:04:44: [game_mode/sf2/sf2.smx] psycho3...
L 04/24/2024 - 00:04:44: [game_mode/sf2/sf2.smx] psycho...
L 04/24/2024 - 00:04:44: [game_mode/sf2/sf2.smx] kf1_tm_babydoll...
L 04/24/2024 - 00:04:44: [game_mode/sf2/sf2.smx] trex...
L 04/24/2024 - 00:04:44: [game_mode/sf2/sf2.smx] grunt...
L 04/24/2024 - 00:04:44: [game_mode/sf2/sf2.smx] neo_panzersoldat...
L 04/24/2024 - 00:04:44: [game_mode/sf2/sf2.smx] craig...
L 04/24/2024 - 00:04:44: [game_mode/sf2/sf2.smx] hhh...
L 04/24/2024 - 00:04:44: [game_mode/sf2/sf2.smx] goliath...
L 04/24/2024 - 00:04:44: [game_mode/sf2/sf2.smx] lichking_arthas...
L 04/24/2024 - 00:04:44: [game_mode/sf2/sf2.smx] executioner...
L 04/24/2024 - 00:04:44: [game_mode/sf2/sf2.smx] kf1_tm_jack...
L 04/24/2024 - 00:04:44: [game_mode/sf2/sf2.smx] korean_mr_krabs...
L 04/24/2024 - 00:04:44: [game_mode/sf2/sf2.smx] brute...
L 04/24/2024 - 00:04:44: [game_mode/sf2/sf2.smx] kf1_tm_ventriloquist...
L 04/24/2024 - 00:04:44: [game_mode/sf2/sf2.smx] kf1_tm_pinwheel...
L 04/24/2024 - 00:04:44: [game_mode/sf2/sf2.smx] rake...
L 04/24/2024 - 00:04:44: [game_mode/sf2/sf2.smx] suitor...
L 04/24/2024 - 00:04:44: [game_mode/sf2/sf2.smx] lichking_ghoul...
L 04/24/2024 - 00:04:44: [game_mode/sf2/sf2.smx] badbatter...
L 04/24/2024 - 00:04:44: [game_mode/sf2/sf2.smx] Loaded 22 boss profile(s) from directory configs/sf2/profiles/packs/bosspack1!
L 04/24/2024 - 00:04:44: [game_mode/sf2/sf2.smx] Time to take to load all boss configs: 0.080495
L 04/24/2024 - 00:04:44: [game_mode/sf2/sf2.smx] Reloaded restricted weapons configuration file successfully
L 04/24/2024 - 00:04:44: [game_mode/sf2/sf2.smx] Reloaded class stats configuration file successfully
L 04/24/2024 - 00:04:44: [game_mode/sf2/sf2.smx] Failed to load changelog! File not found!
L 04/24/2024 - 00:05:58: [game_mode/sf2/sf2.smx] Found sf2_maxplayers entity, set maxplayers to 8
L 04/24/2024 - 00:05:58: [game_mode/sf2/sf2.smx] Found sf2_time_limit entity, set time limit to 180
L 04/24/2024 - 00:05:58: [game_mode/sf2/sf2.smx] Found sf2_time_gain_from_page entity, set time gain to 20
L 04/24/2024 - 00:05:58: [game_mode/sf2/sf2.smx] Found sf2_escape_time_limit entity, set escape time limit to 120
L 04/24/2024 - 00:05:58: [game_mode/sf2/sf2.smx] ROUND SETTINGS:
 - Time limit: 180
 - Time gain from page: 20
 - Page collect sound: )slender/slenderpagegrab.wav
 - Escape?: 1
 - Escape time limit: 120
 - Stop page music on escape: 1
 - Survive before escape?: 0
 - Survive until time: 30
 - Infinite flashlight: 0
 - Infinite sprint: 0
 - Infinite blink: 0
 - Bosses chase endlessly: 0
 - Intro music: slender/intro.mp3
 - Intro fade hold time: 9.000000
 - Intro fade time: 1.000000
L 04/24/2024 - 00:05:58: [game_mode/sf2/sf2.smx] Loaded page music ranges successfully!
L 04/24/2024 - 00:06:07: [game_mode/sf2/sf2.smx] Boss profile neo_panzersoldat has been added to the game.
L 04/24/2024 - 00:06:51: [game_mode/sf2/sf2.smx] Unloading hypersnatcher_nerfed...
L 04/24/2024 - 00:06:51: [game_mode/sf2/sf2.smx] Unloading fakepropstoolbox...
L 04/24/2024 - 00:06:51: [game_mode/sf2/sf2.smx] Unloading fakepropsbarrel...
L 04/24/2024 - 00:06:51: [game_mode/sf2/sf2.smx] Unloading fakepropswoodboxsmall...
L 04/24/2024 - 00:06:51: [game_mode/sf2/sf2.smx] Unloading fakepropstire...
L 04/24/2024 - 00:06:51: [game_mode/sf2/sf2.smx] Unloading spanishlibertyprime...
L 04/24/2024 - 00:06:51: [game_mode/sf2/sf2.smx] Unloading fakepropsbucket...
L 04/24/2024 - 00:06:51: [game_mode/sf2/sf2.smx] Unloading monsterostrich...
L 04/24/2024 - 00:06:51: [game_mode/sf2/sf2.smx] Unloading fakepropswoodboxbig...
L 04/24/2024 - 00:06:51: [game_mode/sf2/sf2.smx] Unloading fakepropscratebig...
L 04/24/2024 - 00:06:51: [game_mode/sf2/sf2.smx] Unloading monsterrabbit...
L 04/24/2024 - 00:06:51: [game_mode/sf2/sf2.smx] Unloading fakepropsclock...
L 04/24/2024 - 00:06:51: [game_mode/sf2/sf2.smx] Unloading fakepropsconcreteblock...
L 04/24/2024 - 00:06:51: [game_mode/sf2/sf2.smx] Unloading fakepropsfrog...
L 04/24/2024 - 00:06:51: [game_mode/sf2/sf2.smx] Unloading fakepropsmetalpile...
L 04/24/2024 - 00:06:51: [game_mode/sf2/sf2.smx] Unloading smilecat...
L 04/24/2024 - 00:06:51: [game_mode/sf2/sf2.smx] Unloading fakepropschair...
L 04/24/2024 - 00:06:51: [game_mode/sf2/sf2.smx] Unloading fakepropsleaderoil...
L 04/24/2024 - 00:06:51: [game_mode/sf2/sf2.smx] Unloading fakepropscratesmall...
L 04/24/2024 - 00:06:51: [game_mode/sf2/sf2.smx] Unloading fakepropsgroundlight...
L 04/24/2024 - 00:06:51: [game_mode/sf2/sf2.smx] Unloading fakepropspage...
L 04/24/2024 - 00:06:51: [game_mode/sf2/sf2.smx] Unloading fakepropswoodpile...
L 04/24/2024 - 00:06:51: [game_mode/sf2/sf2.smx] Unloading leopoldbuff...
L 04/24/2024 - 00:06:51: [game_mode/sf2/sf2.smx] Unloading wicked...
L 04/24/2024 - 00:06:51: [game_mode/sf2/sf2.smx] Unloading fakepropsbarrelbig...
L 04/24/2024 - 00:06:51: [game_mode/sf2/sf2.smx] Unloading fakepropsoilcan...
L 04/24/2024 - 00:06:51: [game_mode/sf2/sf2.smx] Unloading fakepropsboxcluster...
L 04/24/2024 - 00:06:51: [game_mode/sf2/sf2.smx] Unloading psycho2...
L 04/24/2024 - 00:06:51: [game_mode/sf2/sf2.smx] Unloading kf1_tm_pinwheel_wtf...
L 04/24/2024 - 00:06:51: [game_mode/sf2/sf2.smx] Unloading psycho3...
L 04/24/2024 - 00:06:51: [game_mode/sf2/sf2.smx] Unloading psycho...
L 04/24/2024 - 00:06:51: [game_mode/sf2/sf2.smx] Unloading kf1_tm_babydoll...
L 04/24/2024 - 00:06:51: [game_mode/sf2/sf2.smx] Unloading trex...
L 04/24/2024 - 00:06:51: [game_mode/sf2/sf2.smx] Unloading grunt...
L 04/24/2024 - 00:06:51: [game_mode/sf2/sf2.smx] Unloading neo_panzersoldat...
L 04/24/2024 - 00:06:51: [game_mode/sf2/sf2.smx] Unloading craig...
L 04/24/2024 - 00:06:51: [game_mode/sf2/sf2.smx] Unloading hhh...
L 04/24/2024 - 00:06:51: [game_mode/sf2/sf2.smx] Unloading goliath...
L 04/24/2024 - 00:06:51: [game_mode/sf2/sf2.smx] Unloading lichking_arthas...
L 04/24/2024 - 00:06:51: [game_mode/sf2/sf2.smx] Unloading executioner...
L 04/24/2024 - 00:06:51: [game_mode/sf2/sf2.smx] Unloading kf1_tm_jack...
L 04/24/2024 - 00:06:51: [game_mode/sf2/sf2.smx] Unloading korean_mr_krabs...
L 04/24/2024 - 00:06:51: [game_mode/sf2/sf2.smx] Unloading brute...
L 04/24/2024 - 00:06:51: [game_mode/sf2/sf2.smx] Unloading kf1_tm_ventriloquist...
L 04/24/2024 - 00:06:51: [game_mode/sf2/sf2.smx] Unloading kf1_tm_pinwheel...
L 04/24/2024 - 00:06:51: [game_mode/sf2/sf2.smx] Unloading rake...
L 04/24/2024 - 00:06:51: [game_mode/sf2/sf2.smx] Unloading suitor...
L 04/24/2024 - 00:06:51: [game_mode/sf2/sf2.smx] Unloading lichking_ghoul...
L 04/24/2024 - 00:06:51: [game_mode/sf2/sf2.smx] Unloading badbatter...

SourceMod Version Information

    SourceMod Version: 1.12.0.7116
    SourcePawn Engine: 1.12.0.7116, jit-x86 (build 1.12.0.7116)
    SourcePawn API: v1 = 5, v2 = 16
    Compiled on: Apr 18 2024 04:45:06
    Built from: https://github.com/alliedmodders/sourcemod/commit/6cac489f
    Build ID: 7116:6cac489f
    http://www.sourcemod.net/

Metamod:Source Version Information

   Metamod:Source version 1.12.0-dev+1192
   Plugin interface version: 16:14
   SourceHook version: 5:5
   Loaded As: Valve Server Plugin
   Compiled on: Feb  7 2024 16:03:42
   Built from: https://github.com/alliedmodders/metamod-source/commit/837fa2c
   Build ID: 1192:837fa2c
   http://www.metamodsource.net/

Additionally, it's running in linux server

gaejuck commented 4 months ago

I think there are some maps that can't be loaded after the 64-bit update. It could be related to SF2, so I wrote an issue.

JuegosPablo commented 4 months ago

the server just stops when unload the bosses before the map change?

gaejuck commented 4 months ago

Server logs will not be wrote after the log listed above.

MAGNAT2645 commented 3 months ago

My server crashed too. Here's the error log.

L 05/06/2024 - 00:06:21: [SM] Exception reported: Invalid Handle ee1008e3 (error: 3)
L 05/06/2024 - 00:06:21: [SM] Blaming: sf2.smx
L 05/06/2024 - 00:06:21: [SM] Call stack trace:
L 05/06/2024 - 00:06:21: [SM]   [0] ArrayList.Length.get
L 05/06/2024 - 00:06:21: [SM]   [1] Line 950, /home/test/GitHub/SF2/addons/sourcemod/scripting/include/sf2/profiles/profiles.inc::StopAllSounds
L 05/06/2024 - 00:06:21: [SM]   [2] Line 53, sf2/npc/npc_creeper.sp::Despawn_Statue
L 05/06/2024 - 00:06:21: [SM]   [3] Line 382, sf2/npc.sp::NPCOnDespawn
L 05/06/2024 - 00:06:21: [SM]   [4] Line 267, sf2/npc.sp::EntityDestroyed
L 05/06/2024 - 00:06:21: [SM]   [6] Call_Finish
L 05/06/2024 - 00:06:21: [SM]   [7] Line 2637, /home/test/GitHub/SF2/addons/sourcemod/scripting/sf2.sp::OnEntityDestroyed
L 05/06/2024 - 00:06:21: [SM]   [9] RemoveEntity
L 05/06/2024 - 00:06:21: [SM]   [10] Line 277, sf2/methodmaps.sp::SF2NPC_BaseNPC.UnSpawn
L 05/06/2024 - 00:06:21: [SM]   [11] Line 2763, sf2/npc.sp::RemoveProfile
L 05/06/2024 - 00:06:21: [SM]   [12] Line 567, sf2/npc.sp::NPCRemove
L 05/06/2024 - 00:06:21: [SM]   [13] Line 1198, sf2/npc.sp::NPCRemoveAll
L 05/06/2024 - 00:06:21: [SM]   [14] Line 1387, /home/test/GitHub/SF2/addons/sourcemod/scripting/sf2.sp::OnMapEnd

Stack Trace:

Thread 0 (crashed):
  0: 0x10
     eip: 0x00000010  esp: 0xffee6efc  ebp: 0x00000000  ebx: 0x120a7c20
     esi: 0x18867840  edi: 0x00000000  eax: 0x120a7c24  ecx: 0x1ec36818
     edx: 0x1aa58368  efl: 0x00010292  

     ffee6efc  c0 20 2f df 24 7c 0a 12  40 78 86 18 40 80 fb 1e  . /.$|..@x..@...
     ffee6f0c  00 d7 1b f3 c0 81 47 18  c0 78 02 0f 28 6f ee ff  ......G..x..(o..
     ffee6f1c  c0 c7 f4 f7 40 80 fb 1e  00 07 d2 f7 e0 1c 27 1f  ....@.........'.
     ffee6f2c  27 ac db f7                                       '...            

     Found via instruction pointer in context

  1: libc.so.6!__libc_free + 0x87
     eip: 0xf7dbac27  esp: 0xffee6f30  ebp: 0x00000000  

     ffee6f30  e0 f7 61 ee 92 00 00 00  40 78 86 18 40 78 86 18  ..a.....@x..@x..
     ffee6f40  e0 1c 27 1f ec 1c 27 1f  ec 1c 27 1f b2 1e 2f df  ..'...'...'.../.
     ffee6f50  20 7c 0a 12 40 78 86 18  dc 6f ee ff ac ce 34 df   |..@x...o....4.

     Found via stack scanning

  2: cbasenpc.ext.2.tf2.so + 0x9beac
     eip: 0xdf34ceac  esp: 0xffee6f60  ebp: 0xffee6fdc  ebx: 0xdf2f1eb2
     esi: 0x120a7c20  edi: 0x18867840  

     Found via call frame info

And some more, this is from memory dump, thread 0 (all garbage data removed)

les/tf/addons/so
urcemod/plugins/
sf2_gaben_ext_ab
ilities_update.s
mx..h...X`......
psf2.smx::.89985
2.OnRemove......
.security_entity
_limit.smx::OnEn
tityDestroyed.ty
_limit.s.h.2....
................
................
................
................
................
....slender_cont
ainmentbreach_v2
a...............
................
................
................
................
................
................
................
................
................
................
................
................
................
........oot3d_hy
rule_ctcfix1....
................
................
................
................
................
................
................
................
................
................
................
................
................
................
............maps
/oot3d_hyrule_ct
cfix1.bsp.......

Also i have a problem with CBaseNPC when it crashes the server after running quit command. But that one doesn't seem to happen when just changing maps.