War3Evo / War3Source-EVO

War3Source Evolution (The future of War3Source)
GNU General Public License v3.0
32 stars 5 forks source link

CSGO server seg faults whenever player joins #20

Closed KorinFlakes closed 1 year ago

KorinFlakes commented 1 year ago

I've spent the better part of 2 days trying to get this to work and I'm pretty sure I have everything in the right places, but whenever someone tries to join the server I get this error:

[SM] Warning: plugin War3Source.smx is using more than 100000 handles! ./srcds_run: line 318: 124565 Segmentation fault (core dumped) $HL_CMD

I'm not really sure where to go from here. Any help would be greatly appreciated.

War3Evo commented 1 year ago

What are all the plugins you are running other than War3Source.smx?

Are you compiling it using a Sourcemod 1.9 compiler?

Did you go to change the contents in the file War3Source-EVO/addons/sourcemod/scripting/include/GAME_SWITCHER/currentgame.inc in order to compile for your platform?

Did you compile all of these:

War3Source.sp
War3Source_0000_SkillsRaceSwapTest_OPT.sp
War3Source_001_UndeadScourge.sp
War3Source_002_HumanAlliance.sp
War3Source_004_NightElf.sp
War3Source_005_BloodMage_TF2.sp
War3Source_009_CorruptedDisciple.sp
War3Source_010_SoulReaper.sp
War3Source_011_BloodHunter.sp
War3Source_012_Naix.sp
War3Source_013_SuccubusHunter.sp
War3Source_014_Chronos.sp
War3Source_015_Lich.sp
War3Source_016_SacredWarrior.sp
War3Source_017_Hammerstorm.sp
War3Source_018_Scout.sp
War3Source_019_DarkElf.sp
War3Source_020_Dragonborn.sp
War3Source_021_Fluttershy.sp
War3Source_022_Rarity.sp
War3Source_023_RainbowDash.sp
War3Source_028_Luna.sp
War3Source_051_Frogger.sp
War3Source_057_LightBender.sp
War3Source_064_ShadowPaladin.sp
War3Source_066_Soul_Medic_TF2.sp
War3Source_Addon_AdminConsole.sp
War3Source_Addon_AdminMenu.sp
War3Source_Addon_Auction_House.sp
War3Source_Addon_Client_AimTarget_Information.sp
War3Source_Addon_Client_Preferences.sp
War3Source_Addon_Full_Player_Information.sp
War3Source_Addon_Hud_Info.sp
War3Source_Addon_LevelUpParticle.sp
War3Source_Addon_ShopItems.sp
War3Source_Addon_ShopItems2.sp
tf2attributes.sp 

and put the resulting SMXs into your game directory along with War3Source.smx?

Anything else did you do?

What does the structure of your directory look like with War3Source.smx installed? (what other files)

War3Evo commented 1 year ago

Do note that not everything will compile because a lot of the races haven't been updated for CSGO.

geoka99 commented 1 year ago

Hi! I discovered another problem: // C:\Users\George\Desktop\Compiler\addons\sourcemod\scripting\War3Source_0000_SkillsRaceSwapTest_OPT.sp(6) : error 001: expected token: "#endif", but found "-end of file-" // // 1 Error. // I try with "#if defined" but...

War3Evo commented 1 year ago

This means, if game type is css or CSGO, DON'T COMPILE

#if (GGAMETYPE == GGAME_CSS || GGAMETYPE == GGAME_CSGO)
    #endinput
#endif

I usually compile everything and when it errors like that, I know it didn't compile that ON PURPOSE.

War3Evo commented 1 year ago

The code is written in SourceMod 1.7 & 1.8 language. Any updates to thier new language won't work.

KorinFlakes commented 1 year ago

Sorry for the late reply, I had missed a number of SP files when I compiled it and that's what was causing the crashes.

I've added them all and the server runs fine but after 5 mins of being connected to the server each client gets DispatchAsyncEvent backlog, failed to dispatch all this frame.

Spammed in their console and your FPS drops drastically. It doesn't happen to each client at the same time, just randomly after a few minutes of being connected. The only way to fix the lag is to restart the entire game once it starts.

The only sourcemod mods I'm running are this one and deathmatch and it only started after I reinstalled the warcraft mod.

War3Evo commented 1 year ago

This original topic was never an issue, so I'm closing it and moving it to discussion.