Resources for Cards

hero banner

Want to get into advanced NationStates Trading Cards?

Trading card players and community members have created scripts and utilities to help players automate or improve their trading card game experience. However, these can be hard to find as they can be hidden in github repositories, various regional dispatches, discord pins, or forum posts. This aims to collect them in one central location.

Prerequisites

Kractero

To install most of these tools, you will be expected to have some knowledge of the browser. A lot of trading card tools involve automation, through scripting or hotkeys. While it may seem daunting at the start, with some work everything should click and work properly. Follow this to get all the prerequisites installed.

  1. Note on Browsers
  2. Installing Userscripts
  3. Containerise
  4. Python

Browsers

Depending on your usecase, you may not need to worry about this section. However, most card farmers should probably keep reading.

Userscripts can work on any browser, as most userscript extensions work on all major browsers. However, most card tools rely on the use of containers, which is only supported by Firefox and its derivatives. Sorry to chromiumites. Installing Firefox is quite simple.

Other options include Firefox ESR, Firefox Nightly, Firefox Developer’s Edition, LibreWolf, Floorp, Waterfox, and others, but unless you know what you’re doing you should use the original.

If you don’t plan on using containers, keep using whatever browser you want.

Userscripts

For most people, userscripts should be enough to take them to the next level. To enable the use of userscripts, you will need a userscript manager.

tampermonkey violentmonkey greasemonkey firemonkey

There are four primary userscript managers, all with their tradeoffs.

  1. TamperMonkey - Probably the best option for 98% of users. It's modern and works well. Sticklers for open source will need to turn away though, as Tampermonkey is closed source and frequently asks for donations.

    To add a script to Tampermonkey, click the Tampermonkey icon and then click create script. add script to tampermonkey

  2. ViolentMonkey - Probably the best option for those who don't want to use Tampermonkey. Free and open source. Smaller userbase, and they've had some drama in the past.

    To add a script to Violentmonkey, click the Violentmonkey icon and then click Create a new script. add script to Violentmonkey

  3. GreaseMonkey - The old premier userscript manager before there were really any to compete with it. Should work fine, but newer scripts will be incompatible. Generally just go with a newer one.

    To add a script to Greasemonkey, click the Greasemonkey icon and then click the + icon. add script to Greasemonkey

  4. FireMonkey - A newer userscript manager with a very small userbase but an active creator. Is a bit more difficult to setup as it does not expose or use the same grants as the others. It does double as a user styles manager though.

    To add a script to Firemonkey, click the Firemonkey icon and then click the +JS button. add script to Firemonkey

If after adding the extension the icon does not appear in your toolbar, you may need to pin it. Click the puzzle icon, then click the settings cog for the extension and click pin to toolbar.

pin extension to bar

Containers

Containers are not necessary for farming, as you can use any puppet manager that allows you to switch, but it definitely makes the job infinitely easier.

Containers are essentially isolated browser instances that retain their own cookies and sessions. This allows you to be logged on to multiple accounts at once.

As mentioned above, the only browsers that supports this are Firefox and its derivatives. Sorry to chromiumites.

containerise

Open Firefox, then Install the Containerise addon.

After you have generated some container rules, you can add them by clicking the pencil icon, pasting them in the text area, then hitting the save icon.

pencil icon

Programming Languages

Essentially just Python. Most cards tools in use now are developed using Python, although some exist in other languages. There are a lot of traps you can run into while downloading Python, especially on Windows. Some things to watch for include adding python to your path.

Of course, if you use Linux, you wouldn’t have that problem!

Here are the steps on how to download Python and get it working, on Windows.

  1. Visit the Python website and click Download Python 3.11.5 (version at the time of writing, yours might be different).

  2. Launch the executable.

  3. On the open prompt, make sure you check “add python.exe to PATH” and select Install Now (as admin).

python add to path install

  1. Follow the steps to the finish.

  2. If you followed these steps, you should be able to open a Command Prompt, type python, and see the below.

python in command line

Congratulations, you should now be able to execute any script with Python by either clicking it or going to the directory with command prompt and doing python SCRIPT_NAME.py .