Jump to content

GetModByName() and GetModName() and ESL flagged plugins


IWantMyMod

Recommended Posts

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

He should probably be using

Game.IsPluginInstalled( "FNIS.esp" )

instead. Assuming that one works anyway.

Link to comment
Share on other sites

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

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...