vbGore Free Online RPG Engine

Revolutionizing Visual Basic ORPG Development
It is currently Tue May 21, 2013 9:09 pm

All times are UTC - 8 hours




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: [Tutorial] How to properly publish your game!
PostPosted: Sat Apr 25, 2009 7:01 pm 
Triskaidekaphobia

Joined: Sat Apr 25, 2009 5:48 pm
Posts: 13
Location: Canada
Ok so after being very confused myself while trying to publish my game, I now know how and want to pass my now known knowledge on to anyone else who may be stuck somewhere.

Ok we will do this in steps, hmm, lets start with port-forwarding (opening ports) {If you don't have a router and your connected directly to your modem then you can skip this part}

STEP 1:
You should already know what port-forwarding is but if you don't then click the spoiler. :)
Port-forwadring:
Basically port-forwarding is telling your router that when someone tries to connect through a port (port 10200 for example) to take their connection and forward it to your internal IP. Therefore allowing them to connect to your server without any interference.

Ok so first you will need to access your router for this you will need:
A router, Internet, and the password for your router. (most routers have a default password which is: Admin)

To access your router you need to type one of the following into your into your browser:
192.168.0.1
192.168.1.1
192.168.2.1
192.168.3.1
Basically till you find the one that your router uses.

Lets just say its 192.168.0.1 for this example
You will now see a log in screen something like this:
Click for img:
Image

After you log in you need to find where your port-forwarding section is (its usually under a section like advanced or gaming)
For my router its under advanced:
click for img:
Image

Basically you just set up the fields according to what is needed in them.
The ports you need to open are these:
10200 (MUST BE OPEN)
10201 (if u have a updater/patcher)
3306 (if you want other gms to access the mysql database)

You can find the ports in the server config as well.

My router gives me my internal ip so it pwns but to find that you can also use: run
once you open run just type in ipconfig
click for img:
Image

It should be easy to find it will usually be like your router ip for example: 192.168.0.123

Now that you have forwarded your ports you are ready to continue on to step 2
Step 2 is changing the stuff in the server config located in: vbgore/serverdata

STEP 2:
Open it up and change the following fields:

Under [SERVER 1]
find and change red text areas:
//Internal IP of the server (usually either 127.0.0.1 for localhost, or 0.0.0.0 for public) - public servers require correctly forwarded ports
IP= set to your internal ip you found using ipconfig

//External IP of the server (get from a site like http://www.ipchicken.com) - will be 127.0.0.1 if the internal IP is 127.0.0.1 and on the same computer
ExIP= Find your external ip from ipchicken.com

Once you are done save and close this.

Step 3 changing the ip in the game client
(You will need Visual Basic 6.0 if you don't have it get it! You will need it for basically editing anything anyways...)

STEP 3:

Ok open up gameclient.vpb located in your vbgore directory.
Goto modules in the side bar and then open TCP.bas
Now (ctrl+f) find: GetIPFromHost
you should now be here:
click for img:
Image
If you cant see this goto http://i30.tinypic.com/zss9r6.jpg for a better version of this img.

Change the ip (from 127.0.0.1 to your external ip {get from http://www.ipchicken.com}) then goto File>Make GameClient.exe it will ask if you want to replace the old .exe say yes.

You have now recompiled the GameClient so it should work ok.

STEP 4 giving people the required files:

Files needed by your users:
sfx (NEEDED)
grh (NEEDED)
maps (NEEDED)
music (NEEDED)
data (NEEDED)
libraries (NEEDED)
GOREsockClient.ocx (NEEDED)
GameClient.exe (NEEDED)
GameConfig.exe (Optional - if you want players to be able to change game controls)

You can also include anything else you may have such as a patcher/updater for your game.

Now all you have to do is put those files into a .rar or something and send it to your players.

Good luck, post any questions you may have, or post a error in my tut.

-Rob


Last edited by rob5251 on Sun Jul 12, 2009 5:55 am, edited 2 times in total.

Top
 Profile  
 
 Post subject: Re: [Tutorial] How to properly publish your game!
PostPosted: Sun Apr 26, 2009 12:55 am 
baka

Joined: Tue Jul 08, 2008 12:17 am
Posts: 2304
Location: England, UK
I'm sure this will be handy to anybody who's stuck with publishing and needs another perspective. I'll link it from the wiki article, nice first post! :D


Top
 Profile  
 
 Post subject: Re: [Tutorial] How to properly publish your game!
PostPosted: Sun Apr 26, 2009 8:59 am 
Triskaidekaphobia

Joined: Sat Apr 25, 2009 5:48 pm
Posts: 13
Location: Canada
Thanks, I noticed that no one really told people how to re-compile the gameclient.exe but rather just said to do it...

So once I found out how (im a vb noob) then I was like oh ok that's easy. :)


Top
 Profile  
 
 Post subject: Re: [Tutorial] How to properly publish your game!
PostPosted: Thu Jul 23, 2009 11:23 am 
Wozzle Woozle Wozniak

Joined: Fri Mar 02, 2007 10:14 am
Posts: 91
Hi Rob, I have some problems with the port forwarding.
I have the exact same router picture as you so it should have been easy.

Name: Ive just called it "My router" Because name doesn't matter at all, right?
TCP and UDP is 10200
IP adress is 192.168.0.145 (which is my ip)

still when I use http://www.canyouseeme.org/ it says:
Error: I could not see your service on 80.213.175.86 on port (10200)
Reason: Connection timed out
80.213.175.86 is my ExIp.

Also when I try and run client when server is running (on same computer as the server is running on) it says it's unable to connect.

Please help me, thank you!


Top
 Profile  
 
 Post subject: Re: [Tutorial] How to properly publish your game!
PostPosted: Wed Jul 29, 2009 3:16 am 
Newbie

Joined: Tue Jul 28, 2009 4:44 pm
Posts: 1
Well, I'm stuck. Not because I have any particular trouble with understanding, but because I have Windows Seven 64-bit and Visual Basic 6.0 is incompatible. I am forced to use Visual Basic 2008, which cannot build the client without upgrading the source, which pops up dozens of errors. Some of them I'm not sure what mean.

Has anybody else successfully made a build of the project with VS 2008?


Top
 Profile  
 
 Post subject: Re: [Tutorial] How to properly publish your game!
PostPosted: Wed Jul 29, 2009 9:12 am 
Slave to the BB

Joined: Tue Jul 31, 2007 8:45 am
Posts: 3273
Location: United Kingdom
VS2008 won't work, but I'm using 64bit win7 here with vb6, No problems.


Top
 Profile  
 
 Post subject: Re: [Tutorial] How to properly publish your game!
PostPosted: Wed Jul 29, 2009 8:32 pm 
Newbie

Joined: Tue Jul 28, 2009 1:57 pm
Posts: 3
Well so far I made the gameclient.exe and it happens to run perfectly fine on my own pc, but when i try to go take it to my brothers pc in the next room, it says the client cant connect to the server even IF I open the ports on that pc I dunno what I did wrong lol i changed the external IP in the gameclient.vbp and double checked it... I dunno why my brother cant connect to my SQL server which happens to be running perfectly fine and btw my internal IP is set to 0.0.0.0 for public what am I doing wrong? lol


Top
 Profile  
 
 Post subject: Re: [Tutorial] How to properly publish your game!
PostPosted: Thu Jul 30, 2009 1:03 pm 
Slave to the BB

Joined: Sat May 12, 2007 6:20 am
Posts: 3842
Location: Behind you!
Are you on the same network? If you put your external ip in it may not work depending on your network setup. Like if I put vbgore on this computer to connect on my laptop I have to use this computers internal ip external ip will always fail to connect.


Top
 Profile  
 
 Post subject: Re: [Tutorial] How to properly publish your game!
PostPosted: Sat Feb 20, 2010 12:36 pm 
Bytewise Operator

Joined: Mon Mar 30, 2009 12:21 pm
Posts: 133
Location: Behind You.
when I use http://www.canyouseeme.org/ it says:
Error: I could not see your service on "My External IP" on port (10200)
Reason: Connection timed out

When i try to run the server and the client, on the same computer as my server, it doesnt work and says it cant connect to the server. i think

Plz help me, thank you!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC - 8 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group