Skip to content

Game crashes when loading/Create Cashe maps with invalid player spot positions #1166

@DevGeniusCode

Description

@DevGeniusCode

This issue happens in Thyme's build, but not in the original game.

There is an issue when loading maps, If a player's spot is placed incorrectly, the loading process halts and the game crashes. In maps like AOD, this is done intentionally to hide the enemy's command center, while still allowing the enemy to be placed in the right spot.

Image

Logs:

DEBUG C:\Users\User\Documents\GitHub\Thyme\src\game\client\maputil.cpp:905: MapCache::Add_Map(): caching 'C:\Users\User\Documents\Command and Conquer Generals Zero Hour Data\Maps\aod general's powers! by twinsen [pashacnc com)\aod general's powers! by twinsen [pashacnc com).map' because 'c:\users\user\documents\command and conquer generals zero hour data\maps\aod general's powers! by twinsen [pashacnc com)\aod general's powers! by twinsen [pashacnc com).map' was not found
DEBUG C:\Users\User\Documents\GitHub\Thyme\src\game\client\maputil.cpp:944: Missing TheKey_mapName!
DEBUG C:\Users\User\Documents\GitHub\Thyme\src\game\client\maputil.cpp:960:   filesize = 42269 bytes
DEBUG C:\Users\User\Documents\GitHub\Thyme\src\game\client\maputil.cpp:961:   displayName = aod general's powers! by twinsen [pashacnc com).map (5)
DEBUG C:\Users\User\Documents\GitHub\Thyme\src\game\client\maputil.cpp:962:   CRC = 547836EE
DEBUG C:\Users\User\Documents\GitHub\Thyme\src\game\client\maputil.cpp:963:   isOfficial = no
DEBUG C:\Users\User\Documents\GitHub\Thyme\src\game\client\maputil.cpp:964:   isMultiplayer = yes
DEBUG C:\Users\User\Documents\GitHub\Thyme\src\game\client\maputil.cpp:965:   numPlayers = 5
DEBUG C:\Users\User\Documents\GitHub\Thyme\src\game\client\maputil.cpp:970:   extent = (0.00,0.00) -> (5000.00,5000.00)
DEBUG C:\Users\User\Documents\GitHub\Thyme\src\game\client\maputil.cpp:973:     waypoint Player_1_Start: (1620.00,1410.00)
DEBUG C:\Users\User\Documents\GitHub\Thyme\src\game\client\maputil.cpp:973:     waypoint Player_2_Start: (3570.00,1410.00)
DEBUG C:\Users\User\Documents\GitHub\Thyme\src\game\client\maputil.cpp:973:     waypoint Player_3_Start: (1620.00,3530.00)
DEBUG C:\Users\User\Documents\GitHub\Thyme\src\game\client\maputil.cpp:973:     waypoint Player_4_Start: (3570.00,3530.00)
DEBUG C:\Users\User\Documents\GitHub\Thyme\src\game\client\maputil.cpp:973:     waypoint Player_5_Start: (5190.00,5240.00)
FATAL C:\Users\User\Documents\GitHub\Thyme\src\game\client\maputil.cpp:356: ASSERTION FAILED!
  Function:bool __thiscall MapCache::Load_User_Maps(void)
  Expression:false
  Message:Found map 'aod general's powers! by twinsen [pashacnc com)' in wrong spot (c:\users\user\documents\command and conquer generals zero hour data\maps\aod generals powers by twinsen [pashacnc com)\aod general's powers! by twinsen [pashacnc com).map)

Steps to Reproduce:

  1. Load the map aod general's powers! by twinsen [pashacnc com) [Direct download] or similar maps where player positions are intentionally placed outside the map boundaries to hide the base.
  2. The game will fail to load the map and crash during the process.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions