Jump to content

Help with Papyrus Error In SSE CK


vratam

Recommended Posts

Hello. I've recently setup a new SSE install and I've been teaching myself scripting in Skyrim Special Edition. One of the techniques I've been implementing to assist me has been to research into the source code contained in mods I like as examples to follow. I'll read and modify them, compile them in the CK, and then load them into the game to observe the modified functionality; so to gain understanding of what and how. For the most part, I've been getting along slowly but fairly well.

 

Recently, however, I've been stuck with several scripts that will not compile and I have no idea what the issue could be. The error papyrus gives is:

 

"argument a_flags is not specified and has no default value"

 

I can state that the majority of these scripts are MCM related, but not all. Although, of those that are not, another, separate MCM script is included in the mod. The interesting thing is, I can not compile the unmodified script either, I receive the same error message; yet the mod works fine in-game.

 

Any information or insight regarding this error and how to remedy it would be greatly appreciated!

 

Thanks in advance!

Edited by vratam
Link to comment
Share on other sites

In order to compile MCM scripts (or secondary scripts that link to the MCM script) you need to have the SkyUI SDK installed.

This may shed some light: https://github.com/schlangster/skyui/wiki/MCM-Quickstart

Thank you for your reply!

 

I have ALL of that already setup and have successfully modded some MCM menus. This specific error message is eluding me. The lines it points to can be very different from script to script, so I can not determine a consistency, and, I haven't been able to find any reference to "a_flag" anywhere (within any code or researching the Internet).

 

My instinct is telling me that, perhaps, one script needs reference to another script within the mod, but no matter what I've tried I still receive the same error message. I've even attempted to take the working *.pex, run it through Champollion and try to compile the output *.psc; same message. As I mentioned, compiling the original source from the mod raises the error, and this truly stumps me; naturally it had to compiled at least once. I've read through all of schlangster's documentation (well, most of it anyway), but still to no avail.

 

EDIT: I'm not saying my system is not deficient in some way (obviously it must be if others can compile what I can not), its just that I don't have a clue as to how or why. I would find it hard to believe, however, that no one other than myself has encountered such an error. Surely something is askew.

Edited by vratam
Link to comment
Share on other sites

The error message you posted says that the argument called "a_flags" has not been specified and has no value. This could be eluding to a parameter in a function. But without seeing the full error report and the associated script as it is when the error report is generated, I could not begin to guess as to the source.

Link to comment
Share on other sites

The error message you posted says that the argument called "a_flags" has not been specified and has no value. This could be eluding to a parameter in a function. But without seeing the full error report and the associated script as it is when the error report is generated, I could not begin to guess as to the source.

I noticed you have a link to your mods, so I took a look. You have a mod named, "Inventory Management System Rebuilt," which incorporates a MCM menu, so I downloaded it (I know its technically for Oldrim but I wanted to see). I extracted all your scripts from the bsa, placed them into the game's source directory (yes, the ini is pointing to the right location), launched the CK and attempted to compile the "abim_ims_mcmquestscript.psc" script. These are the first few lines of error messaging:

Starting 1 compile threads for 1 files...
Compiling "abim_ims_mcmquestscript"...
D:\games\Steam\steamapps\common\Skyrim Special Edition\Data\Scripts\Source\abim_ims_mcmquestscript.psc(474,8): argument a_x is not specified and has no default value
D:\games\Steam\steamapps\common\Skyrim Special Edition\Data\Scripts\Source\abim_ims_mcmquestscript.psc(474,8): argument a_y is not specified and has no default value
D:\games\Steam\steamapps\common\Skyrim Special Edition\Data\Scripts\Source\abim_ims_mcmquestscript.psc(481,8): argument a_flags is not specified and has no default value
D:\games\Steam\steamapps\common\Skyrim Special Edition\Data\Scripts\Source\abim_ims_mcmquestscript.psc(482,8): argument a_flags is not specified and has no default value
D:\games\Steam\steamapps\common\Skyrim Special Edition\Data\Scripts\Source\abim_ims_mcmquestscript.psc(483,8): argument a_flags is not specified and has no default value

I would really love to get this resolved. As I said, I'm just starting with scripting and don't yet know all the ins and outs of papyrus or the CK. Perhaps there is a log file with greater detail that I don't know about. If you're willing to help I will attempt any suggestion you may have and/or try to provide whatever output required. I simply need to know what that is :-)

 

EDIT: placed code into code block

Edited by vratam
Link to comment
Share on other sites

I'm not sure why, but I decided, since something is obviously defunct, that I would simply start again. So, I deleted my scripts directory entirely. I decompressed the Skyrim script archive, reinstalled the SKSE scripts, the SkyUI scripts, FISS and PapyrusUtil sources as well, and then again made an attempt at compiling your script. To my surprise, it worked!

 

I tried compiling some of the other scripts I've been having trouble with and they all compiled successfully as well. Obviously something was either missing or corrupt in some way, and while I wish I knew precisely what that was, I'm relieved, never the less, its gone. Sometimes the brute force method works out :-)

 

Thank you for your time and replies!

Link to comment
Share on other sites

  • Recently Browsing   0 members

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