IWantMyMod Posted February 16, 2019 Share Posted February 16, 2019 SKSE functions GetModByName() and GetModName() do not work with ESL flagged plugins. If your mod uses GetModByName() to verify a related plugin is loaded and that plugin has been changed to ESPFE then it will fail.For example, if the ESL flag is set on FNIS.esp then you will get errors from FNIS PCEA2 because of this line of code from FNIS_PCEA2QuestScript: bool isFNISesp = (Game.GetModByName("FNIS.esp") < 255)I sent an email to the SKSE team but I haven't heard anything back so I don't know if that will ever by fixed. Link to comment Share on other sites More sharing options...
Arthmoor Posted February 16, 2019 Share Posted February 16, 2019 He should probably be using Game.IsPluginInstalled( "FNIS.esp" )instead. Assuming that one works anyway. Link to comment Share on other sites More sharing options...
cdcooley Posted February 16, 2019 Share Posted February 16, 2019 SKSE64 also adds a set of functions specifically to deal with light plugins like GetLightModByName(). Link to comment Share on other sites More sharing options...
IWantMyMod Posted February 17, 2019 Author Share Posted February 17, 2019 Are those functions documented anywhere? There is nothing in the "skse64_whatsnew.txt" about those are any of the "light mod functions".When was IsPluginInstalled() added. I've never seen that one before. Do I need to scan through all the SKSE script files for new functions each time there is a new release? But, of course, that doesn't resolve the issue with existing mods. They still need to be updated since the functions that have been in use for years don't work with ESL flagged plugins. Link to comment Share on other sites More sharing options...
Arthmoor Posted February 17, 2019 Share Posted February 17, 2019 They haven't been added to the CK Wiki like some of the others have, but IsPluginInstalled has been in there for awhile now. Never said the mods don't need to be updated, but at least we know which one of these functions doesn't care if it's ESL flagged or not. If all you're doing is testing for it being there then IsPluginInstalled should suffice for the purpose. Link to comment Share on other sites More sharing options...
Recommended Posts