Skip to content

SMX Screen Mirror

Hey Sky edited this page Nov 12, 2026 · 2 revisions

SMX Screen Mirror & fixed Tablet ID

🇬🇧 English · 🇩🇪 Deutsche Version

Source: SkyMap-X-DEV → Scripts/Game/Components/SMX_ScreenMirrorComponent.c, Scripts/Game/Helper/SMX_ScreenState.c, Scripts/Game/Helper/SMX_MirrorSettings.c; bridge SIDC-SecondMap-SMX-Bridge(-Beta) → Scripts/Game/SMXBridge/SMX_SecondMapMirror.c. Status: WIP. Branch tablet-spiegelung-2026-11, not compiled or tested yet, not released.

1. What it is

Screen mirror. Other players can see what is on your tablet screen, and a monitor in the world can show your tablet.

  • Only a small screen state goes over the network (mode, Hand/Big, brightness, on/off, which camera). It is sent only when something changes. No picture is ever sent.
  • Each viewer renders the mirror locally.

Fixed tablet ID. Your tablet's internal ID is derived from your Bohemia account. It stays the same after a server restart or rejoin, so your chats stay intact.

  • This is not the "Device ID" text field in the Settings mode. That field stays a free display name.

2. What you see in game

Who sees the mirror

Where Who sees it When
Tablet of another player Players of the same faction in range (default 10 m) Only while the carrier holds the tablet in Hand or Big view. Mini or stowed closes the mirror after 5 s.
Monitor Everyone in range After the carrier coupled it (interaction, currently only in German: "Monitor mit eigenem Tablet koppeln" / "Monitor vom Tablet trennen"). Shows all views.

Visibility works like the SecondMap displays:

  • range with hysteresis (opens at r, closes at 1.25·r)
  • rendering pauses when the display is out of view
  • the display closes 5 s later
  • when several displays compete, priority and distance decide

What is shown

Tablet state Without SIDC-SecondMap With SIDC-SecondMap + bridge
Off / booting black. It stays black, even if brightness etc. changes. black
GPS a static picture (SMX_Mirror_GPS.layout) the real SecondMap
Chat static picture (SMX_Mirror_Chat.layout) same
Settings static picture (SMX_Mirror_Settings.layout) same
Feeds the same camera as the carrier, rendered locally same

Brightness

  • The screen brightness of the carrier dims the mirror in all modes.
  • In the Feeds mode, zoom, camera brightness (EV) and night vision follow the carrier as well. They come through the normal camera-viewer sync.

Feed limits

  • At most one mirrored feed is shown per player.
  • If you have a different camera open on your own tablet, the mirror shows "NO FEED". The server tracks only one watched camera per player. If both show the same camera, the mirror still works.

The static layouts show nothing about the carrier. They only tell the viewer which mode the tablet is in.

3. Client settings

File: $profile:SMX_MirrorSettings.json (per player). A settings UI is planned. Until then, edit the file directly.

Setting Default Meaning
autoMode true Mirrors open automatically in range
rangeM 10 Range in metres
maxDisplays 2 How many mirrors may render at the same time
qualityPercent 75 Render resolution in %
onlyWhenInView true Pause rendering when the display is out of view
showFeeds true Show mirrored camera feeds

4. Fixed tablet ID and chat

  • The server derives the ID from your Bohemia account ID (a hash). Only this number is sent to other clients, your account ID is not.
  • The chat address is now T<tablet ID>, e.g. T123456789.
    • The contact list still shows Device ID [Info], but only as a label.
    • Renaming yourself or changing group keeps the chat.
  • Old chat history saved under Device ID [Info] is moved over once, the first time you open the contact. This only works if your own name and the contact's name are still the same as back then.
  • Switched-off tablets: messages to a switched-off tablet are held by the server and delivered when it is switched on again.
  • Settings file: your tablet settings are now saved in $profile:SMX_settings.bin. Older versions used SMX_settings_{playerID}.bin. The player ID changed each session, so settings could get lost. The old file is taken over once.

5. For mod makers / prefab setup

Mod boundaries. SkyMap-X, SIDC-Framework and SIDC-SecondMap do not depend on each other.

  • Scripts: SkyMap-X offers two empty hooks in SMX_ScreenMirrorComponent, HasExternalGpsRenderer() and OnServerCoupled(playerID, coupled). The bridge fills them via modded class.
  • Prefabs: SIDC components never go into SkyMap-X prefabs. The bridge adds them through a prefab override or child prefab.

Tablet prefab (SkyMap-X)

  • SMX_ScreenMirrorComponent with m_bFollowHolder = 1.
  • An RplComponent is required, for the new RplProps on SMX_MainComponentX.

Monitor prefab (SkyMap-X)

  • RplComponent
  • screen material with $rendertarget
  • SMX_ScreenMirrorComponent with m_bFollowHolder = 0
  • ActionsManager with SMX_ScreenMirrorCoupleAction

In the bridge (only for GPS with SIDC)

  • Override the tablet and monitor prefabs and add SIDC_SecondMap_MonitorComponent:
    • follow-holder on the tablet
    • not follow-holder on the monitor
  • Do not add SIDC_SecondMap_MonitorCoupleAction. Coupling the SMX monitor couples the SIDC display of the same entity as well.

Layouts (UI/Layouts/Mirror/)

  • SMX_MirrorRT.layout needs these widget names: RTTexture0, Content, CamFeed, NoFeed, Dim, Off.
  • The three static layouts can be designed freely.

6. Known limitations / open

  • Untested. A flicker when switching GPS ↔ Chat with SIDC is possible, because two displays briefly share the render target.
  • Two players who are never online at the same time could, extremely rarely, get the same tablet ID.
  • No settings UI yet.

Clone this wiki locally