-
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.
What is this?
Normally, a firewall blocks network connections that might allow people to gain access to things on your computer. We need to disable the firewall for port
8000so the network connections that the Quick Test app makes are not blocked.
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/
What is this?
On the network, your computer has an address that it is identified by. We need this so we can tell the Quick Test app where your computer is on your netowrk.
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.167:8000/level?ignore="/>
</ui>Now, replace the IP address 192.168.1.167 with the local IP address that you found earlier (unless your local IP is 192.168.1.167, 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.
If you don't want to repack your APK to specify what IP address to connect from, you can click the "OTHER IP" button in the top left of the main menu. This will allow you to enter the last part of the IP address you want to use. Note that this must be a C class IP address with 3rd octet value of 1 (or simply it should start with 192.168.1.), if your local network uses A (10.0.0.0) or B class (172.16-31.0.0) IP addresses or even C class IP that uses 3rd octet with a value of greater or lesser than 1, then it will not work.
- As of 2.1.0 and later, the SHBT Quick Test app only supports devices with a 64-bit or 32-bit ARM processor. Also, note that pervious versions did not support 32-bit ARM.
- Templates will only work if they can be automatically found from an APK loaded in APK Editor Studio or the file
templates.xmlis present in your Blender Tools 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.