-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] - Error loading JB2A animations from S3 #293
Comments
I am testing S3 for JB2A as well, note that the url must be configured within the settings of JB2A and not just AA. This allowed me to play animations from JB2A using the Sequencer Database without issues. Checking the network log shows that the requests are going through just fine. One that worked using the preview of AA or Sequencer Database:
Response from S3
Actually attempting to use an animation on an active token:
Response from S3
Despite the effect not playing, Sequencer debugging prints no error and returns an object. {
"_id": "3ZTIcZbjFE28fbkU",
"flagVersion": "3.2.1",
"sequenceId": "Q4jfLXKcEo4BWeHl",
"creationTimestamp": 1726553039610,
"sceneId": "JwnsxPY5o7cTLPz3",
"creatorUserId": "OY6UX1ZYHERdiFZA",
"moduleName": "Automated Animations",
"users": false,
"name": "Wounded 197muw3tor90nQtDD",
"origin": "Actor.ahUfNLvvHDt7GucT.Item.0gOy5B5dke1rnEKo",
"index": 1,
"repetition": 0,
"private": null,
"temporary": false,
"tiedDocuments": [
"Actor.ahUfNLvvHDt7GucT.Item.0gOy5B5dke1rnEKo"
],
"source": "Scene.JwnsxPY5o7cTLPz3.Token.97muw3tor90nQtDD",
"target": false,
"rotateTowards": null,
"stretchTo": false,
"moveTowards": false,
"attachTo": {
"active": true,
"align": "center",
"edge": "on",
"bindVisibility": true,
"bindAlpha": true,
"bindScale": true,
"bindElevation": true,
"bindRotation": true
},
"missed": null,
"file": "autoanimations.static.conditions.drop.02.red.0",
"customRange": false,
"forcedIndex": false,
"fileOptions": {
"antialiasing": 1
},
"text": null,
"tilingTexture": null,
"masks": [],
"shapes": [],
"volume": null,
"isometric": null,
"syncGroup": null,
"scale": {
"x": 1,
"y": 1
},
"spriteScale": {
"x": 1,
"y": 1
},
"angle": null,
"size": {
"width": 1.5,
"height": 1.5,
"gridUnits": true
},
"offset": null,
"anchor": {
"x": 0.5,
"y": 0.5
},
"spriteOffset": null,
"spriteAnchor": null,
"template": null,
"zeroSpriteRotation": null,
"randomOffset": {
"source": false,
"target": false
},
"randomRotation": null,
"scaleToObject": null,
"elevation": {
"elevation": 999,
"absolute": false
},
"sortLayer": 800,
"aboveLighting": null,
"aboveInterface": null,
"xray": null,
"zIndex": 1,
"opacity": 0.8,
"filters": null,
"loopOptions": null,
"spriteRotation": 0,
"randomSpriteRotation": false,
"flipX": null,
"flipY": null,
"duration": false,
"persist": true,
"persistOptions": {
"id": "uSOuHcYYEVu0WNDk",
"persistTokenPrototype": true
},
"playbackRate": 1,
"extraEndDuration": null,
"time": false,
"moves": null,
"moveSpeed": null,
"fadeIn": {
"duration": 250,
"ease": "linear",
"delay": 0
},
"fadeOut": {
"duration": 500,
"ease": "linear",
"delay": 0
},
"scaleIn": null,
"scaleOut": null,
"rotateIn": null,
"rotateOut": null,
"fadeInAudio": null,
"fadeOutAudio": null,
"animations": null,
"screenSpace": null,
"screenSpaceAboveUI": null,
"screenSpaceAnchor": null,
"screenSpacePosition": null,
"screenSpaceScale": null,
"nameOffsetMap": {
"Wounded 197muw3tor90nQtDD": {
"seed": "Wounded 197muw3tor90nQtDD-eCT1mII7oqqGyaxy",
"source": "Scene.JwnsxPY5o7cTLPz3.Token.97muw3tor90nQtDD",
"target": false,
"randomOffset": {
"source": false,
"target": false
},
"missed": null,
"offset": null,
"repetitions": 1,
"twister": {}
}
}
} Using PF2e Graphics: {
"_id": "1XmqQag01ImyBW9Y",
"flagVersion": "3.2.1",
"sequenceId": "OThAjzTzlJar5lHy",
"creationTimestamp": 1726553121800,
"sceneId": "JwnsxPY5o7cTLPz3",
"creatorUserId": "OY6UX1ZYHERdiFZA",
"moduleName": "Sequencer",
"users": false,
"name": "Wounded 1",
"origin": "wounded-entry",
"index": 1,
"repetition": 0,
"private": null,
"temporary": false,
"tiedDocuments": [
"Actor.ahUfNLvvHDt7GucT.Item.ZiMl0Z5U8PT1Mjtc"
],
"source": "Scene.JwnsxPY5o7cTLPz3.Token.97muw3tor90nQtDD",
"target": false,
"rotateTowards": null,
"stretchTo": false,
"moveTowards": false,
"attachTo": {
"active": true,
"align": "center",
"edge": "on",
"bindVisibility": true,
"bindAlpha": true,
"bindScale": true,
"bindElevation": true,
"bindRotation": true
},
"missed": null,
"file": "jb2a.markers.drop.red.03",
"customRange": false,
"forcedIndex": 3,
"fileOptions": {
"antialiasing": 1
},
"text": null,
"tilingTexture": null,
"masks": [],
"shapes": [],
"volume": null,
"isometric": null,
"syncGroup": null,
"scale": {
"x": 1,
"y": 1
},
"spriteScale": {
"x": 1,
"y": 1
},
"angle": null,
"size": null,
"offset": null,
"anchor": {
"x": 0.5,
"y": 0.5
},
"spriteOffset": null,
"spriteAnchor": null,
"template": null,
"zeroSpriteRotation": null,
"randomOffset": {
"source": false,
"target": false
},
"randomRotation": true,
"scaleToObject": {
"scale": 1.5,
"considerTokenScale": true,
"uniform": false,
"value": 1.5
},
"elevation": null,
"sortLayer": 800,
"aboveLighting": null,
"aboveInterface": null,
"xray": null,
"zIndex": null,
"opacity": 1,
"filters": null,
"loopOptions": null,
"spriteRotation": 0,
"randomSpriteRotation": false,
"flipX": null,
"flipY": null,
"duration": false,
"persist": true,
"persistOptions": {
"id": "8mf1hjN0WkpodZbp",
"persistTokenPrototype": true,
"value": true
},
"playbackRate": null,
"extraEndDuration": null,
"time": false,
"moves": null,
"moveSpeed": null,
"fadeIn": {
"duration": 250,
"ease": "linear",
"delay": 0
},
"fadeOut": {
"duration": 500,
"ease": "linear",
"delay": 0
},
"scaleIn": null,
"scaleOut": null,
"rotateIn": null,
"rotateOut": null,
"fadeInAudio": null,
"fadeOutAudio": null,
"animations": null,
"screenSpace": null,
"screenSpaceAboveUI": null,
"screenSpaceAnchor": null,
"screenSpacePosition": null,
"screenSpaceScale": null,
"nameOffsetMap": {
"Wounded 1": {
"seed": "Wounded 1-I84pL7lw9sL77dPW",
"source": "Scene.JwnsxPY5o7cTLPz3.Token.97muw3tor90nQtDD",
"target": false,
"randomOffset": {
"source": false,
"target": false
},
"missed": null,
"offset": null,
"repetitions": 1,
"twister": {}
}
}
} I'm using Sequencer and JB2A Patreon Animations primarily. I am testing with Automated Animations and PF2e Animation Macros in combination, and PF2e Graphics on its own as it is intended to replace AA and PF2eAM. Naturally, using JB2A without S3 works without any issues. |
I did a thorough investigation on this, and in my case, the issue was due to Chrome caching behavior and CORS headers. I'm not sure it is your case, as you say there are no errors thrown, but I'll describe my issue here and you can test. When you load the video through a preview, it is loaded using a However, for use on canvas, Sequencer needs to load the video using the fetch api, which does require headers (and afaik, nothing can be done about it). So when Sequencer requests a video that has been previewed with To check if this is your case, try the following:
If the video loads, that's most probably the issue. |
I was wondering if it was CORS related, but checking the configuration using a CORS tester shows that the configuration is valid. I tried clearing the cache, but it doesn't resolve the issue. I tried on Firefox and Chrome, though I primarily use Firefox. I could try to sit and try looking at what the code is doing in Sequencer, but that will take some time. |
Describe the bug
I'm getting some errors trying to play JB2A animations from S3 using AA and Sequencer. The issue sounds somewhat similar to this one, but since it's old I'm trying to figure out a course of action.
I had the default JB2A module installed, but recently became a patreon of JB2A so I loaded the full JB2A patreon folder to S3, because the folder is too large for my poor ec2 instance. I added the bucket path to AA configurations, and when I preview animation effects on Automated Animations panel, they all play fine. I checked on console and the address is correct, all animations loading from S3. But when I actually try to activate the animation on a token using sequencer, I get errors on console and the animation does not play.
The first error says the resource is blocked by CORS policy. This doesn't make much sense to me, since the video loads fine on AA panel preview. I also see an error on sequencer-file-cache.js, logged right after that:
TypeError: Failed to fetch at Object.loadVideo (sequencer-file-cache.js:12:26)
All videos are made public and the bucket has the necessary permissions to be publicly accessed - which works with all files, filepicker, etc. When I copy the link from the console error and paste it on the browser, the animation video plays fine, as well as on AA preview.
Any ideas what could be causing this?
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Animations should play
Screenshots
If applicable, add screenshots to help explain your problem.
Setup:
Active modules:
The text was updated successfully, but these errors were encountered: