Jump to content

Way to check if SKSE is installed?


Bluarchon

Recommended Posts

  • 1 year later...

 

http://www.creationkit.com/SKSE_Script

if(SKSE.GetVersionRelease() > 0)
     debug.trace("skse is installed")
else
     debug.trace("No skse")
endif

 

That's great, except GetVersionRelease() will still throw an error if the function doesn't exist (as is the case if they don't have SKSE). I'd prefer a "clean" or error-free way of checking, if possible.

Link to comment
Share on other sites

Console -> GetSKSEVersion and hit enter. if it says ur version number then its working. If it says command cant be found then its not wokring.

The original question was regarding scripting practice. As you say, checking whilst in-game is trivial. But I'd like to know how to write code to check if the user of my mod has SKSE running, preferably without throwing errors.

Link to comment
Share on other sites

  • 1 year later...

Console -> GetSKSEVersion and hit enter. if it says ur version number then its working. If it says command cant be found then its not wokring.

 

Thanks, this actually helped me with my problem of trying to figure out the version #

Link to comment
Share on other sites

  • 1 year later...

The original question was regarding scripting practice. As you say, checking whilst in-game is trivial. But I'd like to know how to write code to check if the user of my mod has SKSE running, preferably without throwing errors.

You can't check without throwing an error, because in order to check if SKSE is installed you have to call an SKSE function at some point. And, obviously, if SKSE isn't installed those functions won't exist. Edited by Reneer
Link to comment
Share on other sites

  • 1 year later...
  • Recently Browsing   0 members

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