Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Shaiya > Shaiya Private Server > Shaiya PServer Development
You last visited: Today at 00:10

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Name already in use fix problem

Discussion on Name already in use fix problem within the Shaiya PServer Development forum part of the Shaiya Private Server category.

Reply
 
Old   #1
 
[Admin]Smile.jpg's Avatar
 
elite*gold: 0
Join Date: Jul 2012
Posts: 46
Received Thanks: 5
Question Name already in use fix problem

I am trying to fix the name already in use problem when trying to make a char, but the fix isn't working.

Here is the log:

Code:
2012-07-26 11:47:35 PS_DBAGENT__system log start (DBAgent01)

2012-07-26 11:47:36 UpdateGuildPointRankDB Result=-1

2012-07-26 11:47:50 connect game



2012-07-26 11:48:46 err=-1, [Microsoft][ODBC SQL Server Driver][SQL Server]Cannot insert the value NULL into column 'CharID', table 'PS_GameData.dbo.Chars'; column does not allow nulls. INSERT fails., SQL STATE: 23000, NATIVE ERROR: 515 (0x203)

2012-07-26 11:48:46 ::CreateCharacter 0 dfhr retVal=-1, qerr=-1, {?=call Usp_Create_Char_R(1,'admin',2084,'dfhr', 0,0,3,0,0,2,0,0, 1,0,0, 14,12,9,8,15,7, 352,110,257, 1,0, 0,0, 577.979980,78.559998,1762.119995, 0,200,0,0,0)}

2012-07-26 11:48:46 err=0, , SQL STATE: 00000, NATIVE ERROR: 0 (0x0)
I tried both methods from John's topic, but the same error...
[Admin]Smile.jpg is offline  
Old 07/26/2012, 11:01   #2
 
Sh1nra's Avatar
 
elite*gold: 5
Join Date: Mar 2012
Posts: 1,007
Received Thanks: 498
Code:
USE [PS_GameData]
GO
drop procedure [dbo].[usp_Save_Char_Item_Add_E]
GO

SET QUOTED_IDENTIFIER OFF
GO
SET ANSI_NULLS ON
GO


/****** 개체: 저장 프로시저 dbo.usp_Save_Char_Item_Add_E ******/


CREATE Proc usp_Save_Char_Item_Add_E

@CharID int,
@ItemUID bigint,
@Bag tinyint,
@Slot tinyint,
@ItemID int,
@Type tinyint,
@TypeID tinyint,
@Quality int,
@Gem1 tinyint,
@Gem2 tinyint,
@Gem3 tinyint,
@Gem4 tinyint,
@Gem5 tinyint,
@Gem6 tinyint,
@Craftname varchar(20) = '',
@Count tinyint,
@MaketimeZ varchar(50),
@Maketype char(1)

AS
DECLARE @Maketime as datetime
SELECT @Maketime = CONVERT(datetime, @MaketimeZ, 120)
--SET NOCOUNT ON

IF(@Quality >= 5000)
BEGIN
SET @Quality=0
END

INSERT INTO CharItems
(CharID, bag, slot, ItemID, Type, TypeID, ItemUID, quality, gem1, gem2, gem3, gem4,
gem5, gem6, craftname, [count], maketime, maketype)
VALUES(@CharID, @Bag, @Slot, @ItemID, @Type, @TypeID, @ItemUID, @Quality, @Gem1, @Gem2, @Gem3, @Gem4,
@Gem5, @Gem6, @Craftname, @Count, @Maketime, @Maketype)

IF(@@ERROR = 0)
BEGIN
RETURN 1
END
ELSE
BEGIN
RETURN -1
END

--SET NOCOUNT OFF



GO
SET QUOTED_IDENTIFIER OFF
GO
SET ANSI_NULLS ON
GO
credits to JohnHeatz.

If this don`t work, what database ep you have ?
Sh1nra is offline  
Old 07/26/2012, 13:53   #3
 
[Admin]Smile.jpg's Avatar
 
elite*gold: 0
Join Date: Jul 2012
Posts: 46
Received Thanks: 5
I already said I used it and it isn't working. I have EP5 DB.
[Admin]Smile.jpg is offline  
Old 07/26/2012, 13:55   #4
 
Sh1nra's Avatar
 
elite*gold: 5
Join Date: Mar 2012
Posts: 1,007
Received Thanks: 498
from shaiya xtreme ?
or where you got EP 5 DB ?
Sh1nra is offline  
Old 07/26/2012, 14:05   #5
 
[Admin]Smile.jpg's Avatar
 
elite*gold: 0
Join Date: Jul 2012
Posts: 46
Received Thanks: 5
From [Dev]AshArtanis.
[Admin]Smile.jpg is offline  
Old 07/26/2012, 14:18   #6
 
elite*gold: 0
Join Date: Jun 2012
Posts: 37
Received Thanks: 28
Smile All Working DataBase dear Sh1nra Give You Script.

Me Tested. Ep4, Ep5 Db.
Follow001 is offline  
Thanks
1 User
Old 07/26/2012, 14:26   #7
 
[Admin]Smile.jpg's Avatar
 
elite*gold: 0
Join Date: Jul 2012
Posts: 46
Received Thanks: 5
Still not working...
[Admin]Smile.jpg is offline  
Old 07/26/2012, 14:55   #8
 
elite*gold: 0
Join Date: Feb 2012
Posts: 24
Received Thanks: 26
USE [PS_GameData]
GO

/****** Object: Index [IX_Chars_CharName] Script Date: 10/07/2011 17:15:26 ******/
IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[dbo].[Chars]') AND name = N'IX_Chars_CharName')
DROP INDEX [IX_Chars_CharName] ON [dbo].[Chars] WITH ( ONLINE = OFF )
GO

USE [PS_GameData]
GO

/****** Object: Index [IX_Chars_CharName] Script Date: 10/07/2011 17:15:27 ******/
CREATE NONCLUSTERED INDEX [IX_Chars_CharName] ON [dbo].[Chars]
(
[CharName] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
dimaster10 is offline  
Thanks
5 Users
Old 07/26/2012, 15:28   #9
 
[Admin]Smile.jpg's Avatar
 
elite*gold: 0
Join Date: Jul 2012
Posts: 46
Received Thanks: 5
Thank you everyone, but I found the fix. If anyone ever encounters this bad problem, just download the EP 5 db files from Bane's Index and only attach the PS_GameData(delete old one). It seems like my DB was corrupted, now it works.
[Admin]Smile.jpg is offline  
Old 07/27/2015, 13:23   #10
 
elite*gold: 0
Join Date: Jul 2015
Posts: 1
Received Thanks: 0
Thumbs up

Quote:
Originally Posted by dimaster10 View Post
USE [PS_GameData]
GO

/****** Object: Index [IX_Chars_CharName] Script Date: 10/07/2011 17:15:26 ******/
IF EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[dbo].[Chars]') AND name = N'IX_Chars_CharName')
DROP INDEX [IX_Chars_CharName] ON [dbo].[Chars] WITH ( ONLINE = OFF )
GO

USE [PS_GameData]
GO

/****** Object: Index [IX_Chars_CharName] Script Date: 10/07/2011 17:15:27 ******/
CREATE NONCLUSTERED INDEX [IX_Chars_CharName] ON [dbo].[Chars]
(
[CharName] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
GO
It's work!!Thx big=))
bb005836 is offline  
Reply

Tags
515, error, fix, name already in use, name in use


Similar Threads Similar Threads
[Problem]Habe ein Problem und zwar spinnt mein VPC etwas(ohne Grund)?!
07/28/2011 - Metin2 Private Server - 10 Replies
Also wie schon gesagt meins Server spinnt wodurch kiks usw. kommen :( ich lade euch die Screens in den Anhang, mit der Hoffnung, dass ihr mir helfen könnt :) wäre echt sehr nice :)



All times are GMT +1. The time now is 00:11.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.