pra Posted July 6, 2017 Share Posted July 6, 2017 Either I'm too stupid to google or google is full of useless s#*! lately, but I failed to find any information about this. What happens if I have a mod with a pex file which refers to F4SE functions, but I don't actually have any F4SE? Can I detect from within the script if F4SE is available? Is it possible to make something like:if(hasF4se)someF4seFunction()elsesomeVanillaFunction()endif? Link to comment Share on other sites More sharing options...
shavkacagarikia Posted July 6, 2017 Share Posted July 6, 2017 (edited) Have you tried something like this: if (F4SE.GetVersion() > 0) someF4SEFunction() else someVanillaFunction() endif I am not sure if it will throw error if F4SE isn't installed or will go to else. Edited July 6, 2017 by shavkacagarikia Link to comment Share on other sites More sharing options...
pra Posted July 6, 2017 Author Share Posted July 6, 2017 Well, that's exactly the question: will it throw an error? Will it crash? Will the pex file even work if there are F4SE functions in it? Link to comment Share on other sites More sharing options...
shavkacagarikia Posted July 6, 2017 Share Posted July 6, 2017 (edited) Well, that's exactly the question: will it throw an error? Will it crash? Will the pex file even work if there are F4SE functions in it?Then test it. Add debug commands. See what happens if F4SE.pex is removed from scripts folder. Edited July 6, 2017 by shavkacagarikia Link to comment Share on other sites More sharing options...
pra Posted July 6, 2017 Author Share Posted July 6, 2017 It seems to write an error to the log, but otherwise just carries on. Link to comment Share on other sites More sharing options...
Recommended Posts