Skip to content
This repository was archived by the owner on Jul 21, 2023. It is now read-only.

Quick Test

knot126 edited this page Aug 11, 2022 · 22 revisions

Quick Test

Starting with SHBT 2.0.1, you can now test changes to segments very quickly by using a mod of Smash Hit that allows loading segments from an HTTP server that is enabled with Blender Tools by default.

You can find a demo on YouTube if you want to see what it looks like.

Tip: If you run into an error or find that we haven't described how to do something, try searching for the issue on a search engine like Google or DuckDuckGo.

Set up the computer

Configure firewall

On your computer, you should have a firewall rule set up to allow traffic from port 8000. Assuming this is set up properly, the server will automatically start when Blender is opened and close when it is closed.

You can find a guide about opening ports on Windows here: https://www.howtogeek.com/394735/how-do-i-open-a-port-on-windows-firewall/

Find local IP address

After this, you need to find your local IP address, which usually starts with 192.168.1. and ends with a number between 0 and 255.

You can find a guide for how to do this on Windows here: https://www.howtogeek.com/723838/how-to-find-your-ip-address-on-a-windows-10-pc/

Set up the SHBT Quick Test mod and your phone

The SHBT Quick Test app has some setup required before installing it. You will only need to follow these steps if your network configuration changes or you are upgrading to a new version of SHBT Quick Test.

Download the mod

To start, download the default SHBT Quick Test mod APK file:

Old versions

Configure the mod

After the download is complete, open the file in APK Editor Studio and click Open Contents. Go to the folder assetsmenu and open the file button1.xml.mp3 in a text editor. It should look like this:

<ui texture="start.png" selected="button_select.png">	
	<rect coords="0 0 294 384" cmd="level.start level:http://192.168.1.134:8000/level?youare=192.168.1.134&amp;ignore="/>
</ui>

Now, replace the two occurrences of the IP address 192.168.1.134 with the local IP address that you found earlier (unless your local IP is 192.168.1.134, in which case you don't need to do anything). Save the file and close the text editor.

Add custom obstacles and other files

If you have any custom obstacles or other custom assets, then you must add them to the mod. The quick test app can't load obstacles from the network at the moment.

If you don't have these, then just move on to the next section.

Install the mod

Now that you have configured the mod, go back to APK Editor Studio and save the APK by clicking Save APK, then install the mod. You can do this by plugging your phone into your computer and clicking Install APK. If the phone is not detected, you can also copy the APK to your phone and install it from there.

Using SHBT Quick Test

To use SHBT Quick Test, export your work in progress segment to the Quick Test Server by clicking FileExportSmash Hit Quick Test Server. After that is done, start the SHBT Quick Test app on your phone. Once your segment has finished exporting, click the Start button in Smash Hit and your segment will be downloaded from your computer.

To test any new changes you have made to your segment, export your segment to the server again and restart the level in Smash Hit.

Important: Smash Hit's HTTP file loader can be unreliable at times, so if it crashes on your first attempt, try again. If it keeps crashing the in the same way, make sure you configured the computer and mod correctly.

Notes

  • The SHBT Quick Test app only supports devices with a 64-bit ARM processor. If you try to install it on an x86 or 32-bit ARM device, it will fail. Most devices will meet the requirements, but a few might not.
  • Templates will only work if they can be automatically found from an APK loaded in APK Editor Studio or the file smash-hit-templates.xml is present in your user folder.
  • You can change quality and game mode between tests. Please note that Zen and multiplayer modes do not work.
Clone this wiki locally