caubehattieu
Member
This guide was made because i has many problams while using the old Guide..
This Guide will show you the way to make the server Online and work currectly !
(G) = Google it
[$P] = Player Name
X:/ = Your hard disk (example C:/, F:/, D:/, H:/)
db = Database
Step 1 :
Download NP+ Ruby Server, NP+ 2.0 Client, DzSoft PHP Editor, Wamp Server(G), STMP Server (G) and Ruby(G).
Unzip and Install all the programs. While Installing Wamp server you will need to choose dit root.
Well the default will be www, well inside www creat new folder called npp and choose this for your dir root. after this stage Wamp Installation will ask you some thing and the default will be localhost, well keep the default!!
Step 2 :
Open STMP Server and Run it, Open Wamp Server and make both of the Services online.
Now Open NP+ Ruby Server Folder and Open Settings.ini, Change the settings like this (down).
Host = 'Your IP' (find it in whatismyip.com)
Port = 50000 (Game Port)
ServerName = 'Give the server name'
ServerVersion = '2.0'
GameCode = 'Choose Game Code'
DB_server = 'localhost'
DB_user = 'root'
DB_password = ''
DB_name = 'netplay'
WebServer = 'Your.IP/npp'
SMTPServer = 'localhost'
AdminEmail = 'Your@Email'
Message = "Welcome to the Ruby Server!"
HourPlus = 0
MinutePlus = 0 <= How much time to add for global timing?
SecondPlus = 0
Welcome_Message = 'Welcome to Netplay Plus [$p]! Enjoy your stay.' <= Change to what ever
Leave_Message = 'User [$p] has left the game!' <= Same Here
Now Go to : NP+ Ruby Server/Library/Server/Config.ini and change to this : (same as Settings.ini)
Host = 'Your.IP
Port = 50000 (Game Port)
ServerName = 'Server Name'
ServerVersion = '2.0'
GameCode = 'Game Code'
DB_server = 'localhost'
DB_user = 'root'
DB_password = ''
DB_name = 'netplay'
Local = true (False = Online \\ True = Offline)
WebServer = 'Your.IP/npp'
SMTPServer = 'localhost'
AdminEmail = 'Your@Email'
HourPlus = 0
MinutePlus = 0 => Time to add for Global timing
SecondPlus = 0
Step 3 :
Now go to this folder : NP+ Ruby Server/Library/Server/www/.
Copy all those files and paste them here : X:/wamp/www/npp/ (your dir root) and guess what? now you have the default Netplay registration site on your computer! now lets change the default settings!
Open DzSoft PHP Editor and open this file : X:/wamp/www/npp/Connections/Netplay.php and change the default varibles to those :
$hostname_Netplay = "localhost";
$database_Netplay = "netplay";
$username_Netplay = "root";
$password_Netplay = "";
and now we will need to change Index.php too, well open it with Dzsoft PHP Editor and change those lines to what ever you want :
Line 48 : Your@Email
Line 69 : The Site Title
Line 75 : The site Text
and one more page called success :
Change the text inside to what ever you want, when peuples huh play will creat an account they will get the message you typing!
Step 4 :
This is the most easy step ! by using phpmyadmin we will set the game db, Open the Internet Browser and enter this site (your site) : http://Your.IP/phpmyadmin/ (or http://127.0.0.1/phpmyadmin/)
now creat new database and call it Netplay, dont password protect it and dont try to mess up with the passwords! the game wont work.. now Import this file : NP+ Ruby Server/Library/sqlfile.txt, then Choose Export, scroll down and choose Go, dont messup with the options!.
now open Internet Explorer again and enter this site : http://Your.IP/npp/ (or http://127.0.0.1/npp/)
and the registration screen wil show up, register to your game and congratulations you have a new account in the server!
Step 5 :
Enter to the client with RMXP open up the Script Editor and choose Settings, Change the Server Name and IP to what ever you want and change the Game Code to the Game Code you enterd in Config.ini and in Settings.ini, lunch the server and when you need to choose (y\n) click y and if its typing an error than you set up the server worng if not start the game and play!
Credits : only me!
Edit : Step 6 :
Set Up Stable Adress for your Server!
Go to : http://www.no-ip.com/ Creat Account and then Click Add and enter this info :
Host Name : Host name
Host Type : The first one
IP Adress : Your IP Adress
exept this info dont change anything else and click on the "Creat Host" Bottun, and now you have a Dynamic IP.. change any place where you type your ip to this Dynamic ip.
I take your advice , On Step 4 . when I Open the Internet Browser and enter this site (my site) : http://my.IP/phpmyadmin/ (or http://127.0.0.1/phpmyadmin/). I creat new database and call it Netplay, dont password protect it and dont try to mess up with the passwords! the game wont work.. now Import this file : NP+ Ruby Server/Library/sqlfile.txt, then Choose Export, scroll down and choose Go, dont messup with the options!.
now open Internet Explorer again and enter this site : http://Your.IP/npp/ (or http://127.0.0.1/npp/)
http://i55.photobucket.com/albums/g122/ ... amviec.jpg[/img]
But...........the registration screen not show up.It show "No data selects" . I dont Understant why it dont work . Help me on step 4 . Thanks you very much