Warfish Mapmakers

By IRoll11!~s Last update 49 minutes ago — Installed 33 times. Daily Installs: 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 1, 0, 3
Script Summary:
Modifications to ease the pain of making maps.
Version: 0.1.1

This script has no discussions.

start the discussion

This script has no reviews.

Overview

Experimental but hopefully bugg free.
Feedback welcome.

Runs on the following pages for both Board and Mod Lists:

Countries:[Add]

  • Click 'Add Multiple Countries' button.
  • Enter a autofill name if you want. If you fill in SOCK, it will name your countries SOCK1, SOCK2, SOCK3, etc.
  • Click on map to add country, you'll be prompted for a name if you left autofill blank.
  • After the country has been added you can click and drag to reposition. ( cool eh? )
  • Click 'Commit Changes' button when done and watch the snazzy progress bar.

Borders:[Add]

  • Click 'Show Interactive Borders' button.
  1. Existing borders will be shown in black. Thin lines are 1-way borders, thicker lines are 2-way.
  2. Click any country to start adding borders, country will turn red. Click other countries to add borders to them. Clicking again on an added border country will remove it. You can add up to ten borders at once. All border are 1-way.
  3. When you are done adding borders click on the center country again. It will turn green indicating it's in the list to be added. You can click a green country to go back and edit the borders. If you click a red country that has no borders it will be removed from the list.
  4. 2-Way is on by default. When you first click a country that has borders to it, it will automatically add borders back to those countries.
  5. Don't worry about 2-Way adding a border that already exists, it will be ignored.*
  6. When borders are added click 'Commit Changes'. Purple is the arbitrary color I chose for borders that have been added.

* It should now be impossible to add a border that already exists.

  • The 'Circle Size' + and - buttons do exactly that.
  • '2-Way On' is a toggle button. Click to turn off if you need to add a bunch of 1-way borders.
  • Please test out a few borders to make sure it works before you do an entire map...

Continents:[Add]

  • Adds a menu item, see screenshot below.
  • Select menu item and enter number of bonus armies. Cancel will um, cancel.
  • Will create a continent named after the country for each country on the map.
  • Make sure you have your countries and borders set the way you want them!
  • It will 'lock' your browser when run, you'll just have to sit and watch.
  • You may have to click 'continue' if FF warns you about a slow script.

Borders:[View Text]

  • Export gives you a textarea with all of the table data in csv format.
  • Import gives you a blank textarea in which to copy your changed csv data.
  • Validate must be clicked to activate submit, it checks that...
    1. ... the number of line in Export/Import match.
    2. ... the border mods are in the range -10 to 10.
    3. ... there are no missing columns in the data.

Use comma as the data delimiter and " as the text delimiter when you import/export.
In OO Calc you can paste right from the clipboard.
The only option I had to change was the separator delimiter.

Now for the important stuff. When you edit your spreadsheet:

  • Do not delete rows.
  • Do not add rows.*
  • Do not change the order of the rows.**

*You can add a header row so you know what the columns are, just do not copy that row when you paste your data back into the Import box.

**You can, and it will still work, but it will assume every row has changed. This is very very bad for the poor warfish server, please do not do this.

When you copy your data into the Import box, copy ALL of the rows, even the ones you didn't change.