Hunting Field Formatter for Antzzz
Originally written by an unknown player on Antzzz. Edited and added to by Toon Lunk / Iorios. Uses pure JavaScript, HTML, and now, CSS.
Original link: http://sophisticated-decision.surge.sh/
Instructions
- You can either copy your inbox messages, or now with the new update, right click *anywhere* on the inbox page, click "Select All", right click again, and click "Copy". Or, go to your inbox, press CTRL+A, then CTRL+C.
- Go to the formatter page. Paste your clipboard, or click on the white box, and press CTRL+V.
- Click on the "Formatter" button.
- Copy the text (same way as before), OR use the new button "Copy Text". Click this button to automatically copy the output.
- Done. You can now paste this formatted text in the message boards (or PMs), and it will be formatted properly, with some helpful extra information.
Update log
04/10/2021 | Update 1
- Added support for messages like "Invasion from X stopped", "Onslaught on X", and "Canceled attack on X".
- Reformatted some of the about page.
- Renamed the "Formatter" button so it's not confused with the navigation button.
02/11/2021 | Update 2
- Fixed a bug when multiple convoys were sent at once e.g. (Convoy sent to X: 50 000 000 (2)).
- Added an "isConvoy" token for future use and/or bugfixes.
- The formatter now leaves the "Reinforcements arrived" message.
05/11/2021 | Update 3
- Updated support for tallying hunts.
- Added "isFHunt" token for the hunt notifications in French.
- Experimental: added support for "Canceled" attacks (when someone shifts in HF after the attack was sent).
- Hopefully fixed hunt-tallying for good.
- Fixed convoys, when both food and materials are sent to another player.
- Made workaround for calculating food and not miscalculating materials.
- If you rob someone of HF, food, and materials, right now it only sees HF. personally I think HF is more important, and it would be great to tally it all, but it will take some time for me to figure out how.
- Added a disclaimer that notes the material/food counters are approximate.