← Home SEEBIE90 DOCS
Download PDF
The SOFLAM Integration Core mod is published under the Arma Public License (APL)Example code is free to useSuggestions: Discord to the author

SOFLAM Integration Core

Dedicated-server pitfalls

Each of these cost real time. They have in common that the single-player run looked fine.

In plain wordsThe short list of things that worked in Workbench and failed on a server.
SymptomCauseFix
Nothing happens on the server, no errorThe client does not own the entity, so its server-bound Rpc is dropped silentlySend through a relay on the player's character (GTG_SOFLAM_Relay)
The device is invisible to everybody but the hostThe mounted prefab inherited an abstract weapon base with no animation graph; initialisation aborted and the engine returned an empty shell with no replication componentGive it the animation graph the turret uses (M2HB_tripod.agr), and log slot, weapon, children and role on both machines to see the difference
A beam or effect appears only for the operatorThe component ticks only on the owning machineReturn true from OnTicksOnRemoteProxy()
Aiming flies 180° off and freezes at a limitAn engine call that takes radians (SetAimingAngles) was given degrees; elevation read exactly the stop valueConvert once, at the call
The mount moves in steps while the picture runs smoothlyAiming hung on a throttle that was meant for network updatesThrottle the sending, not the local update
The registry system is never found (Zielablage nicht gefunden)No update point, or not listed in the systems configAdd a point and the config entry
Stale targets steer missilesEntries nobody removedExpiry on last report (5 s); publishers re-report every 2 s
A missile turns to the world origin for a momentA target created but not yet reported sits at the zero vectorSkip the zero vector when reading
Players sink into the ground when getting into a mount and fall under the map when leaving it, on one map onlyA ground measurement under the door point hit something far below, or nothing (the height helper then falls back silently to the height map), and the point followed itAccept a measurement only within geometric limits of the root and when the trace really hit; otherwise keep the prefab height and log one warning
The zoom keys do nothing on the carried device, but work on the tripodThe carried device is a gadget, not a weapon; the zoom actions are only active during weapon aiming and in turretsAdd them to a context that is active for the device (Zoom on a handheld device)
The zoom label changes but the picture does notThe binoculars camera reads the field of view once, when it is switched onA camera that asks the optic every frame
The character keeps walking while a screen is openThe engine resets the movement lock every frameAnswer the event the engine asks: override SCR_GetDisableMovementControls (The remote tablet)
Everybody sees IR lights without gogglesA static flag that was not reset on an early returnSet the flag first, before any check
The whole script module disappearsA compile error in any loaded mod, or a name clashPrefix every class, and keep foreign mods out of the dependency chain
Log fills with thousands of linesA diagnostic switch left on after a test runDefault every switch off (the Core's are GTG_DIAG / GTG_LOG_* constants), and say in the comment what turns it on

How to diagnose

Put one searchable tag on every log line ([GTG_SOFLAM] in the Core, [GTG_AH64] in the AH-64 mod) and write the role of the machine into every network line: server, owner, proxy without owner. Then “SENDE without WIRKT” (send without effect) is visible at a glance, and so is the missing direction.

NoteMeasure before changing. In most of these cases the first explanation was wrong, and the second one came from the log.
Example code on this page is free to use in your own projects (credit appreciated). The SOFLAM Integration Core mod is published under the Arma Public License (APL). Suggestions: Discord. Arma Reforger / Enfusion are trademarks of Bohemia Interactive.
Impressum · Privacy Policy