|
You last visited: Today at 10:46
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.
07/24/2009, 18:10
|
#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 = 0; j < MobSpawnsToSpawn; j++)
{
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 = 0; n < Convert.ToInt32(ThisSpawn[2]); n++)
{
uint UID = (uint)General.Rand.Next(400000, 500000);
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(400000, 500000);
}
SingleMob Mob = new SingleMob((short)spawn_x, (short)spawn_y, Convert.ToInt16(ThisSpawn[7]), uint.Parse(ThisMob[3]), uint.Parse(ThisMob[3]), uint.Parse(ThisMob[6]), uint.Parse(ThisMob[7]), (uint)UID, ThisMob[2], int.Parse(ThisMob[1]), short.Parse(ThisMob[4]), (byte)General.Rand.Next(8), byte.Parse(ThisMob[5]), 0, true);
AllMobs.Add(UID, Mob);
MobsSpawned++; ;
}
}
DataBase.Mobs = null;
DataBase.MobSpawns = null;
General.WriteLine("Spawned " + MobsSpawned + " mobs.");
}
catch (Exception Exc) { General.WriteLine(Convert.ToString(Exc)); }
}
Hope someone can help
|
|
|
07/24/2009, 18:13
|
#2
|
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.
|
|
|
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
|
|
|
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
|
|
|
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
|
|
|
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
|
|
|
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)
|
|
|
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:/
|
|
|
07/24/2009, 20:25
|
#9
|
elite*gold: 20
Join Date: Jan 2008
Posts: 2,338
Received Thanks: 490
|
Quote:
Originally Posted by Arcotemple:)
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.
|
|
|
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
|
|
|
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.
|
|
|
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
|
|
|
07/24/2009, 22:14
|
#13
|
elite*gold: 0
Join Date: Jun 2009
Posts: 787
Received Thanks: 314
|
Quote:
Originally Posted by ~Yuki~
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.
|
|
|
07/24/2009, 22:18
|
#14
|
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,162
|
#closed
|
|
|
 |
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.
|
|