Jump to content

Interfacing with Frostfall script


iamzip

Recommended Posts

Posted

Does anybody know how to create a dev environment that allows you to compile scripts that reference FrostUtil script?

 

I've done a bit of digging and already got the source for SkyUI, Equipping Overhaul, Chesko's FallbackEventEmitter and CommonArrayHelper and everything else in that GitHub, Frostfall, Campfire, and PapyrusUtil, but even with all of this I get compiler errors like "LinkedArrayAddArmor is not a function or does not exist" (_frost_legacyarmordatastore.psc), and "AddInputOption is not a function or does not exist" (_camp_skyuiconfigpanelscript.psc).  I'm trying to compile a 4 line script, including scriptname, that interfaces with FrostUtil to get the player exposure.  Supposedly there was a dev kit for Frostfall at some point but the download link isn't working anymore.

Posted

Thanks for the quick reply.  I tried that out and I'm still getting the same compiler errors, not sure what's going on.

  • 2 months later...
  • 4 months later...
Posted

LinkedArrayAddArmor seems to be missing from the CommonArrayHelper in CheskoPapyrusShared.

 

In order to get FrostUtil to compile for mods like WetFunctionRedux, without downloading every Frostfall optional dependency I had to:

  1. Download FrostDevKit & CampDevKit from https://github.com/chesko256/Campfire
  2. Download CheskoPapyrusShared from https://github.com/chesko256/CheskoPapyrusShared
  3. Download Campfire v1.12.1 (SE) from https://www.nexusmods.com/skyrimspecialedition/mods/667
  4. Download Frostfall v3.4.1 (SE) from https://www.nexusmods.com/skyrimspecialedition/mods/671
  5. Download Campfire and Frostfall - Unofficial SSE Update from https://www.nexusmods.com/skyrimspecialedition/mods/17925
  6. Decompile CommonArrayHelper from Campfire
  7. Modify the decompiled CommonArrayHelper to add default values to function arguments:
    1. Change all ArraySort- functions from "Int i)" to "Int i = 0)"
    2. Change all ArrayRemove- functions from "Bool abSort)" to "Bool abSort = false)"
  8. Copy FrostUtil from Frostfall
  9. Modify the copied FrostUtil to remove function bodies
    1. Return a default value for functions with return types: bool/int/float/string/object => false/-1/-1.0/""/None

 

FWIW, there are copies of the FrostDevKit (3.0.3) & CampDevKit (1.7.1) on the Nexus Legendary Skyrim pages, but I'm not sure how they compare to what's on Github. Neither seems to contain CommonArrayHelper.
https://www.nexusmods.com/skyrim/mods/64798?tab=files

https://www.nexusmods.com/skyrim/mods/11163?tab=files

Posted

Thanks for the assistance, the steps you listed were basically the solution I came up with since nothing I was doing had any remote association with the missing functions.  Probably not the ideal solution but since none of my functions were calling anything other than frostutil I figured it was safe, and I didn't catch any bugs while testing with the unmodified scripts.

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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