Jump to content

[LE] Scripts Refuse to Compile


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

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

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.

Link to comment
Share on other sites

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

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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