Talk:GetFormFromFile - Game
Revision as of 00:37, 27 June 2012 by imported>Fg109 (Created page with "==GetModLoaded== In the example on the page, the form ID 0x800 is used to test whether or not a mod is loaded. In my experience, a mod's first form has form ID 0x800 only if...")
GetModLoaded
In the example on the page, the form ID 0x800 is used to test whether or not a mod is loaded. In my experience, a mod's first form has form ID 0x800 only if you're creating it without having loaded any masters.
If any other files have been loaded, then the form ID is usually 0xD62. Perhaps it would be better to re-write the example as
If bDLCArray[aiIndex] != (Game.GetFormFromFile(0x00000800, sDLCArray[aiIndex]) \
|| (Game.GetFormFromFile(0x00000D62, sDLCArray[aiIndex]))
Of course, even that might not work if the mod creator had deleted the very first object he/she created in the mod. --Fg109 01:37, 27 June 2012 (EDT)