• Tracker

    Spaces
    Browse
    Statistics
  • /
  • /Reforger Modding
  • /ARMD-17
Back
1

Scripting: Rpc() with the wrong argument count/types compiles clean and fails silently at runtime

General
1

State

Assigned
Issue key
ARMD-17
Access
Public
Space
Arma Reforger
Project
Reforger Modding
Creator
aaron_static
Created
Aug 11, 2026
Views
131
Platform
PC Steam
Game Version

1.7.0.54

Modlist

Overthrow

Description
Rpc()` is declared with untyped defaulted parameters. Because every parameter is `void` with a default, calling an `[RplRpc]` method with the wrong number or wrong types of arguments compiles without any warning, and at runtime the RPC silently fails to deliver — no VME, no log line, nothing on either end. The result is a replicated feature that simply doesn't work, with no signal pointing at the call site.

## Steps to reproduce

1. Declare `[RplRpc(RplChannel.Reliable, RplRcver.Owner)] void RpcDo_Test(int a, int b, int c)`.
2. Call `Rpc(RpcDo_Test, 1, 2, 3, 4)` from the server.
3. Compiles clean; at runtime the receiver never gets the RPC and no error is emitted anywhere.

## Expected / requested

Ideally, validate the argument list against the `func` target's signature at compile-time and fail to compile. Or at runtime when marshalling an RPC whose argument list does not match the target's parameters, emit a script error naming the method.

Would help to catch mistakes made in Rpc calls quicker rather than manually having to compare calls with their target declarations.
Reactions

Activity

    2 months ago
  • aaron_static
    created issue2 months ago
  • about 2 months ago
  • l909
    changed state to
    ASSIGNED
    about 2 months ago

You are not signed in. Please sign in to see more details and to reply.

State

Assigned
Issue key
ARMD-17
Access
Public
Space
Arma Reforger
Project
Reforger Modding
Creator
aaron_static
Created
Aug 11, 2026
Views
131