Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

redm_convert_spawns fails to convert spawns to the new format #145

Open
szGabu opened this issue Jan 19, 2025 · 0 comments
Open

redm_convert_spawns fails to convert spawns to the new format #145

szGabu opened this issue Jan 19, 2025 · 0 comments

Comments

@szGabu
Copy link

szGabu commented Jan 19, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant