Event Archiving - PuzzleServer/mainpuzzleserver GitHub Wiki
for the previous instructions, see here.
Prerequisites
- Install HTTrack, a free website copier.
- Get admin access to the event you wish to archive.
- Get Azure access; ask the tech team channel for this if you don't have it.
- Install Microsoft Azure Storage Explorer.
Step 1: Get the archive root link
- Go to the event in a web browser.
- Switch to admin mode.
- In the toolbar, in the Event dropdown, choose "View as archive".
- Copy the page URL (which should end in
/archive); this is the archive root link.
Step 2: Copy the website
- Launch HTTrack.
- In the bottom right, click "Next".
- Give the project a name, like "PD2026", and click "Next".
- Click "Add URL".
- Paste the archive root link you copied at the end of Step 1 and press OK.
- Click "Set Options".
- In the Options dialog, click the "Scan Rules" tab.
- Click "Include Links".
- For a Criterion, pick "Links on this domain"; for a string, type "windows.net".
- Press Add to add the rule.
- Click the Links tab.
- Uncheck "Attempt to detect all links" (some PuzzleJS constructs fool it).
- Press OK to close the options dialog.
- Press Next, and then Finish.
At this point, the site is being copied to your computer, likely in a folder under
C:\My Web Sites. Let it cook, it needs a few minutes.
Step 3: Recopy all puzzle files from Azure
Even if the crawl finds most puzzle files, it is not guaranteed to find them all. Some puzzles will construct URLs in code, and the website copier does not know how to find these. PuzzleJS also constructs some URLs in code, and the same problem occurs.
- Go to
C:\My Web Sitesand find the archive you created in Step 2. - In your archive, open the
puzzleserverteststore.blob.core.windows.netfolder. It will have a subfolder whose name begins withevt; in the case of PD2026, it would beevt1070. Remember the event folder name; this is the folder we are going to recopy. - Run Azure Storage Explorer.
- If this is your first time in Azure Storage Explorer, sign in to Azure so it can find the resources you can access.
- In the pane on the left, expand the tree to "Emulator & Attached"/"puzzleserverteststore (Key)"/"Blob Containers".
- The list of blob containers will probably not go all the way down to the event folder name you need; click on the "View all" link at the bottom, and then the main pane will fill in with the full list.
- Find the blob container matching the event folder name and double-click to enter it.
- In the toolbar at the top, click the arrow next to "Download" and choose "Download All...".
- Select the
puzzleserverteststore.blob.core.windows.netfolder in your archive. - Press OK.
- In the conflict dialog that comes up, choose "Do not download" and "Apply to all conflicts".
- Wait for the download to complete.
You now have a complete archive! The archive homepage can be found in a link similar to C:\My Web Sites\PD2026\puzzlehunt.azurewebsites.net\pd2026\archive.html.
Do note that if you click this link, you will see the homepage briefly appear and then be replaced. This is because some of our site logic does not work properly with file:// links; it'll all work fine in a local web server or when published to our archive server.
Step 4: Publish the archive
TBD; waiting for full validation of an archive produced via the above steps.