Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Character's data failed to be processed..

Junior Spellweaver
Joined
May 22, 2013
Messages
106
Reaction score
22
Please Help! :(

After I create my character, I cannot log in..

None of the solutions by @Jolin88 seems to work.

*I play on different PC from the server.
*My ports on the LoginServer's cfg is set to 5001 same as that in D3DX10_30.dll
*IP also match on all of them

I dunno what else to do :( please help..
 
Last edited:
Joined
Mar 20, 2012
Messages
760
Reaction score
368
try this script, create a new query in RanUser and Execute the script.

Code:
USE [RanUser]
GO
/****** Object: StoredProcedure [dbo].[user_verify] Script Date: 07/17/2011 09:58:24 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO


ALTER PROCEDURE [dbo].[user_verify]
@userId char(25),
@userPass char(25),
@userIp char(25),
@SvrGrpNum int,
@SvrNum int,
@proPass varchar(6), -- Ran dynamic password
@proNum varchar(2), -- Ran dynamic password random number
@nReturn int OUTPUT

AS
DECLARE
@nAvailable int,
@nUserNum int,
@nState int,
-- Declare variables used in error checking.
@error_var int,
@rowcount_var int,
@nBlock int,
@BlockDate datetime,
@EndDate datetime,
@StrSql nvarchar(100)

SET NOCOUNT ON

SET @nReturn = 0
SET @nUserNum = 0

SELECT @nUserNum=UserInfo.UserNum,
@nState=UserInfo.UserLoginState,
@nBlock=UserInfo.UserBlock,
@BlockDate=UserInfo.UserBlockDate

FROM UserInfo
WHERE UserID = @userId AND UserPass = @userPass AND UserAvailable = 1


-----------------------------------------------------------------
-- ID / PWD check...
IF @nUserNum = 0
BEGIN
SET @nReturn = 0
RETURN @nReturn
END
ELSE
BEGIN
SET @nReturn = 1
IF @nState = 1
BEGIN
SET @nReturn = 5
RETURN @nReturn
END
END


IF (SELECT COUNT(*) FROM BlockAddress WITH (NOLOCK) WHERE BlockAddress = @userIp) > 0

BEGIN
declare @params as nvarchar(100)
SET @StrSQL = 'SELECT @ordercnt=count(userid) FROM Randpass WHERE userid='''+@userId+''' AND pwd'+@proNum + '='''+@proPass + ''''
SET @params = '@ordercnt as int OUTPUT' -- OUTPUT ???? ??

exec sp_executesql @StrSQL, @params, @ordercnt = @rowcount_var OUTPUT

SELECT @error_var = @@ERROR
IF @error_var = 0 AND @rowcount_var = 1
BEGIN
SET @nReturn = 1 -- Dynamic password correct
END
ELSE
BEGIN
SET @nReturn = 7 -- Dynamic password error
RETURN @nReturn
END
END


-----------------------------------------------------------------
-- IP Address ??
IF (SELECT COUNT(*) FROM IPInfo WITH (NOLOCK) WHERE ipAddress = @userIp) > 0
-- IP ?? ??
BEGIN
SELECT @nAvailable = useAvailable
FROM IPInfo
WHERE ipAddress = @userIp

IF @nAvailable = 1
BEGIN
SET @nReturn = 2 -- ID/PWD ? ????, IP ? ????
END
ELSE
BEGIN
SET @nReturn = 4 -- ID/PWD ? ????, IP ? ????? ??
END
END
ELSE
-- IP ?? ??
BEGIN
SET @nReturn = 3 -- ID/PWD ? ????, IP ??? ??
END

-----------------------------------------------------------------
-- Block ?? ??
IF (@nBlock = 1)
BEGIN
IF (@BlockDate > GetDate())
BEGIN
SET @nReturn = 6
END
ELSE
BEGIN
UPDATE UserInfo
SET UserBlock=0
WHERE UserNum = @nUserNum

SET @nReturn = 2
END
END

-----------------------------------------------------------------
-- ??? ???? ??
IF (@nReturn = 1) OR (@nReturn = 2) OR (@nReturn = 3)
BEGIN
-- ???, ??? ????? ??
UPDATE UserInfo
SET UserLoginState=1, LastLoginDate=getdate(), SGNum=@SvrGrpNum, SvrNum=@SvrNum
WHERE UserNum = @nUserNum

-- ???? ???
INSERT INTO LogLogin (UserNum, UserID, LogInOut, LogIpAddress)
VALUES (@nUserNum, @userId, 1, @userIp)

-- ?? ????
UPDATE StatLogin
SET LCount = LCount+1
WHERE LYear=Year(GetDate()) AND LMonth=Month(GetDate()) AND LDay=Day(GetDate()) AND LHour=DatePart(hour, GetDate())

SELECT @error_var = @@ERROR, @rowcount_var = @@ROWCOUNT
IF @error_var <> 0 OR @rowcount_var = 0
BEGIN
INSERT INTO StatLogin (LYEAR)
VALUES (YEAR(GetDate()))
END
END

SET NOCOUNT OFF

RETURN @nReturn
 
Upvote 0
Junior Spellweaver
Joined
May 22, 2013
Messages
106
Reaction score
22
Still not fixed.. :( should I restart my server after executing this?
 
Upvote 0
Joined
Jul 27, 2008
Messages
868
Reaction score
56
i think i had a same problem as you .. if you are on dynamic ip .. try use hamachi .. it might can help you out .. if you are on vps or dedicated try to disable the firewall or set an exception at firewall ..
 
Upvote 0
Joined
Mar 20, 2012
Messages
760
Reaction score
368
i think i had a same problem as you .. if you are on dynamic ip .. try use hamachi .. it might can help you out .. if you are on vps or dedicated try to disable the firewall or set an exception at firewall ..

you can host directly without using hamachi. most ppl use ran ipinterceptor even me use it too
 
Upvote 0
Junior Spellweaver
Joined
May 22, 2013
Messages
106
Reaction score
22
I finally fixed it! :)

I used a different FieldServer and it all went well :)
 
Upvote 0
Newbie Spellweaver
Joined
Jul 4, 2018
Messages
14
Reaction score
0

I am using it but still didn't my problem.

If I use my LAN configuration it is working fine, but if I hotspot my laptop from my phone and
connect ito my server the problem occured. Character failed to process.

I am using SQL SERVER 2012, my odbc is sql server and not sql native client.


If I config my odbc to sql native client I am having error something like the sql sever
actively refused to connect.
 
Upvote 0
Joined
Jun 20, 2010
Messages
693
Reaction score
103
I am using it but still didn't my problem.

If I use my LAN configuration it is working fine, but if I hotspot my laptop from my phone and
connect ito my server the problem occured. Character failed to process.

I am using SQL SERVER 2012, my odbc is sql server and not sql native client.


If I config my odbc to sql native client I am having error something like the sql sever
actively refused to connect.

in your case it seem you have problem in mssql try to down garde to mssql 2008.. and check your odbc anti-virus firewall.. thats why you can't connect to your server
 
Upvote 0
Newbie Spellweaver
Joined
Jul 4, 2018
Messages
14
Reaction score
0
are you done to check your cfg logserver?

Yes, as I mention before.

I can play using LAN connection but when I tried to connect to my server using another IP with IP interceptor it gives me error "character failed to process"
 
Upvote 0
Back
Top