Discovery Gaming Community
[Coding] Scanned by own NPC faction - Printable Version

+- Discovery Gaming Community (https://discoverygc.com/forums)
+-- Forum: Discovery Development (https://discoverygc.com/forums/forumdisplay.php?fid=7)
+--- Forum: Discovery Mod General Discussion (https://discoverygc.com/forums/forumdisplay.php?fid=37)
+---- Forum: Discovery Mod Bug Reports (https://discoverygc.com/forums/forumdisplay.php?fid=573)
+----- Forum: Fix awaiting release (https://discoverygc.com/forums/forumdisplay.php?fid=576)
+----- Thread: [Coding] Scanned by own NPC faction (/showthread.php?tid=210409)



[Coding] Scanned by own NPC faction - rwx - 12-27-2025

Type: Coding
Bug: RFP players get scanned by Rheinland Federal Police NPCs

(12-20-2025, 04:22 PM)jammi Wrote: - Fixed: FactionScan.DLL should now be functional (each faction has a list of exempt factions that they won't scan, including players affiliated with those groups - see DATA/MISSIONS/faction_scan.ini).

Additional Information: https://imgur.com/a/9sJxGKm


RE: [Coding] Scanned by own NPC faction - Alex. - 12-28-2025

Reproduced this through `/restart rhpolice` and `.addcargo char commodity_cardamine 70` then flying about.
It's not obvious why through reading faction_scan.ini - there is this block:
faction_scan.ini Wrote:[FactionScan]
faction = rh_mnd_grp ;MND
faction = rh_p_grp ;Rheinland Federal Police
faction = rh_n_grp ;Rheinland Military
dont_scan = rh_d19_grp ;Detachment 16
dont_scan = rh_mnd_grp ;MND
dont_scan = rh_p_grp ;Rheinland Federal Police
adoxa's FactionScan.cpp suggests this is a valid configuration.


RE: [Coding] Scanned by own NPC faction - Alex. - 12-30-2025

I've been debugging this and speaking with @rwx, right now I believe FactionScan is totally misconfigured for the following factions: BPA, BAF, GNI, Gendarmerie, KNF, KSP, LN, MND, and RFP. I believe this is due to FactionScan blocks containing multiple "faction =" lines in the config.
It is also partially broken for RM and LPI, due to those factions appearing twice in the config.


[Coding] Scanned by own NPC faction - Alex. - 12-30-2025

Fix awaiting release