-
Notifications
You must be signed in to change notification settings - Fork 3
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.
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/
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/
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.
To start, download the default SHBT Quick Test mod APK file:
Old versions
After the download is complete, open the file in APK Editor Studio and click Open Contents. Go to the folder assets → menu 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&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.
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.
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.
To use SHBT Quick Test, export your work in progress segment to the Quick Test Server by clicking File → Export → Smash 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.
- 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.xmlis present in your user folder. - You can change quality and game mode between tests. Please note that Zen and multiplayer modes do not work.
Created by the Blender Tools Documentation Authors. Licenced under the Creative Commons Zero licence.