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!

Full TuT - server+registration page+client

Newbie Spellweaver
Joined
Feb 18, 2010
Messages
10
Reaction score
1
Welcome to my first TuT, it will be really long reading so here are some cons first so you don't continue reading if you don't like it:
  • Server Files in German, but I am working on translation
  • Has to run on FreeBSD 7.2
  • ^If I think of more I add more
There are two ways to run this:
  1. VPS/Dedicated server, that's what I have, 1GB RAM is enough for few people, but might be laggy
  2. On your PC with Virtual PC and Hamachi- it is an alternative I don't like so I won't be talking about it here. but if you are familiar with hamachi etc you can set it yourself :)
What's Required:
  1. At least basic knowledge of computers
  2. Time and Patience

Please note that after every line you press enter :hehe:
here it is:
First download and install FreeBSD 7.2 32-bit from here
Code:
ftp://ftp-archive.freebsd.org/pub/FreeBSD-Archive/old-releases/i386/ISO-IMAGES/7.2/
If you choose DVD version then during install you can select from DVD, if you select from FTP you have to point it to this address:
Code:
ftp://ftp-archive.freebsd.org/pub/FreeBSD-Archive/old-releases/i386/7.2-RELEASE/
because it is in archive, it wouldn't download from their main site.
More info on how to install FreeBSD here:

When it asks you if you want to install the port package, select yes.
If you still have any questions just ask in the comments I will help you.

After we finished installing here comes the harder part.
just type in the console of your freebsd exactly as I do:
Code:
cd /usr
Code:
fetch onlineg.org/game.7z
< This will take some time, continue after it downloads the files.
Code:
cd /usr/ports/archivers/p7zip/ && make install clean 
or if that doesn't work the do  pkg_add -r p7zip
Code:
rehash
Code:
cd /usr
Code:
p7zip -d game.7z
Code:
tar xvfz rain.tar.gz
Code:
cd /usr/usr
Code:
mv rain /usr/game

For now, we leave the server files.

Now the database:
Code:
cd /usr/ports/databases/mysql51-server/
Code:
make install WITH_XCHARSET=all  clean
< takes some time, after it is done you can continue.
Code:
 chown -R mysql /var/db/mysql/
Code:
 chgrp -R mysql /var/db/mysql/
Code:
/usr/local/bin/mysqld_safe –user=mysql &
Code:
/usr/local/bin/mysqladmin -u root password PASSYOUWANTTOUSE
Code:
 ee /etc/rc.conf
At the end of this file add
Code:
 mysql_enable="YES"
Then press ESC-> Leave Editor -> save changes
Code:
chmod -R 777 /var/db/mysql

We need to restart now
Code:
shutdown -r now
after it is all up just login and we can continue.
Code:
 mysql -p
It asks for Password, just put there the password you entered few steps ago (PASSYOUWANTTOUSE)
Code:
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%'
Code:
IDENTIFIED BY 'here put the same pass as before' WITH GRANT OPTION; [ENTER]
Code:
quit
<this logs you off mysql

If you know how to set up FTP on FreeBSD you can skip this:
This is the easiest way to setup FTP on Freebsd, eve though it isn't that secure:
ee /etc/rc.conf
add these two lines:
Code:
ftpd_enable="YES"
inetd_enable="YES"
ESC -> Leave editor -> Save changes
Code:
ee /etc/ftpusers
Just delete root from this and save it.
Code:
/etc/rc.d/ftpd start
now try it:
Code:
ftp localhost
user: root
password: your pass for root

Now connect with your favourite FTP client to your VPS as user root with your pass for root.
Now download these onto your computer:
Code:
http://rapidshare.com/files/455917494/libs.rar
Code:
http://rapidshare.com/files/455917727/mysql.rar
extract both on your somewhere on you computer (preferably desktop)
from the libs.rar you will have five files, upload them with FTP to
Code:
/usr/lib/
folder.
from mysql.rar you should have fun folder called mysql.
Upload it to:
Code:
/var/db/
so it should merge with the mysql folder already there.Rewrite any files if asked to.
We are past half now :yeye:
Code:
 chmod -R 777 /var/db/mysql/
[size=large]Back To server files![/size]
Code:
cd /usr
Code:
chmod -R 777 game
Code:
cd game/share_data
Code:
chmod -R 777 game
Code:
 chmod 777 /usr/lib/
Code:
mysql -p
again, put in your pass.
Code:
GRANT ALL PRIVILEGES ON *.* TO 'mt2'@'localhost'
Code:
IDENTIFIED BY 'mt2!@#' WITH GRANT OPTION;
please make sure you type the 'mt2!@#' right, otherwise it won't work!
Code:
quit

How To let others make account:
First install and configure Apache:
Code:
cd /usr/ports/www/apache22
make install
ee  /etc/rc.conf
add line
Code:
apache22_enable="YES"
exit, save
Code:
kldload accf_http
ee /boot/loader.conf
add line
Code:
accf_http_load="YES"
exit,save
Code:
apachectl start
Now in your browser go to your server and you should see something like it works!
if you do, it's all good
Now installing PHP5:
Code:
cd /usr/ports/lang/php5
make config
During make config, please make sure that you tick Apache module.
Code:
make install
now do as follows, it is copied from freebsdmadeeasy.com:
Next find your DirectoryIndex section in your httpd.conf file. Apache is set up for PHP 4, but not PHP 5 currently so you will need to modify it and change the 4s to 5s like this.

Code:
<IfModule mod_dir.c>
    <IfModule mod_php3.c>
  <IfModule mod_php5.c>
    DirectoryIndex index.php index.php3 index.html
  </IfModule>
  <IfModule !mod_php4.c>
    DirectoryIndex index.php3 index.html
  </IfModule>
    </IfModule>
    <IfModule !mod_php3.c>
  <IfModule mod_php5.c>
    DirectoryIndex index.php index.html index.htm
  </IfModule>
  <IfModule !mod_php4.c>
    DirectoryIndex index.html
  </IfModule>
    </IfModule>
</IfModule>
This code is telling Apache to open index.php first you have the PHP 5 module loaded. You can change the order as you wish. Or if you just wanted to skip it you could simply add the following line to the httpd.conf file since you know you are going to have php 5.

Code:
DirectoryIndex index.php index.html index.htm
Now apache just needs to know what it should parse the PHP files with. These two lines should be added to the httpd.conf file, and can be put at the bottom if needed.

Code:
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
If want to use PHP code inside of .htm files you can just add on those extensions.

Code:
AddType application/x-httpd-php .php .htm .html
Code:
apachectl restart
All should start without errors.

Now download
Code:
http://rapidshare.com/files/455922275/site.rar
in folder server edit dbsettings.php to match your settings.
Upload all the files to
Code:
/usr/local/www/apache22/data
and there ya go!

How to play:
FINALY!
Everyone you want to play just get them to download
Code:
http://www.megaupload.com/?d=D9SBW8HE
Then Open ClientManager.exe end click English. Close it.
Delete Files mc.txt and Multistarter.exe
Open serverinfo.py
change all 0.0.0.0 to your servers IP.
save
run mc.exe
???
PROFIT!
Please tell me if you like it.
If you do, I will add some weapons, How to for Game Masters, english names of the Shop guys, english quests after they are done and big5_string 80% English. Because if you don't like it, there would be no point for me to write more.

If you need help with anything, comment here please.
Thank you :)

P.S. you run the server with:
Code:
cd /usr/game
./start.sh

and stop the server with:
Code:
./close.sh
 
Last edited:
  • Like
Reactions: 404
Newbie Spellweaver
Joined
Jun 30, 2011
Messages
37
Reaction score
2
The link to game.7z is broken.. anyone have the file available on an alternate link?
 
Back
Top