Foohy / jazztronauts

Jazztronauts is a cooperative theft-em-up for Garry's Mod, also known as prop hunt 2.
122 stars 35 forks source link

Server slows down making game unplayable on most Team Fortress 2 maps #119

Closed jack5github closed 8 months ago

jack5github commented 2 years ago

For example, the map ctf_2fort produces the following errors repeatedly in console, and reduces the game speed to less than one frame per second. A map that does not suffer from these problems appears to be arena_nucleus.

MAP STARTED!!!!!!!
Attempted to create unknown entity type func_regenerate! (x8)
Attempted to create unknown entity type filter_activator_tfteam!
Attempted to create unknown entity type func_capturezone!
Attempted to create unknown entity type item_teamflag!
Attempted to create unknown entity type filter_activator_tfteam!
Attempted to create unknown entity type game_intro_viewpoint!
Attempted to create unknown entity type func_respawnroom!
Attempted to create unknown entity type game_intro_viewpoint! (x8)
Attempted to create unknown entity type func_respawnroom! (x2)
Attempted to create unknown entity type info_observer_point! (x3)
Attempted to create unknown entity type func_respawnroom!
Attempted to create unknown entity type item_ammopack_medium!
Attempted to create unknown entity type item_healthkit_medium!
Attempted to create unknown entity type item_ammopack_medium!
Attempted to create unknown entity type item_healthkit_medium!
Attempted to create unknown entity type func_respawnroom! (x2)
Attempted to create unknown entity type info_observer_point!
Attempted to create unknown entity type func_capturezone!
Attempted to create unknown entity type item_teamflag!
Attempted to create unknown entity type func_respawnroomvisualizer! (x6)
Attempted to create unknown entity type info_observer_point! (x3)
Attempted to create unknown entity type func_respawnroomvisualizer! (x2)
Attempted to create unknown entity type item_healthkit_medium!
Attempted to create unknown entity type item_ammopack_medium! (x2)
Attempted to create unknown entity type item_healthkit_medium!
Attempted to create unknown entity type item_healthkit_small!
Attempted to create unknown entity type item_ammopack_small!
Attempted to create unknown entity type item_healthkit_small!
Attempted to create unknown entity type item_ammopack_small!
Attempted to create unknown entity type func_nobuild! (x2)
****SetupIOListener****
Brand new map

[Jazztronauts] gamemodes/jazztronauts/gamemode/map/mapgen.lua:386: attempt to call field 'GetCurrent' (a nil value)
  1. CalculateShardCount - gamemodes/jazztronauts/gamemode/map/mapgen.lua:386
   2. GenerateJazzEntities - gamemodes/jazztronauts/gamemode/init.lua:185
    3. Run - gamemodes/jazztronauts/gamemode/init.lua:153
     4. StartMap - gamemodes/jazztronauts/gamemode/playerwait/playerwait.lua:129
      5. v - gamemodes/jazztronauts/gamemode/playerwait/playerwait.lua:163
       6. unknown - lua/includes/modules/hook.lua:96
lazyRares commented 2 years ago

I had theorized this was because of unsupported entities a while back, because this happens on every map that’s a different source game that isn’t Half life or episodes, because they all have FGD supported entities.

I’m guessing jazztronauts try’s to count all available entities to place shards there, but it reaches a roadblock when it tries to scan an entity that litterally doesn’t exist, so it keeps trying basically slowing the game to a halt.

if you were to decompile any map that does that and remove all unsupported entities and try it again it will work flawlessly. I’ve done this process now to a lot of Portal 2 maps, a few L4D2 ones and CSGO’s ancient.

good luck solving this!