Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

How to refresh character sheet code without restarting.

January 31 (5 years ago)

I am working on designing a character sheet, but I’m running into an issue that’s probably due to my own stupidity. I’ll save the changes on the settings page but then these changes do not show up in the actual game unless I exit out and relaunch the game. Is that to be expected? I’d love to use the Preview pane, but a lot of functionality does not work unless you test it within an actual game. Any suggestions?

January 31 (5 years ago)
keithcurtis
Forum Champion
Marketplace Creator
API Scripter

This post might be of some help?

January 31 (5 years ago)
Wes
Pro
Sheet Author
Yes, that is the expected behavior.  I generally work with 2 instances of roll20 open one for the actual game and another with the editor. Change , Save, and Refresh the Browser Tab.
January 31 (5 years ago)
GiGs
Pro
Sheet Author
API Scripter

If youre tweaking css, you can see most of those changes live, by entering in the browser console (usually F12, or right-click and Inspect in console, then select the Elements tab).

This does mean you have to write code twice - once in the elements tab, and again in the sheet code to make it permanent. But it lets you test out changes to the appearance without having to reload.

Changes to the html / sheet workers do need a full refresh unfortunately.

January 31 (5 years ago)
Finderski
Pro
Sheet Author
Compendium Curator

Mike said:

I’ll save the changes on the settings page but then these changes do not show up in the actual game unless I exit out and relaunch the game. 

To underscore what the others are saying...you don't need to exit the game and re-launch it...just refresh the browser with the game. Working with two tabs makes it easier (update code in one tab and have game in the second tab, you'd just need to refresh the second tab).


January 31 (5 years ago)
Ohh! I think I see the problem.  I don't think I was refreshing the game window.  Thanks for the help!


January 31 (5 years ago)
GiGs
Pro
Sheet Author
API Scripter


Mike said:

Ohh! I think I see the problem.  I don't think I was refreshing the game window.  Thanks for the help!

It's still a tiresome chore, but is a lot quicker than having to exit and launch again.


February 05 (5 years ago)
Ray
Pro

OMG!  I wish I had known about this before  *Sob*

February 05 (5 years ago)
GiGs
Pro
Sheet Author
API Scripter

The new feature being tested right now on the Dev server is even better, so much better. Check it out if you're a pro subscriber.

February 05 (5 years ago)
Caden
Forum Champion
Sheet Author
API Scripter
Compendium Curator

GiGs beat me to the suggestion. Try the new Custom Sheet Sandbox on the Dev server. I've been using it to make character sheets for a couple months now as part of the internal test. 


- Cassie