For King & Parliament module game boards

I have a specific question for the group. I contacted Joel about it first and he said post it here for all to think over. So, here goes.

In the For King & Parliament module, all game boards are rectangular and have a set number of smaller squares defined by a grid system (think chess board style grid lines), where Terrain items are placed and combat units move around. For example the typical board is 8 squares deep by 12 squares wide. There are three different sized boards also in the module, but the board size I need is not there at all. All boards have an outer coloured band to show the gaming area, I assume this is something to do with the x and y offset and grid dimensions?.

I need a specific sized board 10 boxes deep by 12 boxes wide creating and then added to the module directory. This new board must also align with the same grid that the current boards use.

Previously I tried contacting the person who sells the module and other game related items on his site about this, to tell him that the module needs this board adding. His only reply was that he’s not the one who designed or wrote the module in the first place, so basically it was nothing to do with him and therefore not his problem !!.

Something like this is WAY outside my comfort zone as I’m no game designer. So any workable solutions might need to be very well detailed in explaining the steps followed to get the board requested.

Hope there’s someone who can help with this.

Steve

Does the word ā€˜module’ have two different meanings here? Are you referring to the Vassal module? A physical module? If you contacted the physical game creator, it’s not surprising that they had no clue or interest in upgrading the module, and it really is not his problem.

Is this - For King & Parliament the Vassal module you are referring to?

Have you attempted to contact the project owner to see if they would be willing to add the custom board that you are requesting?

This would be the most direct way to achieve a module upgrade. If that fails, you could attempt to crash course yourself into how to add boards to a module and create new project for others to use. Presumable if the game needs the variable board that you are requesting, others have the same needs for the game.

Adding rectangular boards is not the most difficult aspect of Vassal module building, especially if there are already example boards to work from in existence.

But you should begin by reaching out to the current Vassal Module project owner(Edwin11) by clicking the link to their name and then clicking on the Message button to send a Direct Message with your request.

Rob McCray

Rob,

To answer your question, yes that is the game I’m talking about. I messaged the listed project owner Edwin11, immediately after posting my question on the Forum (don’t know why, but I still call each individual game a ā€œmoduleā€). But seeing as it was created 6 years ago and there’s been no update activity since, I don’t even know if the person is still active to provide any help in this problem.

If there’s no reply in the next few days then it looks like I’ll have to see about building one myself.

Thanks for getting back to me.

Steve

To be honest, this is probably how most Vassal module builders got into module building, I’m sure. I know I did.

Once you decide that is the path you want to take, refer here Documentation Index and go to the tutorial videos by @Alexander331bc to get the quickest path to module creation/editing. The Module Creation Section provides the deeper trait specific parameters for module building but is less user-friendly for beginners, admittedly.

This is common gaming vernacular. Modules are what physical game designers have called extra material/scenarios for decades. I just wanted to make sure which use you were using for it.

Rob,

Again, many thanks for answering my query in the first place. Decided to ā€œbite the bulletā€ and try to create my own board with the dimensions wanted. Took me over an hour of trial and error but I managed to produce what I wanted, and it works as needed. Only one thing left, for purely cosmetic purposes, is to attach a coloured background behind the game board so it looks like all the others.

I suppose I could leave it until the morning and have a look at some videos and reference documents.

Steve

For your specific purpose - to add another board to an existing module - I think your best option is to define a new Extension to the module.

First, you need to make your new board graphics. You can start from the existing graphics in the module if you like.

  1. Unzip the module (see Managing Module Files for more on how to do that.

  2. In the images directory of the unzipped module, you will find the file

    • Double_board.png
    • Wide_board.png
    • Basic board.png
    • Basic_board.png
    • Edgehill_board.png

    These are the images used in the module for the existing boards.

  3. Pick one of the above images and open it in an image editor (see Graphics tools)

    • Edit the image to your hears content and save it to a file - say Deep_and_Wide_board.png.
    • For an alternative, see below

Now in Vassal

  1. Load the module For King & Parliament into the Vassal Module Manager - if you haven’t already.
    • Do not start up a new game. Quit the game as soon as possible.
  2. In the Module Manager, right click For King & Parliament and select New expansion ... from the menu.
    • This will open up a new editor window with the For King & Parliament module loaded in.
    • However, all elements of the module are grayed out and cannot be editted.
  3. Locate Main Map (Map Window) element, and double-click it to expand it.
  4. Locate [Map Boards], and right click it and select Add Board.
    • A dialog will appear where you can set the name of the new board, say 10x12 (Custom board), and the image of the new board
      • Click the Select button and navigate to where you saved your image file - say Deep_and_Wide_board.png, and then select that file.
    • Click OK to save the board.
    • Copy the grid from one of the other boards (double-click to expand the board, right click the [Rectangular Grid] and select Copy - select your board and paste using Ctrl-V or from the right click context menu).
  5. Click the File menu and then Save As ... to save your extension. Give it a good file name that should end in .vmdx - say FKaP_10x12board.vmdx
  6. Close the editor.

Now back to the Module Manager,

  1. In the Module Manager, right click For King & Parliament and select Add expansion ... from the menu.
    • Navigate to where you saved your expansion, select it and press OK
  2. You will see the For King & Parliament now has a expandable nob next to it, and if you expand that, you will see the expansion underneath the module.
  3. The next time you start up the For King & Parliament the expansion will automatically be loaded, and when you get to choose the board, you can choose your custom board.

You can then contact the For King & Parliament developer, @Edwin11 (Edwin Shaw), and ask if you can be added as an owner so that you can post your extension, or if @Edwin11 will upload it for you. Alternatively, you can make a new project where you simply host the extension (in that case, may sure you link to the module so that people know what it is for).

Note, the project page refers to a web-site as BigRedBat, which I guess is this one. Perhaps that’s a route worth following - for example this page

Alternative to editing the image

Instead of editing the image by hand, you can use the script

#!/bin/bash

ncol=${1-12}
nrow=${2-8}
out=${3-board.png}
dir=${4-images}
vmargin=100
hmargin=100
marginc="#880015"
cellw=500
cellh=500
linew=5
linec="#7f7f7f"
grassw=800
grassh=800

if test x${ncol} = "x-h" || test x${ncol} = "x--help" ; then
   echo "Usage: $0 [NCOLS [NROWS [OUTPUT [TILES_DIRECTORY]]]]"
   echo ""
   echo "NCOLS and NROWS are number of horizontal and vertical cells, "
   echo "respectively. By default NCOLS=12, and NROWS=8."
   echo "OUTPUT is the output file name. It defaults to \"board.png\"."
   echo "TILES_DIRECTORY is the directory of the grass tiles, and "
   echo "defaults to \"images\""
   exit 0
fi
   

innerw=$(($ncol * $cellw))
innerh=$(($nrow * $cellh))
outerw=$(($innerw + 2 * $hmargin))
outerh=$(($innerh + 2 * $hmargin))
tilesw=$((($innerw + $grassw - 1) / $grassw))
tilesh=$((($innerh + $grassh - 1) / $grassh))

declare -a tiles=()

for col in `seq ${tilesw}` ; do
    x0=$(((${col} - 1) * ${grassw}))
    n0=$(((${col} - 1) % 4))
    nn=${n0}
    for row in `seq ${tilesh}` ; do
        y0=$(((${row} - 1) * ${grassh}))
        nn=$((($nn % 4)+1))

        tiles+=("-draw" "image SrcOver ${x0},${y0} 0,0 ${dir}/grass${nn}.png")
    done
done

linesw=$(($ncol - 1))
linesh=$(($nrow - 1))
declare -a lines=()

for col in `seq ${linesw}` ; do
    x0=$((${col} * ${cellw}))
    lines+=("-draw" "line ${x0},0 ${x0},${innerh}")
done

for row in `seq ${linesh}` ; do
    y0=$((${row} * ${cellh}))
    lines+=("-draw" "line 0,${y0} ${innerw},${y0}")
done

echo -n "Creating image, please be patient ... "    
magick -size ${innerw}x${innerh} canvas:white \
       "${tiles[@]}" \
       -stroke "$linec" -strokewidth ${linew} "${lines[@]}" \
       inner.png

magick -size ${outerw}x${outerh} "canvas:${marginc}" \
       -draw "image SrcOver ${hmargin},${vmargin} 0,0 inner.png" \
       ${out}

rm -rf inner.png        
echo "done, wrote image to ${out}"

Save as f.ex. FKaP_makeboard.sh

Suppose you have unpacked the For King & Parliament module into the sub-directory FKaP so that the grassX.png images are in FKaP/images, and you want to make the board image file 10x12.png which is 10 cells tall and 12 cells wide, then you can do

./FKaP_makeboard.sh 12 10 10x12.png FKaP/images

Yours,
Christian

Christian,

Many thanks for the help. Will have to print out a copy of this and work step by step to make sure I get things right.

Steve