# A lot of my scripts have not been fully functional since 13.22.5

**URL:** <https://resource.dopus.com/t/a-lot-of-my-scripts-have-not-been-fully-functional-since-13-22-5/59189>\
**Category:** Help & Support\
**Tags:** script, bug-report, jscript\
**Created:** [April 17, 2026, 10:42pm UTC](https://resource.dopus.com/t/a-lot-of-my-scripts-have-not-been-fully-functional-since-13-22-5/59189 "2026-04-17T22:42:45Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![errante](https://resource.dopus.com/user_avatar/resource.dopus.com/errante/32/61692_2.png) [@errante](https://resource.dopus.com/u/errante)\
**Post date:** [April 17, 2026, 10:42pm UTC](https://resource.dopus.com/t/a-lot-of-my-scripts-have-not-been-fully-functional-since-13-22-5/59189/1 "2026-04-17T22:42:45Z")

</div>

Continuing the discussion from [Directory Opus 13.22.5 (Beta)](https://resource.dopus.com/t/directory-opus-13-22-5-beta/59182):

> [@Directory Opus 13.22.5 (Beta)](https://resource.dopus.com/t/directory-opus-13-22-5-beta/59182/1):
>
> Improved the checks `Vars.Set()` does to detect non-Opus objects (they are not supported in Vars objects as they can easily cause crashes, since they can't persist from one instance of a script to another).

 ![image](https://resource.dopus.com/uploads/default/original/3X/2/e/2ec046b2a873954f29a9f675bef15780a02c63cc.jpeg)

> [@Wild idea: custom column and dialog to show what locks a file](https://resource.dopus.com/t/wild-idea-custom-column-and-dialog-to-show-what-locks-a-file/58883/61):
>
> We previously checked for variables that were added directly to Vars and rejected non-Opus objects (e.g. jscript arrays), but we now also check for non-Opus objects hidden inside Opus ones (e.g. in a Vector).

Now seriously, I think this change might have gone a bit too far. It seems to **affect more** than just `Vars` and setting forbidden things into it. A lot of my scripts are now broken, and I'll have to debug them one by one when I get the time. Note that the vast majority of this scripts don't even save jscript objects to `Vars` like the claim says. Some of them can be worked around, but unfortunately some can't.

A pattern I've noticed is scripts that somehow interact with JScript objects (even those "allowed" by the Opus scripting API). For example, you can no longer use `Vector.assign()` with a JScript array.

When you mentioned making it persistent, I assumed you meant what `persist` explicitly does (saving to disk), which I don't use; but this change clearly goes beyond just `Vars`.

> [@Wild idea: custom column and dialog to show what locks a file](https://resource.dopus.com/t/wild-idea-custom-column-and-dialog-to-show-what-locks-a-file/58883/61):
>
> Using jscript objects in a Vars object doesn't work reliably (and often crashes)

FWIW, I've been using that method (storing an Opus object in Vars that itself contains JScript objects) for a long time and I've never seen a single crash. I've also shared some of those scripts here, and I assume there are more users running them who would've reported crashes by now. Maybe there's another factor triggering it, because this feels pretty anecdotal to me, to say the least.

* * *

Heads up to anyone using some of my scripts: some of them are no longer starting, and some are only partially working. I just confirmed it, for example, with OpusMediaInfo, OpusExiftool, and a few others I don't remember.

---

<div class="post-metadata">

**Author:** ![Jon](https://resource.dopus.com/user_avatar/resource.dopus.com/jon/32/12713_2.png) [@Jon](https://resource.dopus.com/u/Jon)\
**Post date:** [April 17, 2026, 11:45pm UTC](https://resource.dopus.com/t/a-lot-of-my-scripts-have-not-been-fully-functional-since-13-22-5/59189/2 "2026-04-17T23:45:19Z")

</div>

If you downloaded the beta very soon after release, it might be this bug:

> [@13.22.5 Vars set bug](https://resource.dopus.com/t/13-22-5-vars-set-bug/59183/1):
>
> New changes to vars.set are now throwing an error with DOpus.Vars.Set('gemini\_pos', DOpus.Create.Vector(dlg.x, dlg.y, dlg.cx, dlg.cy)); as per documentation [image]

Check your build number, if it's 9465 you should re-download and see if it fixes those issues.

> [@errante](#):
>
> I've also shared some of those scripts here, and I assume there are more users running them who would've reported crashes by now. Maybe there's another factor triggering it, because this feels pretty anecdotal to me, to say the least.

We had a crash from this just the other day 🙂

> [@Error with 7zip](https://resource.dopus.com/t/error-with-7zip/59166):
>
> Hello, I'm experiencing an error with the latest Dopus update. When I open a zip file with 7-Zip, upon closing the 7-Zip application and the folder containing the file, I get an error message.

Just because it doesn't happen all the time doesn't mean it can't happen. The fact remains is it's fundementally unsafe - jscript objects aren't meant to outlive the instance of the script engine that created them.

---

<div class="post-metadata">

**Author:** ![Jon](https://resource.dopus.com/user_avatar/resource.dopus.com/jon/32/12713_2.png) [@Jon](https://resource.dopus.com/u/Jon)\
**Post date:** [April 18, 2026, 12:21am UTC](https://resource.dopus.com/t/a-lot-of-my-scripts-have-not-been-fully-functional-since-13-22-5/59189/3 "2026-04-18T00:21:17Z")

</div>

(If you're using build 9466 and still have this many errors please let me know because the change should not have affected anything except Vars objects and what you can store in them)

---

<div class="post-metadata">

**Author:** ![errante](https://resource.dopus.com/user_avatar/resource.dopus.com/errante/32/61692_2.png) [@errante](https://resource.dopus.com/u/errante)\
**Post date:** [April 18, 2026, 1:08am UTC](https://resource.dopus.com/t/a-lot-of-my-scripts-have-not-been-fully-functional-since-13-22-5/59189/4 "2026-04-18T01:08:17Z")

</div>

I'm on 9466.

> [@Jon](#):
>
> the change should not have affected anything except Vars objects

> [@errante](#):
>
> you can no longer use `Vector.assign()` with a JScript array.

 ![image](https://resource.dopus.com/uploads/default/original/3X/b/d/bd2d5681831e0a211e8d3a7240f5ecd53ae6a056.png)

> [@Jon](#):
>
> We had a crash from this just the other day 🙂

Yes, that report seems pretty bizarre, I don't fully understand it; it starts talking about archives, then changes the subject. FWIW, that script (which is just a test) did use the `Vars` and JScript objects thing.

Just to be clear, I'm not arguing against the new policy regarding `Vars`; that's up to you since you know better. What I'm saying is that it seems like the fix is affecting things that shouldn't be related, like `Vector.assign()` with an array, and probably other things that will show up in the next few days.

---

<div class="post-metadata">

**Author:** ![Jon](https://resource.dopus.com/user_avatar/resource.dopus.com/jon/32/12713_2.png) [@Jon](https://resource.dopus.com/u/Jon)\
**Post date:** [April 18, 2026, 1:46am UTC](https://resource.dopus.com/t/a-lot-of-my-scripts-have-not-been-fully-functional-since-13-22-5/59189/5 "2026-04-18T01:46:49Z")

</div>

Thanks for the additional info. I see what's happened now.

That's actually caused by an unrelated change in 13.22.4. The change in 13.22.5 is coincidental.

Will be fixed shortly.

> [@errante](#):
>
> Yes, that report seems pretty bizarre, I don't fully understand it; it starts talking about archives, then changes the subject.

People are often not good at diagnosing issues in the first instance, but the crash dump he sent was clear that it was caused by freeing a non-Opus object stored in a Vector.

---

<div class="post-metadata">

**Author:** ![Jon](https://resource.dopus.com/user_avatar/resource.dopus.com/jon/32/12713_2.png) [@Jon](https://resource.dopus.com/u/Jon)\
**Post date:** [April 18, 2026, 2:00am UTC](https://resource.dopus.com/t/a-lot-of-my-scripts-have-not-been-fully-functional-since-13-22-5/59189/6 "2026-04-18T02:00:30Z")

</div>

Fixed in [13.22.6](https://resource.dopus.com/t/directory-opus-13-22-6-beta/59190).

---

<div class="post-metadata">

**Author:** ![errante](https://resource.dopus.com/user_avatar/resource.dopus.com/errante/32/61692_2.png) [@errante](https://resource.dopus.com/u/errante)\
**Post date:** [April 18, 2026, 2:18am UTC](https://resource.dopus.com/t/a-lot-of-my-scripts-have-not-been-fully-functional-since-13-22-5/59189/7 "2026-04-18T02:18:29Z")

</div>

Thanks, confirmed.

So just to be clear : can we still set non-Opus objects inside Opus objects (e.g. an Opus Map containing JScript objects as items)? Or is that something that might also get patched later?

The only thing that's forbidden now is using Opus `Vars` for that matter, right?

---

<div class="post-metadata">

**Author:** ![Jon](https://resource.dopus.com/user_avatar/resource.dopus.com/jon/32/12713_2.png) [@Jon](https://resource.dopus.com/u/Jon)\
**Post date:** [April 18, 2026, 2:36am UTC](https://resource.dopus.com/t/a-lot-of-my-scripts-have-not-been-fully-functional-since-13-22-5/59189/8 "2026-04-18T02:36:19Z")

</div>

The only restriction is on Vars, because they live on outside the confines of a particular instance of the script.
