MAD4FP: Difference between revisions

From Flashpoint Datahub
Jump to navigation Jump to search
mNo edit summary
No edit summary
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
MAD4FP, or Multi-Asset Downloader for Flashpoint, is a new mode of Flashpoint Infinity for easily downloading multi-asset games. This article explains how to set up and use this mode. Please note that MAD4FP only works on HTTP URLs! You will need to use a different method to save games on HTTPS URLs.
MAD4FP, or Multi-Asset Downloader for Flashpoint, is a mode of Flashpoint Infinity for easily downloading multi-asset games. This article explains how to set up and use this mode.


== Setting Up MAD4FP ==
== Setting Up MAD4FP ==


If you are using Flashpoint Infinity 6.1 or older, follow these steps first:
Follow these steps to activate MAD4FP:
# Navigate to https://raw.githubusercontent.com/FlashpointProject/Flashpoint-Router/master/router.php.
# If you are using an old version of Flashpoint Infinity, [[Extended FAQ#UpdateRouter|update Flashpoint Router]].
# Save the file to <code>Flashpoint\Server</code> in your Flashpoint Infinity folder. Use the filename <code>router.php</code>. You may back up the old <code>router.php</code> file first.
# Navigate into the <code>Server</code> folder of your Flashpoint Infinity folder.
 
# Open the <code>router.php</code> file using a text editor such as Notepad.
Regardless of your Flashpoint Infinity version, follow these steps:
# Open the <code>router.php</code> file in the <code>Flashpoint\Server</code> folder using a text editor such as Notepad.
# Find the line that says <code>const ROUTER_MAD4FP = false;</code> and change the <code>false</code> part to <code>true</code>. Save the file.
# Find the line that says <code>const ROUTER_MAD4FP = false;</code> and change the <code>false</code> part to <code>true</code>. Save the file.


Line 14: Line 12:


# In Flashpoint Infinity, click New Game on the bottom-right corner of the launcher. If you do not see a New Game button, switch to the Config tab and check "Enable Editing."
# In Flashpoint Infinity, click New Game on the bottom-right corner of the launcher. If you do not see a New Game button, switch to the Config tab and check "Enable Editing."
# Enter the title and platform of the game, and any other metadata you wish. For the Launch Command, paste the URL of the page where the game is located.
#* Alternatively, you can switch to the Curate tab, then click New Curation instead of New Game. For more information about using the Curate tab, see [[Curation Tutorial]].
# For the Application Path, click the dropdown and choose the path for K-Meleon or Basilisk. K-Meleon is recommended for most plugin-based games, while Basilisk is recommended for HTML5 and Unity games.
# Enter the title and platform of the game, and any other metadata you wish. For the Launch Command, paste the URL of the page where the game is located. If you plan to use the Flash projector, paste the direct link to the game SWF instead.
# Double-click the game to launch it. The game should load in the browser you specified. Watch the Flashpoint Redirector window as you play the game.
#* Note that if the original URL uses HTTPS, you will need to replace <code>https</code> with <code>http</code>.
# Once all of the assets seem to have loaded, navigate to <code>Flashpoint\Server\htdocs</code> and sort the contents by Date Modified. Determine which files and folders belong to the game you just downloaded.
# For the Application Path, click the dropdown and choose the appropriate application in Flashpoint for the type of game you are curating.
# Copy the files and folders from the htdocs folder to your curation's <code>content</code> folder, retaining the same structure. Refer to [[Instructions for Curating]].
# Double-click the game to launch it. The game should load in the application you specified. Watch the Logs tab of Flashpoint Launcher as you play the game.
# Once all of the assets seem to have loaded, navigate to Flashpoint's <code>Server\htdocs</code> folder and sort the contents by Date Modified. Determine which files and folders belong to the game you just downloaded.
# Copy the files and folders from the htdocs folder to your curation's <code>content</code> folder, retaining the same structure. Refer to the [[Curation Tutorial]].
 
== Turning Off MAD4FP ==
 
After you're done using MAD4FP, you will need to turn it off to use Flashpoint Infinity normally. To do this, follow the steps described in [[#Setting Up MAD4FP|Setting Up MAD4FP]], but change <code>true</code> back to <code>false</code>.

Revision as of 08:22, 18 May 2020

MAD4FP, or Multi-Asset Downloader for Flashpoint, is a mode of Flashpoint Infinity for easily downloading multi-asset games. This article explains how to set up and use this mode.

Setting Up MAD4FP

Follow these steps to activate MAD4FP:

  1. If you are using an old version of Flashpoint Infinity, update Flashpoint Router.
  2. Navigate into the Server folder of your Flashpoint Infinity folder.
  3. Open the router.php file using a text editor such as Notepad.
  4. Find the line that says const ROUTER_MAD4FP = false; and change the false part to true. Save the file.

Using MAD4FP

  1. In Flashpoint Infinity, click New Game on the bottom-right corner of the launcher. If you do not see a New Game button, switch to the Config tab and check "Enable Editing."
    • Alternatively, you can switch to the Curate tab, then click New Curation instead of New Game. For more information about using the Curate tab, see Curation Tutorial.
  2. Enter the title and platform of the game, and any other metadata you wish. For the Launch Command, paste the URL of the page where the game is located. If you plan to use the Flash projector, paste the direct link to the game SWF instead.
    • Note that if the original URL uses HTTPS, you will need to replace https with http.
  3. For the Application Path, click the dropdown and choose the appropriate application in Flashpoint for the type of game you are curating.
  4. Double-click the game to launch it. The game should load in the application you specified. Watch the Logs tab of Flashpoint Launcher as you play the game.
  5. Once all of the assets seem to have loaded, navigate to Flashpoint's Server\htdocs folder and sort the contents by Date Modified. Determine which files and folders belong to the game you just downloaded.
  6. Copy the files and folders from the htdocs folder to your curation's content folder, retaining the same structure. Refer to the Curation Tutorial.

Turning Off MAD4FP

After you're done using MAD4FP, you will need to turn it off to use Flashpoint Infinity normally. To do this, follow the steps described in Setting Up MAD4FP, but change true back to false.