Jump to content

Photo

Scripts Refuse to Compile

papyrus skyrim le

  • Please log in to reply
9 replies to this topic

#1
Lillysdad2009

Lillysdad2009

    Old hand

  • Members
  • PipPipPip
  • 768 posts

Hi everyone, I am hoping that someone would be willing to help me compile this script. That I have compiled before mind you... I have tried everything, I have updated the Papyrus compiler, I have tried several independent compiler programs. I am not sure why it isn't working, I wanted to make a simple adjustment to a script value. But it wouldn't compile. After troubleshooting I realize that I can't even get the psc to compile again, even without the changes I made. I am leaning toward my script is wrong... The only thing is, the mod works fine. I have no issues with it in game. 


Edited by Lillysdad2009, 12 May 2022 - 01:09 PM.


#2
IsharaMeradin

IsharaMeradin

    The Pale Redguard

  • Members
  • PipPipPipPipPip
  • 10,440 posts

Post the script and the compiler error that you are receiving.  With that information we should be able to determine why it won't compile.

 

And the reason you have no issue in game, the previously compiled script is still present.  When the compiler fails, there is no PEX file created.  The only thing changed is whatever was done to the PSC prior to the compilation attempt.



#3
Lillysdad2009

Lillysdad2009

    Old hand

  • Members
  • PipPipPip
  • 768 posts

Hi, Ishara! I really appreciate your response. I will post the error codes as soon as possible. I have settled on Compiler Plus, it's the only thing I could find to even give me any error codes so far. It has been bouncing back and forth between different things. I completely understand what you mean about the .pex files. What's confusing me is that I tried to compile the original .psc file. Without any changes and it wouldn't compile. My assembler.exe will NOT let me open the .pex to see if I am missing something. I will be back soon with some info for you.



#4
Lillysdad2009

Lillysdad2009

    Old hand

  • Members
  • PipPipPip
  • 768 posts

My error codes are:

 

--- ERRORS ---

 
_test3.psc(23,33): GetWeaponType is not a function or does not exist
_test3.psc(23,49): cannot compare a none to a int (cast missing or types unrelated)
 
I am mainly confused because this is the original .psc, I have been successfully using it in game. I have been away for a while...


#5
IsharaMeradin

IsharaMeradin

    The Pale Redguard

  • Members
  • PipPipPipPipPip
  • 10,440 posts

GetWeaponType is an SKSE function.  The script cannot be compiled without the SKSE PSC files in a location that the compiler can find.  Either merge them into the existing source folder or use a third party utility that can use multiple source folder locations.



#6
Lillysdad2009

Lillysdad2009

    Old hand

  • Members
  • PipPipPip
  • 768 posts

I will try again, I have reinstalled skse like five different times. I tried unpacking it in the folder, I tried the installer. I also tried manually placing every file. I even reinstalled the CK just in case. I appreciate your help.


Edited by Lillysdad2009, 12 May 2022 - 12:20 PM.


#7
Lillysdad2009

Lillysdad2009

    Old hand

  • Members
  • PipPipPip
  • 768 posts

The last time I had this issue reinstalling skse fixed it. This time it doesn't seem to help. I am going to try to find a way to get the same function without GetWeaponType at this point I have basically created an entirely new mod, with fresh scripts anyway. It's probably something that I have done, and I just don't remember to be honest.



#8
IsharaMeradin

IsharaMeradin

    The Pale Redguard

  • Members
  • PipPipPipPipPip
  • 10,440 posts

32 bit Skyrim by default uses "Data > Scripts > Source" for compiler access to all PSC files

64 bit Skyrim by default uses "Data > Source > Scripts" for compiler access to all PSC files

 

SKSE uses "Data > Scripts > Source" for all versions

 

If using 64 bit Skyrim, this may be the reason.



#9
Lillysdad2009

Lillysdad2009

    Old hand

  • Members
  • PipPipPip
  • 768 posts

You were 100% correct! For what ever reason this time when I installed the skse files. It compiled with no issues at all... Skyrim and the CK can be so weird sometimes. Thank you! Kudos



#10
Lillysdad2009

Lillysdad2009

    Old hand

  • Members
  • PipPipPip
  • 768 posts

That was exactly what I did, I just made absolute sure that all of the skse psc files went into the right source folder. I have no idea how I was getting that mixed up from the start. Once I put them where they were supposed to be. It was smooth sailing. Like I said I'm a little rusty lol I will get it together.







Also tagged with one or more of these keywords: papyrus, skyrim le

IPB skins by Skinbox
Page loaded in: 1.006 seconds