-
Re: Server + Client @ 1.4.2 & Guide
This guide was originally made by Ronny1982, due to a time error on Ragezone it moved here
Quote:
Originally Posted by
Ronny1982
Currently i'm working on a server + client release and the corresponding guide...
In this thread i wanna create a workspace for developement and testing, i'll update the guide and files constantly until they are in a stable state and then i'll release them in an extra thread...
Requirements
- A computer with non-changing ip address
- Internet connection for this computer
- Basic linux skills
1. Install Debian 5.x
You can skip this if Debian is already installed (i.e. vServer)
Internet access is required
- Download Debian 5.x netinstall and burn image to CD
- Boot your PC from CD
- Most of the installation process should be self explaining
- As file system i've selected ext2, if you plan to handle a large amount of small files you should choose a journaling file system i.e. ReiserFS
- When the installer ask for package selection deselect all packages, we will install everything on our own
- After installation is complete, remove CD and reboot
- Login as root with the root password that you had set during installation
- First we update the source list
COMMAND~: apt-get update - Now we install the first package, the SSH server that will allow you remote access
COMMAND~: apt-get install openssh-server - The server files used in this guide are bzip2 compressed, bzip2 is required to decompress the files
COMMAND~: apt-get install bzip2
2. Install Kernel
The generic kernel when installing Debian uses ~150 MB RAM, so we going to install a server kernel with a memory footprint of ~40 MB.
If you have enough RAM you can skip this.
SKIP THIS IF YOUR MACHINE IS A VSERVER !!!
- Figure out which kernel you use i.e. linux-image-2.6.26-2-686
COMMAND~: uname -r - Now view a list of available kernel images
COMMAND~: apt-get install linux-image - Select one of the vserver kernels that fits with your system (amd64, 686,...)
If you have a 32 Bit system you should install an image with PAE extension to use more than 4GB RAM i.e. linux-image-2.6.26-2-vserver-686-bigmem
COMMAND~: apt-get install linux-image-2.6.26-2-vserver-686-bigmem - At least you can remove the current kernel if you want to...
During uninstallation you'll be ask if you really wanna remove the kernel that is currently in use, select no to continue uninstallation
COMMAND~: apt-get autoremove linux-image-2.6.26-2-686
3. Install PW-Server Files
- Change to the root directory
COMMAND~: cd / - Download the server files (host address may change in future)
COMMAND~: wget http://dl.dropbox.com/u/13040933/PWServer.tar.bz2 - Extract the files
COMMAND~: tar -xf PWServer.tar.bz2 - Now delete the downloaded archive (or keep it if you want)
COMMAND~: rm -f PWServer.tar.bz2 - Set permissions of the pw-server files to 0755
COMMAND~: chmod -R 0755 /PWServer - Next we have to change all host ip addresses in the pw-server configuration files
- First we check for the current host ip in the server files, in our example lets say 192.168.0.50
COMMAND~: cat /PWServer/glinkd/gamesys.conf | grep address - Now lets check which host ip your machine has, in our example 81.30.158.174
COMMAND~: ifconfig | grep "inet addr" - Allright, time to replace all old host ip's with the ip of your machine.
Replace the OLD-IP in the following commands with the ip from the server files (i.e. 192.168.0.50)
Replace the NEW-IP in the following commands with the ip of your host machine (i.e. 81.30.158.174)
COMMAND~: sed s/OLD-IP/NEW-IP/g /PWServer/glinkd/gamesys.conf > /PWServer/glinkd/gamesys.conf.new
COMMAND~: mv -f /PWServer/glinkd/gamesys.conf.new /PWServer/glinkd/gamesys.conf
4. Install Libraries
- Java Runtime Environment is required for the PW Java API (used by authd and pwAdmin)
COMMAND~: apt-get install openjdk-6-jre - For 64 Bit Debian
Install ia32 libs and copy some required libraries not contained in ia32
COMMAND~: apt-get install ia32-libs
COMMAND~: cp -f /PWServer/.setup/lib/libstdc++.so.5.0.7 /lib32/libstdc++.so.5
COMMAND~: cp -f /PWServer/.setup/lib/libpcre.so.3.12.1 /lib32/libpcre.so.0
COMMAND~: cp -f /PWServer/.setup/lib/libtask.so /lib32/libtask.so - For 32 Bit Debian
Copy some required libraries
COMMAND~: cp -f /PWServer/.setup/lib/libstdc++.so.5.0.7 /usr/lib/libstdc++.so.5
COMMAND~: cp -f /PWServer/.setup/lib/libpcre.so.3.12.1 /usr/lib/libpcre.so.0
COMMAND~: cp -f /PWServer/.setup/lib/libtask.so /usr/lib/libtask.so
5. Install MySQL
- First install MySQL, during installation you'll be asked for a root password, remeber it!
COMMAND~: apt-get install mysql-server - After installation you can import the base table scheme.
Replace the PASSWORD in the following command with your mysql password
COMMAND~: mysql -uroot -pPASSWORD -h localhost < /PWServer/.setup/pwdb.sql - We have to replace the default mysql password in the pw-server files with your mysql password.
Replace the PASSWORD in the following commands with your mysql password
COMMAND~: sed s/password=\"root\"/password=\"PASSWORD\"/g /PWServer/authd/table.xml > /PWServer/authd/table.xml.new
COMMAND~: mv -f /PWServer/authd/table.xml.new /PWServer/authd/table.xml
6. Configure PW Web Administration (Jetty + pwAdmin)
For detailed information about pwAdmin read the online documentation
- The following will change the default mysql password to give pwAdmin access to your mysql database
Replace the PASSWORD in the following commands with your mysql
COMMAND~: sed s/db_password\ =\ \"root\"/db_password\ =\ \"PASSWORD\"/g /PWServer/jetty-7.2.0/webapps/pwAdmin/WEB-INF/.pwadminconf.jsp > /PWServer/jetty-7.2.0/webapps/pwAdmin/WEB-INF/.pwadminconf.jsp.new
COMMAND~: mv -f /PWServer/jetty-7.2.0/webapps/pwAdmin/WEB-INF/.pwadminconf.jsp.new /PWServer/jetty-7.2.0/webapps/pwAdmin/WEB-INF/.pwadminconf.jsp
7. Autostart Jetty Web Application Server
The document root of jetty is located in /PWServer/jetty-7.2.0/webapps/ROOT
For more infromation on the jetty web application server read the online documentation
- Jetty uses a PHP servlet, so we need to install php-cgi
COMMAND~: apt-get install php5-cgi php5-mysql - It's really useful to start the webserver with system boot, we install an init script and register it to the startup runlevels
COMMAND~: cp /PWServer/.setup/jetty /etc/init.d/jetty
COMMAND~: update-rc.d jetty defaults
8. Autostart Basic Firewall
- This will install a basic firewall which has incoming ports open on 22(SSH), 8080(HTTP-ALT) and 29000(Perfect World)
COMMAND~: cp /PWServer/.setup/firewall /etc/init.d/firewall
COMMAND~: update-rc.d firewall defaults
9. Finalize
- You have reached the end of the server guide, it's time to restart your machine
COMMAND~: reboot - You can now open a Web Browser on a remote PC and loading the start page of the server that should show a phpinfo() page if everything is correct
Replace the SERVER-IP in the following command with your server ip
http://SERVER-IP:8080 - At the top of the page is a link to pwAdmin and adminer. pwAdmin is the pw-server web administration interface, adminer is a php based mysql administration interface.
Click pwAdmin - The default password for pwAdmin is "root", but pwAdmin demands to enter a new password, so on the first login enter the password you wanna use (hint: the password will be stored md5 encoded in "WEB-INF/.pwadminconf.jsp" just in case you wanna change it somtime)
- On the account tab you can create a new account
- On the server control tab you can start the server
- Use a client patched with pwd.codeplex.com... guide for client will coming later
- have fun...
Will be updated recently...
Thank Ronny1982 in his post below by clicking the like button as he is the one that truly deserves it. If you don't know why I just said that read the big giant red text at the top of this post!
My original post before it went awol
-
Re: Server + Client @ 1.4.2 & Guide
Thanks alot man for everything. I mean everything......
-
Re: Server + Client @ 1.4.2 & Guide
nothing special on the server files itself...
the focus is on the guide that hopefully will new users give a smooth installation so that the server will run after the setup without any problems...
anyone knows a free file hosting service with direct links so that wget will work downloading the server files directly (filedropper requires a captcha verifiction)?
-
Re: Server + Client @ 1.4.2 & Guide
Quote:
Originally Posted by
ronny1982
nothing special on the server files itself...
the focus is on the guide that hopefully will new users give a smooth installation so that the server will run after the setup without any problems...
anyone knows a free file hosting service with direct links so that wget will work downloading the server files directly (filedropper requires a captcha verifiction)?
I use Dropbox pretty often for most of my stuff, its free and fast and allows direct links and only service I can think of that will let you "host" something that large (with a basic storage limit of 2 gb but you can get more easily for free, like with the referral link I posted, you'll get an extra 256mb of space just for using it, same goes for every other person you refer)
Maybe Live Mesh possibly but I haven't used that to extensively
And google code only allows 100 mb files and I believe the same goes for codeplex
And I was looking through a few of the scripts in your setup folder you have in there, wipe.sh doesn't need to invoke the mysql process that many times, would be slightly faster and look a little cleaner if it was an all in one go type of thing
-
Re: Server + Client @ 1.4.2 & Guide
i found problem so far i got everything setup i can login with the client but when i create a charector and try to start the game it gives me and error error retrieving charector information for this account then disconnects me and says could not login to server new created charector says its level 0
-
Re: Server + Client @ 1.4.2 & Guide
Quote:
Originally Posted by
VisionNET
i found problem so far i got everything setup i can login with the client but when i create a charector and try to start the game it gives me and error error retrieving charector information for this account then disconnects me and says could not login to server new created charector says its level 0
That sounds like gamedbd crashed on you
-
Re: Server + Client @ 1.4.2 & Guide
it says its up in pwAdmin hrmm maybe ill try to manualy run it and see if it gives an error
---------- Post added at 06:25 PM ---------- Previous post was at 06:21 PM ----------
nope no error
---------- Post added at 06:43 PM ---------- Previous post was at 06:25 PM ----------
ok i found out what was wrong in the Archer Female template in pwadmin the world id was 0 and not 1
-
Re: Server + Client @ 1.4.2 & Guide
Just finished debian install to your exact guide (although I normally wouldn't set it up like that this is something you want to debug not me)
just like VisionNET said, the character templates are fubar, but other then that its a flawless install and works rather wonderfully
-
Re: Server + Client @ 1.4.2 & Guide
where did Vixio_DV say anything i dont see a post from them
-
Re: Server + Client @ 1.4.2 & Guide
Quote:
Originally Posted by
VisionNET
where did Vixio_DV say anything i dont see a post from them
Post edited because I, like an idiot, didn't read your name right, I apologize :tsk:
-
Re: Server + Client @ 1.4.2 & Guide
Quote:
Originally Posted by
das7002
Post edited because I, like an idiot, didn't read your name right, I apologize :tsk:
No problem lol
-
Re: Server + Client @ 1.4.2 & Guide
please dont use this guide if you not giving thanks to ronny. :$: nice guide ronny :rolleyes:
-
Re: Server + Client @ 1.4.2 & Guide
Quote:
Originally Posted by
vixio_dv
please dont use this guide if you not giving thanks to ronny. :$: nice guide ronny :rolleyes:
Well its more of in a debugging phase right now, and like Ive pointed out earlier broken character templates in the server files aren't exactly fun :lol:
-
Re: Server + Client @ 1.4.2 & Guide
Quote:
Originally Posted by
das7002
Well its more of in a debugging phase right now, and like Ive pointed out earlier broken character templates in the server files aren't exactly fun :lol:
ah ok. i not try it :?: because i already get work on my ubuntu, it's not strange guide, and i'm sure it's will work, maybe something wrong on server files :O:
-
Re: Server + Client @ 1.4.2 & Guide
Quote:
Originally Posted by
vixio_dv
ah ok. i not try it :?: because i already get work on my ubuntu, it's not strange guide, and i'm sure it's will work, maybe something wrong on server files :O:
I mean other then the fact you have to go in and fix the templates manually currently yeah... its fine I guess thats the only issue I've found so far, Ill be testing out the instances later on
Edit: I figured I might as well include the fixed templates so other people can benefit from them
cls0gender0 (wr male)
cls0gender1(wr fem)
cls1gender(mg male)
cls1gender1 (mg fem)
cls3gender1 (wf)
cls4gender0 (wb)
cls6gender0 (ea male)
cls6gender1(ea fem)
cls7gender0(ep male)
cls7gender1(ep fem)
I hope that helps :thumbup:
-
Re: Server + Client @ 1.4.2 & Guide
The culprit to this character template deletion i guess
would be the /.setup/wipe.sh. I've used the script and got
the same error.
-
Re: Server + Client @ 1.4.2 & Guide
Quote:
Originally Posted by
mEE2
The culprit to this character template deletion i guess
would be the /.setup/wipe.sh. I've used the script and got
the same error.
i doubt it its onlu for deleting accounts and made characters not templates i used it once with no errors and it dont touch the templates as i have seen
---------- Post added at 07:07 AM ---------- Previous post was at 07:00 AM ----------
there is 1 other problem the newly created characters dont show up in the characters under the players list
-
Re: Server + Client @ 1.4.2 & Guide
hey do i need a linux O.S ?? or can i get it work with Windows 7??:ehh:
-
Re: Server + Client @ 1.4.2 & Guide
Quote:
Originally Posted by
atonoxd
hey do i need a linux O.S ?? or can i get it work with Windows 7??:ehh:
Did you read the guide at all?
Which even though it mostly works, there are still a few bugs in it
-
Re: Server + Client @ 1.4.2 & Guide
Quote:
Originally Posted by
VisionNET
i doubt it its onlu for deleting accounts and made characters not templates i used it once with no errors and it dont touch the templates as i have seen
---------- Post added at 07:07 AM ---------- Previous post was at 07:00 AM ----------
there is 1 other problem the newly created characters dont show up in the characters under the players list
pwAdmin 1.6 don't read character list directly from GameDB, characters will now be read from MySQL table: "roles"... to import roles from GameDB to MySQL use the new pwAdmin plugin MySQL Role Import
@ all
thanks for information, i'll take a look why templates are not rebuild correctly after a gameDB wipe...
-
Re: Server + Client @ 1.4.2 & Guide
Quote:
Originally Posted by
ronny1982
pwAdmin 1.6 don't read character list directly from GameDB, characters will now be read from MySQL table: "roles"... to import roles from GameDB to MySQL use the new pwAdmin plugin MySQL Role Import
@ all
thanks for information, i'll take a look why templates are not rebuild correctly after a gameDB wipe...
I didn't use a gamedbd wipe at all, just from your base release after manually adding them from my working server it was fine though
-
Re: Server + Client @ 1.4.2 & Guide
Quote:
Originally Posted by
atonoxd
hey do i need a linux O.S ?? or can i get it work with Windows 7??:ehh:
wrong thread for Win Suck. here you go : http://forum.ragezone.com/f452/vbox-...-6-1-a-650130/
-
Re: Server + Client @ 1.4.2 & Guide
Quote:
Originally Posted by
das7002
I didn't use a gamedbd wipe at all, just from your base release after manually adding them from my working server it was fine though
the test server relase included in this guide was wiped by me...
-
Re: Server + Client @ 1.4.2 & Guide
Just finished testing the Frost instance in the release, for the most part it seems bug free, only thing that has an issue I have noticed are
The announcement messages are all in yellow, in pwi they are in a very bright red
The quest from the npc that spawns after first boss will sometimes auto succeed and not have you do anything but most of the time it just straight out fails
The Glacix Elementos for Shocktrooper boss should AI POLICY FAILED on death but map is fine and continues running, their rotation is also outwards away from the boss
The boss death text has a sentence that just screams Engrish person wrote this
The Styren boss just "appears" doesn't make its magical walk in Dragoon does spawn when boss calls for it though
Dreadindra's "talk" text changes color between white and that off yellow and bishop spawns seem randomly placed in the room not on top of people like in pwi (I think that just may be because of how our server files work)
The "hands" and "mini clones" don't do any damage to anything anywhere but you mentioned that in your a29 thread so I figured it wouldn't work here either anyway
Heads that come after that boss worked fine but spawn count seemed rather low
-
1 Attachment(s)
Re: Server + Client @ 1.4.2 & Guide
Found AIPOLICY BUG at map EDEN.
Yeah. i just realize i was using an old AIPOLICY 1.3.9 and was not used to seeing this sort of thing in my old server.
Anyway the server seemed to be running fine.