Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Shaiya > Shaiya Private Server
You last visited: Today at 20:02

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

Advertisement



[HELP]Guilds deleted after restart

Discussion on [HELP]Guilds deleted after restart within the Shaiya Private Server forum part of the Shaiya category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Aug 2011
Posts: 53
Received Thanks: 23
[HELP]Guilds deleted after restart

I did use the search function before posting, but what I found and used, didn't really work out too well for me. Of course In comparing the dependicies of a working Guild table, I can not seem to figure out how to transfer them or get it to work on the Guild table that is having the issue.

So is there a correct query that can be ran to fix this, or is it a modification of the table where I must change something to get it to work correctly? All help is appreciated.
[Dev]Cataclysm is offline  
Old 09/27/2011, 22:56   #2
 
[Admin]Snuggle's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 942
Received Thanks: 1,066
I had this issue at first too.
Took me awhile to figure out exactly what the issue was even though I thought I looked though everything lol
I thought it was an SP issue so I kept looking there..
Here's what I used to fix it:
Code:
Use PS_gamedata

drop table [dbo].[Guilds]

CREATE TABLE [dbo].[Guilds] (
	[RowID] [int] IDENTITY (1, 1) NOT NULL ,
	[GuildID] [int] NOT NULL ,
	[GuildName] [varchar] (30) COLLATE Latin1_General_CI_AS NOT NULL ,
	[MasterUserID] [varchar] (18) COLLATE Latin1_General_CI_AS NOT NULL ,
	[MasterCharID] [int] NOT NULL ,
	[MasterName] [varchar] (30) COLLATE Latin1_General_CI_AS NOT NULL ,
	[Country] [tinyint] NOT NULL ,
	[TotalCount] [smallint] NOT NULL ,
	[GuildPoint] [int] NOT NULL ,
	[Del] [tinyint] DEFAULT (0) ,
	[CreateDate] [datetime] (getdate())  ,
	[DeleteDate] [datetime] (getdate()) 
) ON [PRIMARY]
Credits go to [GM]Recover for his post about it here:

Not sure who originally showed how to fix it.
[Admin]Snuggle is offline  
Thanks
1 User
Old 09/27/2011, 23:02   #3
 
elite*gold: 0
Join Date: Feb 2011
Posts: 214
Received Thanks: 205
originally one is Twillight from r a n g e z o n e if im not wrong.
Xx.LaMin.xX is offline  
Old 09/29/2011, 13:58   #4
 
elite*gold: 0
Join Date: Aug 2011
Posts: 53
Received Thanks: 23
This is going to sound nubby but eh, I am still readin up on SQL. I have came accross a slight error when executing it. I have even tried playing around with it to see if it would work, but all it gave me was

"Msg 102, Level 15, State 1, Line 16
Incorrect syntax near '('.

So as I have been trying to read up on this through Google & staring at the query to see what to change, i have failed to fix it lol
[Dev]Cataclysm is offline  
Old 09/29/2011, 14:37   #5
 
elite*gold: 0
Join Date: Feb 2011
Posts: 214
Received Thanks: 205
It isnt look like the same i have on my server.. mine is
Quote:
USE [PS_GameData]
GO
/****** Object: Table [dbo].[Guilds] Script Date: 09/29/2011 06:36:30 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[Guilds](
[RowID] [int] IDENTITY(1,1) NOT NULL,
[GuildID] [int] NOT NULL,
[GuildName] [varchar](30) COLLATE Chinese_PRC_Stroke_CI_AI NOT NULL,
[MasterUserID] [varchar](12) COLLATE Chinese_PRC_Stroke_CI_AI NOT NULL,
[MasterCharID] [int] NOT NULL,
[MasterName] [varchar](30) COLLATE Chinese_PRC_Stroke_CI_AI NOT NULL,
[Country] [tinyint] NOT NULL,
[TotalCount] [smallint] NOT NULL,
[GuildPoint] [int] NOT NULL,
[Del] [tinyint] NOT NULL CONSTRAINT [DF_Guilds_Del] DEFAULT (0),
[CreateDate] [datetime] NOT NULL,
[DeleteDate] [datetime] NULL,
CONSTRAINT [PK_Guilds] PRIMARY KEY CLUSTERED
(
[GuildID] ASC
)WITH (PAD_INDEX = OFF, IGNORE_DUP_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]

GO
SET ANSI_PADDING OFF
Xx.LaMin.xX is offline  
Thanks
2 Users
Old 09/29/2011, 14:53   #6
 
elite*gold: 0
Join Date: Aug 2011
Posts: 53
Received Thanks: 23
Ok I dropped the table and used your query, going to test it out now Thanks LaMin

*Edit* Tested it and the guild is still there after restart Ty again
[Dev]Cataclysm is offline  
Old 09/24/2012, 15:55   #7
 
[ADM]BLooM's Avatar
 
elite*gold: 0
Join Date: Sep 2011
Posts: 45
Received Thanks: 37
Quote:
Originally Posted by Xx.LaMin.xX View Post
It isnt look like the same i have on my server.. mine is


Ok i tryed this one and i get this error on SQL


Msg 2714, Level 16, State 6, Line 1
There is already an object named 'Guilds' in the database.
[ADM]BLooM is offline  
Old 09/24/2012, 16:14   #8
 
elite*gold: 0
Join Date: Jan 2010
Posts: 39
Received Thanks: 15
Code:
check first line :

USE [PS_GameData]

Add under :

drop table [dbo].[Guilds]
this will delete the table you've got actually, then create the new one ...

(but the first code in this thread seems to be the better one to me -_- ..)
DarkAngel71 is offline  
Thanks
1 User
Old 09/24/2012, 16:41   #9
 
[ADM]BLooM's Avatar
 
elite*gold: 0
Join Date: Sep 2011
Posts: 45
Received Thanks: 37
Quote:
Originally Posted by DarkAngel71 View Post
Code:
check first line :

USE [PS_GameData]

Add under :

drop table [dbo].[Guilds]
this will delete the table you've got actually, then create the new one ...

(but the first code in this thread seems to be the better one to me -_- ..)
is give me an eror this to

Msg 156, Level 15, State 1, Line 1
Incorrect syntax near the keyword 'check'.
Msg 102, Level 15, State 1, Line 5
Incorrect syntax near ':'.

Anyone know how to fix it ? Ill aprecied any good post about this !

Done. ! Fixed ... i deleted dbo.Guilds manually and i used this script :

USE [PS_GameData]
GO
/****** Object: Table [dbo].[Guilds] Script Date: 09/29/2011 06:36:30 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[Guilds](
[RowID] [int] IDENTITY(1,1) NOT NULL,
[GuildID] [int] NOT NULL,
[GuildName] [varchar](30) COLLATE Chinese_PRC_Stroke_CI_AI NOT NULL,
[MasterUserID] [varchar](12) COLLATE Chinese_PRC_Stroke_CI_AI NOT NULL,
[MasterCharID] [int] NOT NULL,
[MasterName] [varchar](30) COLLATE Chinese_PRC_Stroke_CI_AI NOT NULL,
[Country] [tinyint] NOT NULL,
[TotalCount] [smallint] NOT NULL,
[GuildPoint] [int] NOT NULL,
[Del] [tinyint] NOT NULL CONSTRAINT [DF_Guilds_Del] DEFAULT (0),
[CreateDate] [datetime] NOT NULL,
[DeleteDate] [datetime] NULL,
CONSTRAINT [PK_Guilds] PRIMARY KEY CLUSTERED
(
[GuildID] ASC
)WITH (PAD_INDEX = OFF, IGNORE_DUP_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]

GO
SET ANSI_PADDING OFF

Thx to everyone !
[ADM]BLooM is offline  
Thanks
4 Users
Old 09/24/2012, 17:48   #10
 
elite*gold: 0
Join Date: Jan 2010
Posts: 39
Received Thanks: 15
well ... seems I failed my code syntax, or you failed understanding it !!!

I meant :
after first line :
Code:
USE [PS_GameData]
add :
Code:
drop table [dbo].[Guilds]
DarkAngel71 is offline  
Reply


Similar Threads Similar Threads
Guilds-Recruiting Thread (Join/Announce Guilds Here!!)
07/13/2011 - Silkroad Online - 95 Replies
Guilds-Recruiting === ===== ======= ========= =========== =============
d2nt bluebird - restart restart restart
06/15/2010 - Diablo 2 - 7 Replies
yo, ich hab schon länger 4 bots am laufen, hat auch immer alles relativ gut geklappt, auf 50 runs meist so 3-4 restarts, also ganz in ordnung, und wie ichs so mitbekommen hab waren die meist eh schon gegen ende des games (ja gut, kein baal kill,aber was solls) seit 2 tagen allerdings funktioniert da überhaupt nix mehr einer läuft "ziemlich" normal, 8 runs 2 restarts der nächste 9 runs 7 restarts dann 19 runs 19 restarts und 47 runs 47 restarts dann is natürlich realm down bei allen,...
help with 5165 Guilds being deleted when login off
01/22/2010 - CO2 Private Server - 11 Replies
im runing 5165 when i make a guild and then log off and log back in the guilds get deleted anyone know why is that? hope some one can help me out.
[Request] Guilds, Friends, Marriage, Auto Restart
07/02/2009 - CO2 Private Server - 8 Replies
Hi everyone! I'd like some help fixing my code for these sections. I use PowerSource. I would appreciate any code given, and any explanations on how to figure it out would be great. Guilds - The name 'DataBase' does not exist in the current context in Guild.cs, line 32, 156, 179, 192, 236 Character.cs, line 1646 Friends - I can only find code for LOTF source. As is, friends will randomly disappear off the friend list. I think it's a problem packing or unpacking the list. ...



All times are GMT +1. The time now is 20:02.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.