Register for your free account! | Forgot your password?

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

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

Advertisement



[BUG] Loading Mobs at LOTF

Discussion on [BUG] Loading Mobs at LOTF within the CO2 Private Server forum part of the Conquer Online 2 category.

Closed Thread
 
Old   #1
 
elite*gold: 20
Join Date: Jan 2008
Posts: 2,338
Received Thanks: 490
[BUG] Loading Mobs at LOTF

Hello guys!

Well my problem is If i try to startup my LOTF Source
I get an error:

minValue cant be higher than MaxValue

Line:
PHP Code:
short spawn_y = (short)General.Rand.Next(Convert.ToInt16(ThisSpawn[4]), Convert.ToInt16(ThisSpawn[6])); 
Full Class:

PHP Code:
        public static void SpawnAllMobs()
        {
            try
            {
                
int MobsSpawned 0;
                
int MobSpawnsToSpawn DataBase.MobSpawns.Length;

                for (
int j 0MobSpawnsToSpawnj++)
                {
                    
uint[] ThisSpawn DataBase.MobSpawns[j];
                    
string[] ThisMob null;

                    foreach (
string[] FindId in DataBase.Mobs)
                    {
                        if (
FindId[0] == Convert.ToString(ThisSpawn[1]))
                        {
                            
ThisMob FindId;
                        }
                    }

                    for (
int n 0Convert.ToInt32(ThisSpawn[2]); n++)
                    {
                        
uint UID = (uint)General.Rand.Next(400000500000);
                        
short spawn_x = (short)General.Rand.Next(Convert.ToInt16(ThisSpawn[3]), Convert.ToInt16(ThisSpawn[5]));
                        
short spawn_y = (short)General.Rand.Next(Convert.ToInt16(ThisSpawn[4]), Convert.ToInt16(ThisSpawn[6]));
                        while (
AllMobs.Contains(UID))
                        {
                            
UID = (uint)General.Rand.Next(400000500000);
                        }
                        
SingleMob Mob = new SingleMob((short)spawn_x, (short)spawn_yConvert.ToInt16(ThisSpawn[7]), uint.Parse(ThisMob[3]), uint.Parse(ThisMob[3]), uint.Parse(ThisMob[6]), uint.Parse(ThisMob[7]), (uint)UIDThisMob[2], int.Parse(ThisMob[1]), short.Parse(ThisMob[4]), (byte)General.Rand.Next(8), byte.Parse(ThisMob[5]), 0true);


                        
AllMobs.Add(UIDMob);

                        
MobsSpawned++; ;
                    }
                }
                
DataBase.Mobs null;
                
DataBase.MobSpawns null;
                
General.WriteLine("Spawned " MobsSpawned " mobs.");
            }
            catch (
Exception Exc) { General.WriteLine(Convert.ToString(Exc)); }
        } 
Hope someone can help
~Yuki~ is offline  
Old 07/24/2009, 18:13   #2

 
Kiyono's Avatar
 
elite*gold: 20
Join Date: Jun 2006
Posts: 3,296
Received Thanks: 925
I had that problem once, I fixed it by changing some mob spawn coords.
Kiyono is offline  
Old 07/24/2009, 18:19   #3
 
elite*gold: 0
Join Date: May 2009
Posts: 874
Received Thanks: 174
yeah im pretty sure its mob spawn coords as well
Arcotemple:) is offline  
Old 07/24/2009, 18:31   #4
 
elite*gold: 20
Join Date: Jan 2008
Posts: 2,338
Received Thanks: 490
weird i thought about ID´s so i used 3 different backups O.O all bugged??

Could someone upload a working one?

U will get some thanks


I feel atm like
~Yuki~ is offline  
Old 07/24/2009, 19:37   #5
 
elite*gold: 20
Join Date: May 2008
Posts: 1,103
Received Thanks: 254
other backups might not work delete all ur mobs and redo them
Pete1990 is offline  
Old 07/24/2009, 19:49   #6
 
elite*gold: 0
Join Date: May 2009
Posts: 874
Received Thanks: 174
yeah go with what pete said cuz you need a certain backup that goes with your server
Arcotemple:) is offline  
Old 07/24/2009, 20:02   #7
 
elite*gold: 20
Join Date: Jan 2008
Posts: 2,338
Received Thanks: 490
i know i used 3 different ones ( mob and spawns table only btw acrotemple u dont have to agree on every post if there is nothing usefull in it)
~Yuki~ is offline  
Old 07/24/2009, 20:05   #8
 
elite*gold: 0
Join Date: May 2009
Posts: 874
Received Thanks: 174
i only agreed with like 3 posts
so screw you too
i guess #request infraction on me for insulting other members:/
Arcotemple:) is offline  
Old 07/24/2009, 20:25   #9
 
elite*gold: 20
Join Date: Jan 2008
Posts: 2,338
Received Thanks: 490
Quote:
Originally Posted by Arcotemple:) View Post
i only agreed with like 3 posts
so screw you too
i guess #request infraction on me for insulting other members:/
I dont think someone needs a guy who just arees to all instead of helping/ or contributing own ideas/solutions

I could report u for the same reason (i have a reason u dont)

Read our Forum Rules carefully again,

Have a nice day.
~Yuki~ is offline  
Old 07/24/2009, 20:38   #10
 
elite*gold: 0
Join Date: May 2009
Posts: 77
Received Thanks: 28
Its the spawns with the guard1 in tc and other places, and for the meteor doves in mobspawn, delete the record cuz i find them pointless or change the spawn number to 70 or below, it stopped happening to me after that
iEagle is offline  
Old 07/24/2009, 20:50   #11
 
elite*gold: 0
Join Date: Nov 2008
Posts: 108
Received Thanks: 4
Code:
                    for (int n = 0; n < Convert.ToInt32(ThisSpawn[2]); n++)
                    {
                        uint UID = (uint)General.Rand.Next(400000, 500000);
                        short spawn_x = (short)General.Rand.Next((ushort)Math.Min(ThisSpawn[3], ThisSpawn[5]), (ushort)Math.Max(ThisSpawn[3], ThisSpawn[5]));
                        short spawn_y = (short)General.Rand.Next((ushort)Math.Min(ThisSpawn[4], ThisSpawn[6]), (ushort)Math.Max(ThisSpawn[4], ThisSpawn[6]));
                        while (AllMobs.Contains(UID))
                        {
                            UID = (uint)General.Rand.Next(400000, 500000);
                        }
that should do.
you're getting wrong values error for sure.
WTFoRK is offline  
Thanks
1 User
Old 07/24/2009, 20:59   #12
 
elite*gold: 20
Join Date: Jan 2008
Posts: 2,338
Received Thanks: 490
Yep thanks ill try and edit my post


Edit: Working

i <3 u
~Yuki~ is offline  
Old 07/24/2009, 22:14   #13
 
elite*gold: 0
Join Date: Jun 2009
Posts: 787
Received Thanks: 314
Quote:
Originally Posted by ~Yuki~ View Post
Yep thanks ill try and edit my post


Edit: Working

i <3 u
are you retarded?
the error tells you everything you need to know.
you messed up the minimum x or y coordinate in your database so it was higher than the maximum.


you people amaze me with your lack of common-*******-sense.
_tao4229_ is offline  
Old 07/24/2009, 22:18   #14
 
_Emme_'s Avatar
 
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,162
#closed
_Emme_ is offline  
Closed Thread


Similar Threads Similar Threads
[TUT] Vacking w/o loosing mobs + mobs speed hack [WINHEX]
01/25/2011 - Dekaron Exploits, Hacks, Bots, Tools & Macros - 208 Replies
You will need Win Hex to edit thouse numbers. I used Styx as the mob to edit. PART OF VACK + SPPED HACK FOR MOBS. Original: 2251,Styx,1,19,82,35749,0,486,695,10,50,2,6,0,0,0 ,0,0,0,55,0,0,0,02.5,4.8,1,1,styx,ÀÛ¼ºÁß,0,0,0,526 0,441,595,30800,1,1,3,90,90
[SUCHE]Einen Client mit den 13 neuen Mobs und Zombie Mobs
03/13/2010 - Metin2 Private Server - 23 Replies
Also Leute, ich suche jemanden der so nett ist und mir einen Client zu verfügung stellt bzw. macht auf dem die neuen Mobs sichtbar sind . THX
[LOTF-Tutorial] Making & Spawning mobs.
08/14/2009 - CO2 Private Server - 3 Replies
Before you guys ask this is c#. Video tutorial on how to add mobs, and add mobspawns. A little on making mobs drop too... I know, I sound like a 20 year old emo xD before somebody points it out. Download(zip)
[HELP] Compile error with LOTF(i know LOTF sucks but just help)
06/19/2009 - CO2 Private Server - 3 Replies
It says: Loaded 254 portals. Loaded 1027 NPCs. Loaded 37 mobs. Loaded 11147 items. Loaded 172 mob spawns. System.ArgumentOutOfRangeException: 'minValue' cannot be greater then mxValue. Parameter name : minValue at System.Random.Next<Int32 minValue, Int32 maxValue> at COServer_Project.Mobs.SpawnAllMobs<> in C:\Documents and Settings\Admin\My Documents\COServerProject1\COServerProject\Entitie s.cs:line 207



All times are GMT +1. The time now is 10:46.


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.