Giter Club home page Giter Club logo

vttexternalactorviewer's Introduction

GitHub All Releases Donate

VTT External Actor Viewer

For when your dm has too many worlds.

Because of a mistake normal install for versions pre 2.0.0 are broken, please use this manifest if you want to download version 1.4.0 for foundry 0.7

Installation

To install, import this Manifest into your module browser.

Usage

A new button should appear above character sheets:
Preview
If you click this button a popup will open with an url in it:
popup

If you click on the [ Go to Application ] button it opens the character sheet in a new window. This url to your character should work as long as the Foundry server is online. No matter what world it is on (as long as the world has ran with this plugin at least once.)

Site preview

Sheet

Changelog

Check the Changelog

Does this work with system x?

If it's not in the current list it probably won't work or there won't be a site for it, feel free to make an extension for it! (read more here)

  • dnd5e
  • pf2e
  • callofcthulhu

Does not work when you connect to foundry via http://localhost or via the electron app.

vttexternalactorviewer's People

Contributors

ardittristan avatar ohporter avatar sneat avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

vttexternalactorviewer's Issues

Actor URL appears invalid after adding Self-Signed or non fullchain Certificates to Foundry.

The External Actor Viewer module was working for my players before I added Self-Signed Certificates to Foundry to make the access more secure. Before adding the certificate the actor's URL was:

http://{ip-address}:30000/actorAPI/{world-name}-actors.json{actorID}

But once I added the certificate the URL were changed to:

https://{ip-address}:30000{actorID}

Is this working as intended or is it supposed to add the /actorPI/{world-name}-actors.json before the actorID?

Update for current version?

Any chance we will ever see this module running again? As far as i know its quite unique and there is nothing similar to it :/

Changing sheet assigned to token leads to degraded server performance

Trying to use External Actor Viewer and have found a repeatable sequence that appears to seriously degrade the server's performance.
Windows 10 1909
Foundy 0.6.6
DND5e 0.96
External Actor Viewer 1.0.8
NO OTHER MODULES ENABLED

  1. Open any token that has a character sheet. (Doesn't matter whether PC character sheet or NPC character sheet)
  2. Click on the Sheet option to change to a different character sheet - but do NOT make any changes. (In my test I've disabled all other sheets, so the only choices in the dropdown are Default and the explicitly named built-in sheet).
  3. Click "Save Sheet Configuration" (having made no changes). So far, all is OK.
  4. Click on the Sheet option and explicitly select the "dnd5e.ActorSheet5eCharacter". Click "Save Sheet Configuration". Sheet closes...but the Sheet Configuration dialog remains open on-screen instead of closing. (Usually this is apparent immediately. One time the dialog closed as expected the 1st time but then remained on screen on my second attempt.) Clicking on the X shrinks down to title-bar sized window of the Sheet Configuration form, but doesn't dismiss the form. The form will reopen if I 2x click the minimized header.

At this point, the stability/performance of the server appears to be compromised. To see this, go back to Foundry Settings --> Manage Modules and click Save Module Settings (without making any changes). Expected behavior is a full screen refresh within a few seconds. The observed behavior is that the screen goes black, showing only the Foundry anvil in the upper left for a significant period of time (>30 seconds? didn't time it...). At this point ALL subsequent refresh activities do the same thing. So if you repeat the Save Module Settings action the slow response remains until the server is recycled.

5e characters saves and skills have NaN

When viewing a character sheet their saving throws and proficiencies are NaN instead of the actual value. I'm assuming this is because they're a string when a number is expected. I'm using the ddb-importer to import characters. I did notice that one of my NPCs still has NaN for saving throws and skills, except for the single skill they're proficient with, so it can work, just not all the time.

image

Support absolute actor image URLs

Currently the viewer assumes that the actor image URL is a relative URL and doesn't support absolute URLS (e.g. those starting with https://). Could you add something like this?

try {
  new window.URL(actor.img);
  // the image is an absolute URL and shouldn't have the site domain prepended to it.
} catch (e) {
  // the image is a relative URL, do what you currently normally do.
}

PF2e integrations seems broken

I tried my darnest to get it up and running but nothing seems to work.
running foundry version 9 - build 251
pathfinder 2nd edition - 3.5.2.10605
using let's encrypt SSL and DNS name that point to my server. Have no issues presenting SSL or port 30000 externally otherwise.

First the API doesn't seem to return anything, just the error:
Cannot GET /actorAPI/strength-of-thousands-actors.jsonQNHPucJI0sUS90bt

However by adding a questionmark I actually get a response, except I get a list of ALL actors. Not the one I specified.
https://(myurl):30000/actorAPI/strength-of-thousands-actors.json?QNHPucJI0sUS90bt

Now to the next step, presenting the sheet on
https://ardittristan.github.io/VTTExternalActorSites/pf2e/?https://(myurl):30000/actorAPI/strength-of-thousands-actors.json?QNHPucJI0sUS90bt

Just give the error "Actor retrieving Not Data Found" (with or without questionmark)

I also tried to handcraft the json file in my ActorAPI folder to only show the one actor I want to present but error is the same.

Not using prefix

Hello,

I'm running my game behind a prefix (example.com/prefix) and I noticed that the links from the 'get ID' do not provide the prefix with it.

[Suggestion] Item Details

This is a fantastic module, however the items (foundry's definition of item) could benefit of having their descriptions made available, as well as weight/cost possibly? This way people could really explore what their character is up to even if the server is down.

Error 1003 Direct IP access not allowed

I can not get it to work, it always shows "URL not found" and in the console i get the following error:
Failed to load resource: the server responded with a status of 403 ()
followed by this link:https://cors-anywhere.ardittristan.workers.dev/corsproxy/?apiurl=http://IP/actorAPI/world-actors.json
when i click it i get a page that says: Error 1003 Direct IP access not allowed
i can open the actor.json file on its one just fine through: http://IP/actorAPI/world-actors.json

thanks Aswabor

[BUG] Unable to open window

On clicking "Get id" nothing opens.

Running Foundry via Firefox.
Also using a whole bunch of modules, but I think the important one here is Tidy5e Sheet

Relevant portion from actorAPI:
"GkeLMYNsZKwi5QUI":{"_id":"GkeLMYNsZKwi5QUI","name":"Ghurlsall Zarr","permission":{"default":0,"YlgcTXti0BqoRR4Z":3,"OzQwY59yMsYztlri":3},"type":"character","data":...

I don't think the template location matches in-console lines up with where it actually is, but I could be wrong:
image

(loading that directly works:)
image

From the console:

Foundry VTT | Rendering CopyPopupApplication foundry.js:3855:15
Foundry VTT | Retrieved and compiled template getRunningScript/<@modules/externalactor/templates/copyPopup.html foundry.js:5224:16
Error: An error occurred while rendering CopyPopupApplication 87: No data was returned from template getRunningScript/<@modules/externalactor/templates/copyPopup.html
    _renderInner https://url/scripts/foundry.js:3998
    _render https://url/scripts/foundry.js:3868
    render https://url/scripts/foundry.js:3831
    <anonymous> https://url/modules/externalactor/actorviewer.js:53
    jQuery 2
foundry.js:3833:14
    render https://url/scripts/foundry.js:3833
    (Async: promise callback)
    render https://url/scripts/foundry.js:3831
    <anonymous> https://url/modules/externalactor/actorviewer.js:53

Dead?

Using DnD5e on Foundry v9 and v10

Module appears to not be functional, due to (I believe) data format changes. Site pops up with "URL not found" and console gives "e.data is undefined" as an error.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.