FormIDs and You by (by sasnikol)
available since forever 


The algorithm for writing FormID in _DISTR file is the following:

  • Grab a FormID in xEdit (or by any other means)
  • If plugin is one of the base game's plugins (Fallout4.esm or one of the DLCs (but not the Creation Club)) skip go straight to step #5.
  • [Only for mod plugins] For ESP/ESM plugins delete first 2 digits (so the result will contain only 6 digits), for ESL (ESLified) plugins delete first 5 digits (so the result will contain only 3 digits)
  • [Only for mod plugins] Append to the end of this result the exact plugin name (including file extension) with tilde (~). e.g. ~MyMod.esp.
  • If the result contains any leading zeros remove all of them.
  • Finally, prefix what's left with 0x.
Now you'll have the correct FormID encoded in SPID's config.


Here is a few examples of this algorithm in action:
Spoiler:  
Show

1) Hellfire Torso from Hellfire Power Armor (Creation Club).
  • It has FormID FE000803
  • Plugin name is ccBGSFO4044-HellfirePowerArmor.esl
Spoiler:  
Show

  • FormID FE000803
  • This is not a base game's FormID nor DLC's.
  • This is a ESL plugin, so we remove first 5 digits: FE000803.
  • This is a mod plugin, so we append plugin name at the end: 803~ccBGSFO4044-HellfirePowerArmor.esl
  • There are no leading zeros in this example.
  • Adding 0x: 0x803~ccBGSFO4044-HellfirePowerArmor.esl
  • Correct FormID in SPID config is: 0x803~ccBGSFO4044-HellfirePowerArmor.esl


2) Fatman from Fallout4
  • It has FormID 000BD56F
  • Plugin name is Fallout4.esm

Spoiler:  
Show

  • FormID 000BD56F
  • This is a base game's FormID, so we skip steps #3 and #4.
  • Skipped.
  • Skipped.
  • Removing all leading zeroes: 000BD56F
  • Adding 0x: 0xBD56F
  • Correct FormID in SPID config is: 0xBD56F


3) Meat Hook from Far Harbour.
  • It has FormID 0304B5F4(Far Harbour is the 3rd plugin in the load order)
  • Plugin name is DLCCoast.esm

DLCs can be treated as either the base game or a mod. Though former is preferred:

As the  base game:

Spoiler:  
Show

  • FormID 0304B5F4
  • This is a DLC's FormID, so we skip steps #3 and #4.
  • Skipped.
  • Skipped.
  • Removing all leading zeroes: 0304B5F4
  • Adding 0x: 0x304B5F4
  • Correct FormID in SPID config is: 0x304B5F4


As a mod:
Spoiler:  
Show

  • FormID  0304B5F4
  • This is not a base game's FormID.
  • This is a ESM (not light) plugin, so we remove first 3 digits:  0304B5F4
  • This is a mod plugin, so we append plugin name at the end: 04B5F4~DLCCoast.esm
  • Removing all leading zeroes:  04B5F4~DLCCoast.esm
  • Adding 0x: 0x4B5F4~DLCCoast.esm
  • Correct FormID in SPID config is: 0x4B5F4~DLCCoast.esm

Article information

Added on

Edited on

Written by

powerofthree

0 comments