A little es help

A place for requesting new Source.Python plugins to be made for your server.

Please request only one plugin per thread.
User avatar
hugo5511
Junior Member
Posts: 25
Joined: Mon Jun 29, 2015 1:20 am

A little es help

Postby hugo5511 » Thu Oct 11, 2018 1:48 pm

Kami wrote this script in es and for the most part is works (crashes the server on maps with many entitys) could someone look at at
and remove the collision vector and maybe tweak anything else they may think will help , I don't mind the func_breakable (windows) having two layers
it is the func_doors (lifts) func_door_rotating (doors) and the prop_physics (all) thanks

Code: Select all

import es
import corelib
import gamethread

ent_dict = {}
remove_list = {}

def es_map_start(ev):
   gamethread.delayed(1.0,do_it)
   
def do_it():
   #Put all entities in a dictionary and assign the location to its index. Structure: Classname -> Index -> Location
   remove_list = {}
   ents = es.createentitylist()
   for ent in ents:
      class_name = ents[ent]['classname']
      if class_name not in ent_dict:
         ent_dict[class_name] = {}
      loc = es.getindexprop(ent, 'CBaseEntity.m_vecOrigin')
      if str(loc) == "0.000000,0.000000,0.000000":
         loc = es.getindexprop(ent, 'CBaseEntity.m_Collision.m_vecMins')
      ent_dict[class_name][ent] = loc
   

   #Put entities in the remove_list only if the location  is not used yet.
   for class_name in ent_dict:
      #ent_dict[class_name] = entity index
      
      #Check if the class_name was assigned to the remove_list before
      if class_name not in remove_list:
      
         #If not, assign it an empty dictionary to keep all entities with the same name but with different location
         remove_list[class_name] = []
      
      #Loop through all the locations for that given classname
      for loc in ent_dict[class_name]:
         
         #If the location is not in the remove_dict already add it, if it is, remove the entity
         if ent_dict[class_name][loc] not in remove_list[class_name]:
            remove_list[class_name].append(ent_dict[class_name][loc])
         else:
            if str(ent_dict[class_name][loc]) != "0.000000,0.000000,0.000000":
               es.remove(loc)
User avatar
Kami
Global Moderator
Posts: 263
Joined: Wed Aug 15, 2012 1:24 am
Location: Germany

Re: A little es help

Postby Kami » Fri Oct 12, 2018 6:58 pm

Could you name a map that crashes? I tried dms_spookface1 which you mentioned in another post but it works fine on that map!
User avatar
hugo5511
Junior Member
Posts: 25
Joined: Mon Jun 29, 2015 1:20 am

Re: A little es help

Postby hugo5511 » Sat Oct 13, 2018 2:05 pm

Kami,
I tried again today with the server auto-restart bat off and here is the console log for dms_spookface1 with the server auto-restart on
it will just keep restarting over and over

here is a link for the map(s) i use and also a smaller map that has push carts, boxes, prop_physics easy to test on.

http://hldms1157.com/hl1mp/maps/4vs4.bsp.bz2

http://hldms1157.com/hl1mp/maps/dms_spookface1.bsp.bz2

on the smaller one (4vs4) the console log "looks" like it removing the dupes but there still is two push carts ect, on this map it does not crash.
Thanks



Code: Select all

autokick is disabled for Spooky Action At A Distance
 Spooky Action At A Distance  has played  34074  maps
 1157[ADMIN]
Spooky Action At A Distance: rules
Spooky Action At A Distance: rank
---- Host_Changelevel ----
Error loading cfg/pure_server_minimal.txt
********************************************************
************* Mani Admin Plugin Level Init *************
********************************************************
Time for read = [0.000074]
Calculate Stats total time [0.000002]
Steam ID Player Stats memory usage 0.035904MB with 101 records
Name Player Stats memory usage 0.000000MB with 0 records
Stats Loaded in 0.0050 seconds
Steam ID Player Settings memory usage 0.048923MB with 171 records
Name Player Settings memory usage 0.000000MB with 0 records
Player Lists Loaded in 0.0038 seconds
********************************************************
 Mani Admin Plugin Level Init Time = 0.307 seconds
********************************************************
[EventScripts] Map Loading Mattie's EventScripts Beta 2.1.1.379...
[EventScripts] Loaded successfully.
.
[EventScripts Version Check] Server is up-to-date.
Attempted to create unknown entity type info_ladder!
Can't init info_ladder
Attempted to create unknown entity type info_ladder!
Can't init info_ladder
Attempted to create unknown entity type info_ladder!
Can't init info_ladder
Attempted to create unknown entity type info_ladder!
Can't init info_ladder
Attempted to create unknown entity type info_ladder!
Can't init info_ladder
Attempted to create unknown entity type info_ladder!
Can't init info_ladder
Attempted to create unknown entity type info_ladder!
Can't init info_ladder
Attempted to create unknown entity type info_ladder!
Can't init info_ladder
Attempted to create unknown entity type info_ladder!
Can't init info_ladder
Attempted to create unknown entity type info_ladder!
Can't init info_ladder
Attempted to create unknown entity type info_ladder!
Can't init info_ladder
Attempted to create unknown entity type info_ladder!
Can't init info_ladder
Attempted to create unknown entity type info_ladder!
Can't init info_ladder
Attempted to create unknown entity type info_ladder!
Can't init info_ladder
Attempted to create unknown entity type info_ladder!
Can't init info_ladder
Attempted to create unknown entity type info_ladder!
Can't init info_ladder
[EventScripts] excepthook was already loaded
[EventScripts] autokick_disabler was already loaded
[EventScripts] bodyremover was already loaded
[EventScripts] dontblock was already loaded
[EventScripts] logconnection was already loaded
[EventScripts] Load script failed. It might already be loaded, try to es_unload it first. stats
[EventScripts] Load script failed. It might already be loaded, try to es_unload it first. hpleft
[EventScripts] Load script failed. It might already be loaded, try to es_unload it first. gabee
[EventScripts] Load script failed. It might already be loaded, try to es_unload it first. waterguns
[EventScripts] disco was already loaded
[EventScripts] mapsize was already loaded
[EventScripts] Load script failed. It might already be loaded, try to es_unload it first. connect_sounds
[EventScripts] Load script failed. It might already be loaded, try to es_unload it first. word_sound
[EventScripts] bjokes was already loaded
[EventScripts] Load script failed. It might already be loaded, try to es_unload it first. hurt_sounds
[EventScripts] Load script failed. It might already be loaded, try to es_unload it first. validater
[EventScripts] fixer was already loaded
[EventScripts] excepthook was already loaded
[EventScripts] autokick_disabler was already loaded
[EventScripts] bodyremover was already loaded
[EventScripts] dontblock was already loaded
[EventScripts] logconnection was already loaded
[EventScripts] Load script failed. It might already be loaded, try to es_unload it first. stats
[EventScripts] Load script failed. It might already be loaded, try to es_unload it first. hpleft
[EventScripts] Load script failed. It might already be loaded, try to es_unload it first. gabee
[EventScripts] Load script failed. It might already be loaded, try to es_unload it first. waterguns
[EventScripts] disco was already loaded
[EventScripts] mapsize was already loaded
[EventScripts] Load script failed. It might already be loaded, try to es_unload it first. connect_sounds
[EventScripts] Load script failed. It might already be loaded, try to es_unload it first. word_sound
[EventScripts] bjokes was already loaded
[EventScripts] Load script failed. It might already be loaded, try to es_unload it first. hurt_sounds
[EventScripts] Load script failed. It might already be loaded, try to es_unload it first. validater
[EventScripts] fixer was already loaded
Attempted to create unknown entity type info_ladder!
Can't init info_ladder
Attempted to create unknown entity type info_ladder!
Can't init info_ladder
Attempted to create unknown entity type info_ladder!
Can't init info_ladder
Attempted to create unknown entity type info_ladder!
Can't init info_ladder
Attempted to create unknown entity type info_ladder!
Can't init info_ladder
Attempted to create unknown entity type info_ladder!
Can't init info_ladder
Attempted to create unknown entity type info_ladder!
Can't init info_ladder
Attempted to create unknown entity type info_ladder!
Can't init info_ladder
Attempted to create unknown entity type info_ladder!
Can't init info_ladder
Attempted to create unknown entity type info_ladder!
Can't init info_ladder
Attempted to create unknown entity type info_ladder!
Can't init info_ladder
Attempted to create unknown entity type info_ladder!
Can't init info_ladder
Attempted to create unknown entity type info_ladder!
Can't init info_ladder
Attempted to create unknown entity type info_ladder!
Can't init info_ladder
Attempted to create unknown entity type info_ladder!
Can't init info_ladder
Attempted to create unknown entity type info_ladder!
Can't init info_ladder
'cfg/motd.txt' not found; not loaded
'cfg/motd_text.txt' not found; not loaded
SV_ActivateServer: setting tickrate to 66.0
Found [0] team manager entities
Searching for game type [Half-Life Deathmatch: Source]
Using class unknown mod for defaults
[EventScripts] excepthook was already loaded
[EventScripts] autokick_disabler was already loaded
[EventScripts] bodyremover was already loaded
[EventScripts] dontblock was already loaded
[EventScripts] logconnection was already loaded
[EventScripts] Load script failed. It might already be loaded, try to es_unload it first. stats
[EventScripts] Load script failed. It might already be loaded, try to es_unload it first. hpleft
[EventScripts] Load script failed. It might already be loaded, try to es_unload it first. gabee
[EventScripts] Load script failed. It might already be loaded, try to es_unload it first. waterguns
[EventScripts] disco was already loaded
[EventScripts] mapsize was already loaded
[EventScripts] Load script failed. It might already be loaded, try to es_unload it first. connect_sounds
[EventScripts] Load script failed. It might already be loaded, try to es_unload it first. word_sound
[EventScripts] bjokes was already loaded
[EventScripts] Load script failed. It might already be loaded, try to es_unload it first. hurt_sounds
[EventScripts] Load script failed. It might already be loaded, try to es_unload it first. validater
[EventScripts] fixer was already loaded
******     Executing mani_server.cfg      ******
'mani_quake_sounds.cfg' not present; not executing.
'mani_skins.cfg' not present; not executing.
****** Finished executing mani_server.cfg ******
Removed info_teleport_destination(cube1)
Removed info_teleport_destination(cube2)
Removed func_illusionary(func_illusionary)
Removed trigger_teleport(trigger_teleport)
Removed func_illusionary(func_illusionary)
Removed func_illusionary(func_illusionary)
Removed func_illusionary(func_illusionary)
Removed func_illusionary(func_illusionary)
Removed info_player_deathmatch(info_player_deathmatch)
Removed info_player_deathmatch(info_player_deathmatch)
Removed info_player_deathmatch(info_player_deathmatch)
Removed info_player_deathmatch(info_player_deathmatch)
Removed info_player_deathmatch(info_player_deathmatch)
Removed info_player_deathmatch(info_player_deathmatch)
Removed info_player_deathmatch(info_player_deathmatch)
Removed info_player_deathmatch(info_player_deathmatch)
Removed info_player_deathmatch(info_player_deathmatch)
Removed info_player_deathmatch(info_player_deathmatch)
Removed info_player_deathmatch(info_player_deathmatch)
Removed info_player_deathmatch(info_player_deathmatch)
Removed info_player_deathmatch(info_player_deathmatch)
Removed info_player_deathmatch(info_player_deathmatch)
Removed info_player_deathmatch(info_player_deathmatch)
Removed info_player_deathmatch(info_player_deathmatch)
Removed info_player_deathmatch(info_player_deathmatch)
Removed info_player_deathmatch(info_player_deathmatch)
Removed info_player_deathmatch(info_player_deathmatch)
Removed info_player_deathmatch(info_player_deathmatch)
Removed info_player_deathmatch(info_player_deathmatch)
Removed info_player_deathmatch(info_player_deathmatch)
Removed info_player_deathmatch(info_player_deathmatch)
Removed info_player_deathmatch(info_player_deathmatch)
Removed info_player_deathmatch(info_player_deathmatch)
Removed info_player_deathmatch(info_player_deathmatch)
Removed info_player_deathmatch(info_player_deathmatch)
Removed info_player_deathmatch(info_player_deathmatch)
Removed info_player_deathmatch(info_player_deathmatch)
Removed info_player_deathmatch(info_player_deathmatch)
Removed info_player_deathmatch(info_player_deathmatch)
Removed info_player_deathmatch(info_player_deathmatch)
Removed info_player_deathmatch(info_player_deathmatch)
Removed info_player_deathmatch(info_player_deathmatch)
Removed weapon_357(weapon_357)
Removed weapon_357(weapon_357)
Removed weapon_357(weapon_357)
Removed weapon_357(weapon_357)
Removed func_illusionary(func_illusionary)
Removed weapon_357(weapon_357)
Removed info_teleport_destination(the_top)
Removed func_illusionary(func_illusionary)
Removed func_illusionary(func_illusionary)
Removed weapon_shotgun(weapon_shotgun)
Removed weapon_shotgun(weapon_shotgun)
Removed weapon_shotgun(weapon_shotgun)
Removed weapon_shotgun(weapon_shotgun)
Removed weapon_shotgun(weapon_shotgun)
Removed weapon_shotgun(weapon_shotgun)
Removed weapon_shotgun(weapon_shotgun)
Removed weapon_shotgun(weapon_shotgun)
Removed weapon_shotgun(weapon_shotgun)
Removed weapon_shotgun(weapon_shotgun)
Removed info_teleport_destination(runner2)
Removed info_teleport_destination(dropzone)
Removed info_teleport_destination(the_tip_top)
Removed info_teleport_destination(fly2)
Removed info_teleport_destination(fly1)
Removed info_teleport_destination(info_teleport_destination)
Removed info_teleport_destination(dropzone2)
Removed info_teleport_destination(abz)
Removed info_teleport_destination(info_teleport_destination)
Removed info_teleport_destination(info_teleport_destination)
Removed info_teleport_destination(obs1)
Removed info_teleport_destination(maskme)
Removed info_teleport_destination(butterfly)
Removed info_teleport_destination(runner1)
Removed ammo_rpgclip(ammo_rpgclip)
Removed ammo_rpgclip(ammo_rpgclip)
Removed ammo_rpgclip(ammo_rpgclip)
Removed ammo_rpgclip(ammo_rpgclip)
Removed ammo_rpgclip(ammo_rpgclip)
Removed ammo_rpgclip(ammo_rpgclip)
Removed ammo_rpgclip(ammo_rpgclip)
Removed func_illusionary(func_illusionary)
Removed func_breakable(func_breakable)
Removed ammo_rpgclip(ammo_rpgclip)
Removed ammo_rpgclip(ammo_rpgclip)
Removed ammo_rpgclip(ammo_rpgclip)
Removed ambient_generic(chime3)
Removed ammo_rpgclip(ammo_rpgclip)
Removed ammo_rpgclip(ammo_rpgclip)
Removed ammo_rpgclip(ammo_rpgclip)
Removed ammo_9mmbox(ammo_9mmbox)
Removed ammo_9mmbox(ammo_9mmbox)
Removed ammo_9mmbox(ammo_9mmbox)
Removed ammo_9mmbox(ammo_9mmbox)
Removed ammo_9mmbox(ammo_9mmbox)
Removed ammo_9mmbox(ammo_9mmbox)
Removed ammo_9mmbox(ammo_9mmbox)
Removed func_illusionary(func_illusionary)
Removed func_illusionary(func_illusionary)
Removed func_illusionary(func_illusionary)
Removed func_illusionary(func_illusionary)
Removed func_illusionary(func_illusionary)
Removed func_illusionary(func_illusionary)
Removed func_illusionary(func_illusionary)
Removed func_illusionary(func_illusionary)
Removed func_illusionary(func_illusionary)
Removed func_illusionary(func_illusionary)
Removed func_illusionary(func_illusionary)
Removed func_illusionary(func_illusionary)
Removed func_illusionary(func_illusionary)
Removed func_illusionary(func_illusionary)
Removed func_illusionary(func_illusionary)
Removed func_illusionary(func_illusionary)
Removed func_illusionary(func_illusionary)
Removed func_illusionary(func_illusionary)
Removed func_illusionary(func_illusionary)
Removed func_illusionary(func_illusionary)
Removed func_illusionary(func_illusionary)
Removed func_illusionary(func_illusionary)
Removed func_illusionary(func_illusionary)
Removed func_illusionary(func_illusionary)
Removed func_illusionary(func_illusionary)
Removed func_illusionary(func_illusionary)
Removed func_illusionary(func_illusionary)
Removed func_illusionary(func_illusionary)
Removed func_illusionary(func_illusionary)
Removed func_illusionary(func_illusionary)
Removed func_illusionary(func_illusionary)
Removed func_illusionary(func_illusionary)
Removed func_illusionary(func_illusionary)
Removed func_illusionary(func_illusionary)
Removed func_illusionary(func_illusionary)
Removed func_illusionary(func_illusionary)
Removed func_illusionary(func_illusionary)
Removed func_illusionary(func_illusionary)
Removed func_illusionary(func_illusionary)
Removed func_illusionary(func_illusionary)
Removed func_illusionary(func_illusionary)
Removed func_illusionary(func_illusionary)
Removed func_illusionary(func_illusionary)
Removed info_target(butter)
Removed info_target(med_1)
Removed info_player_start(info_player_start)
Removed ambient_generic(chime2)
Removed info_player_start(info_player_start)
Removed info_player_start(info_player_start)
Removed info_player_start(info_player_start)
Removed ammo_9mmclip(ammo_9mmclip)
Removed ammo_9mmclip(ammo_9mmclip)
Removed info_target(med_1)
Removed func_healthcharger(func_healthcharger)
Removed func_healthcharger(func_healthcharger)
Removed func_healthcharger(func_healthcharger)
Removed func_healthcharger(func_healthcharger)
Removed func_illusionary(func_illusionary)
Removed func_healthcharger(func_healthcharger)
Removed func_door(func_door)
Removed func_occluder(func_occluder)
Removed func_illusionary(func_illusionary)
Removed weapon_handgrenade(weapon_handgrenade)
Removed weapon_handgrenade(weapon_handgrenade)
Removed weapon_handgrenade(weapon_handgrenade)
Removed weapon_handgrenade(weapon_handgrenade)
Removed weapon_handgrenade(weapon_handgrenade)
Removed weapon_handgrenade(weapon_handgrenade)
Removed weapon_handgrenade(weapon_handgrenade)
Removed weapon_handgrenade(weapon_handgrenade)
Removed weapon_handgrenade(weapon_handgrenade)
Removed weapon_handgrenade(weapon_handgrenade)
Removed weapon_handgrenade(weapon_handgrenade)
Removed weapon_handgrenade(weapon_handgrenade)
Removed weapon_handgrenade(weapon_handgrenade)
Removed weapon_handgrenade(weapon_handgrenade)
Removed weapon_handgrenade(weapon_handgrenade)
Removed weapon_handgrenade(weapon_handgrenade)
Removed trigger_multiple(trigger_multiple)
Removed ambient_generic(thunder2)
Removed ambient_generic(chime1)
Removed trigger_multiple(trigger_multiple)
Removed weapon_handgrenade(weapon_handgrenade)
Removed weapon_handgrenade(weapon_handgrenade)
Removed env_soundscape(env_soundscape)
Removed weapon_handgrenade(weapon_handgrenade)
Removed trigger_push(pushme1)
Removed trigger_push(pushup4)
Removed trigger_push(pushup2)
Removed trigger_push(pushup1)
Removed trigger_push(pushup3)
Removed trigger_push(pushme2)
Removed func_healthcharger(func_healthcharger)
Removed item_healthkit(item_healthkit)
Removed item_healthkit(item_healthkit)
Removed item_healthkit(item_healthkit)
Removed item_healthkit(item_healthkit)
Removed item_healthkit(item_healthkit)
Removed item_healthkit(item_healthkit)
Removed item_healthkit(item_healthkit)
Removed item_healthkit(item_healthkit)
Removed item_healthkit(item_healthkit)
Removed item_healthkit(item_healthkit)
Removed item_healthkit(item_healthkit)
Removed item_healthkit(item_healthkit)
Removed item_healthkit(item_healthkit)
Removed item_healthkit(item_healthkit)
Removed item_healthkit(item_healthkit)
Removed item_healthkit(item_healthkit)
Removed item_healthkit(item_healthkit)
Removed item_healthkit(item_healthkit)
Removed item_healthkit(item_healthkit)
Removed item_healthkit(item_healthkit)
Removed item_healthkit(item_healthkit)
Removed item_healthkit(item_healthkit)
Removed item_healthkit(item_healthkit)
Removed prop_physics_multiplayer(prop_physics_multiplayer)
Removed item_healthkit(item_healthkit)
Removed item_healthkit(item_healthkit)
Removed item_healthkit(item_healthkit)
Removed item_healthkit(item_healthkit)
Removed item_healthkit(item_healthkit)
Removed item_healthkit(item_healthkit)
Removed item_healthkit(item_healthkit)
Removed item_healthkit(item_healthkit)
Removed item_healthkit(item_healthkit)
Removed item_healthkit(item_healthkit)
Removed item_healthkit(item_healthkit)
Removed item_healthkit(item_healthkit)
Removed item_healthkit(item_healthkit)
Removed item_healthkit(item_healthkit)
Removed item_healthkit(item_healthkit)
Removed item_healthkit(item_healthkit)
Removed func_illusionary(func_illusionary)
Removed game_text(titletextname3)
Removed game_text(titletextname5)
Removed game_text(titletextname2)
Removed game_text(titletextname1)
Removed game_text(titletextname4)
Removed ammo_9mmAR(ammo_9mmAR)
Removed ammo_9mmAR(ammo_9mmAR)
Removed func_illusionary(func_illusionary)
Removed weapon_mp5(weapon_mp5)
Removed weapon_mp5(weapon_mp5)
Removed func_healthcharger(func_healthcharger)
Removed info_target(info_target)
Removed weapon_mp5(weapon_mp5)
Removed weapon_mp5(weapon_mp5)
Removed weapon_mp5(weapon_mp5)
Removed weapon_mp5(weapon_mp5)
Removed weapon_mp5(weapon_mp5)
Removed weapon_mp5(weapon_mp5)
Removed func_dustmotes(func_dustmotes)
Removed trigger_teleport(trigger_teleport)
Removed trigger_teleport(trigger_teleport)
Removed trigger_teleport(trigger_teleport)
Removed trigger_teleport(trigger_teleport)
Removed trigger_teleport(trigger_teleport)
Removed trigger_teleport(trigger_teleport)
Removed trigger_teleport(trigger_teleport)
Removed trigger_teleport(trigger_teleport)
Removed trigger_teleport(trigger_teleport)
Removed trigger_teleport(trigger_teleport)
Removed trigger_teleport(trigger_teleport)
Removed trigger_teleport(trigger_teleport)
Removed trigger_teleport(tomask)
Removed trigger_teleport(trigger_teleport)
Removed trigger_teleport(trigger_teleport)
Removed env_sprite(env_sprite)
Removed env_sprite(env_sprite)
Removed func_button(button6)
Removed func_button(button2)
Removed func_button(button4)
Removed func_button(button2)
Removed func_button(func_button)
Removed func_button(func_button)
Removed func_button(button5)
Removed func_button(button7)
Removed func_button(button3)
Removed env_soundscape(env_soundscape)
Removed env_soundscape(env_soundscape)
Removed env_soundscape(env_soundscape)
Removed env_soundscape(env_soundscape)
Removed env_soundscape(env_soundscape)
Removed env_soundscape(env_soundscape)
Removed env_soundscape(env_soundscape)
Removed func_door(func_door)
Removed func_breakable(func_breakable)
Removed ammo_357(ammo_357)
Removed ammo_357(ammo_357)
Removed ammo_357(ammo_357)
Removed ammo_357(ammo_357)
Removed ammo_357(ammo_357)
Removed ammo_357(ammo_357)
Removed func_breakable(func_breakable)
Removed func_illusionary(func_illusionary)
Removed item_battery(item_battery)
Removed item_battery(item_battery)
Removed item_battery(item_battery)
Removed item_battery(item_battery)
Removed item_battery(item_battery)
Removed item_battery(item_battery)
Removed item_battery(item_battery)
Removed item_battery(item_battery)
Removed item_battery(item_battery)
Removed item_battery(item_battery)
Removed item_battery(item_battery)
Removed item_battery(item_battery)
Removed item_battery(item_battery)
Removed item_battery(item_battery)
Removed item_battery(item_battery)
Removed item_battery(item_battery)
Removed item_battery(item_battery)
Removed item_battery(item_battery)
Removed item_battery(item_battery)
Removed item_battery(item_battery)
Removed item_battery(item_battery)
Removed item_battery(item_battery)
Removed item_battery(item_battery)
Removed item_battery(item_battery)
Removed item_battery(item_battery)
Removed item_battery(item_battery)
Removed item_battery(item_battery)
Removed item_battery(item_battery)
Removed item_battery(item_battery)
Removed item_battery(item_battery)
Removed item_battery(item_battery)
Removed item_battery(item_battery)
Removed item_battery(item_battery)
Removed item_battery(item_battery)
Removed item_battery(item_battery)
Removed item_battery(item_battery)
Removed item_battery(item_battery)
Removed item_battery(item_battery)
Removed item_battery(item_battery)
Removed item_battery(item_battery)
Removed item_battery(item_battery)
Removed ammo_ARgrenades(ammo_ARgrenades)
Removed ammo_ARgrenades(ammo_ARgrenades)
Removed ammo_ARgrenades(ammo_ARgrenades)
Removed ammo_ARgrenades(ammo_ARgrenades)
Removed ammo_ARgrenades(ammo_ARgrenades)
Removed ammo_ARgrenades(ammo_ARgrenades)
Removed ammo_ARgrenades(ammo_ARgrenades)
Removed ammo_ARgrenades(ammo_ARgrenades)
Removed ammo_ARgrenades(ammo_ARgrenades)
Removed ammo_ARgrenades(ammo_ARgrenades)
Removed ammo_ARgrenades(ammo_ARgrenades)
Removed ammo_ARgrenades(ammo_ARgrenades)
Removed ammo_ARgrenades(ammo_ARgrenades)
Removed ammo_ARgrenades(ammo_ARgrenades)
Removed ammo_crossbow(ammo_crossbow)
Removed ammo_crossbow(ammo_crossbow)
Removed ammo_crossbow(ammo_crossbow)
Removed ammo_crossbow(ammo_crossbow)
Removed ammo_crossbow(ammo_crossbow)
Removed ammo_crossbow(ammo_crossbow)
Removed ammo_crossbow(ammo_crossbow)
Removed ammo_crossbow(ammo_crossbow)
Removed ammo_crossbow(ammo_crossbow)
Removed ammo_crossbow(ammo_crossbow)
Removed ammo_crossbow(ammo_crossbow)
Removed ammo_crossbow(ammo_crossbow)
Removed ammo_crossbow(ammo_crossbow)
Removed ammo_crossbow(ammo_crossbow)
Removed prop_physics_multiplayer(prop_physics_multiplayer)
Removed ammo_crossbow(ammo_crossbow)
Removed func_breakable(func_breakable)
Removed ammo_crossbow(ammo_crossbow)
Removed ammo_crossbow(ammo_crossbow)
Removed ammo_crossbow(ammo_crossbow)
Removed trigger_multiple(trigger_multiple)
Removed ammo_crossbow(ammo_crossbow)
Removed ammo_crossbow(ammo_crossbow)
Removed ammo_crossbow(ammo_crossbow)
Removed trigger_gravity(trigger_gravity)
Removed trigger_gravity(freefly)
Removed trigger_gravity(trigger_gravity)
Removed trigger_gravity(trigger_gravity)
Removed func_wall_toggle(popup4)
Removed func_healthcharger(func_healthcharger)
Removed func_illusionary(func_illusionary)
Removed func_healthcharger(func_healthcharger)
Removed func_illusionary(func_illusionary)
Removed func_door(func_door)
Removed func_illusionary(func_illusionary)
Removed trigger_teleport(trigger_teleport)
Removed trigger_teleport(trigger_teleport)
Removed prop_physics_multiplayer(prop_physics_multiplayer)
Removed prop_physics_multiplayer(prop_physics_multiplayer)
Removed prop_physics_multiplayer(prop_physics_multiplayer)
Removed prop_physics_multiplayer(prop_physics_multiplayer)
Removed prop_physics_multiplayer(prop_physics_multiplayer)
Removed prop_physics_multiplayer(prop_physics_multiplayer)
Removed func_breakable(func_breakable)
Removed func_breakable(func_breakable)
Removed trigger_push(pushup3)
Removed trigger_multiple(trigger_multiple)
Removed ambient_generic(ambient_generic)
Removed env_soundscape(env_soundscape)
Removed worldspawn(worldspawn)
Removed ambient_generic(hightower1)
Removed env_soundscape(env_soundscape)
Removed env_soundscape(env_soundscape)
Removed ambient_generic(OnPlayerJoin)
Removed weapon_hornetgun(weapon_hornetgun)
Removed func_breakable(func_breakable)
Removed func_illusionary(func_illusionary)
Removed func_wall_toggle(popup3)
Removed func_wall_toggle(func_wall_toggle)
Removed func_wall_toggle(popup1)
Removed func_wall_toggle(peekaboo1)
Removed func_wall_toggle(peekaboo1)
Removed func_wall_toggle(mask)
Removed func_wall_toggle(peekaboo1)
Removed func_wall_toggle(popup2)
Removed ammo_buckshot(ammo_buckshot)
Removed ammo_buckshot(ammo_buckshot)
Removed ammo_buckshot(ammo_buckshot)
Removed trigger_teleport(trigger_teleport)
Removed ammo_buckshot(ammo_buckshot)
Removed func_door(func_door)
Removed ammo_buckshot(ammo_buckshot)
Removed ammo_buckshot(ammo_buckshot)
Removed ammo_buckshot(ammo_buckshot)
Removed ammo_buckshot(ammo_buckshot)
Removed ammo_buckshot(ammo_buckshot)
Removed ammo_buckshot(ammo_buckshot)
Removed ammo_buckshot(ammo_buckshot)
Removed ammo_buckshot(ammo_buckshot)
Removed ammo_buckshot(ammo_buckshot)
Removed ammo_buckshot(ammo_buckshot)
Removed ammo_buckshot(ammo_buckshot)
Removed ammo_buckshot(ammo_buckshot)
Removed ammo_buckshot(ammo_buckshot)
Removed ammo_gaussclip(ammo_gaussclip)
Removed ammo_gaussclip(ammo_gaussclip)
Removed ammo_gaussclip(ammo_gaussclip)
Removed ammo_gaussclip(ammo_gaussclip)
Removed func_brush(beam1)
Removed func_illusionary(func_illusionary)
Removed item_longjump(item_longjump)
Removed item_longjump(item_longjump)
Removed item_longjump(item_longjump)
Removed item_longjump(item_longjump)
Removed item_longjump(item_longjump)
Removed item_longjump(item_longjump)
Removed item_longjump(item_longjump)
Removed func_door(func_door)
Removed func_door(func_door)
Removed func_door(2secret1)
Removed func_door(func_door)
Removed func_door(func_door)
Removed func_door(func_door)
Removed func_door(func_door)
Removed func_door(Buttercup)
Removed weapon_satchel(weapon_satchel)
Removed weapon_satchel(weapon_satchel)
Removed weapon_satchel(weapon_satchel)
Removed weapon_satchel(weapon_satchel)
Removed weapon_satchel(weapon_satchel)
Removed weapon_satchel(weapon_satchel)
Removed weapon_satchel(weapon_satchel)
Removed weapon_satchel(weapon_satchel)
Removed weapon_satchel(weapon_satchel)
Removed weapon_satchel(weapon_satchel)
Removed water_lod_control(water_lod_control)
Removed water_lod_control(water_lod_control)
Removed weapon_rpg(weapon_rpg)
Removed weapon_rpg(weapon_rpg)
Removed weapon_rpg(weapon_rpg)
Removed trigger_multiple(trigger_multiple)
Removed weapon_rpg(weapon_rpg)
Removed weapon_rpg(weapon_rpg)
Removed func_breakable(func_breakable)
Removed weapon_rpg(weapon_rpg)
Removed func_illusionary(func_illusionary)
Removed func_illusionary(func_illusionary)
Removed trigger_multiple(trigger_multiple)
Removed trigger_multiple(trigger_multiple)
Removed trigger_multiple(trigger_multiple)
Removed trigger_multiple(trigger_multiple)
Removed trigger_multiple(trigger_multiple)
Removed trigger_multiple(trigger_multiple)
Removed trigger_multiple(trigger_multiple)
Removed trigger_multiple(trigger_multiple)
Removed trigger_multiple(trigger_multiple)
Removed trigger_multiple(trigger_multiple)
Removed trigger_multiple(trigger_multiple)
Removed trigger_multiple(trigger_multiple)
Removed func_occluder(func_occluder)
Removed weapon_crossbow(weapon_crossbow)
Removed weapon_crossbow(weapon_crossbow)
Removed weapon_crossbow(weapon_crossbow)
Removed weapon_crossbow(weapon_crossbow)
Removed weapon_crossbow(weapon_crossbow)
Removed weapon_crossbow(weapon_crossbow)
Removed weapon_crossbow(weapon_crossbow)
Removed weapon_crossbow(weapon_crossbow)
Removed weapon_crossbow(weapon_crossbow)
Removed weapon_crossbow(weapon_crossbow)
Removed weapon_crossbow(weapon_crossbow)
Removed weapon_crossbow(weapon_crossbow)
Removed weapon_crossbow(weapon_crossbow)
Removed weapon_crossbow(weapon_crossbow)
Removed weapon_crossbow(weapon_crossbow)
Removed weapon_crossbow(weapon_crossbow)
Removed weapon_crossbow(weapon_crossbow)
Removed weapon_crossbow(weapon_crossbow)
Removed weapon_crossbow(weapon_crossbow)
Removed env_soundscape(env_soundscape)
Removed weapon_gauss(weapon_gauss)
Removed func_breakable(func_breakable)
Removed weapon_snark(weapon_snark)
Removed weapon_snark(weapon_snark)
Removed func_breakable(func_breakable)
Removed func_breakable(func_breakable)
Removed func_breakable(func_breakable)
Removed func_breakable(func_breakable)
Removed func_breakable(func_breakable)
Removed func_breakable(func_breakable)
Removed func_breakable(func_breakable)
Removed func_breakable(func_breakable)
Removed func_breakable(func_breakable)
Removed func_breakable(func_breakable)
Removed func_breakable(func_breakable)
Removed func_breakable(func_breakable)
Removed func_breakable(func_breakable)
Removed func_breakable(func_breakable)
Removed func_breakable(func_breakable)
Removed func_breakable(func_breakable)
Removed ambient_generic(memory)
Removed ambient_generic(hightower)
Removed ambient_generic(chime5)
Removed ambient_generic(bell3)
Removed ambient_generic(bell2)
Removed ambient_generic(bell1)
Removed ambient_generic(warn1)
Removed ambient_generic(thunder1)
Removed ambient_generic(ambient_generic)
Removed ambient_generic(ambient_generic)
Removed ambient_generic(ambient_generic)
Removed ambient_generic(ambient_generic)
Removed ambient_generic(ambient_generic)
Removed ambient_generic(ambient_generic)
Removed ambient_generic(memory1)
Removed ambient_generic(ambient_generic)
Removed item_suit(item_suit)
Removed weapon_egon(weapon_egon)gg
User avatar
L'In20Cible
Project Leader
Posts: 1533
Joined: Sat Jul 14, 2012 9:29 pm
Location: Québec

Re: A little es help

Postby L'In20Cible » Sat Oct 13, 2018 2:51 pm

Replace:

Syntax: Select all

es.remove(loc)

With:

Syntax: Select all

es.server.queuecmd('es_xremove %i' % loc)
User avatar
Kami
Global Moderator
Posts: 263
Joined: Wed Aug 15, 2012 1:24 am
Location: Germany

Re: A little es help

Postby Kami » Sat Oct 13, 2018 3:44 pm

I did some testing and it seems that not the removing itself is the problem. I can change maps as often as I want without crashing when I'm not on it, but once I actually join the server after the map has been "cleaned" it crashes, even on boot_camp.

I guess that there is some essential entity for players to spawn or to interact with them in any way that if missing will crash the server.

I'm not sure if I'm right, but if I am we'll need to find out what entity that is and exclude it from beeing removed.

Edit: I also found get this message when it crashes:

Image
User avatar
hugo5511
Junior Member
Posts: 25
Joined: Mon Jun 29, 2015 1:20 am

Re: A little es help

Postby hugo5511 » Sat Oct 13, 2018 10:54 pm

@ L'In20Cible I replaced the bit of code at the end and tested, no change, thanks for the input.

Kami
I tried this es script a while ago, it did not work at all but had a cfg file to put in what you need to remove
this may spark a idea.
https://web.archive.org/web/20161024102 ... ty_remover

Code: Select all

Entity Remover - Version 1.0
posted on 2011-01-01 05:34:39
by TheCheeTaH

Requires:

    EventScripts: 2.1 (orange box) or higher

Tags: classname css entity index remover targetname

download  Download Current Version
Description
Allows you to easily remove entites by: 1) targetname. 2) classname. 3) index. You list the entities you want removed in ../cfg/eventscripts/entity_remover/entities.txt :)

Installation
Extract to cstrike\ Modify ../cfg/eventscripts/entity_remover/entities.txt put "es_xload entity_remover" in ../cfg/autoexec.cfg

Version Notes For 1.0
Updated on: 2011-01-01 05:34:39 EST by TheCheeTaH (View Zip Contents)
Released


Code: Select all

# entity_removed.py by TheCheeTaH!
# For entites to remove, check: ../addons/eventscripts/entity_remover/entities.txt
import es

CFGPath = str(es.getAddonPath("entity_remover")).replace("\\addons", "\\cfg").replace("/addons", "/cfg")

def load():
    round_start(None)
    SetUpVersion()

def es_map_start(ev):
    SetUpVersion()

def SetUpVersion():
    PubVar = es.ServerVar("er_version","1.0CheeTaH-Public","Script Version")
    PubVar.set("1.0CheeTaH-Public")
    PubVar.makepublic()

def round_start(ev):
    RemoverDict_Index = {}
    RemoverDict_ClassName = {}
    RemoverDict_TargetName = {}
   
    File = open(CFGPath + '/entities.txt')
    for CurrentLine in File.readlines():
        if str(CurrentLine).lower().startswith('|remove|'):
            SL = CurrentLine.split('|')
            if len(SL) == 5:
                SL2Low = str(SL[2]).lower()
               
                if SL2Low == "classname":
                    RemoverDict_ClassName[SL[3]] = None
                   
                elif SL2Low == "index":
                    RemoverDict_Index[SL[3]] = None
                   
                elif SL2Low == "targetname":
                    RemoverDict_TargetName[SL[3]] = None
                   
                   
    for RemoveThis in RemoverDict_Index:
        es.remove(RemoveThis)
        es.msg("removed index %s" %(RemoveThis))
   
    for RemoveThis in es.createentitylist():
        if str(es.entitygetvalue(RemoveThis, "classname")) in RemoverDict_ClassName:
            es.remove(RemoveThis)
            es.msg("removed classname %s" %(RemoveThis))
   
    for RemoveThis in es.createentitylist():
        if str(es.entitygetvalue(RemoveThis, 'targetname')) in RemoverDict_TargetName:
            es.remove(RemoveThis)
            es.msg("removed targetname %s" %(RemoveThis))


Code: Select all

// Here you list the entities you want to get removed.

// entities gets removed on script load and on round start!

// You can delete entities in 3 ways:
// 1: ClassName (trigger_hurt, etc)
// 2: Index (218, etc) - Highly not recommend as indexes keep changing!
// 3: TargetName (cheese, etc) - Not really recommend!

// The syntax is for removing by class name is:
// |Remove|ClassName|Name|optional comments
// The syntax is for removing by index is:
// |Remove|Index|Number|optional comments
// The syntax is for removing by target name is:
// |Remove|TargetName|Name|optional comments

// Explaination (ClassName):
// Remove is just so the script knows that it isn't a comment line.
// ClassName is so that the script knows you want to remove a entity by class name
// Name is the name of the entity (trigger_hurt, etc)
// Optional comments.. Well yea, guess I don't need to explain that.

// Explaination (Index):
// Remove is just so the script knows that it isn't a comment line.
// Index is so that the script knows you want to remove a entity by index
// Number is the index of the entity (218, etc)
// Optional comments.. Well yea, guess I don't need to explain that.

// Explaination (TargetName):
// Remove is just so the script knows that it isn't a comment line.
// TargetName is so that the script knows you want to remove a entity by target name
// Name is the name of the entity (cheese, etc)
// Optional comments.. Well yea, guess I don't need to explain that.

// Now let's get started (just make up your own, maybe remove mine)

|Remove|ClassName|trigger_hurt|Removes all trigger_hurts from the map
|Remove|TargetName|cheese|Removes all entities with the target-name cheese
// |Remove|Index|218|Removes the entity with index #218 - Commented out since it probably would just crash server if the entity doesn't exists







Thanks for looking into this it has been the server bane since 2013, sourcemod can do it I know we can over here too.
User avatar
hugo5511
Junior Member
Posts: 25
Joined: Mon Jun 29, 2015 1:20 am

Re: A little es help

Postby hugo5511 » Tue Oct 23, 2018 11:48 pm

@Kami,
If this helps i found the Git hub page of the SM plugin that did work
https://github.com/alliedmodders/stripper-source

Dunno if it was set to ID all entitys, strip, then replace.

Thanks
User avatar
hugo5511
Junior Member
Posts: 25
Joined: Mon Jun 29, 2015 1:20 am

Re: A little es help

Postby hugo5511 » Tue Feb 19, 2019 6:09 pm

Kami wrote:I did some testing and it seems that not the removing itself is the problem. I can change maps as often as I want without crashing when I'm not on it, but once I actually join the server after the map has been "cleaned" it crashes, even on boot_camp.

I guess that there is some essential entity for players to spawn or to interact with them in any way that if missing will crash the server.

I'm not sure if I'm right, but if I am we'll need to find out what entity that is and exclude it from beeing removed.

Edit: I also found get this message when it crashes:

Image



maybe some helpful info on this issue

https://github.com/VSES/SourceEngine200 ... ne/cmd.cpp

Return to “Plugin Requests”

Who is online

Users browsing this forum: No registered users and 4 guests