To get things straight, I'm gonna post the resolution of some problems I've had.
DO NOT USE SERVER PATCH CONFIG!
If you use Server Patch Config, you'll end up with this:
Code:
# /nprotectoff
error console command write
Changing your server name
To change the name of the server, you must change it on
ps_game.ini and
ps_session.ini files.
ps_game.ini
Code:
[SERVER]
ServerName=Game
ServerPort=
MaxConnection=10
[CONNECTION]
Session=127.0.0.1
UserLog=127.0.0.1
DBAgent=127.0.0.1
GameLog=127.0.0.1
[DB]
GameDef=127.0.0.1, PS_GameDefs, Shaiya, 8CD21AB3BDAA28C1B437F93C1D538FD596E090F149E9B6F9A0F7AF03FB310F0758F92FE235864F70FE9846D77A1B37593A8D4662ACC6F666A6AEB5BFB05A31FFCCC36C655F805218DA6D305ADD623F76B648B5473DC19E039BB9EA97864EE09F3D909ED8C95E794140F302D3852E3B3E0991BAB7B7158E7DAA8D58515B852566
GameData=127.0.0.1, PS_GameData, Shaiya, 15820DF37FFD68B04069D2E259F063B716123F1FA32C9F606348717D5C28F6B3D387E53E9359AB39DEFD3C4449828CF211699FC5D8DFA0031A2D902C38F4E141D23E43DD3A8F1A374F8ADD3BF7B33FC1EB2BB320537341C683E3B2435F80D0CCB14ACD6C6E3FFD6BB55127E820AB4A79E688B3E574EB8E5879A6A7C6263BC7F7
[GAMEINFO]
[B]GameName="Your server name here"[/B]
GamePublicIP=127.0.0.1
GameVersion=0x00000000
GameLogDBID=1
[LOGFILE]
Replace=0
Append=1
[MONITOR]
Enable=0
Port=50000
ps_session.ini
Code:
[SERVER]
ServerName=Session
ServerPort=
MaxConnection=
[CONNECTION]
UserLog=127.0.0.1
[GAMESERVERS]
GameServerCount=1
[B]Game01="Your server name here"[/B]
[LOGFILE]
Replace=0
Append=1
[MONITOR]
Enable=0
Port=50000
Changing your server IP address (Hamachi)
I'm using Hamachi with the intention of making my server available only to some friends. If you aren't using Hamachi in your server, ignore this.
First of all, open Hamachi and create a new network. Make your friends join it.
Then, open
ps_game.ini and change GamePublicIP to your Hamachi IP Address.
ps_game.ini
Code:
[SERVER]
ServerName=Game01
ServerPort=
MaxConnection=10
[CONNECTION]
Session=127.0.0.1
UserLog=127.0.0.1
DBAgent=127.0.0.1
GameLog=127.0.0.1
[DB]
GameDef=127.0.0.1, PS_GameDefs, Shaiya, 561BEF40D0EFD936892547378E630C788E44480F090AC6EE62F56A054BE734C71A028FB55F2A14D1B052AB1BD5705B8F4438810AE6B853BA3E04D5B075D25EEC725A5496C698BA73B031AF7AA0896E2213C9D8235E8F3AE1D26A79734D1860442F222B97CA476512B6A79176C6CE8D65FAA8509EEB091BF00FA79FF0ED93F30F
GameData=127.0.0.1, PS_GameData, Shaiya, 344D819245DF0080EAF2090BD822A54CAF115E845CD1D8BFE2A2C14DFE01295C2C425D4202E63C0A4283709850CE34C36248F5E0126353228496C9EFBFCCF082AD7FFEF48A734D488EA11FE7879281525337915FF4AE3D10320EB05DFAD210AEE37BB05F2215B923D509A33F944C96FBFBF4BC007D7173D46BF54D5B6E7A1A55
[GAMEINFO]
GameName=game
[B]GamePublicIP="Your Hamachi IP address here"[/B]
GameVersion=0x08022100
GameLogDBID=1
[LOGFILE]
Replace=0
Append=1
[MONITOR]
Enable=0
Port=50000
Then you must also change it on
game.exe file using a hex editor. I use HxD.
Search > Find and enter "72.55.177.194". Change it to your Hamachi IP Address.
If you already changed it and forgot where it is, it is located on offset
2A8A90 (Search > Goto...).
Your friends must do the same to their
game.exe. Tell them how to do or just give your file to them.
Max players
By default, your server max limit is 10 players. If you have more people to get in your server, you have to change it.
Once again, the files are
ps_game.ini and
ps_login.ini
ps_game.ini
Code:
[SERVER]
ServerName=Game
ServerPort=
[B]MaxConnection="Max number of players here"[/B]
[CONNECTION]
Session=127.0.0.1
UserLog=127.0.0.1
DBAgent=127.0.0.1
GameLog=127.0.0.1
[DB]
GameDef=127.0.0.1, PS_GameDefs, Shaiya, 8CD21AB3BDAA28C1B437F93C1D538FD596E090F149E9B6F9A0F7AF03FB310F0758F92FE235864F70FE9846D77A1B37593A8D4662ACC6F666A6AEB5BFB05A31FFCCC36C655F805218DA6D305ADD623F76B648B5473DC19E039BB9EA97864EE09F3D909ED8C95E794140F302D3852E3B3E0991BAB7B7158E7DAA8D58515B852566
GameData=127.0.0.1, PS_GameData, Shaiya, 15820DF37FFD68B04069D2E259F063B716123F1FA32C9F606348717D5C28F6B3D387E53E9359AB39DEFD3C4449828CF211699FC5D8DFA0031A2D902C38F4E141D23E43DD3A8F1A374F8ADD3BF7B33FC1EB2BB320537341C683E3B2435F80D0CCB14ACD6C6E3FFD6BB55127E820AB4A79E688B3E574EB8E5879A6A7C6263BC7F7
[GAMEINFO]
GameName=game
GamePublicIP=127.0.0.1
GameVersion=0x00000000
GameLogDBID=1
[LOGFILE]
Replace=0
Append=1
[MONITOR]
Enable=0
Port=50000
ps_login.ini
Code:
[SERVER]
ServerName=Login
ServerPort=
[B]MaxConnection="Max number of players here"[/B]
[CONNECTION]
Session=127.0.0.1
UserLog=127.0.0.1
[DB]
UserData=127.0.0.1, PS_UserData, Shaiya, 194361ACE26E4A33C282972B1421F2E09D5115593E326CD1D1D2D7F15DA9D586E6A5CBE96942F48EBBF2C6981FF7041B4E5DA4BF28DBF767BFC771A1E10EE0B5AFF132E8398D52C31C4A040F301E24FC0B00F505A0C3C9A744C3ADA04D048A481134A919A605BB9551CFDCD7845FC2FEC34738AC364282650F95085E88D6ECC4
[GAMESERVERS]
// Game01 = name, Mapping ServerID, Mapping DB ID(use prev server id)
GameServerCount=1
Game01=Game, 1, 1
[LOGFILE]
Replace=0
Append=1
[MONITOR]
Enable=0
Port=50000
Creating accounts
There are 2 ways to create accounts: By registration and by manually editing the database.
If you want by registration, check out sandolkakos topic about Web Registration:
Now, by editing the database, you have to edit 2 tables:
GameAccountTLB located in
OMG_GameWEB and
Users_Master located in
PS_userdata.
Go to the Server Management Studio and log in using your sa account.
Then, Databases > OMG_GameWEB > Tables > Right-click on GameAccountTLB and select Open Table.
UserUID - Enter some number different from the other accounts' UserUID.
GameAccount - Account Name.
OneTimePassword - Account Password.
OTPExpireDate - You can put the same date as the admin account.
DelCharPWD - Put "ff" just like the admin account has.
CreateDate - You can ignore this as it will be automatically created.
Then right-click on the line and select Execute SQL.
Now, Databases > PS_userdata > Tables > Right-click on Users_Master and select Open Table.
User_UID - Same User_UID as you put on GameAccountTBL.
UserID - Same as you put on GameAccount.
Pw - Same as you put on OneTimePassword.
JoinDate - Same as you put on CreateDate.
Admin - If you want the user to be admin, enter "True", otherwise enter "False".
AdminLevel - 255 if you entered "True", 0 if you entered "False".
UseQueue - False
Status - 16
Leave - 0
LeaveDate - Same as you put on OTPExpireDate.
UserType - A
Point - How much AP the user will have.
For the rest you can leave as NULL.
Execute SQL and you're done.
Messing up with Server Patch Config
If you ever used Server Patch Config to change anything, you just got into a serious problem.
Server Patch Config is only supposed to be used to start the services and to apply
/vchkoff and
/nprotectoff.
The mistake is permanent and can't be changed by just editing the .ini files.
You can notice that when you open a .ini file (For example, ps_login.ini)
ServerName has
"Login01" instead of
"Login". This applies to all other .ini files, which
ServerName ends with
"01", when it's NOT supposed to end with that.
Now that you have messed up with Server Patch Config, what you are going to do is:
Stop all shaiya server services. Press CTRL+SHIFT+ESC to go to the task manager. Then go to Services tab and stop the following services:
PSM_AgentClient
PSM_AgentServer
ps_dbAgent
ps_gameLog
ps_game
ps_login
ps_session
ps_userLog
shaiya_server
shaiya_serverf
You should have ProfNerwosol EP4 files. If not, go here
![](https://www.elitepvpers.com/forum/images/elitepvpers/buttons/hiddenlink.png)
and download his EP4 files.
Get to his folder and then SHAIYA_SERVER > SERVER and copy Config and PSM_Client folders to the exact path these are on your shaiya server. Overwrite everything except the folder
"ai".
Now, go again to Server Patch Config and start all services, then apply
/vchkoff and
/nprotectoff.
And you're done.
If you still have problems, I'm sorry, but you have to reinstall your server once again, and this time, DO NOT mess up with Server Patch Config.