Register for your free account! | Forgot your password?

You last visited: Today at 00:30

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

Advertisement



anyone know?

Discussion on anyone know? within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Aug 2012
Posts: 9
Received Thanks: 0
Exclamation anyone know?

Hi my source is 5530 and have this problem can anyone help me a little bit with this?


System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
at System.ThrowHelper.ThrowArgumentOutOfRangeExceptio n()
at System.Collections.Generic.List`1.get_Item(Int32 index)
at Conquer_Online_Server.Database.MonsterInformation. Drop(Entity killer) in C:\DaRkHellCO 4 Source 5525\Database\MonsterTable.cs:line 1904
at Conquer_Online_Server.Game.Entity.Die(Entity killer) in C:\DaRkHellCO 4 Source 5525\Game\Entity.cs:line 2113
at Conquer_Online_Server.Game.Attacking.Handle.Receiv eAttack(Entity attacker, Entity attacked, Attack attack, UInt32 damage, SpellInformation spell) in C:\DaRkHellCO 4 Source 5525\Game\Attacking\Handle.cs:line 4537
at Conquer_Online_Server.Game.Attacking.Handle.Execut e() in C:\DaRkHellCO 4 Source 5525\Game\Attacking\Handle.cs:line 2491
at Conquer_Online_Server.Game.Attacking.Handle..ctor( Attack attack, Entity attacker, Entity attacked) in C:\DaRkHellCO 4 Source 5525\Game\Attacking\Handle.cs:line 24
at Conquer_Online_Server.Program.AttackThread_Execute () in C:\DaRkHellCO 4 Source 5525\Program.cs:line 287


__________________________________________________ ___________
this part is 1904

retry:
times--;
int generateItemId = ServerBase.Kernel.Random.Next(itemdroplist.Count);
uint id = itemdroplist[generateItemId];
if (!Boss)
{
if (Database.ConquerItemInformation.BaseInformations[id].Level > 121 && times > 0)
goto retry;
id = (id / 10) * 10 + (uint)quality;
}
if (!Database.ConquerItemInformation.BaseInformations .ContainsKey(id))
{
id = itemdroplist[generateItemId];
}
Litper is offline  
Old 08/27/2012, 01:59   #2
 
.Kinshi's Avatar
 
elite*gold: 0
Join Date: Dec 2010
Posts: 341
Received Thanks: 255
Variables have a minimum and maximum value depending on its type. It means the number you're using is too high or too low.
.Kinshi is offline  
Thanks
2 Users
Old 08/27/2012, 02:42   #3
 
elite*gold: 0
Join Date: Aug 2012
Posts: 9
Received Thanks: 0
Quote:
Originally Posted by .Kinshi View Post
Variables have a minimum and maximum value depending on its type. It means the number you're using is too high or too low.
so how i cant fixed this part where exactly need make it and tanks for answer
Litper is offline  
Old 08/27/2012, 03:24   #4
 
badguy4you's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 477
Received Thanks: 178
Quote:
Originally Posted by Litper View Post
so how i cant fixed this part where exactly need make it and tanks for answer
Learn programming to fix it
badguy4you is offline  
Old 08/27/2012, 03:53   #5
 
elite*gold: 0
Join Date: Aug 2012
Posts: 9
Received Thanks: 0
Quote:
Originally Posted by badguy4you View Post
Learn programming to fix it

i learn it just im ask about this problem to know how to fix it and know more about this and continue learn more
Litper is offline  
Old 08/27/2012, 03:57   #6
 
badguy4you's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 477
Received Thanks: 178
Quote:
Originally Posted by Litper View Post
i learn it just im ask about this problem to know how to fix it and know more about this and continue learn more
he told you the problem so you if you know programming you could fix it easily
badguy4you is offline  
Old 08/27/2012, 07:41   #7
 
elite*gold: 0
Join Date: Dec 2011
Posts: 1,537
Received Thanks: 785
The problem happens here:
Code:
uint id = itemdroplist[generateItemId];
And the reason is here:
Code:
int generateItemId = ServerBase.Kernel.Random.Next(itemdroplist.Count);
Change itemdroplist.Count to itemdroplist.Count - 1, because arrays starts from 0.
I don't have a username is offline  
Thanks
1 User
Old 08/27/2012, 08:38   #8
 
elite*gold: 0
Join Date: Aug 2012
Posts: 9
Received Thanks: 0
thanks guys i fixed it with all yours help
Litper is offline  
Old 09/03/2012, 20:58   #9
 
elite*gold: 0
Join Date: Aug 2012
Posts: 9
Received Thanks: 0
other little question ur know how the users can clones CPs on this version? i have a big problem with this and im check all the code and dont have error on the console.
Litper is offline  
Old 09/03/2012, 21:24   #10
 
elite*gold: 0
Join Date: Dec 2011
Posts: 1,537
Received Thanks: 785
Do you know how they do it?
I don't have a username is offline  
Old 09/03/2012, 21:55   #11
 
elite*gold: 0
Join Date: Aug 2012
Posts: 9
Received Thanks: 0
Quote:
Originally Posted by I don't have a username View Post
Do you know how they do it?
create a new character you will get 50k cps to kill mobs are left connected and disconnected to return 50k cps pass to another account let themselves be killed by a mob and was supposedly disconnected and return Cps

sorry but my english is no good
Litper is offline  
Old 09/03/2012, 22:19   #12
 
elite*gold: 0
Join Date: Dec 2011
Posts: 1,537
Received Thanks: 785
Why do you even have that in the first place? And save it to the database when you add them
I don't have a username is offline  
Reply




All times are GMT +1. The time now is 00:30.


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.