theblackpixel Posted June 8, 2021 Share Posted June 8, 2021 (edited) I'm trying to compile a script in the SSE CK using SKSE functionality, but it simply does not compile and spits the error: IsSwimming is not a function or does not exist The script: Scriptname TBPSwimCheck extends activemagiceffect Conditional Spell Property GSpell Auto Spell Property WSpell Auto Event OnEffectStart(Actor akTarget, Actor akCaster) If akCaster.IsSwimming() == 1 debug.notification("Swimming!") WSpell.Cast(akCaster) else debug.notification("Not Swimming!") GSpell.Cast(akCaster) endif EndEvent I know it should work because it compiles on LE just fine. I installed both the PEX and psc scripts in the scripts and source folders respectively and compared between my LE and SE install and they are nearly identical (the only difference is that the dlc folders aren't there in SE but that is normal). I'm at a loss, I feel like I am missing something obvious but I can't for the life of me figure out why this does not work. Edited June 8, 2021 by theblackpixel Link to comment Share on other sites More sharing options...
IsharaMeradin Posted June 8, 2021 Share Posted June 8, 2021 I know it does work because it is used in one of my mods for SSE. If the issue isn't with the placement of the source files, then I do not know where the problem might be. Link to comment Share on other sites More sharing options...
theblackpixel Posted June 8, 2021 Author Share Posted June 8, 2021 I fixed the problem! Turns out for whatever reason the filepath for (my) SSE's scripts is different then the LE one. In LE it is data/scripts/source but in SE it is data/source/scripts. I do not know why but I'm glad it's working now, I hope this topic helps someone else in the future :) Link to comment Share on other sites More sharing options...
Tiziano74 Posted June 14, 2021 Share Posted June 14, 2021 (edited) HiI have the same issue and i can't use SKSE functions in my scripts :geek:I am using the Creation Kit 64 for SEI installed SKSE64 v.2.0.17 on Skyrim SE, checked from console with getskseversionI copied all the scripts from the skse64_2_00_17\Data\Scripts folder to the game folder ..\Skyrim Special Edition\Data\ScriptsEvery time I try to use an SKSE function such as SaveGame or any other, and I try to save the script, I get the error message for example "SaveGame is not a function or does not exist"What did I do wrong? :ninja: Edited June 14, 2021 by Tiziano74 Link to comment Share on other sites More sharing options...
Tiziano74 Posted June 14, 2021 Share Posted June 14, 2021 I fixed the problem! Turns out for whatever reason the filepath for (my) SSE's scripts is different then the LE one. In LE it is data/scripts/source but in SE it is data/source/scripts. I do not know why but I'm glad it's working now, I hope this topic helps someone else in the future :smile:In my SE i have both . . . \Skyrim Special Edition\Data\Scripts\Source and \Skyrim Special Edition\Data\Source\Scripts . . . i'm just a little confused :huh: Link to comment Share on other sites More sharing options...
IsharaMeradin Posted June 14, 2021 Share Posted June 14, 2021 I fixed the problem! Turns out for whatever reason the filepath for (my) SSE's scripts is different then the LE one. In LE it is data/scripts/source but in SE it is data/source/scripts. I do not know why but I'm glad it's working now, I hope this topic helps someone else in the future :smile:In my SE i have both . . . \Skyrim Special Edition\Data\Scripts\Source and \Skyrim Special Edition\Data\Source\Scripts . . . i'm just a little confused :huh: Using default setup with SSE:Place the SKSE PEX files in Data > ScriptsPlace the SKSE PSC files in Data > Source > Scripts Some mods that you may have already installed use Data > Scripts > Source for their PSC files. This is because they either changed where the CK looks for PSC files or they used a 3rd party tool that can compile scripts and utilize multiple input folders. Link to comment Share on other sites More sharing options...
Tiziano74 Posted June 15, 2021 Share Posted June 15, 2021 I fixed the problem! Turns out for whatever reason the filepath for (my) SSE's scripts is different then the LE one. In LE it is data/scripts/source but in SE it is data/source/scripts. I do not know why but I'm glad it's working now, I hope this topic helps someone else in the future :smile:In my SE i have both . . . \Skyrim Special Edition\Data\Scripts\Source and \Skyrim Special Edition\Data\Source\Scripts . . . i'm just a little confused :huh: Using default setup with SSE:Place the SKSE PEX files in Data > ScriptsPlace the SKSE PSC files in Data > Source > Scripts Some mods that you may have already installed use Data > Scripts > Source for their PSC files. This is because they either changed where the CK looks for PSC files or they used a 3rd party tool that can compile scripts and utilize multiple input folders. DoneAnd now it works!!Thanks :cool: Link to comment Share on other sites More sharing options...
Recommended Posts