Jump to content

Recommended Posts

Posted (edited)

Hello!

For the Creation Kit Papyrus compiler, is there a way/setting to limit how many simultaneous compiling threads the Creation Kit is allowed to spawn when pressing that "Recompile All Papyrus scripts" button on a quest window? I noticed that on more complex projects with more scripts interlinked, at about 25-ish simultaneous compiling threads, the Papyrus compiler being the 32 bit app that it is, it comes across the 32 bit 2GB limit memory allocation wall and throws "out of memory errors". But if the scripts are compiled in smaller batches it works fine.

I want to instruct the CK Papyrus compiler to only compile in batches of 20 threads at most. 
Is there a way to do that?

Edited by MySModAlice
clarity
Posted (edited)
  On 6/15/2025 at 9:41 PM, LarannKiar said:

I haven't tried it but maybe memory usage can be reduced by tweaking the settings in CreationKit.ini.

Expand  

Thank you!
I did take a look but did not find a setting.
The CK itself or the system is in no danger of running out of memory (mod dev machine has 64 GB total, plenty remain free).
Just the Papyrus compiler executable/process when it is invoked by the CK goes to 2 GB-ish and can't go any higher (assuming because of the 32 bit architecture, but maybe i am wrong). 

A deeper search led me to this as being the only version of the compiler that supports limiting simultaneous spawned threads: 
Papyrus Compiler Patch (NoDox edition) - Fallout 4 at Fallout 4 Nexus - Mods and community
 

In the end, I ended up splitting the mod's functionality for that one big quest  into two separate quests, so that the total fragment scripts number per quest stayed under 20.
So I can still use the CK button for " compile allscripts".

Likely the correct solution is setting up a command line/custom IDE infrastructure for compiling the scripts, instead of using that button in the CK ๐Ÿ™‚

Edited by MySModAlice
  • Recently Browsing   0 members

    • No registered users viewing this page.
ร—
ร—
  • Create New...