Jump to content


Unofficial Patch Project
  • Content count

  • Joined

  • Last visited


About Sclerocephalus

  • Rank
  • Birthday 12/29/1965

Contact Methods

  • Website URL

Profile Information

  • Gender
  • Location

Recent Profile Visitors

1815 profile views
  1. Good to know. Thanks for the clarification.
  2. Settlement mods may interfere with the new update because WorkshopParentScript got a massive update. Though, it all depends on whether a mod makes modifications to that script (in that case, it will require an update) and how substantial they are. Good mods won't touch the vanilla scripts and try to work around them wherever possible.
  3. Ninja'ed. Please check my edit to the previous post.
  4. That's an as yet overlooked vanilla bug ! If you send an actor to another workshop, or if a new settler is created for a workshop, the workshop scripts run the TryToAutoAssignActor() function on him. This function auto assigns the actor to food or safety (depending on whether he's a guard or a normal settler), by setting a property on his WorkshopNPCScript, and then assigns him to all unassigned objects of that type that already exist at that workshop. If there are no unassigned resource objects, it won't do anything, and also clears the porperty on his WorkshopNPCScript again. The scripts check for brahmins before they call that function, but they forgot to check for Dogmeat. To unassign him, you only have to assign the objects that are currently assigned to him to somebody else. EDIT: there also may be something else wrong, but not on the scripts: Do you, by chance, have a mod installed that removes the LocTypeWorkshopSettlement from some or all workshop locations ? Asking this for a reason: around two years ago, I downloaded a mod that removed the enemy level lock on locations (i.e. made it so the level won't get stuck at the level of your first visit to a location) and then found out that this mod removed that keyword from all workshop locations. Reported this to the mod author but I don't know whether it was ever fixed. Removing that keyword has detrimental effects on the workshops because the workshop scripts check for it and some operations will not run as intended if it's missing. This would in fact explain why TryToAutoAssignActor() runs on Sanctuary while you are at Red Rocket when it actually shouldn't.
  5. Sclerocephalus

    SSE light sources casting no shadows

    There is a very useful lighting tutorial on TESAlliance: http://tesalliance.org/forums/index.php?/topic/6843-ck-basics-lesson-4/
  6. Sclerocephalus

    SSE light sources casting no shadows

    There also is another limit in that no object may be lit by more than x light sources at the same time (where x = 4, as far as I remember). Place more and you will get strange glitches.
  7. Sclerocephalus

    [Fallout 4] Known Engine Bugs

    Good point. Test run was indeed with F4SE installed. If this is really an F4SE issue, they should fix it as soon as possible.
  8. Sclerocephalus

    [Fallout 4] Known Engine Bugs

    Another papyrus bug: Zero length arrays of object references turn into none arrays on reload. My script is using two types of arrays that may have zero length at any time, namely script arrays (to be more specific: arrays of workhopObjectScript and arrays of workshopNPCScript) and object reference arrays. After saving, quitting to desktop, restarting the game and reloading, I started to get errors on the log about failures to call functions on none arrays when everything was fine before saving. Debug sessions showed that this happened when one of the object reference arrays had zero length when saving; after reloading, these arrays had mysteriously turned into none arrays. The debug logs also showed however that this did not occur to the script arrays: they are still zero length arrays after reloading if they had zero length when the save was made. I have not tested this with any arrays of forms other than scripts and object references yet, so there may be more forms affected than only object references. It might also be worth noting that the script stores the affected arrays in variables, not in properties, although this actually shouldn't make a difference (once things are getting buggy though, one never knows for sure what matters and what not ....).
  9. Sclerocephalus

    Skyrim Special Edition CTD problems.

    Considering the fact that the crashes appear to be level-dependent, the first thing that comes to mind is a mod-added armor or weapon with a faulty mesh that is distributed through leveled lists and does not appear in the game below level 10. It might be worth having a look at the leveled list sections of your armor and weapon mods (there shouldn't be too many as there are still only a few modders that go the way of properly integrating their items in the game) and check what they add at level 10.
  10. Sclerocephalus

    Four NPC driving me nuts

    There is a way to let a script recognize a null pointer (and to discern it from a 'normal' none ref), but I don't know whether this will be of much help because it will not prevent the error from being thrown: if actorRef != none if actorRef.GetLeveledActorBase() != none : (do your stuff here) : return endif : (everything that needs to be done if actorRef holds a null pointer should be added here) : endif First check for a 'none', as usual. The second check is a bogus check, as you probably don't need to know the leveled actor base. You know however that the check will fail with an error if actorRef holds a null pointer. If that happens, the script will skip the entire if branch. Thus, do anything you need to do on a valid ref in that if branch and move everthing you might want to do if the ref has turned invalid ibelow that check.
  11. Sclerocephalus

    Four NPC driving me nuts

    But you run stuff on them, so you likely save the actor on which a script instance runs at least in a variable once the effect starts running, so you don't have to re-evaluate the actor ref each time the script needs to run stuff on it. Or is your script entirely event based and you get the actor ref always from akCaster/akTarget that are passed in by the respective event ? See, that could be the problem. Magic effectts are forcibly deleted by the engine as soon as they stop running. If whatever is responsible for an event to fire on your script is happening while a magic effect is still active, your magic effect script will receive that event no matter what - but it may fire after the effect has expired, and if that happens, anything passed in by that event is likely invalid. If you store the actor in a variable or property once the effect starts running and use that instead of what an event is passing in, you'll always have a valid actor ref to operate on, and things may still be working if the script continues running after the effect has expired.
  12. Sclerocephalus

    Four NPC driving me nuts

    According to your log, it is NOT none but a "null pointer". Note the ref 0002A309 that is logged with the null pointer (should be the actor's valid ref) ? "True" none items do not have any ref. This is essentially why this reference passes all checks for 'none': because it actually isn't 'none'. In any other respect though, null pointers will behave like nones: trying to call any functions on them will fail with an error. There is evidence that null pointers are deliberately used to block script access to a reference (at least temporarily) or to prevent an item from becoming peristent. There are at least two cases documented where references may turn into null pointers and back into valid references at run time: Script properties referencing an exterior cell: that property will turn into a null pointer once the cell detaches, and turn back into a valid ref once it attaches again. Object references stored in a form list: they turn into null pointers if the cell where they are persistent detaches, and turn back into valid refs if that cell re-attaches. In your case, the magic effect has ended at the time you try to call stuff on the actor: this is obvious because the magic effect script is running on 'none'. I further assume that the actor you try to run stuff on is stored in a property on that script. That would explain why the property turned into a null pointer (it presumably did so as soon as the effect stopped running).
  13. Sclerocephalus

    dead body cleanup is bugged

    Well, ash piles are not actors. If an actor is turned into an ash pile, the actor gets disabled and deleted as soon as the visual effect has been displayed, and an ash pile is created and placed instead. Ash piles are just in-game created objects, and those are cleaned up very slowly (if at all). Actors are different and always put a higher workload on the engine, because they have an AI (even if they're dead). Creation of new actors may fail in areas that have too many actors. In FO4, for example, the random encounter triggers that are close to settlements will fail to start encounter quests once the population at that workshop goes beyond a certain limit. Most prominent example is the encounter zone below the bridge just southeast of the Starlight Drive-In. If you recompile REScript in debug mode and have papyrus logging enabled, you'll always get a warning message on the log when that area loads.
  14. Sclerocephalus

    dead body cleanup is bugged

    The random encounter quests in SSE are likely flagging all actors they create with a 'temp' flag. With thar flag, they are marked for getting cleaned up as soon as posible if theyare no longer in a quest alias or in a script property. Which usually is true as soon as the quest stops running. It's probably worth havinga look at those quests' stop conditions. Do they stop running after everything has unloaded (this is fine because it means that no actors will be cleaned up prematurely) or do they top running if everyone is dead (this would be explain your issues) ?

Support us on Patreon!