|
| 1 | +--- |
| 2 | +title: Importing a version |
| 3 | +--- |
| 4 | + |
| 5 | +import { Steps } from "@astrojs/starlight/components"; |
| 6 | + |
| 7 | +Once you've got a library set up, and have imported a game, you can import a version for that game. |
| 8 | + |
| 9 | +<Steps> |
| 10 | +1. ### **Add your version files.** |
| 11 | + Following your library structure, copy over your version files to your version directory. Make sure you verify the game works, and you know how to launch it properly. |
| 12 | +2. ### **Open import wizard.** |
| 13 | + |
| 14 | + Head over to your Admin Dashboard, and click on the "Library" tab. Drop should detect that you have a new version to import. To open the import wizard, you can either click on the alert on any game tile, or click "Open in Editor" and navigate to the "Versions" tab. |
| 15 | + |
| 16 | +3. ### **Select your version folder.** |
| 17 | + |
| 18 | + From the dropdown, select your version folder. It should load for a little bit, and give you an interface that looks something like this: |
| 19 | + |
| 20 | +  |
| 21 | + |
| 22 | +4. ### _About the wizard..._ |
| 23 | + |
| 24 | + Here's what each section is about: |
| 25 | + |
| 26 | + ### Setup executable/command |
| 27 | + |
| 28 | + Setup executables are run after download but before first launch, and are useful for extracting files or setting necessary configuration. |
| 29 | + |
| 30 | + :::tip |
| 31 | + Both setup and launch command configurations may provide suggestions based on file extension. To view these suggestions, start typing or click the chevron in the text field. |
| 32 | + ::: |
| 33 | + |
| 34 | + ### Setup mode |
| 35 | + |
| 36 | + Setup mode removes the requirement of at least one launch command. Useful for installer-only versions. Clients will never show a launch button, only a setup button. |
| 37 | + |
| 38 | + ### Launch executable/command |
| 39 | + |
| 40 | + Launch executables can be launched by the user. If multiple launch commands are configured, they will all be shown to the user on launch to pick from. |
| 41 | + |
| 42 | + :::note |
| 43 | + For a version to show up on a platform, **at least one launch command of that platform needs to be configured**, unless the version is in setup-only mode. |
| 44 | + ::: |
| 45 | + |
| 46 | + ### Update mode |
| 47 | + |
| 48 | + Update mode is for when you're importing a patch. **You have to re-add the launch/setup commands, they are not preserved from previous versions.** |
| 49 | + |
| 50 | +5. ### **Import your version.** |
| 51 | + |
| 52 | + There are many different kinds of imports, but for simplicity's sake, we'll do either a portable or installer version. |
| 53 | + |
| 54 | + ### Portable version |
| 55 | + |
| 56 | + A portable version can be launched from an executable. To import a portable game, add a launch command with the portable game executable. |
| 57 | + |
| 58 | + ### Installer version |
| 59 | + |
| 60 | + A installer version uses "setup mode". Enable the option, and then add the installer executable in setup commands. |
| 61 | + |
| 62 | + :::note |
| 63 | + Setup and launch commands are parsed in a cross-platform, POSIX style. It's not relevant for simple setups, but useful to know. Read more about it in [Command Parsing](/reference/command-parsing/). |
| 64 | + ::: |
| 65 | + |
| 66 | +6. ### **Wait for import.** |
| 67 | + |
| 68 | + Drop will redirect you to a task page about the import. A version import scales with the size of the version, since the import will read through every file in the version and generate checksums. |
| 69 | + |
| 70 | + :::note |
| 71 | + As with the game import, feel free to leave the import page while it's going, without worrying about it cancelling. |
| 72 | + ::: |
| 73 | + |
| 74 | +</Steps> |
0 commit comments