Jump to content

Recommended Posts

Posted

So then I can do RemovePackageOverride(self) from package end fragment if I want one-shot packages? Or will it CTD because I cut the branch where I sit on?

Posted

You sure the end fragment will even run?

 

Also removing package override will not apply the change immediately, something must trigger package re-evaluation before it actually changes on the actor so there's no CTD.

 

And yes last added with same priority will be first because this is not a normal game's package stack but separate custom one.

Posted

So then I can do RemovePackageOverride(self) from package end fragment if I want one-shot packages? Or will it CTD because I cut the branch where I sit on?

 

 

You sure the end fragment will even run?

 

Also removing package override will not apply the change immediately, something must trigger package re-evaluation before it actually changes on the actor so there's no CTD.

 

And yes last added with same priority will be first because this is not a normal game's package stack but separate custom one.

 

PackageOverride will not always run the end script.

Their stak is not the normal game packages stack.

 

Sadly it depends on what is going on on the game. Sometimes they will, sometime they will not call the script.

I stopped long time ago to use end scripts to packages that were added by PackageOverrides. And self-overriding has always be problematic, so try to avoid it.

Posted

Thank you - it would be good if those information becomes part of the papyrus documentation.

 

So if I can't trust override packages (fragments might run or not and the override might be triggered now or later) I cannot not use them at all - there are enough alternatives to assign packages without those restrictions.

Posted

Thank you - it would be good if those information becomes part of the papyrus documentation.

 

So if I can't trust override packages (fragments might run or not and the override might be triggered now or later) I cannot not use them at all - there are enough alternatives to assign packages without those restrictions.

 

Forgive me, but the only thing that is not always working is the self removal of a packageoverride done inside the end fragment of the same package you are setting as override.

 

If you do a package override, then you are doing it in a different piece of code.

So you have a place to safely remove the package when you are done.

Posted

 

Thank you - it would be good if those information becomes part of the papyrus documentation.

 

So if I can't trust override packages (fragments might run or not and the override might be triggered now or later) I cannot not use them at all - there are enough alternatives to assign packages without those restrictions.

 

Forgive me, but the only thing that is not always working is the self removal of a packageoverride done inside the end fragment of the same package you are setting as override.

 

If you do a package override, then you are doing it in a different piece of code.

So you have a place to safely remove the package when you are done.

 

This is contradictory - if the end fragment is unreliable and the override package does not run in standard NPC stack - how can I ever know that a package has finished or not?

Posted

 

This is contradictory - if the end fragment is unreliable and the override package does not run in standard NPC stack - how can I ever know that a package has finished or not?

 

 

 

Do some tests.

 

Add in the end fragment of a package something like:

 

debug.trace("Test first")

Utility.wait(2.0)

debug.trace("Test second")

Actorutil.removepackageOverride(akActor, thepackage)

debug.trace("Test third")

 
And try.
But try by adding the package in different situations. Like an actor playing a scene, and actor involved in a sexlab anim, an actor doing nothing, etc.
Posted

Fortunately ActorUtils is the most easy replaceable feature. I wanted to rewrite my leash system - but now I am sure that I shall better don't use ActorUtils for this if I want to avoid my leashed player to be stuck in his leash.

  • 2 weeks later...
Guest ffabris
Posted

Question re: the latest JsonUtil and paths

 

Using the example from JsonUtil:

{ 
   "foo": 
        { 
              "bar": [3, 10, 7]
        } 
}

Is there a way to remove "bar" and all its contents from the file?

Is there a way to remove the 10, for example, from the array?

 

Posted

 

...

 

 

Sadly not right now. But looks like a good thing to have.

Guest ffabris
Posted

Yeah, very much so. I have a use case in which removing data would be very much needed.

 

But thanks for the answer. :)

Posted

After installing USLEEP 3.5 My papyrus logs have gone to 20mb, the game is running fine but mannequins are spamming my papyrus log.  My skyrim ini says (0) for logging, but the logs are still being generated anyway.  Is there a toggle for generating  logs?

  • 3 weeks later...
Posted

 

you know what would be awesome?

 

PapyrusUtil.SendPostRequest(String URL)

 

so i can create a counter of soulgem births to put on the SGO page lolol.

 

it would be pretty fkn dope. i been adding stats to sgo all day XD

 

Can't this be done with a storageutil integer?

 

 

i want to send stats to the internet to display world wide totals...

Posted

Sadly not right now. But looks like a good thing to have.

Yeah, very much so. I have a use case in which removing data would be very much needed.

 

But thanks for the answer. :)

I second this and the fact, that version 3.3 is still only contained inside SexLab, which means, that if I want to use features from that version, I have to make SexLab v1.62 a requirement, even though my mod doesn't really depend on SexLab.

 

My mod wouldn't exist without PapyrusUtil though, so thanks @h38fh2mf, @Ashal and whoever else is/was involved in making this very useful mod possible :)

Posted

SexLab already includes papyrusUtil. If you have the latest version of SexLab you have nothing to do.

Posted

 

SexLab already includes papyrusUtil. If you have the latest version of SexLab you have nothing toits stii

its still saying Storageutil.dll X how do i fix that?

 

 

Probably your installation of SexLab was not good.

Just re-install it.

Posted

 

 

SexLab already includes papyrusUtil. If you have the latest version of SexLab you have nothing toits stii

its still saying Storageutil.dll X how do i fix that?

 

 

Probably your installation of SexLab was not good.

Just re-install it.

 

i did when you told me sexlab already had paps in it so i thought it was out of date so i should i try one more time?

Posted

 

i did when you told me sexlab already had paps in it so i thought it was out of date so i should i try one more time?

 

 

Recommended approach: download (again) SexLab 1.62, and re-install it.

In case you are asked for "overwrite" do overwrite.

Posted

 

 

i did when you told me sexlab already had paps in it so i thought it was out of date so i should i try one more time?

 

 

Recommended approach: download (again) SexLab 1.62, and re-install it.

In case you are asked for "overwrite" do overwrite.

 

ok

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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