fvnkhead / RingSpawns

0 stars 0 forks source link

random int must be greater than 0 #2

Closed Malthbern closed 1 year ago

Malthbern commented 1 year ago

seems to be caused when spawning as titan on some maps

logdump:

[01:53:54] [info] [SERVER SCRIPT] [ringspawns/log] [DecideSpawnZone] if you see this message, tell fvnkhead [01:53:54] [info] changing mod search path from z:\tmp\ns2294464755\R2Northstar\mods\Northstar.CustomServers\mod to R2Northstar/mods\fvnkhead.RingSpawns-1.0.0 [01:53:54] [info] [SERVER SCRIPT] SCRIPT ERROR: [SERVER] RandomInt: max value (0) must be greater than 0 [01:53:54] [info] [SERVER SCRIPT] -> return spawnzones[RandomInt(spawnzones.len())] [01:53:54] [info] [SERVER SCRIPT] CALLSTACK FUNCTION [DecideSpawnZone()] ringspawns.nut line [165] FUNCTION [RateSpawnpoints_SpawnZones()] mp/spawn.nut line [476] FUNCTION [FindSpawnPoint()] mp/spawn.nut line [148] FUNCTION [RespawnAsTitan()] mp/_base_gametype_mp.gnut line [444]

[01:53:54] [info] [SERVER SCRIPT] LOCALS [team] 2 [spawnzones] ARRAY [this] TABLE [player] ENTITY (player spookybevr [4] (player "spookybevr" at <1697.81 -1093.5 247.831>)) [team] 2 [spawnpoints] ARRAY [checkClass] 0 [this] TABLE [ratingFunc] CLOSURE [spawnpoints] ARRAY [team] 2 [useStartSpawnpoint] false [isTitan] true [player] ENTITY (player spookybevr [4] (player "spookybevr" at <1697.81 -1093.5 247.831>)) [this] TABLE [manualPosition] false [player] ENTITY (player spookybevr [4] (player "spookybevr" at <1697.81 -1093.5 247.831>)) [this] TABLE

DIAGPRINTS

[01:53:54] [error] Northstar has crashed! a minidump has been written and exception info is available below: [01:53:54] [error] Cause: Access Violation Attempted to read from: 0x0000000000000000 [01:53:54] [error] At: engine.dll + 0x247d3a [01:53:54] [error] Northstar.dll + 0x52a58 (0x16912a58) [01:53:54] [error] ntdll.dll + 0x25753 (0x170025753) [01:53:54] [error] ntdll.dll + 0x548c5 (0x1700548c5) [01:53:54] [error] ntdll.dll + 0x5245e (0x17005245e) [01:53:54] [error] engine.dll + 0x247d3a (0x1d657d3a) [01:53:54] [error] engine.dll + 0x417466 (0x1d827466) [01:53:54] [error] engine.dll + 0x120c2f (0x1d530c2f) [01:53:55] [error] engine.dll + 0x120542 (0x1d530542) [01:53:55] [error] engine.dll + 0x16db55 (0x1d57db55) [01:53:55] [error] engine.dll + 0x1c88c0 (0x1d5d88c0) [01:53:55] [error] Northstar.dll + 0x3d916 (0x168fd916) [01:53:55] [error] engine.dll + 0x1c652f (0x1d5d652f) [01:53:55] [error] engine.dll + 0x390e2d (0x1d7a0e2d) [01:53:55] [error] engine.dll + 0x1c79d9 (0x1d5d79d9) [01:53:55] [error] engine.dll + 0x1c793c (0x1d5d793c) [01:53:55] [error] launcher.dll + 0x15afd (0x16b45afd) [01:53:55] [error] launcher.dll + 0x15afd (0x16b45afd) [01:53:55] [error] launcher.dll + 0xd386 (0x16b3d386) [01:53:55] [error] NorthstarLauncher.exe + 0x469f (0x14000469f) [01:53:55] [error] NorthstarLauncher.exe + 0x7df8 (0x140007df8) [01:53:55] [error] kernel32.dll + 0x2c599 (0x7b62c599) [01:53:55] [error] ntdll.dll + 0x59d53 (0x170059d53) [01:53:55] [error] NorthstarLauncher.exe + 0xfffffffec0000000 (0x0) [01:53:55] [error] NorthstarLauncher.exe + 0x7e68 (0x140007e68) [01:53:55] [error] NorthstarLauncher.exe + 0x67ff0000 (0x67ff0000) [01:53:55] [error] NorthstarLauncher.exe + 0xfffffffec0000000 (0x0) [01:53:55] [error] RAX: 0x0 [01:53:55] [error] RBX: 0x1dbf56d0 [01:53:55] [error] RCX: 0x0 [01:53:55] [error] RDX: 0x0 [01:53:55] [error] RSI: 0x304ebb78 [01:53:55] [error] RDI: 0x304ebb78 [01:53:55] [error] RBP: 0x304ebd88 [01:53:55] [error] RSP: 0x7cf2e0 [01:53:55] [error] R8: 0x304ebb78 [01:53:55] [error] R9: 0x65 [01:53:55] [error] R10: 0x304ebd94 [01:53:55] [error] R11: 0x1da178ec [01:53:55] [error] R12: 0x0 [01:53:55] [error] R13: 0x0 [01:53:55] [error] R14: 0xffffffff [01:53:55] [error] R15: 0x1 0024:fixme:dbghelp_dwarf:dwarf2_read_range no entry found 0024:fixme:dbghelp_dwarf:dwarf2_read_range no entry found 0024:fixme:dbghelp:MiniDumpWriteDump NIY MiniDumpScanMemory

fvnkhead commented 1 year ago

@Malthbern should be okay now, I disabled the spawnzone func because it's not used anyway. It's in v1.0.1 release