[Guide] How to set up Zero PServer

01/21/2011 01:29 MizTenshi#1
I am making this guide because I've been asked to other then that i wouldn't even bother =/ plus from what i am told mammas guide links are all broken or something so i will post the guide here.

Guide Thanks to Omikron

First thing you do, is download the client: [Only registered and activated users can see links. Click Here To Register...]
Next, you download the Server files: [Only registered and activated users can see links. Click Here To Register...]
If you have issues with those files, download>[Only registered and activated users can see links. Click Here To Register...]
Now download Wamp 5.0: [Only registered and activated users can see links. Click Here To Register...]
And Navicat: [Only registered and activated users can see links. Click Here To Register...]
I suggest you download the free lite version.

Now create a folder in C: with the name of your server.
Put your server files in it.

Next, install wamp. Once it's done, you have to browse to C:/wamp/mysql/data/ put the two folders named: jz and jz_acc in it.
Now, browse to C:/wamp/mysql/bin/ and open winmysqladmin.
(mysql-nt for Vista users).
Set the Username and Password as "root" and "test".

Now install Navicat, open it and click Connection.
Make sure it'll look something like this.
Code:
Connection Name: What ever you want
Host name/IP Address: Localhost
Username: root
Password: Leave Blank
click "ok"
Open the connection and click on root@localhost, click "select all" and save. Do the same for jz and jz_acc.
Now go to Edit User and put a password, it should be "test".

Now open C:/[Your server name]/AccServer/Account.ini
Make it look like this.
Code:
[Account1]
SERVERNAME= Your server name
LOGINNAME=root
PASSWORD=test
FREE_DEBUG=3
Save it.

Now open C:/[Your server name]/AccServer/Config.ini
Make it look like this.
Code:
[System]
LOGINLISTENPORT	= 9958
POINTLISTENPORT = 9865
SERVER_FULL_DELAY_SECS	= 5000
SERVER_BUSY_DELAY_SECS	= 3000
SERVER_TITLE = Your server name
LOGINNAME = root
PASSWORD = test
SERVERIP = Your IP
[Database]
DBHOSTNAME=127.0.0.1
DATABASENAME=jz
DBUSER=root
DBPASSWORD=test
Save.

Now open C:/[Your server name]/GameServer/Config.ini
Make it look like this.
Code:
; 配置文件


[System]
SERVERNAME	= Your server name
MONSTER_ACTIVE_LIMIT = 4000


[GameServer]
GAMESERVER_IP	= Your IP
GAMESERVER_PORT	= 5816
SND_SIZE		= 64000
RCV_SIZE		= 16000


[Database]
DB_IP			= Your IP
DB_USER			= root
DB_PW			= test
DB_NAME			= jz


[InternetPort]
MASTER_IP	= Your IP
MASTER_PORT	= 8653
PORT_SIZE	= 53
LOGIN_KEY	= dfkKO23k'[cvK934
CURRENT_PORTID	= 2


[BusySleep]
LEVEL1		= 20	; > 1000 sleep 20%
LEVEL2		= 30	; > 2000
LEVEL3		= 40	; > 3000
LEVEL4		= 50	; > 4000
LEVEL5		= 60	; > 5000
Save.

Now open C:/[Your server name]/GameServer/shell.ini
Make it look like this.
Code:
; 外壳配置文件
; 2002.10.23

[System]
MAPGROUP_SIZE		= 1
ACCEPT_MS = 500

[StreamType]
TYPE		= 0	;0=正常从SOCKET,1=SOCKET记录到文件, 2=从文件读(程序调试用)

[Database]
DB_IP		= 127.0.0.1
DB_USER		= root
DB_PW		= test
DB_DB		= jz


[AccountServer]
ACCOUNT_IP			= Your IP
ACCOUNT_PORT			= 9865
SERVERNAME			= Your server name
LOGINNAME			= root
PASSWORD			= test
; 登录表尺寸, 10-5000
MAXLOGINTABLESIZE=1500
; 登录表超时秒数,0-86400
LOGINOVERTIMESECS=120




[InternetPort]
MASTER_IP	= Your IP
MASTER_PORT	= 8653
PORT_SIZE	= 53
LOGIN_KEY	= dfkKO23k'[cvK934
CURRENT_PORTID	= 1
Don't forget to put your IP and Server name at the places where it says so.

Now open C:/[Your server name]/AccServer/AuthorizeDB.cfg
Make it look like this.
Code:
127.0.0.1 root test jz_acc account name password id
count_stat server_name status
127.0.0.1 root 4871344843773d3d111 jz_acc
Save.

Next open C:/[Your server name]/AccServer/Gameserver.cfg
Make it look like this.
Code:
1000 1 127.0.0.1 1 root test JZ
Save.

Lastly, open C:/[Your server name]/GameServer/Gameserver.cfg
Make it look like this.
Code:
1000 1000 1000 1000 1000 1000 1000 1 127.0.0.1 root test jz
Save.
That's all for the Server files.

Now open C:/[Your server name]/AccServer/ACCServer.exe
Let it load for a while.
Now open C:/[Your server name]/GameServer/MSGServer.exe
This'll take a while to load.
Lastly open C:/[Your server name]/GameServer/NPCServer.exe
This'll take a while too.
If you've done everything right, the server should be online.

Now put all the files in the client folder in a folder.
Download [Only registered and activated users can see links. Click Here To Register...]~Thanks to omnija for finding this.
[Only registered and activated users can see links. Click Here To Register...]

Go into the C:/[Your client folder]/data/flash/world/01/ folder
and open s1 and w1 with the flash decompiler.(Might want to make back-ups first)
Edit them to the name of your server.

Almost done!

Go into your C:/[Your client folder]/ini/
and find the file worlds.dat.
Open it with a hex editor.
I suggest using this one: [Only registered and activated users can see links. Click Here To Register...]
Edit the names and IP's to the ones you've used to config the ini's in your server files.
If you're not as experienced with it, make a backup of the file and if it goes wrong just try different methods.
I'm not that well known with hex, but I haven't had much problems with it myself.
Just make sure you wont use the delete button, unless you know what you're doing.

Hope this helps people, atleast shared the files and the guide should be a bit helpful to people.

Code:
I took this from the mafia03's server files.
I haven't set up a website in a while 
so I'll post a little guide on what to edit later. 
For now, I'll just post this here.
[URL="http://www.mediafire.com/?yzz2imkvmn1"]Zero Reg Page[/URL]
All credits to mafia03. :)
GM Commands
Code:
[URL="http://www.mediafire.com/?dwg3jjmd10j"]GM Commands[/URL]
Database in SQL format.
Code:
jz_account.sql
[url=http://0a51b915.realfiles.net]Free File Hosting Made Simple - MediaFire[/url]

JZ.sql
[url=http://160f6654.realfiles.net]Free File Hosting Made Simple - MediaFire[/url]

Check off continue threw error.
~Credits to omnija.
If your server crashed cause of msvcrt.dll error.
Download this and put it in WINDOWS/System32/
Code:
[url]http://www.elitepvpers.com/forum/attachments/zero/76718d1295584658-guide-how-set-up-zero-pserver-msvcrt.rar[/url]
~Thanks to Bres.


~Enjoy.

Note: These files are not mine, nor is the client.
Note2: These files are nothing near perfectly translated.


i set the server up and tested it and yes it worked fine i even logged on. if you cant set it up then your doing something wrong.


For those who have there antivirus going nuts saying its a virus which is a false positive. to limit the whining and crying you can try this one
Code:
 http://28551dcf.realfiles.net
just switch them around
01/21/2011 03:27 KOMOKABOY#2
thanks man. i owe you
01/21/2011 04:23 dungeonmaster#3
Well thanks for updating our guide XD i never had the time too.

*edit even with your server files i still get servershell stopped working idk wtf is going on i think my computer just hates me now, cause ive had this running for apocalypse.
01/21/2011 04:36 MizTenshi#4
lol your welcome all the links work.
ism considering uploading my navi crack but idk
01/21/2011 04:53 dungeonmaster#5
yeah still have problems with server programs they still dont work for me idk why, they worked before.
01/21/2011 05:09 KOMOKABOY#6
same.. but. im hoping someone will figuer it out...
01/21/2011 05:15 MizTenshi#7
whats your os?
01/21/2011 05:17 dungeonmaster#8
Vista and i tried it on my laptop with windows 7 same thing server shell stops working
01/21/2011 05:27 MizTenshi#9
it hates windows vista and windows 7

but do you get the msvcrt.dll error or it just crashes?
01/21/2011 05:29 KOMOKABOY#10
im using Windows 7 also, everything else works there, but then i try the ACC and just crashes, and the other ones MSGSever gets and error and same with the NPCServer,So i took them from another guide but Still no good... So i dont know what wrong lmao...
01/21/2011 05:31 dungeonmaster#11
it just crashes ive had this problem a lot when building apocalypse its been over a year so i forgot how to fix it.
01/21/2011 05:41 MizTenshi#12
@KOMOKABOY if you got it to start are you sure its all configured right?

Quote:
Originally Posted by dungeonmaster View Post
it just crashes ive had this problem a lot when building apocalypse its been over a year so i forgot how to fix it.
didn't lurking explain to you before why it crashed?
01/21/2011 05:51 dungeonmaster#13
nope this is all the errors i get

[Only registered and activated users can see links. Click Here To Register...]
01/21/2011 05:56 KOMOKABOY#14
i get the Same as Dungeomaster for the Acc. But, the other two i get the same error, which is the Second error Dungeomaster shows, if that makes sence lol...

and i also went through all the info again. and tried with my IP, and Hamachi Ip, Nothing changed
01/21/2011 05:59 MizTenshi#15
well idk id have to actually look at what your doing like configurations ect to see what ya did wrong cause i had no issues with installing it and starting it up o.O