Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server
You last visited: Today at 20:20

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

Advertisement



Ok the monsters i added Work but one problem

Discussion on Ok the monsters i added Work but one problem within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
hunterman01's Avatar
 
elite*gold: 20
Join Date: Dec 2006
Posts: 945
Received Thanks: 175
Ok the monsters i added Work but one problem

Alright they were working then all of a sudden i got this error so 0.0 any help


Code:
System.ArgumentOutOfRangeException:'minValue' cannot be greater then maxValue
Parameter name:minValue
  at System.Random.Next(Int32 min Value,Int32 maxValue)
  at CoServer_Project.Mobs.SpawnAllMobs() 

Etities.cs:line 205
Obviously there is a problem with the values i just cant figure it out Any help is appreciated
hunterman01 is offline  
Old 08/08/2009, 06:22   #2
 
raidenx123's Avatar
 
elite*gold: 0
Join Date: Sep 2007
Posts: 1,705
Received Thanks: 438
lol it looks like u have like min attk and max attk like lets say 5000min attk and 4500max attk or something like that...check 4 that
raidenx123 is offline  
Old 08/08/2009, 06:26   #3
 
elite*gold: 0
Join Date: Apr 2009
Posts: 354
Received Thanks: 105
Okay most likely your HP cant be bigger than a uint.MaxValue unless you changed it

your min attack can not be greater than max attack also they both can not be greater then about a 32.6k [ idk exact number i think its ushort.maxvalue ]

make sure your coordinates also, like start x and y BOTH must be lower then END x and Y

so if your start is

45 , 50 your end MUST be 46,51 IT CAN NOT BE 46,49

hope that helps =]]
CoAttack is offline  
Old 08/09/2009, 04:42   #4
 
elite*gold: 0
Join Date: Jun 2009
Posts: 361
Received Thanks: 98
If none of that works try putting your x, y start and x, y end as the same coordinates. Example 80, 80 80, 80
I know it most likely wont be were you wanted it to be but that's the only way I got a few of mine to work. I have no clue why only some of my mobs work that way but meh, they work now so I ain't complaining. I was getting some retarded errors before too lol.
Jay1029 is offline  
Thanks
1 User
Old 08/09/2009, 05:03   #5
 
andyd123's Avatar
 
elite*gold: 20
Join Date: Apr 2006
Posts: 1,341
Received Thanks: 886
Solution: The provided numerical values for 'minValue' and 'maxValue' in the call to Random.Next are either switched around:
Code:
Random.Next(maxValue, minValue);
or somewhere, you declare minValue to be greater than maxValue.
A very easy fix would be:
Code:
if(minValue < maxValue)
    Random.Next(minValue, maxValue);
else
    Random.Next(maxValue, minValue);
This would likely have adverse effects if you didn't just mis-order the two numbers.
andyd123 is offline  
Reply


Similar Threads Similar Threads
[help] problem (generat monsters in new map)
02/09/2010 - EO PServer Hosting - 7 Replies
i try to make generator of monsters in map 1924 i made this in the first time not work so i changed the id and the same problem when enter the map i can't find any monster can any one help the what i use !!!!!:(:(:( delete from cq_generator where id >= 400004100 and id <= 400004121; INSERT INTO `cq_generator` VALUES ('400004100', '1924', '0018', '0027', '0036', '0036', '0009', '0025', '0012', '26036', '0000', '0000', '0000', '0000', '0000'); INSERT INTO `cq_generator` VALUES ('400004102',...
[Problem] Tq Binaries(monsters,acc serv,NPC serv)
04/30/2009 - CO2 Private Server - 12 Replies
Okay, I'm having problems with the binaries and I need some help fixing the problems.I have searched this entire co section to no avail, So please don't flame me. If you need to add me to help me with the problems my msn is:[email protected] Monster Problem: okay I'm sure this is related to the npc server but i have no idea how to fix it.When I log in to my server everything works fine except none of the mobs spawn.Below is a screenshot of the msg server and the npc server....
Spawn Monsters does not work.. WHY ?!
11/16/2008 - EO PServer Hosting - 2 Replies
Hey all.... I made my own PServer yesterday.. all warks good. But i have 1 PROBLEM i cant spawn Monster. i used these commands but nothing happens: /testmonster /createmonster Is there anything i should know ?! plz hel me :(
problem with monsters in crespo
01/05/2008 - Dekaron - 2 Replies
i play with monster editor ..i up to lvl 55 with no problem monsters ur follow me and awrythink ok...but when i move to crespo the monster are attack me and even when i edit them AL* to 7 they atack...any ideas why this hepens??



All times are GMT +2. The time now is 20:20.


Powered by vBulletin®
Copyright ©2000 - 2024, 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 ©2024 elitepvpers All Rights Reserved.