Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[Tutorial] Setting Up Gunbound Classic/Thor's Hammer Offline/LAN (With Pictures)

Junior Spellweaver
Joined
Oct 9, 2009
Messages
187
Reaction score
29
I removed some images and change it to Links, to see the full version, visit my blog





Well here we go!
Table of Contents

Code:
1. Installing WAMP Server
2. Importing Database Files into WAMP's MySQL
3. Creating the Web Registration for the Game
4. Setting up Gunbound Server Files
5. Installing Gunbound Client
6. Setting up in LAN
Requirements:



Download Wamp Server 2.0:






(old)




Note: I change the download link to use WAMP Server 2.0 than 2.2 because there are some problems regarding Entering the Server which shows the Please Wait message. But the pictures below, i used 2.2 but they are have same procedure.


Instructions:


1. Install WAMP Server

Click Next



Select Accept and Click Next


Choose your Destination to Install (i choose c:\wamp which is the default)


Wait to complete the installation, do facebook or anything, this will not take too look ^_^


Dont touch this part, dont change the localhost,just click next


Done! now click finish to fire up your WAMP server!


You will see on the notification bar the WAMP Icon is green, this means your want runs smoothly

Note: If your wamp icon is orange/red, thres some problems in your computer like:
-Conflict WAMP with IIS(Internet Information Services)=Turn off your ISS by Run inetmgr
-Conflict WAMP with MSSQL


-Conflict WAMP with MAMP,XAMP





2. Importing Database Files into WAMP's MySQL

a. Extract GB_Serv.rar to Drive C: (I choose this so i can access it easily and the path is short that Desktop). Below is the extracted files.


b. Now open your intenet browser and browse , you will be directed to this page below


c. Click on phpMyAdmin below the Tools and youll be inside phpmyadmin
Click on Databases Tab and create the following database:

Code:
Admin, batch, gunbound, and user


d. now you see below the 4 databases i created (i checked them so you can see them as highlighted).


e. now click on the admin database and youll see this page


f. Now click on the Import tab (if you cant see it, click on More) and then click on the browse.. button, this will upload the backup database to be set on the admin database, go to your C:\GB_Serv (where you extracted the GB_Serv.rar) then open the DB Folder inside the GB_Serv and choose Admin.sql then after choosing, browse down and click the Go Button to Execute the Importing.


g. Now if you see this error, open the Admin.sql (This occurs depends on the version of MySQL in WAMP)


h. Once you open it, Replace TYPE=MyISAM into ENGINE=MyISAM
(use ctrl+h to open the replace window and Enter TYPE=MyISAM on the Search String and Enter ENGINE=MyISAM and click the Replace ALL button)
Then Save.



i. Now Go back again to your browser and on the Import Window, Upload the edited Admin.sql and thats it youll be seeing the Message below



j. NOW, Repeat the steps 2.e.- 2.f. except that youll select different database and upload different SQL files.

Like this :
Open batch database, Import and Upload batch.sql (do the same editing trick if error occurs)
Open gunbound database, Import and Upload gunbound.sql (do the same editing trick if error occurs)
Open user database, Import and Upload user.sql (do the same editing trick if error occurs)

k. go to gunbound database, click the applicationsetting table from the sidebar and click the INSERT tab

Enter the following like in the image

Code:
BaseURL: 127.0.0.1


NoticeURL: 127.0.0.1/notice.txt


FullDownloadURL: 127.0.0.1/fetch.php


Ignore the ApplicationId and VersionLimit then click GO.




3. Creating the Web Registration for the Game

a. Extract the files inside or into the www path of the wamp. (c:\wamp\www)
below is the extracted files of the
Note:if you use the www_v2.rar, its no need to extract the files from (the www_v2.rar is more easier since the original creator of the code has errors but works for the registration of user)



b. go to your web browser and navigate
youll see the registration site, now register for a GB Account




Now youve successfully created an account.

4. Setting up Gunbound Server Files

a. Go to c:\GB_Serv
Note: We see that inside this folder, there is a folder named as Server
This folder is for modifying the IP Connection for the game, so as off now, we shouldn't touch this until error occurs.


b. open install-service.bat, this will install the Gunbound Server Services
if you see this window, youre close to finish this!



c. now open start-server.bat, this will start your gunbound serve
below you see a new application open, this is you server broker

in the server ip, if the ip is not 127.0.0.1 like the one below, change it to 127.0.0.1 the click set server ip button and then click restart server

you here can also change you channel's name

Dont close this or you cant be connect to your server



5. Installing Gunbound Client

a. Install the Gunbound Classic Client (the installer named Gunbound_Classic_315.exe)









b. Now go to start button of your desktop then click RUN and type regedit (shortcut is ctrl+r for Run)



the navigate this in Registry Editor:

Code:
HKEY_LOCAL_MACHINE\SOFTWARE\SoftNyx\GunBound

Then make some changes :

Code:
BuddyIP=127.0.0.1


IP=127.0.0.1


Url_Fetch=http://127.0.0.1/fetch.php


Url_ForgotPwd=(none)


Url_Notice=http://127.0.0.1/notice.txt


Url_Signup=http://127.0.0.1/gunbound



Now your registry should be like this:



Now Run your Gunbound.exe from your start menu>Silent Gaming>Gunbound Classic>Launch Gunbound.exe



Then this Patcher will show. Enter your registered username and password then click start game!



Now inside the game, you should see this. enter a server (in this, you see 4 server because i checked all the servers in the GBbroker). (image used from trik-kita)


Then you can buy avatars in the shop.

Youll see that youre money is big (you can only have high money if youre using www_v2.rar on the www of wamp)

(if youre using , Set your money in the database)

How to set money:

-goto http/localhost/phpmyadmin


-select gunbound database


-select "game" table


-click on the edit link on your desired account


-change the value of money of your desire and click go


-now select the cash table


-click edit on the account you want to change the cash


-change the value of cash and click go


How to play 1 player:


Create a room, then select jewel, 1:1
then type

Code:
[SIZE=5]/shrduatlwkr[/SIZE]

like this:



Then Click Start!

Now you see this that im already playing it alone! XD


As of now, im using this to edit some themes, add avatars and add effects on the shots. Enjoy! ^_^

UPDATED: SETTING UP WITH LAN CONNECTION

Requirements:

SQLYog
Gunbound Admin

1. Install SQLyog first, Just click next until you finished installing it but dont run it yet.
2. To Setup in LAN, We must create first a Virtual Host.

a. first go to C:\[your wamp installation folder]\bin\apache\Apache2.*.**\conf

* means any version

mine is C:\wamp\bin\apache\Apache2.2.11\conf

b. open httpd.conf to your text editor
and find

Code:
#Include conf/extra/httpd-vhosts.conf

then remove # sign so becomes this

Code:
Include conf/extra/httpd-vhosts.conf



then save.

c. while inside the conf folder, open extra folder



and open httpd-vhosts.conf

delete from <VirtualHost *** up to </VirtualHost>

then add this

Code:
<VirtualHost (your LAN IP)>
  	ServerName (your domain name)
	DocumentRoot C:/wamp/www
	ErrorLog "C:/wamp/www/gblogs/error.log" <-- this is optional, you can replace gblogs with any folder name
	CustomLog "C:/wamp/www/gblogs/access.log" common <-- this is optional, you can replace gblogs with any folder name
</VirtualHost>

like this

Code:
<VirtualHost 192.168.0.120:80>
  	ServerName gunbound.local
	DocumentRoot C:/wamp/www
	ErrorLog "C:/wamp/www/gblogs/error.log"
	CustomLog "C:/wamp/www/gblogs/access.log" common
</VirtualHost>

after that, if your wampserver is running, left click it on your taskbar and click restart all services, wait until it turn back to green (if your using the new version of wamp) or white (if your using the meter like icon)

Then go to your browser and type your LAN IP or the Server Name.
you should see your WAMP Homepage there using your LAN IP.



now you successfully created a virtual host.

3. Adding user for MYSQL

Since we created a virtualhost, using the LAN IP, we will not able to access and create mysql transactions. to do so,

a. Open SQLYog, click Continue (always) then you will got to Connect to mySQL Host

enter this on the field
Code:
Mysql host address: 127.0.0.1
username: root (its the default)
password: blank
Port: 3306
Database: blank

then click Connect

b.now go to Tools>UserManager>Add User

then like in this window,


Code:
Username: root
Host: your LAN IP
Password:blank
Retype Password: blank

Click Select All button and then click Create.

c. like in b. , create another user but instead of your LAN IP, use the server name you created on your virtual host.

And now your done, your server can now transact using your IP.

4. Setting Up Server Files for LAN Connection

now, we need to modify the server files.

first, go where your server files and Edit the Setting.txt files inside the BuddyCenter, BuddyServ, Center, Gunbound8360 - Gunbound 8363

Note: I forgot to mention that the GB_Serv.rar only have 2 Game Servers (Gunbound8360 and Gunbound 8361)
To add a Server (MAX of 4), copy one of Gunbound836* Folder and paste it where the same source copied, rename it to Gunbound8362 (its better to have closer port name. you just need to change the port of the new server)

BuddyCenter Setting.txt
Code:
[BuddyCenter]
Port=8353
Accept=your ip;127.0.0.1;192.168.0.0/16 (format is "your LAN IP;127.0.0.1;192.168.0.0./16")

BuddyDB_Host=your IP
BuddyDB_Port=3306
BuddyDB_DB=gunbound
BuddyDB_Pwd=
BuddyDB_User=root

Log=1

192.168.0.0./16 is need for you to connect other PC to your server. its and IP Range like 192.168.0.0 -192.168.255.255, search a CIDR to IP calculator to create an IP range, each ip is seperated by semi colon.

BuddyServ Setting.txt
Code:
[BuddyServ]
Port=8352
StarAccept=your ip;127.0.0.1;192.168.0.0/16
VersionFirst=0
VersionLast=999
CenterIp=your ip
CenterPort=8353

AuthTable_Password=Password
AuthTable_Id=Id
AuthTable=user

AccountTable_Nickname=NickName
AccountTable_Id=Id
AccountTable=user

UserTable_Grade=TotalGrade
UserTable_Guild=Guild
UserTable_Id=Id
UserTable=game

BuddyDB_Host=your ip
BuddyDB_User=root
BuddyDB_Pwd=
BuddyDB_DB=gunbound
BuddyDB_Port=3306

Log=1


Center's Setting.txt

Code:
[GunBoundCenter]
Port=8382
GunBoundDB_Host=your ip
GunBoundDB_User=root
GunBoundDB_Pwd=
GunBoundDB_DB=gunbound
GunBoundDB_Port=3306
UserDB_Host=your ip
UserDB_User=root
UserDB_Pwd=
UserDB_DB=gunbound
UserDB_Port=3306
Accept=your ip;127.0.0.1;192.168.0.0/16
SetServiceStatus=1

AdminGiftMale16=22
AdminGiftFemale16=23
AdminGiftGrade=18

AdminGiftSender=Admin
AdminGiftMsg=New Player Gift

Gunbound836* Setting.txt

Code:
[GunBoundServ]
Accept=your ip;127.0.0.1;192.168.0.0/16
Port=836*
AdminDB_Host=your ip
AdminDB_User=root
AdminDB_Pwd=
AdminDB_DB=gunbound
AdminDB_Port=3306
BillDB_Host=your ip
BillDB_User=root
BillDB_Pwd=
BillDB_DB=gunbound
BillDB_Port=3306
CenterIp=your ip
CenterPort=8382
VersionFirst=0
VersionLast=999
Log=1

SetServiceStatus=1
RecommendedMan=1
GradeLimitFirst=-4
GradeLimitLast=20
GuildMarkLimit=0
FuncRestrict=1048575
NoRoomCreate=0
EventActProp0=70
EventActProp1=0
EventActProp2=0
EventActProp3=0
EventWriteToLog0=1
EventWriteToLog1=1
EventWriteToLog2=1
EventWriteToLog3=1

PassableAuthority=0

RoomCloseWarnMsg=warn
RoomCloseMsg=close

asterisk on the gameserver means the server number like 8360 folder for port 8360
up to 8363 due to the GBXB1.9 holds only 4 servers.

now you setup your setting files, restart your server (if running).


5. Setting Up Firewall Setting.

Even your Firewall is turned Off, it seems that it still blocks the Ports of the Gunbound Servers. Now we need to exclude the ports of the servers.

Window 7
a. go to Control Panel> System and Security > Windows Firewall
b. Click on Advanced Settings

Close and Open your gunboundadmin.exe, this will test your server if you can connect it using a client without using a gameclient.

c. Click New Rule.. on the right side bar


d. Select Port> select TCP and on Specific local ports, type 8372 (for the broker), allow the connection, check all (Domain, Private , Public) and name the Rule ex. GBBroker

e. Repeat for Servers by entering the Specific local ports to 836* where * is your server number (8360-8363), Also for BuddyServer and BuddyCenter (8352 and 8353)

Note: Also add another for each server ports (836*), except that instead of you select TCP, select UDP.



Windows XP

a. Navigate to Start -> Settings -> Control Panel -> Windows Firewall
b. Select the exceptions tab and click add port.
c. like in this pic, name your exception rule and enter the port of your servers (for TCP: 836*,8372,8352, and 8353 and for UDP: 836*) where * is the number of server (8360-8363)
and click OK for every rule.
d. Click Ok.

and youre done opening ports to your network.


6. Testing Server Connection to Other Computers
now open gunboundadmin.exe to your other pc.

Go to options. then in Game Server Field:

type this
Code:
your ip:8360
your ip:8361

and in Broker Field
Code:
your ip:8372

then click OK.

you will see the ip and the ports you entered on the option.

now, click on connect and enter your username and password of your game account,
The Status on each server should be Logined. If its Fault, Check your server files on the server and reconfigure.

Once it is Logined, proceed to next step.

7. Installing Client and configure Registry.

Install the Client on the Other Computers you want to connect to your server.
After Installing, GO to Run (windows button + R) > type regedit.

navigate on the Registry editor HKEY_LOCAL_MACHINE >SOFTWARE>Softnyx>Gunbound
and edit this as it follow on the picture

1. BuddyIP = Your IP
2. IP = Your IP
3. Url_Fetch = where your fetch.php located (since you put it in your www folder on wamp, the link is ip/fetch.php, test it in your browser and it should show echo '='; on your browser)
4. Url_Notice= like in fetch.php, this is for your announcements.
5. Url_Signup= for easy registration, put your registration link here

6. after editing, open your Gunbound.exe and enter your username and password. Connect and you should be able to connect on any server, if you cant connect, reconfigure firewall,server,etc (or maybe you dont have a LAN connection XD).



For those Experiencing:
"OpenSCManager Failed: Access Denied"

Make sure to "Run it as Administrator".


Enjoy Playing with your friends. XD
And ill add in my blog for the Lan Connection and GBWC Setup
 
Last edited:
Junior Spellweaver
Joined
Jun 30, 2011
Messages
130
Reaction score
8
Re: [Tutorial} Setting Up Gunbound Classic/Thor's Hammer Offline (With Pictures)

sir when i run the start-server.bat there an error

here the image...

musashi076 - [Tutorial] Setting Up Gunbound Classic/Thor's Hammer Offline/LAN (With Pictures) - RaGEZONE Forums


oh sorry its ok now.. i download the MSWINSCK.OCX

sorry :):

Finnaly i created a gunbound server yeah...

Thanks to you.... Musashi...:):
 
Last edited:
Joined
Mar 23, 2011
Messages
2
Reaction score
0
Re: [Tutorial} Setting Up Gunbound Classic/Thor's Hammer Offline (With Pictures)

Thank you.It very easy as.I am only the lost 20 minutes is installed successfully: D.Thank you again: X
 
Junior Spellweaver
Joined
Jun 30, 2011
Messages
130
Reaction score
8
Re: [Tutorial} Setting Up Gunbound Classic/Thor's Hammer Offline (With Pictures)

Thank you.It very easy as.I am only the lost 20 minutes is installed successfully: D.Thank you again: X


your right this is the best and easiest guide in gunbound section..
 
Junior Spellweaver
Joined
Mar 5, 2008
Messages
171
Reaction score
2
Re: [Tutorial} Setting Up Gunbound Classic/Thor's Hammer Offline (With Pictures)

Nice Sharing ^_^ god bless
 
Junior Spellweaver
Joined
Apr 11, 2009
Messages
156
Reaction score
5
Re: [Tutorial} Setting Up Gunbound Classic/Thor's Hammer Offline (With Pictures)

Aw!! Trojan Horse Detected GBXB1.9.exe.... can u upload again this file?
 
Junior Spellweaver
Joined
Oct 9, 2009
Messages
187
Reaction score
29
Re: [Tutorial} Setting Up Gunbound Classic/Thor's Hammer Offline (With Pictures)

sir when i run the start-server.bat there an error

here the image...

musashi076 - [Tutorial] Setting Up Gunbound Classic/Thor's Hammer Offline/LAN (With Pictures) - RaGEZONE Forums


oh sorry its ok now.. i download the MSWINSCK.OCX

sorry :):

Finnaly i created a gunbound server yeah...

Thanks to you.... Musashi...:):

its because of the GBXB1.9 is made of VB6. i forgot to include that sorry.



Aw!! Trojan Horse Detected GBXB1.9.exe.... can u upload again this file?

redownload the server files. i cant find some alternative for that. without the GBXB1.9, it wont work.

try this but i dont know how it work

http://forum.ragezone.com/f494/release-th-gbpirate-broker-v0-817325/
 
Junior Spellweaver
Joined
Jun 30, 2011
Messages
130
Reaction score
8
Re: [Tutorial] Setting Up Gunbound Classic/Thor's Hammer Offline (With Pictures)

sir where is the NyxLauncherEnc in client???

i will try to change the ip 127.0.0.1 to my ip..

to join other player..
 
Junior Spellweaver
Joined
Oct 9, 2009
Messages
187
Reaction score
29
Re: [Tutorial] Setting Up Gunbound Classic/Thor's Hammer Offline (With Pictures)

sir where is the NyxLauncherEnc in client???

i will try to change the ip 127.0.0.1 to my ip..

to join other player..

NyxLauncherEnc is just for GBWC.

youll just change the registry ip.

also open your firewall and create a virtual host to your wamp.

maybe next time ill add a tutorial for LAN.
 
Junior Spellweaver
Joined
Jun 30, 2011
Messages
130
Reaction score
8
Re: [Tutorial] Setting Up Gunbound Classic/Thor's Hammer Offline (With Pictures)

NyxLauncherEnc is just for GBWC.

youll just change the registry ip.

also open your firewall and create a virtual host to your wamp.

maybe next time ill add a tutorial for LAN.

sir how about in wan...

to be in online server...

please make a guide thanks :thumbup1:

sir can you teach me how to make a installer with that registry??

or like that installer with installshield wizard with my config ip..
 
Junior Spellweaver
Joined
Oct 9, 2009
Messages
187
Reaction score
29
Re: [Tutorial] Setting Up Gunbound Classic/Thor's Hammer Offline (With Pictures)

sir how about in wan...

to be in online server...

please make a guide thanks :thumbup1:

sir can you teach me how to make a installer with that registry??

or like that installer with installshield wizard with my config ip..

in WAN, you need to configure your router to port forwarding. like in creating websites. ask google about it.

in creating installer, i used inno setup to repack my installer since i have my installer modded with my own graphics.
 
Junior Spellweaver
Joined
Jun 30, 2011
Messages
130
Reaction score
8
Re: [Tutorial] Setting Up Gunbound Classic/Thor's Hammer Offline (With Pictures)

in WAN, you need to configure your router to port forwarding. like in creating websites. ask google about it.

in creating installer, i used inno setup to repack my installer since i have my installer modded with my own graphics.


sir.. when i join server 1 other player can't see each other
but in server 2 it is good..
 
Junior Spellweaver
Joined
Oct 23, 2008
Messages
102
Reaction score
2
any ideas why im getting this kind of error?


by , on Flickr

im trying to run the install-service.bat

-----------
solved. just had to allow allow command prompt as Administrator by going to start menu accessories then properties of command promt then restart LOL..

----------------------

new problem.. it keeps on waiting...

by , on Flickr

i tried entering the wrong password it still logs me in the game... hmmmm
 
Last edited:
Junior Spellweaver
Joined
Oct 23, 2008
Messages
102
Reaction score
2
disabled my firewall temporarily and still getting the please wait... any other suggestion sir?
 
Junior Spellweaver
Joined
Oct 23, 2008
Messages
102
Reaction score
2
problem solved :D

i was using the latest wamp thats why.. hmmm

hope somebody will release connection via hamachi or portforwarding it. so that others can play
 
Junior Spellweaver
Joined
Oct 9, 2009
Messages
187
Reaction score
29
any ideas why im getting this kind of error?


by , on Flickr

im trying to run the install-service.bat

-----------
solved. just had to allow allow command prompt as Administrator by going to start menu accessories then properties of command promt then restart LOL..

----------------------

new problem.. it keeps on waiting...

by , on Flickr

i tried entering the wrong password it still logs me in the game... hmmmm


you should check your log files in your server files, if your log=1 in your setting.txt

also, what version of wamp did you use, if you use latest version, this will not accept no password in the mysql server.
 
Back
Top