Ravenfield

Ravenfield

Score Streaks (Mutator)
Harkonian 24 Jun, 2023 @ 3:58am
Bugs with RavenM
I've been enjoying this mod whilst playing solo as well as with friends through the RavenM multiplayer mod and first off just wanted to give my kudos to ya. Fun mod all around, great work!

Unfortunately, there are a few hiccups in how this behaves in conjunction with the multiplayer mod that I was hoping to get your help in puzzling out answers to. I'm sure it's not anything wrong with your scripts as they work fine solo but with how RavenM interacts with the game that causes them to misbehave. I'm starting to dig into RavenM's code to address various bugs my friends and I have found and I figured I'd see if I could fix what it does to better work with your scripts. Unfortunately, since I don't actually know what your scripts are doing it's going to be hard to figure out exactly what is going wrong so I figured I'd reach out and see if I could either take a look at your source code or if you could provide me with some insight into what's going on in the following situations.

Vehicle drops don't work for anyone but the "host" player, which at first, we suspected this had to do with non-host players being unable to spawn objects as some form of anti-cheat within RavenM. But then we discovered supply drops do work and now I'm quite curious what the difference is between a supply drop and the vehicle drop functions. Similarly the V1 & artillery call-ins do seem to work just fine.

Ground/Air Beacons did work fine for anyone and were the benefit client players loved using the most. Unfortunately, after changing versions of RavenM to the current dev branch every "client" player now gets the error below when attempting to place them. Obviously, it's attempting to index into something that doesn't exist although without more context I can't tell too much. I can check exactly what has changed between the previous release of RavenM and the current, but I don't really know what is going wrong in the script to help me figure out what change in RavenM caused this to break.

ScriptRuntimeException: attempt to index a nil value at MoonSharp.Interpreter.Execution.VM.Processor.ExecIndex (MoonSharp.Interpreter.Execution.VM.Instruction i, System.Int32 instructionPtr) [0x00155] in <f5752573255344c798b680b1a9ed668f>:0 at MoonSharp.Interpreter.Execution.VM.Processor.Processing_Loop (System.Int32 instructionPtr) [0x00575] in <f5752573255344c798b680b1a9ed668f>:0 Rethrow as ScriptRuntimeException: ScoreStreak:(346,1-95): attempt to index a nil value at MoonSharp.Interpreter.ScriptRuntimeException.Rethrow () [0x00012] in <f5752573255344c798b680b1a9ed668f>:0 at MoonSharp.Interpreter.Execution.VM.Processor.Processing_Loop (System.Int32 instructionPtr) [0x00771] in <f5752573255344c798b680b1a9ed668f>:0 at MoonSharp.Interpreter.Execution.VM.Processor.Call (MoonSharp.Interpreter.DynValue function, MoonSharp.Interpreter.DynValue[] args) [0x00075] in <f5752573255344c798b680b1a9ed668f>:0 at MoonSharp.Interpreter.Script.Call (MoonSharp.Interpreter.DynValue function, MoonSharp.Interpreter.DynValue[] args) [0x0009c] in <f5752573255344c798b680b1a9ed668f>:0 at Lua.ScriptEngine.Call (MoonSharp.Interpreter.DynValue func, MoonSharp.Interpreter.DynValue[] args) [0x00006] in <f5752573255344c798b680b1a9ed668f>:0

Thanks again for making a fun mod!