Full Version : Problem :spawner:
xmlspawner >>Q&A >>Problem :spawner:


<< Prev | Next >>

Theoderic- 07-15-2006
Hello.. i have little problem with XML spawner v313.

My RunUo server 2 RC1 is send this error:

xml/xmlspawner2.cs

linka 9207 cannot inplicitly convert type ´system.collections.arraylist´ to ´system.collections.generic.list <server.title>´

I search this line:

List<Server.Tile> tiles = map.GetTilesAt(new Point2D(X, Y), true, true, true);


where is problem?.. Thanx

Theoderic- 07-15-2006
QUOTE (Theoderic @ July 15, 2006 09:05 am)
Hello.. i have little problem with XML spawner v313.

My RunUo server 2 RC1 is send this error:

xml/xmlspawner2.cs

linka 9207 cannot inplicitly convert type ´system.collections.arraylist´ to ´system.collections.generic.list <server.title>´

I search this line:

List<Server.Tile> tiles = map.GetTilesAt(new Point2D(X, Y), true, true, true);


where is problem?.. Thanx

Error is inicialized smile.gif

good script here:


private static bool HasTileSurface(Map map, int X, int Y, int Z)
{
if (map == null) return false;
ArrayList tiles = map.GetTilesAt(new Point2D(X, Y), true, true, true);
if (tiles == null) return false;

foreach (object o in tiles)
{
if (o is Tile)
{
Tile i = (Tile)o;

if ((i.Z + i.Height) == Z)
{
return true;
}
}
}
return false;
}

ArteGordon- 07-15-2006
because RunUO 2.0 has not yet been officially released, there are different versions. The RC1 version differs from the most recent build. By default, the v313 xmlspawner release is designed to work under the most recent build.

Since you are running RC1 you just need to uncomment this line at the beginning of the xmlspawner2.cs

//#define RUNUO2RC1

so that it looks like

#define RUNUO2RC1

Theoderic- 07-15-2006
QUOTE (ArteGordon @ July 15, 2006 10:48 am)
because RunUO 2.0 has not yet been officially released, there are different versions. The RC1 version differs from the most recent build. By default, the v313 xmlspawner release is designed to work under the most recent build.

Since you are running RC1 you just need to uncomment this line at the beginning of the xmlspawner2.cs

//#define RUNUO2RC1

so that it looks like

#define RUNUO2RC1

Yeah .. of cource i understand smile.gif