Jump to content

So strange, I can't compile SKSE functions


SugarSteak

Recommended Posts

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 exist
F:\The Elder Scroll\TSEV Skyrim LE\Data\Scripts\Source\_SSHS_EffectScript.psc(6,11): SetSpeed is not a function or does not exist
F:\The Elder Scroll\TSEV Skyrim LE\Data\Scripts\Source\_SSHS_EffectScript.psc(8,11): SetSpeed is not a function or does not exist
No 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

Post the script. The only way to tell what is going on with those errors is to see the corresponding script.

All right ...

 

  1. Scriptname _SSHS_EffectScript extends activemagiceffect
  2. Float OldSpeed
  3. Event OnHit(ObjectReference akAggressor, Form akSource, Projectile akProjectile, bool abPowerAttack, bool abSneakAttack, bool abBashAttack, bool abHitBlocked)
  4. If akSource as weapon
  5. OldSpeed = akSource.GetSpeed()
  6. akSource.SetSpeed(0.01)
  7. Utility.Wait(0.1)
  8. akSource.SetSpeed(OldSpeed)
  9. EndIf
  10. 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 by SugarSteak
Link to comment
Share on other sites

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

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

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 by IsharaMeradin
Link to comment
Share on other sites

  • Recently Browsing   0 members

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