How to host (tutorial for the don't know how)

[MILK] vv0id1sm
Joined 07/10/2019
Posts 16,080
03:53 AM 10/09/2020
Today I will be poorly telling you how to host your very first game on Brick-Hill!

Before we begin, we are going to assume you already have a .brk file, and a set on site. If you already have the node-hill template with the brk, start.js, launch_client.bat and other stuff, skip ahead!

First, you'll want to go here. https://brickhill.gitlab.io/open-source/node-hill/
You'll need to make sure you have node.js installed, and then make sure to download and extract the Node-Hill template ( https://cdn.discordapp.com/attachments/705586171052294184/743879528065269870/Node-hill-8.4.0-Template.zip )

After you download and extract the zip file, have it somewhere on your computer.
Next, take your .brk file (the file that your game map is contained in) and put it in the maps folder of the template!

Any scripts you have coded in .js will go in the user_scripts folder!

Next, we are going to do the part that allows you to host games off your device!
This takes a few steps so I'll list it with numbers
1) Open up cmd prompt
2) Type 'ipconfig' into cmd prompt (without the single quotes)
3) copy your default gateway
4) paste your default gateway into your browser
5) log in to your router's online admin panel
6) (it's different depending on your router so this may not work) go to the advanced settings tab and go to 'Port Forwarding/Port Triggering'
For reference, here is a cropped picture of what it looks like on my router https://media.discordapp.net/attachments/624765476932943883/753460899792027778/unknown.png
7) Next, there should be buttons with stuff like 'edit service'. Click on 'add custom service'.
8) Pick whatever name you wish for the service. Set the external port range to any number (I suggest 42480!)
9) Change the internal ip address to the internal ip address of your device

Now you are done with setting up the service!

Next, open up the start.js file from the node-hill template with any text editor.
Change the 'gameId' part to the id for your set. Next, change the 'port' to the number you chose for the external port range.
Change 'local' to false (change to true when testing in workshop!) so that others can play when you host.
Change the 'map' attribute to whatever you named your .brk file.
And now, you are almost done!

Now, click on the file explorer's url bar while inside the node-hill template and type cmd!

This will open up cmd prompt directly inside of the folder.

What you want to do now, is type 'npm install node-hill@latest' and run that command.
This will install node-hill.

Once node-hill is done downloading, run the command 'node .\start.js' and it should say 'Posted to [insert game link here' !

I hope this helped yall, if anything was unclear or you have any questions, feel free to ask me!


[FaZe] phones
Joined 19/06/2019
Posts 43,381
03:53 AM 10/09/2020
woah big type


Thiqq
Joined 15/06/2020
Posts 143,653
03:54 AM 10/09/2020
[ Content Removed ]


[MILK] vv0id1sm
Joined 07/10/2019
Posts 16,080
03:54 AM 10/09/2020
Quote from phones , 03:53 AM 10/09/2020
woah big type
Saying how to host is somewhat lengthy.

This took me about 20 minutes to write, even if it isn't much.


[MILK] vv0id1sm
Joined 07/10/2019
Posts 16,080
03:55 AM 10/09/2020
If you guys ever wanna host a game, I recommend you bookmark this thread or favorite this link!


[MILK] vv0id1sm
Joined 07/10/2019
Posts 16,080
01:48 PM 10/09/2020
bumping because this is a helpful post


[epic] LipestoaW
Joined 13/06/2020
Posts 21,760
01:49 PM 10/09/2020
Quote from vv0id1sm , 01:48 PM 10/09/2020
bumping because this is a helpful post
I want but I don't want to use prompt


[Jbi] jbi
Joined 07/07/2019
Posts 3,785
01:50 PM 10/09/2020
Before this post blows up


[MILK] vv0id1sm
Joined 07/10/2019
Posts 16,080
04:02 AM 09/10/2020
bumping


Timm
Joined 28/06/2020
Posts 4,675
04:08 AM 09/10/2020
meowwwwwwwwwww

1