Skip to content

Install

Emma edited this page Dec 31, 2022 · 4 revisions

Installation

  1. Get the latest version of Xenon, either:
    • Download the latest release of Xenon from the releases tab and save it as startup.lua on your turtle
    • Or, if you're on SwitchCraft, run pastebin run FTTBFDmZ9V startup.lua
  2. Download the example configuration file
    • Run wget https://raw.githubusercontent.com/incinirate/Xenon/master/examples/config.lua
  3. Connect your monitor and chest(s) to the turtle.
  4. Modify config to suit your needs
    1. Open the config, edit config.lua
    2. Required changes:
      1. Change name to the Krist Name you wish to use, for example, if you want people to buy from [email protected], you would set name to domain
      2. Change pkey to the private-key of the address that owns your domain.
        • If you wish to use your raw private-key, but only know the Krist Wallet format's password (most people), you can find your private key by using this tool.
        • If you really want to use just your KristWallet password, you must set pkeyFormat to kwallet (Not Recommended).
      3. If you wish to have the storage chest directly adjacent to the turtle (left, top, etc.), then you must use the chest config option to specify this direction.
      4. If you wish to have a chest on a wired network, setting chest or chests is optional, but recommended.
      5. If you wish to have the storage chest directly adjacent to the turtle (left, top, etc.), then you MUST set self to the cardinal direction in which the turtle is relative to the chest. For example, if the chest is directly east of the turtle, then you must set self to west. You cannot use relative directions like left or right here! However, for top/bottom setups, you can simply use top and bottom.
      6. You may set monitor to the network name of the monitor you wish to use, if this value is not supplied, Xenon will attempt to find the monitor itself, but if it is not working, then use this property to override this.
      7. You must add the items you wish to sell to the items table. The first entry in the example config contains all possible options and therefore will not be explained here.
    3. Optional changes:
      1. Change title to something more meaningful than My Shop, this value is never shown to customers, but rather for logging purposes.
      2. Change redstoneSide to the side you wish for a redstone heartbeat to be emit, or remove this property from the config if you wish to disable the redstone heartbeat.
      3. Change the refund messages in the messages table.
  5. Download a layout and styles file, for example, to install the "modern" layout, do the following:
    1. Run wget https://github.com/incinirate/Xenon/raw/master/examples/modern/layout.html
    2. Run wget https://github.com/incinirate/Xenon/raw/master/examples/modern/styles.css
  6. Restart the computer, either with Ctrl+R or by typing reboot
Clone this wiki locally