Due to the new format REDM uses, admins have to rely on downloading old spawn files then converting them to a new format, however, process fails, even with correct data.
[DEBUG] redm_spawns::ConvertOldSpawnsFile() - data = -1520 -307 -45 0 2 0 0 1 2 0
[DEBUG] redm_spawns::ConvertOldSpawnsFile() - strOrigin[0] = -1520
[DEBUG] redm_spawns::ConvertOldSpawnsFile() - strOrigin[1] = -307
[DEBUG] redm_spawns::ConvertOldSpawnsFile() - strOrigin[2] = -45
[DEBUG] redm_spawns::ConvertOldSpawnsFile() - strAngles[0] = 0
[DEBUG] redm_spawns::ConvertOldSpawnsFile() - strAngles[1] = 2
[DEBUG] redm_spawns::ConvertOldSpawnsFile() - strAngles[2] = 0
[DEBUG] redm_spawns::ConvertOldSpawnsFile() - strTeam = 0
[DEBUG] redm_spawns::ConvertOldSpawnsFile() - strVAngles[0] = 1
[DEBUG] redm_spawns::ConvertOldSpawnsFile() - strVAngles[1] = 2
[DEBUG] redm_spawns::ConvertOldSpawnsFile() - strVAngles[2] = 0
L 01/19/2025 - 03:08:11: [JSON] Invalid JSON value! 8
L 01/19/2025 - 03:08:11: [AMXX] Displaying debug trace (plugin "redm_spawns.amxx", version "1.0.0-b11")
L 01/19/2025 - 03:08:11: [AMXX] Run time error 10: native error (native "json_object_set_value")
L 01/19/2025 - 03:08:11: [AMXX] [0] redm_spawns.sma::ConvertOldSpawnsFile (line 863)
L 01/19/2025 - 03:08:11: [AMXX] [1] redm_spawns.sma::Editor_ConvertSpawns (line 741)
L 01/19/2025 - 03:08:11: [AMXX] [2] redm_spawns.sma::ConCmd_ConvertOldSpawns (line 169)
None of the tested files work, tested spawns included in the original CSDM, autogenerated with other plugins and spawn packs. All of them fail.
Tested with release and dev versions.
An alternative to this would be for the plugin to load the old spawns natively if a newer format file doesn't exist, rather than to rely on conversion.
Due to the new format REDM uses, admins have to rely on downloading old spawn files then converting them to a new format, however, process fails, even with correct data.
None of the tested files work, tested spawns included in the original CSDM, autogenerated with other plugins and spawn packs. All of them fail.
Tested with release and dev versions.
An alternative to this would be for the plugin to load the old spawns natively if a newer format file doesn't exist, rather than to rely on conversion.