Skip to content

Custom Spawns Not Loading #93

@Jaccob7

Description

@Jaccob7

"No spawn points found"

Environment

Detail Value
Plugin CS2-Deathmatch (NockyCZ)
Version v1.3.0
Map OPC Rats (Workshop ID: 3372778412)
OS Linux

Description

Custom spawn points are not being loaded from the JSON file. The plugin reports no spawn points found and falls back to default map spawns, despite the file existing in the correct directory with valid JSON.

Console Output

[Deathmatch] No spawn points found for this map! (Deathmatch/spawns/de_rats.json)
[Deathmatch] Loading Default Map Spawns..
[Deathmatch] Total Loaded Spawns: CT 16 | T 18

Relevant Configuration

Deathmatch.json — Spawn-related settings

"Gameplay Settings": {
    "Use Default Spawns": false
},
"Spawn System": {
    "Spawns Method": 0
}

server.cfg

mp_randomspawn 0

Steps to Reproduce

  1. Place a valid spawn file at:
    addons/counterstrikesharp/configs/plugins/Deathmatch/spawns/de_rats.json
  2. Ensure "Use Default Spawns": false in Deathmatch.json
  3. Ensure mp_randomspawn 0 in server.cfg
  4. Load the map de_rats (Workshop ID: 3372778412)
  5. Observe the console — plugin reports no spawn points found

Troubleshooting Already Attempted

  • File path verified — File exists at addons/counterstrikesharp/configs/plugins/Deathmatch/spawns/de_rats.json
  • JSON validated — Structure is correct, contains 31 CT and 37 T spawn points
  • mp_randomspawn 0 confirmed in server.cfg
  • "Use Default Spawns": false confirmed in Deathmatch.json
  • Renamed to workshop_3372778412.json — Console still looks for de_rats.json, no change

Questions

  1. Why does the plugin fail to load de_rats.json when the file exists in the correct directory with valid JSON?
  2. Is there a specific filename mapping required for workshop maps (e.g., workshop ID vs. map name)?

Spawn File — de_rats.json (68 spawn points)

{
  "spawnpoints": [
    { "team": "ct", "pos": "3886.53 196.27 32.03", "angle": "0.00 -93.57 0.00" },
    { "team": "t", "pos": "3560.45 -167.76 28.03", "angle": "0.00 -94.55 0.00" },
    { "team": "ct", "pos": "3408.07 -690.71 0.03", "angle": "0.00 176.45 0.00" },
    { "team": "t", "pos": "2795.32 -463.28 0.03", "angle": "0.00 84.91 0.00" },
    { "team": "ct", "pos": "2644.84 -283.64 176.03", "angle": "0.00 88.73 0.00" },
    { "team": "t", "pos": "2577.84 317.33 32.03", "angle": "0.00 -91.50 0.00" },
    { "team": "ct", "pos": "1943.63 -31.48 0.03", "angle": "0.00 -92.35 0.00" },
    { "team": "t", "pos": "2146.11 -328.09 0.03", "angle": "0.00 -85.08 0.00" },
    { "team": "ct", "pos": "1851.37 -1237.73 0.03", "angle": "0.00 -179.86 0.00" },
    { "team": "t", "pos": "1778.46 -867.79 0.03", "angle": "0.00 89.72 0.00" },
    { "team": "ct", "pos": "679.57 -1631.89 64.09", "angle": "0.00 85.54 0.00" },
    { "team": "t", "pos": "935.55 -1633.28 253.03", "angle": "0.00 -1.33 0.00" },
    { "team": "ct", "pos": "1241.71 -1470.47 253.03", "angle": "0.00 -3.26 0.00" },
    { "team": "t", "pos": "1878.06 -1328.31 253.03", "angle": "0.00 169.64 0.00" },
    { "team": "ct", "pos": "1765.94 -1238.29 688.03", "angle": "0.00 -2.67 0.00" },
    { "team": "t", "pos": "1636.97 -1231.35 688.03", "angle": "0.00 176.02 0.00" },
    { "team": "ct", "pos": "1015.86 -1220.78 688.03", "angle": "0.00 88.76 0.00" },
    { "team": "t", "pos": "392.57 -1476.85 463.03", "angle": "0.00 -0.75 0.00" },
    { "team": "ct", "pos": "61.97 -1052.56 464.03", "angle": "0.00 86.24 0.00" },
    { "team": "t", "pos": "315.81 -563.64 464.03", "angle": "0.00 -1.52 0.00" },
    { "team": "ct", "pos": "80.04 -417.23 490.88", "angle": "0.00 -2.18 0.00" },
    { "team": "t", "pos": "135.89 -565.51 658.60", "angle": "0.00 -5.28 0.00" },
    { "team": "ct", "pos": "165.98 -168.80 480.03", "angle": "0.00 -4.76 0.00" },
    { "team": "t", "pos": "166.85 -41.08 480.03", "angle": "0.00 -1.57 0.00" },
    { "team": "ct", "pos": "293.50 1057.91 743.93", "angle": "0.00 -32.15 0.00" },
    { "team": "t", "pos": "405.25 1200.59 743.93", "angle": "0.00 -36.03 0.00" },
    { "team": "ct", "pos": "287.31 1838.07 762.45", "angle": "0.00 -1.32 0.00" },
    { "team": "t", "pos": "154.08 1630.41 775.93", "angle": "0.00 -92.40 0.00" },
    { "team": "ct", "pos": "-104.35 1468.11 880.03", "angle": "0.00 90.33 0.00" },
    { "team": "t", "pos": "-238.60 1555.02 1024.03", "angle": "0.00 2.51 0.00" },
    { "team": "ct", "pos": "-339.89 1616.96 1496.03", "angle": "0.00 -92.05 0.00" },
    { "team": "t", "pos": "-221.17 1297.71 1502.03", "angle": "0.00 -0.58 0.00" },
    { "team": "ct", "pos": "181.51 1904.41 1620.67", "angle": "0.00 -89.31 0.00" },
    { "team": "t", "pos": "214.03 1064.73 1349.28", "angle": "0.00 0.65 0.00" },
    { "team": "ct", "pos": "658.66 1889.34 1120.03", "angle": "0.00 -178.05 0.00" },
    { "team": "t", "pos": "818.59 1960.84 743.93", "angle": "0.00 -87.97 0.00" },
    { "team": "ct", "pos": "2093.83 1928.23 743.93", "angle": "0.00 -92.75 0.00" },
    { "team": "t", "pos": "1876.15 1795.08 576.08", "angle": "0.00 -92.07 0.00" },
    { "team": "ct", "pos": "2169.64 1900.81 0.03", "angle": "0.00 -90.65 0.00" },
    { "team": "t", "pos": "2045.98 1920.70 0.03", "angle": "0.00 -90.40 0.00" },
    { "team": "ct", "pos": "2417.84 1424.34 2.03", "angle": "0.00 -90.23 0.00" },
    { "team": "t", "pos": "2797.92 1221.46 2.03", "angle": "0.00 -52.30 0.00" },
    { "team": "t", "pos": "2909.11 954.13 2.03", "angle": "0.00 -140.78 0.00" },
    { "team": "ct", "pos": "3934.99 297.04 992.03", "angle": "0.00 -95.24 0.00" },
    { "team": "t", "pos": "3706.79 309.10 992.03", "angle": "0.00 82.76 0.00" },
    { "team": "ct", "pos": "3799.66 -1209.29 992.03", "angle": "0.00 176.18 0.00" },
    { "team": "t", "pos": "3837.80 -755.76 992.03", "angle": "0.00 -178.65 0.00" },
    { "team": "t", "pos": "3811.81 -936.75 1098.51", "angle": "0.00 156.81 0.00" },
    { "team": "ct", "pos": "3771.70 2109.85 0.03", "angle": "0.00 -88.64 0.00" },
    { "team": "ct", "pos": "3085.21 2195.84 88.03", "angle": "0.00 176.63 0.00" },
    { "team": "ct", "pos": "3204.35 1790.78 757.86", "angle": "0.00 -90.38 0.00" },
    { "team": "t", "pos": "3211.67 2068.86 757.86", "angle": "0.00 88.08 0.00" },
    { "team": "ct", "pos": "3140.30 1740.93 2000.03", "angle": "0.00 -91.34 0.00" },
    { "team": "t", "pos": "2814.53 1742.52 2000.03", "angle": "0.00 -87.07 0.00" },
    { "team": "ct", "pos": "2410.33 2179.96 2000.03", "angle": "0.00 177.06 0.00" },
    { "team": "t", "pos": "2294.84 1958.84 2000.03", "angle": "0.00 -93.21 0.00" },
    { "team": "ct", "pos": "1582.71 1940.28 2004.19", "angle": "0.00 -92.88 0.00" },
    { "team": "t", "pos": "1160.86 1929.33 1968.03", "angle": "0.00 -90.38 0.00" },
    { "team": "ct", "pos": "1413.63 1844.84 1181.49", "angle": "0.00 -100.66 0.00" },
    { "team": "t", "pos": "897.81 1988.03 956.46", "angle": "0.00 152.85 0.00" },
    { "team": "ct", "pos": "1962.60 1441.23 743.93", "angle": "0.00 174.59 0.00" },
    { "team": "t", "pos": "2745.44 2066.54 752.03", "angle": "0.00 -92.65 0.00" },
    { "team": "ct", "pos": "2266.16 2037.61 752.03", "angle": "0.00 -89.13 0.00" },
    { "team": "t", "pos": "3124.72 1893.59 752.03", "angle": "0.00 -101.17 0.00" },
    { "team": "ct", "pos": "3135.58 2201.49 488.03", "angle": "0.00 -179.55 0.00" },
    { "team": "t", "pos": "2680.91 2075.59 488.03", "angle": "0.00 -89.85 0.00" },
    { "team": "ct", "pos": "2316.57 2152.18 488.03", "angle": "0.00 -50.25 0.00" },
    { "team": "t", "pos": "3113.26 2058.28 264.03", "angle": "0.00 -165.05 0.00" },
    { "team": "t", "pos": "2806.96 1942.55 311.03", "angle": "0.00 -93.56 0.00" },
    { "team": "t", "pos": "2404.46 1920.37 319.08", "angle": "0.00 1.09 0.00" },
    { "team": "ct", "pos": "2554.92 2128.32 623.38", "angle": "0.00 -89.55 0.00" },
    { "team": "ct", "pos": "3320.06 1627.40 0.03", "angle": "0.00 -2.24 0.00" }
  ]
}

Config — Deathmatch.json

{
  "Save Players Weapons": false,
  "Database Connection": {
    "Host": "<redacted>",
    "Port": 3306,
    "User": "<redacted>",
    "Database": "deathmatch",
    "Password": "<redacted>",
    "SslMode": "Preferred"
  },
  "Gameplay Settings": {
    "Free For All": false,
    "Use Default Spawns": false,
    "Custom Modes": true,
    "Game Length": 30,
    "Random Selection Of Modes": true,
    "Map Start Custom Mode": 0,
    "New Mode Countdown": 10,
    "Hud Type": 1,
    "Default Weapons": 2,
    "Switch Weapons": true,
    "Allow Buymenu": true,
    "Respawn Players After New Mode": false,
    "Fast Weapon Equip": true,
    "Spawn Protection Color": "",
    "Display All Kill Feed": false
  },
  "Spawn System": {
    "Spawns Method": 0,
    "Team Spawns Separation": true,
    "Check Spawn Visibility": false,
    "Distance From Enemies": 10
  },
  "General Settings": {
    "Display Spawns Editor In Menu": true,
    "Hide Round Seconds": true,
    "Hide New Mode Countdown": false,
    "Block Radio Messages": true,
    "Block Player Ping": true,
    "Block Player ChatWheel": true,
    "Remove Breakable Entities": true,
    "Remove Decals": true,
    "Remove Kill Points Message": true,
    "Remove Respawn Sound": true,
    "Force Map End": false,
    "Restart Map On Plugin Load": false
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions