Register for your free account! | Forgot your password?

You last visited: Today at 14:30

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

Advertisement



Curious Error

Discussion on Curious Error within the Shaiya Private Server forum part of the Shaiya category.

Closed Thread
 
Old   #1
 
TeddyBear94's Avatar
 
elite*gold: 10
Join Date: May 2012
Posts: 1,857
Received Thanks: 2,632
Curious Error

Hey Guys i have noticed a curious error in my loggs and tbh i have no clue how they appeared nor how i should fix them.
I already executed the usp_save_char_info_e new but yet it doesnt made any difference.
I would be rly glad if anyone got a clue or a hint for that prob






TeddyBear94 is offline  
Old 04/24/2013, 16:19   #2
 
castor4878's Avatar
 
elite*gold: 0
Join Date: Dec 2010
Posts: 717
Received Thanks: 3,367
- in
Quote:
call usp_Save_Char_Info_E(153,70,0,5,10,19,9,7,8,12,606 4,474,1406,43,250,21000,200000,'1141.413208','16.3 17999','1597.816772', 0,200,0,0,0, 1000000,0,0,0, 0,0)
the Hp parameter is "606 4" instead of 6064; is it a typo due to log process or copy/paste in this post?

- usp_Save_Char_Info_E, the "classical" one does not perform any subquery, it only contains a where clause with the @CharID argument.
did u change that SP ? can u post the one u are using?
castor4878 is offline  
Old 04/24/2013, 19:51   #3
 
TeddyBear94's Avatar
 
elite*gold: 10
Join Date: May 2012
Posts: 1,857
Received Thanks: 2,632
thats the one i use and no i never changed that one ö.ö
the problem appeared out of nowhere D:
TeddyBear94 is offline  
Old 04/24/2013, 21:27   #4
 
x-DoeSn'TxMaTTeR-x's Avatar
 
elite*gold: 0
Join Date: Aug 2012
Posts: 152
Received Thanks: 72
Source:

Charlie___XXX25 Points:
0
set @assignedID = (select ID from RecordTable where DateSubmitted = @dateSubmitted)



my guess is that you get that error because you insert more than one record with the same datesubmitted value.

Reply Quote
Tuesday, June 26, 2007 3:02 PM

SomeDeveloperPerson130 Points


0
Charlie___XXX wrote:
set @assignedID = (select ID from RecordTable where DateSubmitted = @dateSubmitted)

my guess is that you get that error because you insert more than one record with the same datesubmitted value.




That's not possible. The error occurs even when the RecordTable is empty.
Reply Quote
Tuesday, June 26, 2007 3:10 PM

SomeDeveloperPerson130 Points


1
SomeDeveloperPerson wrote:
Charlie___XXX wrote:
set @assignedID = (select ID from RecordTable where DateSubmitted = @dateSubmitted)

my guess is that you get that error because you insert more than one record with the same datesubmitted value.




That's not possible. The error occurs even when the RecordTable is empty.


Charlie... you're actually correct. I modified the line to:
Code Snippet
set @assignedID = (select MAX(ID) from RecordTable where DateSubmitted = @dateSubmitted)



And it works with no problems now. Apparently the code is executing faster than expected so that several records are being written in under a millisecond.
x-DoeSn'TxMaTTeR-x is offline  
Thanks
3 Users
Old 04/24/2013, 21:48   #5
 
castor4878's Avatar
 
elite*gold: 0
Join Date: Dec 2010
Posts: 717
Received Thanks: 3,367
your example is perfect DSTM

set @assignedID = (select ID from RecordTable where DateSubmitted = @dateSubmitted)

is indeed inherently invalid.

but the original usp_Save_Char_Info_E and the version posted by Teddy doesn't contain such statement.

I also assume that the call to the unknown "sp_Update_Char sPVPData_E" proc is actually in a comment (the log does not indicate that error occured in that SP neither).

The error has so far no explanation with the given information.

Teddy, the calls logged in the out file can be executed (as any valid sql stmt), so try to execute one of the

call usp_Save_Char_Info_E(153,70,0,5,10,19,9,7,8,12,606 4,474,1406,43,250,21000,200000,'1141.413208','16.3 17999','1597.816772', 0,200,0,0,0, 1000000,0,0,0, 0,0)

in a query window. add all useful output in the SP, eg:

PRINT 'step N' + @CharID

-------------------------------------------------------------------------

after 5th reading ... there is non consistant definition.

the PS_BDAGENT logs:

usp_Save_Char_Info_E(153,70, 0,5, 10,19,9,7,8,12, 6064,474,1406, 43,250, 21000,200000, 1141.413208,16.317999,1597.816772, 0,200,0,0,0, 1000000,0,0,0)

so it manages posX, posY, posZ as reals and it doesn't transmit the @KillLevel and @DeadLevel parameters ... this is (except enormous mistake) not possible, these last 2 params are mandatory.

meantime, the SP you provided does define:

[...] Proc [usp_Save_Char_Info_E]

@CharID int, @Level int, @StatPoint smallint, @SkillPoint smallint,
@Str smallint, @Dex smallint, @Rec smallint, @Int smallint, @Wis smallint, @Luc smallint,
@Hp smallint, @Mp smallint, @Sp smallint,
@Map smallint, @Dir smallint, @Exp int, @Money int,
@Posx real, @Posy real, @Posz real,
@Hg int, @Vg int, @Cg int, @Og int, @Ig int,
@K1 int = null, @K2 int = null, @K3 int = null, @K4 int = null,
@KillLevel tinyint, @DeadLevel tinyint

where posX|Y|Z are indeed real, so the call would be correct, expect the 2 missing last params.

OOH, the second log gives:

2013-04-23 11:14:15 err=-1, [Microsoft][ODBC SQL Server Driver][SQL Server]Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression., SQL STATE: 21000, NATIVE ERROR: 512 (0x200)

2013-04-23 11:14:15 ::SaveCharacter 153 Tedde ret=1, qerr=-1, {
?=call usp_Save_Char_Info_E(153,70,0,5,10,19,9,7,8,12,606 4,474,1406,43,250,21000,200000,'1141.413208','16.3 17999','1597.816772', 0,200,0,0,0, 1000000,0,0,0, 0,0)}

where one reads:

usp_Save_Char_Info_E(153,70,0,5,10,19,9,7,8,12, 6064, 474,1406, 43,250,21000,200000,
'1141.413208','16.3 17999','1597.816772',
0,200,0,0,0,
1000000,0,0,0,
0,0)

the 3 coords are transmitted as string (they are single-quoted) (and the Kill / Dead levels are provided)

this point shall be fixed. your SP excepts real or string but not both, and function overloading is AFAIK not supported by SQL (we can not have both with 2 prototypes).

my own SP is:

where coords are given as string and the final client (the PS_Login.exe and PS_Game.exe) shall comply with this declaration and thus provide a pointer to string, not a real8.

may be the ODBC middleware manages the coercion of data.
but may be this real / string mistake is the cause of your error, the SP failed to be called due to invalid parameter and reported errors are wrong (exact cause is lost bacuse no actual call is made).

you should check this assumption with the SP above.
castor4878 is offline  
Thanks
4 Users
Old 04/27/2013, 06:55   #6
 
TeddyBear94's Avatar
 
elite*gold: 10
Join Date: May 2012
Posts: 1,857
Received Thanks: 2,632
error got fixed
i noticed that i deleated all my chars and accounts and made new accounts which was the problem as the old items from that accounts caused these problems. i moved the new accounts to UserUID 50+ and now it works all fine.
thats for the input the thread can be closed
TeddyBear94 is offline  
Old 04/28/2013, 03:04   #7
 
JohnHeatz's Avatar
 
elite*gold: 150
Join Date: Apr 2010
Posts: 9,739
Received Thanks: 8,981
#Closed as requested
JohnHeatz is offline  
Closed Thread


Similar Threads Similar Threads
Curious.
01/03/2012 - Mabinogi - 11 Replies
I'm posting this thread simply to find out whether or not duping through tutorial dungeon is still possible. I've tried the teleportation build in Alissa, and obviously, thanks to some dumbshit leechers, has been patched. I was just wondering if getting to tutorial dungeon is still possible. And if not, I want to know if there is another method of duping, and what it involves. *Note to trolls/spammers/smartasses/etc. I'm not asking on a detailed description on how to dupe. I'm not asking...
Im just curious...
07/24/2010 - Archlord - 15 Replies
A few hours ago I found a ss from Webzen AL... Can someone tell me what that blueish thing is in row 2 col. 2?... http://kepfeltoltes.hu/100722/81219326-4_www.kepf eltoltes.hu_.jpg
just curious
09/12/2008 - Dekaron Private Server - 1 Replies
is there anyone on the 360x or w/e it is server atm? need a little help getting the feathers for my wings because for some damn reason the chinese people there are so damn greedy they keep killing me i would fight back but 4 vrs 1 anyone would die
curious...
02/03/2006 - Conquer Online 2 - 26 Replies
hi guys was wonderin i use the co loader pretty much everyday to load a 3rd char,met my stuff which i got another sokt item by rapid spammin thnx to the loader hehe quik getaways after pkin was curios would i get banned or somthing from usin this everyday like overusing it or somthing? and thnx again for all the nifty lil triks hehe :D



All times are GMT +1. The time now is 14:31.


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.