[RELEASE] BOI Server Files + Server Tools + GM tools

07/28/2012 20:57 bbantisoft#631
Quote:
Originally Posted by sambaba View Post
I just figured out how to modify every instance to be solo and all of them into only 1 realm. If anyone interested, I will post it later tomorrow =)
yes please :D
07/28/2012 21:11 DGND#632
hey guys.. small question.
I have tried to add some money to the character via the MySQL but no luck. So now i want to add some coin bags in the marketplace. My question is now do you edit the .slk files ? I tried to open them with excel but no luck. It opens as read only .

Thanks
07/28/2012 21:25 LeRaz0r#633
Edit ShopCommodity.Slk, save new copy, paste the new copy over the existing file. Or you could just make it easier for yourself and set permissions to write as well. :/
07/28/2012 21:29 demonlordace#634
ahhh this password shit is killing me
07/28/2012 21:38 xXSuperflyXx#635
found this in mssql in programmability system stored procedures
sys.sp_addlogin


USE [PassportBOI]
GO
/****** Object: StoredProcedure [sys].[sp_addlogin] Script Date: 07/28/2012 20:27:01 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER procedure [sys].[sp_addlogin]
@loginame sysname
,@passwd sysname = Null
,@defdb sysname = 'master' -- UNDONE: DEFAULT CONFIGURABLE???
,@deflanguage sysname = Null
,@sid varbinary(16) = Null
,@encryptopt varchar(20) = Null
AS
-- SETUP RUNTIME OPTIONS / DECLARE VARIABLES --
set nocount on
declare @exec_stmt nvarchar(4000)
declare @hextext varchar(256)
declare @ret int

-- DISALLOW USER TRANSACTION --
set implicit_transactions off
IF (@@trancount > 0)
begin
raiserror(15002,-1,-1,'sys.sp_addlogin')
return (1)
end

-- VALIDATE LOGIN NAME:
execute @ret = sys.sp_validname @loginame
if (@ret <> 0)
return (1)

set @exec_stmt = 'create login ' + quotename(@loginame)

if @passwd is null
select @passwd = ''

if (@encryptopt is null)
set @exec_stmt = @exec_stmt + ' with password = ' + quotename(@passwd, '''')
else
begin
declare @passwdbin varbinary(256)
set @passwdbin = convert(varbinary(256), @passwd)
execute sys.sp_hexadecimal @passwdbin, @hextext OUT
set @exec_stmt = @exec_stmt + ' with password = ' + @hextext

if (@encryptopt = 'skip_encryption_old')
set @exec_stmt = @exec_stmt + ' hashed '
else if (@encryptopt = 'skip_encryption')
set @exec_stmt = @exec_stmt + ' hashed '
else
begin
raiserror(15600,-1,-1,'sys.sp_addlogin')
return 1
end
end

if (@defdb is not null)
set @exec_stmt = @exec_stmt + ', default_database = ' + quotename(@defdb)

if (@deflanguage is not null)
set @exec_stmt = @exec_stmt + ', default_language = ' + quotename(@deflanguage)

if (@sid is not null)
begin
execute sys.sp_hexadecimal @sid, @hextext OUT
set @exec_stmt = @exec_stmt + ', sid = ' + @hextext
end

exec (@exec_stmt)

if @@error <> 0
return (1)

-- RETURN SUCCESS --
return (0) -- sp_addlogin
07/28/2012 21:46 demonlordace#636
that isnt what ur thinking it is all dbs have them just about
for system procs
07/28/2012 21:51 xXSuperflyXx#637
okies
07/28/2012 22:57 Hackheaven#638
The save server is not working it seems i revert to lvl 1 after i get d/c from the server after 15mins

If you logout and edit your coins in the mysql table or lvl it will go back to 1/0 when you lvl up or use an item

You cant go back to char screen after login and you cant exit the game unless you d/c
07/28/2012 23:15 cpenner#639
I still cannot get LeagueData to load into ManagerServerR.exe and therefore am stuck at the character creation screen. I have been fiddling with the config files for quite sometime, and for whatever reason nothing seems to be working. If somebody who has a running server could just Skype me and take a peek at my configs, I would be very grateful.. If not, I will also post them here. Please just let me know if I have my LINUX and WINDOWS IPs in the correct spot.

WINDOWS: 192.168.15.86
LINUX: 192.168.15.116


WINDOWS CONFIGS
----------------------------
auagent.conf
compactau.conf
server.ini
gateserver.ini
LocalSaveServer.ini
ManagerIP.ini
ManagerServer.ini
07/28/2012 23:22 Hackheaven#640
That should work its almost 100% same as mine all but your managerserver is the same

But i added some shit not sure if these even do anything or are right but hey whatever

[GameServer]
ServerIP = WINDOWS < i added this i think
Port = 20021

[DBServer]
ServerIP = LINUX
#ListenPort = 21022 TW
#ListenPort = 21032 VN
ListenPort = 21042 US
ServerPort = 21042 US < i added this i think to

And the other manage ip thing you have 3 ips i only have 1

What is with the save server it is saving my pets but not my char lvls?

So anyone wanna let me in on how you solved the timout/d/c error after 15mins and the char saving?
07/29/2012 01:20 cpenner#641
Alright, so I added those lines to my ManagerServer.ini file and modified the 3 IPs to only 1. How do my Linux configs look compared to yours, Hackheaven?

WINDOWS: 192.168.15.86
LINUX: 192.168.15.116


LINUX CONFIGS
--------------------------------
table.xml
authd.conf
dbsvrd.cfg
namesvrd.cfg
cardsvrd.cfg

Also, ManagerServerR.exe's log is showing this and I think it may be why my LeagueData won't load.

LocalSaveServer's log is showing me this:

If anybody encountered and fixed this socket error, please let me know via PM or here..
07/29/2012 01:29 Hackheaven#642
[GAuthServer]
type = tcp
port = 29200
address = 192.168.15.116 < windows not linux
so_sndbuf = 131072
so_rcvbuf = 131072
ibuffermax = 819200
obuffermax = 819200
tcp_nodelay = 1
listen_backlog = 10
mtrace = /tmp/mtrace.authd
isec = 2
iseckey = meiguoKlhEa65alkudaiwbd9Xrf
osec = 2
oseckey = meiguofZVo9ru4avavehstaQ8by
shared_key = meiguobYthzeCfh8kx7us5usqjA
isabroad = true
ismssql = true

[ThreadPool]
config = (1,1)(2,10)(3,1)(101,5)
max_queuesize = 1048576



[DBSVRD]
SERVERID = 1
SERVICEIP = 192.168.15.116
SERVICEPORT = 29251
DBOPERMODE = 1
CPTINTERVAL = 30
TOINTERVAL = 60
PRINTSTATINTERVAL = 60
COUNTLOGINTERVAL = 300
DBUSER = root
DBNAME = shengui
DBPASSWD = game
DBSOCKFILE = /var/lib/mysql/mysql.sock
TODBNUMONCE = 100
RECYCLENUMONCE = 300
MAXRECYCLETIME = 900

[MANAGERSVRD]
MANAGERSVRDNUM = 2 < mine 1
[MANAGERSVRD.1]
SERVERID = 1
SERVICEIP = 192.168.15.86
SERVICEPORT = 21042

[MANAGERSVRD.2] < removed
SERVERID = 2 < removed
SERVICEIP = 192.168.15.86 < removed
SERVICEPORT = 21044 < removed

[AUAGENT]
SERVERID = 1 < mine has a 3 here?
SERVICEIP = 192.168.15.86
SERVICEPORT = 29250

[LOGSVRD]
SERVERID = 1
SERVICEIP = 127.0.0.1
SERVICEPORT = 9008


Other then that its 100% the same

Kinda useless since nothing but your pet saves cant switch chars cant exit the game cant seem to add coins but i did add it in the same script that does make me lvl xxx as soon as i login

Anyone know what table is player zen? so i can add it to my script

Theres money (coins tested) and credit (not sure didnt test) thats all i seen

Anyone know what table is player zen? so i can add it to my script

Theres money (coins tested) and credit (not sure didnt test) thats all i seen

=====================

Player.s file (seems only 1 line will work)
This does work but only the first thing works it seems so... money would work the pet/exp wouldnt

And the money line sent me to jail just now so xD


DONT PUT THIS ON A REAL SERVER TEST ONLY as it will give everyone this stuff when they login! remove it before you go live
function OnLogin(){
BC("chat", "player", -1, "[color=ffff3817]Welcome to Battle of the Immortals!")
AddPlayerInfo ( -1 , "money" , 10000000 ) //coins

AddPlayerInfo ( -1 , "exp" , 10000000 ) //exp

AddPet( -1, 3093, 1, 0 ) //athena
07/29/2012 01:54 cpenner#643
Well my configs seem to be fine, so I am almost positive it has to do with the socket errors I get on ManagerServerR.exe and LocalSaveServer.exe. Does anybody know anything about this stuff?

ManagerServerR.exe log
LocalSaveServer.exe log

And yes, the mysql socket location is set to '/var/lib/mysql/mysql.sock'
07/29/2012 02:08 Hackheaven#644
I dont think the localserver error means anything as its only tyring to log something

But the manager error i dont know im getting a ton of errors now to...

2012-07-28 20:04:58 lv3:MS:New Account[-2012344970] Login
2012-07-28 20:04:59 lv1:MS:socket err:10061 -- CKManagerServerConnector::OnError -- CTcpSocket::Connect -- ::connect function return SOCKET_ERROR
2012-07-28 20:04:59 lv1:MS:socket err:10061 -- CGACDConnector::OnError -- CTcpSocket::Connect -- ::connect function return SOCKET_ERROR
2012-07-28 20:05:00 lv3:MS:Account[-2012344970] Char[9] Enter World Line[1]
2012-07-28 20:05:00 lv3:MS:SendAuPrivilege: uCharacterID 9 , authorizeResult 0
2012-07-28 20:05:04 lv1:MS:socket err:10061 -- CGACDConnector::OnError -- CTcpSocket::Connect -- ::connect function return SOCKET_ERROR
2012-07-28 20:05:04 lv1:MS:socket err:10061 -- CKManagerServerConnector::OnError -- CTcpSocket::Connect -- ::connect function return SOCKET_ERROR
07/29/2012 02:18 cpenner#645
So you are also getting socket errors, yet your server still runs?