|
You last visited: Today at 21:07
Advertisement
[Theory] For Developers + People with a brain.
Discussion on [Theory] For Developers + People with a brain. within the SRO Private Server forum part of the Silkroad Online category.
10/30/2011, 23:20
|
#1
|
elite*gold: 0
Join Date: Apr 2008
Posts: 310
Received Thanks: 196
|
[Theory] For Developers + People with a brain.
COMPLETE
Here is a theory about the database -> Targeting _Items in Shard.
Problem:
My Server currently has over 13million items in the _Items table, which is ******* insane considering we have only been on for 1 month but with over 120,000 characters + 40,000 users.
Now what i found is that these files are seriously lacking performance and incomplete, and there is no way any server with that many items in the database will say "We have 0% lag" because thats just bull **** and fake! And i assume im not the only one who realized this..
Solution:
- I Already modified 40% of my files stored procedures for better performance, but thats not good enough. So here is my real solution.
Step 1) Remove Items from the database when a user drops them [100%]
Step 2) Remove Items from the database when a char is deleted [100%]
Step 3) Remove Items from the database where items dont exist in "Pet inventory / Inventory / Guild ware house / Ware house" [100%]
I would like to hear some thoughts about this?
|
|
|
10/31/2011, 00:27
|
#2
|
Chat Killer In Duty
elite*gold: 5
Join Date: May 2008
Posts: 16,397
Received Thanks: 6,509
|
Quote:
Originally Posted by jangan322
Here is a theory about the database -> Targeting _Items in Shard.
Problem:
My Server currently has over 3million items in the _Items table, which is ******* insane considering we have only been on for 1 month but with over 120,000 characters + 40,000 users.
Now what i found is that these files are seriously lacking performance and incomplete, and there is no way any server with that many items in the database will say "We have 0% lag" because thats just bull **** and fake! And i assume im not the only one who realized this and there are few people who are smart around here.
Solution:
- I Already modified 40% of my files stored procedures for better performance, but thats not good enough. So here is my real solution.
Step 1) Remove Items from the database when a user drops them [40%]
Step 2) Remove Items from the database when a char is deleted [10%]
Step 3) Remove Items from the database where items dont exist in "Pet inventory / Inventory / Guild ware house / Ware house" [0%]
I would like to hear some thoughts about this?
|
i think is a good idea
maybe items from chars that where deleted time ago, not immediately
but is a good idea
|
|
|
10/31/2011, 01:08
|
#3
|
elite*gold: 0
Join Date: Feb 2008
Posts: 2,310
Received Thanks: 862
|
Better find a solution for the thing that causes that. If you have 3m items in database its probably because you start a char with about 100 items and when people just create new chars to get new nova+5 weapons to pimp their gear thats how you get stacked so much items.
So maybe make wipe for existing problem and add nova items to npc so you wont get 40k accounts and such problem?
|
|
|
10/31/2011, 01:12
|
#4
|
elite*gold: 0
Join Date: Apr 2008
Posts: 310
Received Thanks: 196
|
well, every item that any monster in the game drops, still exists in game... it never gets removed.
Only isro and servers like zszc remvoed items from the game that dont get used. THis is a problem for all VSRO files :P
|
|
|
10/31/2011, 01:19
|
#5
|
elite*gold: 0
Join Date: Feb 2008
Posts: 2,310
Received Thanks: 862
|
But look, if you start with clean inventory and get items from npc you wont get anywhere near 3m items again in long time.
|
|
|
10/31/2011, 02:53
|
#6
|
Chat Killer In Duty
elite*gold: 5
Join Date: May 2008
Posts: 16,397
Received Thanks: 6,509
|
Quote:
Originally Posted by Nova1337
But look, if you start with clean inventory and get items from npc you wont get anywhere near 3m items again in long time.
|
yeh, but will soon happen
thats why, he is interested on finding a way to totally remove unused items
|
|
|
10/31/2011, 03:11
|
#7
|
elite*gold: 0
Join Date: Dec 2007
Posts: 166
Received Thanks: 105
|
What you are saying, though being a good idea, is not that easy to do.
From here on, take in account I have never seen any file nor DB of SRO in action.
The best approach to do what you are proposing would be a C++ (or C#) application which looped through the entire items table and cheking up spawn date + ownership deleted them or not.
Until here it is "kinda easy" to do, the problems come now:
1. If you delete an item from the DB which is just being used by the server, it would crash.
2. If you delete an item from DB but server keeps it in memory and further requests are made to the item, server would keep acting as the item existed while it didn't
3. If a player is next to the item when deleted from DB, the player could still view the item (no despawn packet could be send at all) though item didn't exist.
4. Anything like those 3.
The only solution to the above problems would be doing maintainance to the server each X days, and then restarting the server. But as you may understand that would imply not being able to despawn items at the moment (just as isro and so).
Hope this is useful =)
|
|
|
10/31/2011, 07:23
|
#8
|
elite*gold: 0
Join Date: Apr 2008
Posts: 310
Received Thanks: 196
|
I cant create search loops with 1000 people on... that will destroy the server :P
Although you raise some interesting problems, Well, hopefully im right by saying this statment "i know 100% how to remove an item from the game".
My issues comes with after removing the unsed items, which is being scared of getting duplicates but i monitored how the game adds items to the database, and it doesnt fill holes, it justs continues with the Primary Counter Key.
|
|
|
10/31/2011, 14:14
|
#9
|
elite*gold: 0
Join Date: Mar 2009
Posts: 2,748
Received Thanks: 2,010
|
joymax had a reason to do that. If it's causing any stability or speed issue then you're doing something wrong. MSSQL is extremely scalable, do it
|
|
|
11/01/2011, 00:33
|
#10
|
elite*gold: 0
Join Date: Apr 2008
Posts: 310
Received Thanks: 196
|
Hehe its scary, i will have to spend few days making the perfect query so i dont destroy the database xD
|
|
|
11/01/2011, 04:55
|
#11
|
elite*gold: 0
Join Date: Feb 2009
Posts: 173
Received Thanks: 14
|
The Perfection Network has found the solution to this problem. See the following post from Jangan for more info.
|
|
|
11/01/2011, 04:56
|
#12
|
elite*gold: 0
Join Date: Apr 2008
Posts: 310
Received Thanks: 196
|
WE DID IT!!!!!!!!!!!!!!!!!
We removed 7 million items from the game! and fixed every VSRO problems! and We are the first to do it!!!
Now what happens:
- If you delete a character, all items related will be deleted
- If you drop an item and it disappears, it will be deleted from the game.
Mission successful, no lags, no duplicates, no holes!!!
|
|
|
11/01/2011, 05:59
|
#13
|
elite*gold: 0
Join Date: Mar 2009
Posts: 2,693
Received Thanks: 3,160
|
would you share the way you did it  ?
i'm really interested in vsro developing
|
|
|
11/01/2011, 06:15
|
#14
|
elite*gold: 0
Join Date: May 2009
Posts: 65
Received Thanks: 15
|
Tradesman secret at the moment
|
|
|
11/01/2011, 06:16
|
#15
|
elite*gold: 0
Join Date: Apr 2008
Posts: 310
Received Thanks: 196
|
Quote:
Originally Posted by LastThief
would you share the way you did it  ?
i'm really interested in vsro developing
|
Come on skype more often <3 i really wanna talk to you lol
|
|
|
 |
Similar Threads
|
In Need of Developers
06/09/2011 - Dekaron Private Server - 24 Replies
As the title says.
We are currently running on a dedi, using KingTuts Action 9 Release Client.
Working on starting a new gaming network. I Need Graphics Designers, and skilled developers, that can add, fix, and tweak. Add me at [email protected] if you are interested, and please, if your not interested, don't leave a nasty comment about why it is that you aren't.
|
More people then 40 people in isle of conquest
08/29/2009 - WoW Exploits, Hacks, Tools & Macros - 1 Replies
Hello,
needed
warlock 1 or more the more how faster
waterwalking elixer or an dk
people to summon
isle of conquest has water around it
instand high walz like ab wsg etc you can easy run out the battleground
and go to unknown area's
|
Moonbox Theory (Just a theory, don't flame =D)
01/17/2009 - Conquer Online 2 - 10 Replies
Looks like my theory was wrong. Looks like all Moonboxes are Moonbox. If you can prove that it isn't, by all means let me know =P
|
[Help]People can't Kill people in a normal attack.
11/10/2008 - CO2 Private Server - 0 Replies
People can't attack each other in a PK place in a normal attack they only can attack each other with a skill(fastblade and other)
and before it worked now it is not =/
Any help?
|
All times are GMT +1. The time now is 21:08.
|
|