This feature allows launching a program in X16 web emulator in one click.
Here is a short "how to". (updated on 25 April 2023)
Preparing file for upload:
- If your program is a single BAS or PRG file, the file is good to go, skip to: Creating "Try It Now!" link.
- If your program consists of more than one file, pack all your program files into ZIP file. If your program has only one start file (BAS or PRG), no need to do anything else, skip to: Creating "Try It Now!" link.
- If your program has more than one start file (BAS or PRG), you may use manifest file and specify default start file in "start_prg" or "start_bas" field (details below).
- If you want to include additional files to ZIP, which are not needed for program to run (docs, examples, etc.) you may use manifest file and specify needed files in "resources" section (details below). Otherwise emulator will fetch all files from zip.
You may include this file in ZIP if you need.
Code: Select all
{
"manifest_version": "1.0.0",
"name": "My Program",
"author": "John Smith",
"app_version": "1.0.0",
"license": "GPL 3",
"start_prg": "MYPROG.PRG",
"resources": [
"MYPROG.PRG",
"FILE1.BIN",
"FILE2.BIN"
]
}
- "start_prg" (or "start_bas") may specify file to run your program, if your ZIP contains more than one start file. If not specified and ZIP contains more than one start file (or none), then emulator will drop to BASIC and let the user decide which file to LOAD.
- "resources" may specify files needed for program, if your ZIP contains additional files (docs, examples, etc.). If not specified, emulator will fetch all files from zip.
- Other fields are just for information and are not handled by emulator.
Creating "Try It Now!" link:
- Create a new post or edit existing one. (We prefer you edit the top post of the program thread.)
- Attach BAS, PRG or ZIP file to forum post.
- Hover mouse over the attachment link and look for the number at the end (id=1218).
- Click the "TRYIT" button in the editor toolbar.
- Type the number from your URL into the "tryit" tag like this: [tryit]1218[/tryit]
- Enjoy. :)