Your characters each have their own code slots, the game client auto saves your code to the game servers each time you run your code after a change.

In addition to character code slots, you have 100 additional code slots, numbered from 1 to 100! Whereas your character code slots have larger numbers like 482008842 - which are actually the ID's of your characters.

You can check out: X.codes - which includes the dictionary of your codes.

The Steam and Mac clients also synchronize a local folder to include all your codes, you can type /codes in chat to open this folder

Your character codes are inside the characters folder with file names such as Wizard.482008842.js - Whereas your code slots are in the codes folder with names such as Farming.12.js - the number before .js matters a lot - it's how the game determines where to sync the file to.

If you open the game on a different computer and there are old code files, they are moved to the history folder, when the game detects simultaneous conflicting changes, the file is moved to the clash folder. The code synchronization system is designed to be self healing and self synchronizing, but from feedback, currently it's not performing too well. If you can isolate a scenario it fails, it will help tremendously!

Useful Functions:

load_code

require_code

upload_code

get_active_code_slot

get_edited_code_slot

Your character loads its default code slot when you open the game in a new place, if you use the character default slot, it will be practical to open the game on Steam/Web etc. - However, you can also make a character use any other code slot locally. It's a good idea to use the character default slots for high level logic, and put your functions and routines to numbered code slots and in your character code slot, load those codes using load_code which is pretty similar to just copy/pasting that entire code slot to the place where you load the code.