SugarSteak Posted November 15, 2014 Share Posted November 15, 2014 Hello dear modders, I think I met a strange event .Today I wrote a script as usual ,and it use a SKSE function .This nothing unusual .But when I compile it ,then strange thing start. Compiler reported to me some errors ,just like this : Starting 1 compile threads for 1 files...Compiling "_SSHS_EffectScript"...F:\The Elder Scroll\TSEV Skyrim LE\Data\Scripts\Source\_SSHS_EffectScript.psc(5,22): GetSpeed is not a function or does not existF:\The Elder Scroll\TSEV Skyrim LE\Data\Scripts\Source\_SSHS_EffectScript.psc(6,11): SetSpeed is not a function or does not existF:\The Elder Scroll\TSEV Skyrim LE\Data\Scripts\Source\_SSHS_EffectScript.psc(8,11): SetSpeed is not a function or does not existNo output generated for _SSHS_EffectScript, compilation failed. Batch compile of 1 files finished. 0 succeeded, 1 failed.Failed on _SSHS_EffectScript Oh ,WTF ?! All we know ,"GetSpeed" and "SetSpeed" are SKSE functions .So I reinstall SKSE ,but nothing change .Then I try to compile some scripts with SKSE functions which I have written before (they used to be worked well), but now they can't be compiled .I can't understand this problem .And then I try to reinstall CK ,no use ,reinstall the game ,no use ,fix registry ,no use . What's the matter ? I'm all at sea . :confused: Anyone know this situation ?Grateful . Link to comment Share on other sites More sharing options...
Mattiewagg Posted November 15, 2014 Share Posted November 15, 2014 Install SKSE with the 7z archive, not the installer. Link to comment Share on other sites More sharing options...
SugarSteak Posted November 15, 2014 Author Share Posted November 15, 2014 Install SKSE with the 7z archive, not the installer.er...I have tried this ,but no use ... Link to comment Share on other sites More sharing options...
SugarSteak Posted November 15, 2014 Author Share Posted November 15, 2014 Yeah ...Looks like no solution . :geek:I have spent over 10 hours on this ,though most time I'm in a daze . :mellow: Link to comment Share on other sites More sharing options...
IsharaMeradin Posted November 16, 2014 Share Posted November 16, 2014 Post the script. The only way to tell what is going on with those errors is to see the corresponding script. Link to comment Share on other sites More sharing options...
SugarSteak Posted November 16, 2014 Author Share Posted November 16, 2014 (edited) Post the script. The only way to tell what is going on with those errors is to see the corresponding script.All right ... Scriptname _SSHS_EffectScript extends activemagiceffect Float OldSpeed Event OnHit(ObjectReference akAggressor, Form akSource, Projectile akProjectile, bool abPowerAttack, bool abSneakAttack, bool abBashAttack, bool abHitBlocked) If akSource as weapon OldSpeed = akSource.GetSpeed() akSource.SetSpeed(0.01) Utility.Wait(0.1) akSource.SetSpeed(OldSpeed) EndIf EndEvent Any grammatical mistake ?Edit :I sent this script to my friend and he can compile it ,so I think this script must be no mistake . Edited November 16, 2014 by SugarSteak Link to comment Share on other sites More sharing options...
IsharaMeradin Posted November 16, 2014 Share Posted November 16, 2014 Your friend is correct. Nothing is wrong with the script. It is back to making sure that SKSE is properly installed. You need to make sure that you are installing the latest version of SKSE. You need to make sure that you put the PEX files in the Data > Scripts folder. You need to make sure that you put the PSC files in whatever directory you have set up for the CK and any other 3rd party programs to compile from. Typically it is Data > Scripts > Source. But I know it can be changed as mine is Data > Scripts > Source > Combined (I put all the DLC source scripts with the main game scripts in one location) Link to comment Share on other sites More sharing options...
SugarSteak Posted November 18, 2014 Author Share Posted November 18, 2014 IsharaMeradin : I am sure that SKSE is properly installed , I am sure that I installed the latest version of SKSE , I am sure that I put the PEX files in the Data > Scripts folder. I am sure that I put the PSC files in Data > Scripts > Source(Except the psc files in src\skse\scripts\modified folder ). So I have no idea why this happened ,it is impossible . :pinch: In a few days ago I still compiled some SKSE scripts succeed ,but now they can't be compiled . Link to comment Share on other sites More sharing options...
IsharaMeradin Posted November 18, 2014 Share Posted November 18, 2014 (edited) The script visually looked fine. Assumed it was fine because your friend could compile it. Today, I tried to compile myself. It failed. Needed to edit it in the following manner before it would compile: Scriptname _SSHS_EffectScript extends activemagiceffect Float OldSpeed Event OnHit(ObjectReference akAggressor, Form akSource, Projectile akProjectile, bool abPowerAttack, bool abSneakAttack, bool abBashAttack, bool abHitBlocked) If akSource as weapon OldSpeed = (akSource as weapon).GetSpeed() (akSource as weapon).SetSpeed(0.01) Utility.Wait(0.1) (akSource as weapon).SetSpeed(OldSpeed) EndIf EndEvent Edited November 18, 2014 by IsharaMeradin Link to comment Share on other sites More sharing options...
RGMage2 Posted November 19, 2014 Share Posted November 19, 2014 Maybe this is too obvious a question, but are you starting the CK with SKSE enabled? Link to comment Share on other sites More sharing options...
Recommended Posts