GM Forge - Virtual Tabletop

GM Forge - Virtual Tabletop

Not enough ratings
PathFoundry: HL
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
11.832 MB
15 Nov, 2018 @ 7:38pm
1 Dec, 2018 @ 4:23pm
2 Change Notes ( view )

Subscribe to download
PathFoundry: HL

Description
This mod is a work in progress; presently it does not have UI elements to manage the relationship between Actors and HL Data files. For now, one has to close GMForge and manually edit the world file. That said, it's a heck of a lot less of a work-in-progress than it was when I first uploaded it.

I've made a fairly massive change to the way that the portfolio file association is managed, as I realized that it was much easier to add a Portfolio file to the GMForge World as an Image resource, and then edit the world file to change the resource type to "por". One upshot of this change is that characters linked fia the old method will no longer update correctly. Another upshot is that I was also able to impose restrictions such that this action is only executed in the GM's session, not the player's sessions as well. (Apologies to any of you who tried to make this work and instead wound up with crashed games as a result...)

Once you edit the .world file and reload the game, the mod will pull in and create new actors for every character and minion in the portfolio. The mod will attempt to update all actors every 12 seconds (5x per minute). To make it stop, at present, you have to hit F10 to bring up the console and enter the following command: `game.suspendHLU = true;` -- to make it resume syncing, enter `game.suspendHLU = false;` the same way.

Because storing all of the character images in the world file as base64-encoded strings was causing a loading performance hit so severe that more than 4 images meant the world wouldn't load due to timeout issues, I've changed how portfolio-based images are handled. The mod will now yell at you if you haven't replicated the portfolio's internal images directory correctly, so here's how to do that:

Open the Portfolio as a zip archive (I recommend 7zip, but any archive viewer should be able to do it... If you temporarily rename the Portfolio file with a .zip extension, Windows File Explorer should be able to open it.) and copy the images directory to %GMForgeSteamPath%\custom\HeroLabImages\[[porFileName (no .por extension)]]\images\ so that the actual images are available on that path.

Because of the way that HeroLab names its images, if one of your edits involves renaming a character, you'll need to do the image export thing again because the mod will be looking for an image based on the character's new name. (This is all necessary because the mod can't extract the images and save them locally, because the mod is running in "client" space rather than "server" space, and therefore is constrained by the same limits that your web-browser employs to prevent arbitrary JavaScript from downloading files willy-nilly to your computer.)
1 Comments
Nullcron 30 Mar, 2019 @ 5:51am 
Good idea, let me know if you need help.