Despite the fact that my AVAT-IN event seems to fire without warning,
I have
yet to have received any avatars via the sharing feature. It's possible that based on the data I have in my SYNCDATA sub that might be expected behavior, but that is to also say I have around 2900 messages in that sub but nearly 2000 messages in a row spit out parse errors on JSON data.
That's TLDR ahead of time.
I am running this command to rescan the message base for avatars:
`./jsexec avatars.js import=DOVE-SYNCDATA -ptr=0 -all`
I don't recall avatars.js being designed to run via jsexec. Although it might, that's not really the intention - you run it as a timed event. If you want to force the timed event to run on demand or modify the command-line that runs as an event, you can do that too.
Re: Shared avatar issues - corrupted JSON data in SYNCDATA sub?
By: Digital Man to Hm Derdoc on Wed Oct 22 2025 09:22 pm
I don't recall avatars.js being designed to run via jsexec. Although it might, that's not really the intention - you run it as a timed event. If you want to force the timed event to run on demand or modify the command-line that runs as an event, you can do that too.
I see from the wiki that indeed avatars.js was designed to run some commands via jsexec. I'll see if I can reproduce the errors you're reporting.
I don't recall avatars.js being designed to run via jsexec. Although it might, that's not really the intention - you run it as a timed event.
Re: Shared avatar issues - corrupted JSON data in SYNCDATA sub?
By: Digital Man to Hm Derdoc on Wed Oct 22 2025 09:22 pm
I don't recall avatars.js being designed to run via jsexec. Although it might, that's not really the intention - you run it as a timed event.
Does jsexec run js scripts differently than how they're run as a timed event?
Sometimes I've written js scripts that I intend to run as a timed
event, and to test them, I'd run them with jsexec.
Does jsexec run js scripts differently than how they're run as a timed
event?
Yes - there's no console or bbs object and many of the global I/O functions behave somewhat differently when run in jsexec.
Re: Shared avatar issues - corrupted JSON data in SYNCDATA sub?
By: Digital Man to Nightfox on Thu Oct 23 2025 10:10 am
Does jsexec run js scripts differently than how they're run as a timed
event?
Yes - there's no console or bbs object and many of the global I/O functions behave somewhat differently when run in jsexec.
Ah, I was pretty sure there's no console object when run with jsexec.. Is there a console object when run as a timed event?
| Sysop: | Eric Oulashin |
|---|---|
| Location: | Beaverton, Oregon, USA |
| Users: | 95 |
| Nodes: | 16 (0 / 16) |
| Uptime: | 03:09:44 |
| Calls: | 6,995 |
| Files: | 8,556 |
| D/L today: |
2,751 files (1,177M bytes) |
| Messages: | 368,867 |