Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics


A member registered Jan 16, 2016

Recent community posts

Thanks Mahaur!

is this something we can get fixed with the daylies? i'm happy to do any testing 

According to the collada2gltf docs, dae only supports tessellation bone animation. It could be the tool you're using is stripping this out. Are you sure the dae export has the animation? if you're running osx you can check this by pressing space bar on the file to open it in preview

On both of my computers using superpowers with the network IP or the DNS name of the machine does not work. Only or localhost will work.

I have an edge router, WRT 1900ac and a fritz box, and all of them setting up a port redirection is a pain in the ass. port forwarding was much easier.

Currently the docs specify configuring your router to forward traffic towards the hosting machine. This is bad advice for numerous reasons; risking breaking your router by something that should be done by software.Thankfully there's an better way to do this: using a reverse proxy.

In this tutorial I'm using ports 8000 and 8001, for main and build. I've changed superpowers to use these ports to make them easier to remember. It's optional, but you'll have to change some numbers in step 4.

Step 1: get apache

You'll need the apache web server for this tutorial. Mac has it installed by default, windows users can download XAMPP, and linux users can download it with sudo apt-get install apache2.

Step 2: open up ports

the first thing you'll need to do is edit the httpd.conf file. On linux+mac it's usually in / etc/apache2/httpd.conf, on windows it will be where you installed it. Open up terminal and paste in the command sudo nano /etc/apache2/httpd.conf to edit it, and find the part where it says Listen 80:

# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, instead of the default. See also the <VirtualHost>
# directive.
# Change this to Listen on specific IP addresses as shown below to
# prevent Apache from glomming onto all bound IP addresses.
Listen 80
Listen 8001

Add the line "Listen 8001" (or the build server port you specified earlier)

Step 3: enable virtual hosts

While still editing http.conf, find the #virtual hosts line and uncomment then hash at the start of the line of the include so it looks like:

# Virtual hosts
Include /private/etc/apache2/extra/httpd-vhosts.conf

You'll also need the proxy modules. They'll be in the LoadModule section, and you'll need to enable the following modules:

LoadModule proxy_html_module libexec/apache2/
LoadModule proxy_module libexec/apache2/

Note: if you can't find the proxy_module, you may be running an older version of apache. You may have to install the proxy module separately, you'll often find the .so or .dll files by looking around the internet.

Save and exit http.conf

Step 4: modify the httpd-vhosts.conf file

Run sudo nano /etc/apache2/extra/httpd-vhosts.conf. Or open it in your favorite text editor. Insert the following:

<VirtualHost *:80>
  ProxyPreserveHost On
  RewriteEngine On
  RewriteCond %{REQUEST_URI}  ^/            [NC]
  RewriteCond %{QUERY_STRING} transport=websocket    [NC]
  RewriteRule /(.*)           ws://localhost:8000/$1 [P,L]
  ProxyPass /
  ProxyPassReverse /
  LogLevel debug

<VirtualHost *:8001>
  ProxyPreserveHost On
  RewriteEngine On
  RewriteCond %{REQUEST_URI}  ^/            [NC]
  RewriteCond %{QUERY_STRING} transport=websocket    [NC]
  RewriteRule /(.*)           ws://localhost:8001/$1 [P,L]
  ProxyPass /
  ProxyPassReverse /
  LogLevel debug

If to you're not running superpowers on ports 8000 and 8001 you'll have change the numbers in the text above.

Step 5: start apache

Run the command sudo apachectl restart or restart apache in the xampp command console.

You can test to see if it works by entering the IP address (or domain name, in most routers this is really easy to set up) of your computer in a browser. It's using port 80 so it should just work.

If nothing happens, check the error.log file with the command tail -f /var/log/apache/error_log (or opening the error_log file in a text editor)

How it works

It works by routing all external traffic on port 80 and 8001 to the internal machine on port 8000 and 8001.