Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 13.11.2006, 08:37   #1
dinesat4
Архивный участник
 
Join Date: Jul 2005
Posts: 123
Default Cached Quest Error. i'm boring with that ¬_¬

The CacheD console show this error:


WTF!?
The design of quest table are correct



(sql script to create the quest table):
Code:
CREATE TABLE [quest] (
  [char_id] int NOT NULL,
  [q1] int DEFAULT (0) NOT NULL,
  [s1] int DEFAULT (0),
  [q2] int DEFAULT (0) NOT NULL,
  [s2] int DEFAULT (0) NOT NULL,
  [q3] int DEFAULT (0) NOT NULL,
  [s3] int DEFAULT (0) NOT NULL,
  [q4] int DEFAULT (0) NOT NULL,
  [s4] int DEFAULT (0) NOT NULL,
  [q5] int DEFAULT (0) NOT NULL,
  [s5] int DEFAULT (0) NOT NULL,
  [q6] int DEFAULT (0) NOT NULL,
  [s6] int DEFAULT (0) NOT NULL,
  [q7] int DEFAULT (0) NOT NULL,
  [s7] int DEFAULT (0) NOT NULL,
  [q8] int DEFAULT (0) NOT NULL,
  [s8] int DEFAULT (0) NOT NULL,
  [q9] int DEFAULT (0) NOT NULL,
  [s9] int DEFAULT (0) NOT NULL,
  [q10] int DEFAULT (0) NOT NULL,
  [s10] int DEFAULT (0) NOT NULL,
  [q11] int DEFAULT (0) NOT NULL,
  [s11] int DEFAULT (0) NOT NULL,
  [q12] int DEFAULT (0) NOT NULL,
  [s12] int DEFAULT (0) NOT NULL,
  [q13] int DEFAULT (0) NOT NULL,
  [s13] int DEFAULT (0) NOT NULL,
  [q14] int DEFAULT (0) NOT NULL,
  [s14] int DEFAULT (0) NOT NULL,
  [q15] int DEFAULT (0) NOT NULL,
  [s15] int DEFAULT (0) NOT NULL,
  [q16] int DEFAULT (0) NOT NULL,
  [s16] int DEFAULT (0) NOT NULL,
  [j1] int DEFAULT (0) NOT NULL,
  [j2] int DEFAULT (0) NOT NULL,
  [j3] int DEFAULT (0) NOT NULL,
  [j4] int DEFAULT (0) NOT NULL,
  [j5] int DEFAULT (0) NOT NULL,
  [j6] int DEFAULT (0) NOT NULL,
  [j7] int DEFAULT (0) NOT NULL,
  [j8] int DEFAULT (0) NOT NULL,
  [j9] int DEFAULT (0) NOT NULL,
  [j10] int DEFAULT (0) NOT NULL,
  [j11] int DEFAULT (0) NOT NULL,
  [j12] int DEFAULT (0) NOT NULL,
  [j13] int DEFAULT (0) NOT NULL,
  [j14] int DEFAULT (0) NOT NULL,
  [j15] int DEFAULT (0) NOT NULL,
  [j16] int DEFAULT (0) NOT NULL,
  [s2_1] int DEFAULT (0),
  [s2_2] int DEFAULT (0),
  [s2_3] int DEFAULT (0),
  [s2_4] int DEFAULT (0),
  [s2_5] int DEFAULT (0),
  [s2_6] int DEFAULT (0),
  [s2_7] int DEFAULT (0),
  [s2_8] int DEFAULT (0),
  [s2_9] int DEFAULT (0),
  [s2_10] int DEFAULT (0),
  [s2_11] int DEFAULT (0),
  [s2_12] int DEFAULT (0),
  [s2_13] int DEFAULT (0),
  [s2_14] int DEFAULT (0),
  [s2_15] int DEFAULT (0),
  [s2_16] int DEFAULT (0)
)
ON [PRIMARY]
GO

Store Procedure lin_LoadQuest:

Code:
/********************************************  
lin_LoadQuest  
   
INPUT  
 @char_id int  
OUTPUT  
return  
made by  
 carrot  
date  
 2002-06-09  
********************************************/  
ALTER  PROCEDURE [DBO].[lin_LoadQuest]  
(  
@char_id int  
)  
AS  
SET NOCOUNT ON  
  
SELECT TOP 1  q1, s1,  s2_1, j1,    
  q2, s2,  s2_2, j2,   
  q3, s3,  s2_3, j3,   
  q4, s4,  s2_4, j4,   
  q5, s5,  s2_5, j5,   
  q6, s6,  s2_6, j6,   
  q7, s7, s2_7,  j7,   
  q8, s8, s2_8,  j8,  
  q9, s9,  s2_9, j9,   
  q10, s10, s2_10,  j10,   
  q11, s11,  s2_11,  j11,   
  q12, s12, s2_12,  j12,  
  q13, s13, s2_13,  j13,  
   q14, s14, s2_14,  j14,   
  q15, s15,  s2_15, j15,   
  q16, s16,  s2_16, j16    
FROM quest (nolock)   
WHERE char_id = @char_id
GO
SET QUOTED_IDENTIFIER OFF 
GO
SET ANSI_NULLS ON 
GO
Code:
********************************************/  
CREATE PROCEDURE [DBO].[lin_SetQuest]  
(  
@q1 INT,  
@s1 INT,  
@s2_1 INT,  
@j1 INT,  
  
@q2 INT,  
@s2 INT,  
@s2_2 INT,  
@j2 INT,  
  
@q3 INT,  
@s3 INT,  
@s2_3 INT,  
@j3 INT,  
  
@q4 INT,  
@s4 INT,  
@s2_4 INT,  
@j4 INT,  
  
@q5 INT,  
@s5 INT,  
@s2_5 INT,  
@j5 INT,  
  
@q6 INT,  
@s6 INT,  
@s2_6 INT,  
@j6 INT,  
  
  
@q7 INT,  
@s7 INT,  
@s2_7 INT,  
@j7 INT,  
  
@q8 INT,  
@s8 INT,  
@s2_8 INT,  
@j8 INT,  
  
@q9 INT,  
@s9 INT,  
@s2_9 INT,  
@j9 INT,  
  
@q10 INT,  
@s10 INT,  
@s2_10 INT,  
@j10 INT,  
  
@q11 INT,  
@s11 INT,  
@s2_11 INT,  
@j11 INT,  
  
@q12 INT,  
@s12 INT,  
@s2_12 INT,  
@j12 INT,  
  
@q13 INT,  
@s13 INT,  
@s2_13 INT,  
@j13 INT,  
  
@q14 INT,  
@s14 INT,  
@s2_14 INT,  
@j14 INT,  
  
@q15 INT,  
@s15 INT,  
@s2_15 INT,  
@j15 INT,  
  
@q16 INT,  
@s16 INT,  
@s2_16 INT,  
@j16 INT,  
  
@char_id  INT  
  
)  
AS  
SET NOCOUNT ON  
  
UPDATE quest   
SET   
q1=@q1, s1=@s1, s2_1=@s2_1, j1=@j1,   
q2=@q2, s2=@s2, s2_2=@s2_2, j2=@j2,   
q3=@q3, s3=@s3, s2_3=@s2_3, j3=@j3,   
q4=@q4, s4=@s4, s2_4=@s2_4, j4=@j4,   
q5=@q5, s5=@s5, s2_5=@s2_5, j5=@j5,   
q6=@q6, s6=@s6, s2_6=@s2_6, j6=@j6,   
q7=@q7, s7=@s7, s2_7=@s2_7, j7=@j7,   
q8=@q8, s8=@s8, s2_8=@s2_8, j8=@j8,   
q9=@q9, s9=@s9, s2_9=@s2_9, j9=@j9,   
q10=@q10, s10=@s10, s2_10=@s2_10, j10=@j10,   
q11=@q11, s11=@s11, s2_11=@s2_11, j11=@j11,   
q12=@q12, s12=@s12, s2_12=@s2_12, j12=@j12,   
q13=@q13, s13=@s13, s2_13=@s2_13, j13=@j13,   
q14=@q14, s14=@s14, s2_14=@s2_14, j14=@j14,   
q15=@q15, s15=@s15, s2_15=@s2_15, j15=@j15,   
q16=@q16, s16=@s16, s2_16=@s2_16, j16=@j16  
WHERE char_id = @char_id
GO
i... don't understand... and i'm very tired :@
dinesat4 is offline  
Old 13.11.2006, 22:00   #2
dinesat4
Архивный участник
 
Join Date: Jul 2005
Posts: 123
Default

Delete the post plz
i found the bug^^
dinesat4 is offline  
Old 13.11.2006, 22:01   #3
m4rk
Архивный участник
 
Join Date: Jan 2006
Posts: 607
Default

Can you explain it here? So if anyone has your same problem he can get the info he needs here.
m4rk is offline  
Old 13.11.2006, 23:22   #4
dinesat4
Архивный участник
 
Join Date: Jul 2005
Posts: 123
Default

char traslade problem.

i forget to traslade the quest table, i traslade user_item, user_skill... but no quest table

char_id from user_data is always exist in the quest table, if not... the cached generated a "Loadquest fetch error", because the char_id exist in user_data, but not in quest table
dinesat4 is offline  
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 17:14.