Updated links to point to pacman-ghost.com.

master
Pacman Ghost 1 year ago
parent 446a53b32f
commit 85b625d54e
  1. 8
      README.md
  2. 2
      setup.py
  3. 8
      vasl_templates/webapp/static/help/index.html
  4. 6
      vasl_templates/webapp/static/help/main.js
  5. 2
      vasl_templates/webapp/static/main.js

@ -1,16 +1,14 @@
# VASL Templates
<a href="https://github.com/pacman-ghost/vasl-templates/raw/master/vasl_templates/webapp/static/help/images/hill-621.png" target="_blank">
<img src="https://github.com/pacman-ghost/vasl-templates/raw/master/vasl_templates/webapp/static/help/images/hill-621.small.png" width="200" align="right" hspace="10">
</a>
[<img src="vasl_templates/webapp/static/help/images/hill-621.small.png" width="200" align="right" hspace="10">](vasl_templates/webapp/static/help/images/hill-621.png)
*VASL Templates* makes it easy to set up attractive VASL scenarios, with loads of useful information embedded to assist with game play.
Simply enter the scenario information into the UI, and the program will generate HTML snippets that you can transfer into VASL labels in your scenario.
<img src="https://github.com/pacman-ghost/vasl-templates/raw/master/vasl_templates/webapp/static/help/images/ob_setup.png" width="200">
[<img src="vasl_templates/webapp/static/help/images/ob_setup.png" width="200">](vasl_templates/webapp/static/help/images/ob_setup.png)
You can find more examples of the program in action [here](https://github.com/pacman-ghost/vasl-templates/tree/master/examples/).
You can find more examples of the program in action [here](examples/).
### Documentation

@ -31,7 +31,7 @@ setup(
version = "1.10", # nb: also update constants.py
description = "Create HTML snippets for use in VASL.",
license = "AGPLv3",
url = "https://github.com/pacman-ghost/vasl-templates",
url = "https://code.pacman-ghost.com/public/vasl-templates",
packages = find_packages(),
install_requires = parse_requirements( "requirements.txt" ),
extras_require = {

@ -42,7 +42,7 @@
<a name="run-windows"></a>
<h2 style="margin-top:0;"> Running on Windows </h2>
<p> If you're using Windows, you should get the pre-built version from <a href="https://github.com/pacman-ghost/vasl-templates/releases">Github</a>, unpack it somewhere, then run <tt>vasl-templates.exe</tt>. Note that it can be a bit slow to start, so please give it a few seconds.
<p> If you're using Windows, you should get the pre-built version from <a href="https://code.pacman-ghost.com/public/vasl-templates/releases">here</a>, unpack it somewhere, then run <tt>vasl-templates.exe</tt>. Note that it can be a bit slow to start, so please give it a few seconds.
<p> If the program won't start because a DLL is missing from your computer, install the <a href="https://www.microsoft.com/en-in/download/details.aspx?id=48145">VC2015 runtime</a> (get the 32-bit version, <tt>vc_redist.<u>x86</u>.exe</tt>, even if you are running 64-bit Windows).
<p> If you don't see anything in the main window, check the notes below about configuring OpenGL.
@ -71,7 +71,7 @@ If you have Docker installed, the webapp can be run in a container e.g.
<a name="run-from-source"></a>
<h2> Running from source </h2>
<p> You can also run the program directly from the source code. Get a copy from <a href="https://github.com/pacman-ghost/vasl-templates">Github</a> in the usual way, by <tt>git clone</tt>'ing it, or downloading a ZIP and unpacking it somewhere.
<p> You can also run the program directly from the source code. Get a copy from <a href="https://code.pacman-ghost.com/public/vasl-templates">here</a> in the usual way, by <tt>git clone</tt>'ing it, or downloading a ZIP and unpacking it somewhere.
<p> The web server was written and tested using Python 3.10.4, but it doesn't do anything particularly funky, so any recent version of Python <em>should</em> work.
@ -202,7 +202,7 @@ In particular, note the data tables for the vehicles, which contain useful infor
<a href="https://vasl-templates.org"><em>VASL Templates</em></a> makes it easy to set up attractive <a href="http://vasl.info">VASL</a> scenarios, with loads of useful information embedded to assist with game play.
<p> We'll show how by walking through a setup of everyone's favorite scenario, <em>Hill 621</em>. Click on the screenshot to the right to see the finished scenario.
<div class="info" style="width:40%;margin:1em;"> You can find more examples <a href="https://github.com/pacman-ghost/vasl-templates/tree/master/examples/">here</a>, with files that you can load into the program, together with the generated VASL scenarios. </div>
<div class="info" style="width:40%;margin:1em;"> You can find more examples <a href="https://code.pacman-ghost.com/preview/vasl-templates/examples/">here</a>, with files that you can load into the program, together with the generated VASL scenarios. </div>
<a name="add-scenario-details"></a>
<h2> Adding the scenario details </h2>
@ -383,7 +383,7 @@ If you have set up the <a href="#" onclick="select_tab('chapterh');">Chapter H v
<a name="setup-chapter-h"></a>
<h2> Setting up the Chapter H data files </h2>
<p> Unpack this <a href="https://github.com/pacman-ghost/vasl-templates/tree/master/chapter-h/">ZIP file</a> somewhere, and configure the location in the <em>Server Settings</em> dialog (or the <tt>CHAPTER_H_NOTES_DIR</tt> setting in <tt>site.cfg</tt>, if you are running from source).
<p> Unpack this <a href="https://code.pacman-ghost.com/preview/vasl-templates/chapter-h/">ZIP file</a> somewhere, and configure the location in the <em>Server Settings</em> dialog (or the <tt>CHAPTER_H_NOTES_DIR</tt> setting in <tt>site.cfg</tt>, if you are running from source).
<p> The ZIP file contains placeholder files for the Chapter H vehicle/ordnance notes and multi-applicable notes, so all you have to do is update these files with the real content.

@ -20,7 +20,7 @@ $(document).ready( function() {
$( "a" ).each( function() {
$(this).click( function(evt) {
var url = $(this).attr( "href" ) ;
if ( url[0] !== "#" && url.substring(0,16) !== "http://localhost" && url.substring(0,16) !== "http://127.0.0.1" ) {
if ( url[0] !== "#" && url.substring(0,16) !== "http://localhost" && url.substring(0,16) !== "http://127.0.0.1" && url.indexOf( "code.pacman-ghost.com" ) === -1 ) {
window.open( url ) ;
evt.preventDefault() ;
return false ;
@ -44,8 +44,8 @@ $(document).ready( function() {
} ) ;
// load the license
var is_github = ( window.parent.location.hostname === "github.com" || window.parent.location.hostname === "rawgit.com" ) ;
if ( window.parent.location.protocol !== "file:" && !is_github ) {
var is_online = ( window.parent.location.hostname === "code.pacman-ghost.com" ) ;
if ( window.parent.location.protocol !== "file:" && !is_online ) {
var url = window.parent.location.protocol + "//" + window.parent.location.hostname ;
if ( window.parent.location.port )
url += ":" + window.parent.location.port ;

@ -1375,7 +1375,7 @@ function show_help()
var $iframe = $("#tabs-help iframe") ;
if ( ! $iframe.attr( "src" ) ) {
// yup - make it so
// NOTE: We show the help in an iframe so that we can use the same files elsewhere e.g. on the web site or Github.
// NOTE: We show the help in an iframe so that we can use the same files elsewhere e.g. on the web site or Github/code.pacman-ghost.com.
var url = gHelpUrl + "?version=" + gAppVersion + "&embedded=1&tab=userguide" ;
if ( getUrlParam( "pyqt" ) )
url += "&pyqt=1" ;

Loading…
Cancel
Save