[Release] Fix bug AQ succeeded but AsyncQueryCompleted() error occurred

07/09/2021 18:14 Laag#82#1
Hello to everyone.

This error comes from table (_Inventory)


PHP Code:

Write this 
(NourAyman in rage....)


Disconnect when buy anything from any shop !

If 
drop any item get DC and get fatal error line on GameServer
If split any item get DC and get fatal error line on GameServer
If collect dropped get DC and get fatal error line on GameServer
If transfer item to storge get DC and get fatal error line on GameServer 
Error

PHP Code:
Query: {CALL _STRG_SPLIT_ITEM (?, ?, 01,1157813,343,2)} 
PHP Code:
Query: {CALL _STRG_ADD_EXPENDABLE (?, ?, 2864,389071)} 
PHP Code:
Query: {CALL _STRG_ADD_EQUIP_NORMAL (?, ?, 1450449,2724247,0,0,56)} 

PHP Code:
AQ FailedLog out!! [AQType1
PHP Code:
https://www.elitepvpers.com/forum/sro-private-server/4235920-aq-failed-log-out-aqtype-5-a.html 

PHP Code:
AQ succeeded but AsyncQueryCompleted() error occurred [AQType18
PHP Code:
https://www.elitepvpers.com/forum/sro-private-server/2408356-help-costum-npc-items-cant-buy-coin.html 
How can this problem be solved

After clean (SRO_VT_SHARD)

Delete

PHP Code:
_Inventory 
Rebuild

PHP Code:
USE [SRO_VT_SHARD]
GO

/****** Object:  Table [dbo].[_Inventory]    Script Date: 7/9/2021 3:18:38 AM ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

CREATE TABLE 
[dbo].[_Inventory](
    [
CharID] [intNOT NULL,
    [
Slot] [tinyintNOT NULL,
    [
ItemID] [bigintNOT NULL,
 
CONSTRAINT [PK_InventoryPRIMARY KEY CLUSTERED 
(
    [
CharIDASC,
    [
SlotASC
)WITH (PAD_INDEX OFFSTATISTICS_NORECOMPUTE OFFIGNORE_DUP_KEY OFFALLOW_ROW_LOCKS ONALLOW_PAGE_LOCKS ONFILLFACTOR 90ON [PRIMARY]
ON [PRIMARY]

GO

ALTER TABLE 
[dbo].[_Inventory]  WITH CHECK ADD  CONSTRAINT [FK__Inventory__CharFOREIGN KEY([CharID])
REFERENCES [dbo].[_Char] ([CharID])
GO

ALTER TABLE 
[dbo].[_InventoryCHECK CONSTRAINT [FK__Inventory__Char]
GO

ALTER TABLE 
[dbo].[_Inventory]  WITH CHECK ADD  CONSTRAINT [FK__Inventory__ItemsFOREIGN KEY([ItemID])
REFERENCES [dbo].[_Items] ([ID64])
GO

ALTER TABLE 
[dbo].[_InventoryCHECK CONSTRAINT [FK__Inventory__Items]
GO 
Good Luck to everyone ;)
07/10/2021 00:36 zagorodnov#2
it's not "fix", it's bullshit
07/10/2021 01:50 Laag#82#3
Quote:
Originally Posted by zagorodnov View Post
it's not "fix", it's bullshit
how do you know that :rolleyes:
07/10/2021 15:06 _SGA_#4
If this happens to you, make sure the MSSQL user account you're using for the server has the rights to change modify add delete to mssql. If there is no problem with the user accounts than it means you messed up the stored procedures (mssql queries found in stored procedures section of mssql manager). Replace them with working ones from another database especially the ones related to items and inventory.
07/14/2021 14:46 zagorodnov#5
Quote:
Originally Posted by khaleed2010 View Post
how do you know that :rolleyes:
Your players lost all invertory. it's very bad way.
And you're not fixing the problem, you're fixing the consequences
07/17/2021 10:46 Abdo knight#6
how you know that ?
11/22/2021 15:04 sasa5214#7
Thank you ^^ <3
05/13/2025 19:51 KjDBun#8
do you have any other way?