Unity Curation: Difference between revisions

From Flashpoint Datahub
Jump to navigation Jump to search
m (Fixed Launch Command needing .html at the end)
m (Minor edit in first paragraph due to page formatting)
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Unity web games are currently endangered, since the [https://unity3d.com/webplayer Unity Web Player] has been deprecated, and the official link to download it appears to be defunct. However, the Flashpoint Discord has preserved a copy of the latest version, which can be found here: https://cdn.discordapp.com/attachments/436484594485952542/638913316911054858/UnityWebPlayerFull.exe
Unity web games are currently endangered, since the Unity Web Player was deprecated in 2016 and can no longer be used on modern browsers. In case you need to download the Web Player to search for Unity web game assets, however, an official link to download it exists:
http://webplayer.unity3d.com/download_webplayer-3.x/UnityWebPlayer.exe


The following page is a tutorial on how to curate Unity games to add to Flashpoint.
The following page is a tutorial on how to curate Unity games to add to Flashpoint.
Line 20: Line 21:
Download [https://bluemaxima.org/flashpoint/downloads/ Flashpoint Core], then open the Utilities folder. Find the Unity HTML Generator and open <code>UnityHTMLGenerator.bat</code> .  
Download [https://bluemaxima.org/flashpoint/downloads/ Flashpoint Core], then open the Utilities folder. Find the Unity HTML Generator and open <code>UnityHTMLGenerator.bat</code> .  


In the Unity HTML Generator, type the name of the game and the name of the .unity3D file you downloaded. The width and height to embed the game in are the first and second numbers in the embed respectively. Name the HTML file something relevant, such as the name of the game, preferably in lowercase and without spaces. For example, the HTML for Verkeerstalent is named verkeerstalent.html.
In the Unity HTML Generator, type the name of the game and the name of the .unity3D file you downloaded including the file extension (example: <code>141437220815352.unity3d</code>) . The width and height to embed the game in are the first and second numbers in the embed respectively. Name the HTML file something relevant, such as the name of the game, preferably in lowercase and without spaces. For example, the HTML for Verkeerstalent is named verkeerstalent.html.


Follow the [https://bluemaxima.org/flashpoint/datahub/Curation_Format Curation Format] to add metadata for your game and create its correct content folder. The Platform should be <code>Unity</code> and the Application Path should be <code>FPSoftware\startUnity.bat</code>.  
Follow the [https://bluemaxima.org/flashpoint/datahub/Curation_Format Curation Format] to add metadata for your game and create its correct content folder. The Platform should be <code>Unity</code> and the Application Path should be <code>FPSoftware\startUnity.bat</code>.  


However, instead of using the URL for the .unity3d file as the Launch Command, however, use the HTML file you created, such as <code><nowiki>http://gameitnow.eu/spelle/games/verkeerstalent.html</nowiki></code>. Put the HTML embed file in the same place as the .unity3D file in your content folder.
Instead of using the URL for the .unity3d file as the Launch Command, however, use the HTML file you created, such as <code><nowiki>http://gameitnow.eu/spelle/games/verkeerstalent.html</nowiki></code>. Put the HTML embed file in the same place as the .unity3D file in your content folder.


'''Make sure to always use http:// instead of https:// to make sure Flashpoint grabs files from the fake Internet instead of the real one!'''
'''Make sure to always use http:// instead of https:// to make sure Flashpoint grabs files from the fake Internet instead of the real one!'''


Import your curation as a Folder into Flashpoint Core using the Curate tab and test the game to see if it requires any additional files. If the Flashpoint Redirector window displays <code>(404 Not Found)</code> along with a URL, copy the URL, download the necessary asset, and put it in its appropiate place in the Content folder.
Import your curation as a Folder into Flashpoint Core using the Curate tab and test the game to see if it requires any additional files. If the Logs tab displays a line containing <code>404</code> followed by a content path, format that content path as a URL, download the necessary asset using cURLsDownloader, and put it in its appropriate place in the Content folder.


== Wrapping It Up ==
== Wrapping It Up ==
When you're finished testing, pack everything into a single .zip or .7z file and submit it to the #other-game-curations channel of the Flashpoint Discord. Use the Unity emoji when submitting.
When you're finished testing, pack everything into a single .zip or .7z file and submit it to the #other-game-curations channel of the Flashpoint Discord. Use the :unity: emoji when submitting.

Revision as of 00:57, 14 July 2020

Unity web games are currently endangered, since the Unity Web Player was deprecated in 2016 and can no longer be used on modern browsers. In case you need to download the Web Player to search for Unity web game assets, however, an official link to download it exists: http://webplayer.unity3d.com/download_webplayer-3.x/UnityWebPlayer.exe

The following page is a tutorial on how to curate Unity games to add to Flashpoint.

Before You Start

This tutorial will assume you've read the standard Curation Tutorial, which is highly recommended to go through. Try curating a Flash game before moving on to other platforms like Unity.

Identifying and Grabbing Unity Games

You will very rarely come across Unity games compared to Flash or HTML5 games; however, identifying them is easy, because they will ask to download the Unity Web Player on the likely chance you don't already have it installed.

To confirm this, when on the page containing a game, press Ctrl+U to open its source HTML file and search for a .unity3D file link. If you find one, the game is on the Unity platform, and the .unity3D file will be the source of your game, so copy its link and download it.

Creating the HTML Embed File

Go back to the source page for your game and look at the text surrounding the .unity3D link. This is the embed for Unity games. For example, the source HTML for the game Verkeerstalent contains the following embed: unityObject.embedUnity('unityPlayer', 'http://gameitnow.eu/spelle/games/141437220815352.unity3d', '940', '580');

Download Flashpoint Core, then open the Utilities folder. Find the Unity HTML Generator and open UnityHTMLGenerator.bat .

In the Unity HTML Generator, type the name of the game and the name of the .unity3D file you downloaded including the file extension (example: 141437220815352.unity3d) . The width and height to embed the game in are the first and second numbers in the embed respectively. Name the HTML file something relevant, such as the name of the game, preferably in lowercase and without spaces. For example, the HTML for Verkeerstalent is named verkeerstalent.html.

Follow the Curation Format to add metadata for your game and create its correct content folder. The Platform should be Unity and the Application Path should be FPSoftware\startUnity.bat.

Instead of using the URL for the .unity3d file as the Launch Command, however, use the HTML file you created, such as http://gameitnow.eu/spelle/games/verkeerstalent.html. Put the HTML embed file in the same place as the .unity3D file in your content folder.

Make sure to always use http:// instead of https:// to make sure Flashpoint grabs files from the fake Internet instead of the real one!

Import your curation as a Folder into Flashpoint Core using the Curate tab and test the game to see if it requires any additional files. If the Logs tab displays a line containing 404 followed by a content path, format that content path as a URL, download the necessary asset using cURLsDownloader, and put it in its appropriate place in the Content folder.

Wrapping It Up

When you're finished testing, pack everything into a single .zip or .7z file and submit it to the #other-game-curations channel of the Flashpoint Discord. Use the :unity: emoji when submitting.