Halflife: [goldsrc] "maps *" command listing maps multiple times.

Created on 21 Feb 2013  路  4Comments  路  Source: ValveSoftware/halflife

Appears in both Half-Life and CS.

] version
Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
Exe build: 17:09:07 Feb 18 2013 (5961)

Screenshot: http://vp-zp.com/zp/goldsrc/con_maps.jpg

Counter-Strike Half-Life reviewed

Most helpful comment

This happens because it searches through all search paths and the same directories are added as different search paths. Either store the results in a set first to eliminate duplicates or make it possible to search through all directories once.

All 4 comments

Confirm. It repeats only default maps, query doesn't matter:

] maps de_dust
-------------
de_dust.bsp
de_dust2.bsp
de_dust.bsp
de_dust2.bsp
de_dust2_2x2.bsp

This also happens on last HLDS build:

Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
Exe build: 15:52:40 Apr  3 2019 (8196)

And if you have many maps loaded, server will lag for a few seconds when you execute maps *

Can confirm this is indeed happening in latest beta branch.

image

This happens because it searches through all search paths and the same directories are added as different search paths. Either store the results in a set first to eliminate duplicates or make it possible to search through all directories once.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

DreaDk picture DreaDk  路  4Comments

ghost picture ghost  路  4Comments

perforatorRU picture perforatorRU  路  3Comments

twisterniq picture twisterniq  路  4Comments

WhiteFang1319 picture WhiteFang1319  路  3Comments