❗ Can't add a custom map
So, I'm trying to add a new dungeon in, here is the code:
Before you ask, yes, I have added the map in and everything, but it comes up with this error:
2015-06-14 17:05:31,567 [Logic] ERROR wServer.networking.handlers.UsePortalHandler - System.ArgumentException: Resource not found
Parameter name: embeddedResource
at wServer.realm.World.LoadMap(String embeddedResource, MapType type) in C:\Users\penis\Desktop\swooty-swagger-of-booty\wServer\realm\World.cs:line 473
at wServer.realm.worlds.ElementalGolems.Init() in C:\Users\penis\Desktop\swooty-swagger-of-booty\wServer\realm\worlds\ElementalGolems.cs:line 18
at wServer.realm.World.set_Manager(RealmManager value) in C:\Users\penis\Desktop\swooty-swagger-of-booty\wServer\realm\World.cs:line 80
at wServer.realm.RealmManager.OnWorldAdded(World world) in C:\Users\penis\Desktop\swooty-swagger-of-booty\wServer\realm\RealmManager.cs:line 303
at wServer.realm.RealmManager.AddWorld(World world) in C:\Users\penis\Desktop\swooty-swagger-of-booty\wServer\realm\RealmManager.cs:line 123
at wServer.networking.handlers.UsePortalHandler.<>c__ DisplayClass2_0.<HandlePacket>b__0(RealmTime t) in C:\Users\penis\Desktop\swooty-swagger-of-booty\wServer\networking\handlers\UsePortalHandler .cs:line 109
I'm not exactly sure what's wrong, and I've messed around with it for 1 hour. Any help on this one? I'm using Fabiano Swagger of Doom.
Code:
using wServer.networking;
namespace wServer.realm.worlds
{
public class ElementalGolems : World
{
public ElementalGolems()
{
Name = "Sand Golem Lair";
ClientWorldName = "Sand Golem Lair";
Background = 0;
Difficulty = 5;
AllowTeleport = false;
}
protected override void Init()
{
LoadMap("wServer.realm.worlds.maps.elementalgolems.wmap", MapType.Wmap);
}
public override World GetInstance(Client psr)
{
return Manager.AddWorld(new ElementalGolems());
}
}
}
2015-06-14 17:05:31,567 [Logic] ERROR wServer.networking.handlers.UsePortalHandler - System.ArgumentException: Resource not found
Parameter name: embeddedResource
at wServer.realm.World.LoadMap(String embeddedResource, MapType type) in C:\Users\penis\Desktop\swooty-swagger-of-booty\wServer\realm\World.cs:line 473
at wServer.realm.worlds.ElementalGolems.Init() in C:\Users\penis\Desktop\swooty-swagger-of-booty\wServer\realm\worlds\ElementalGolems.cs:line 18
at wServer.realm.World.set_Manager(RealmManager value) in C:\Users\penis\Desktop\swooty-swagger-of-booty\wServer\realm\World.cs:line 80
at wServer.realm.RealmManager.OnWorldAdded(World world) in C:\Users\penis\Desktop\swooty-swagger-of-booty\wServer\realm\RealmManager.cs:line 303
at wServer.realm.RealmManager.AddWorld(World world) in C:\Users\penis\Desktop\swooty-swagger-of-booty\wServer\realm\RealmManager.cs:line 123
at wServer.networking.handlers.UsePortalHandler.<>c__ DisplayClass2_0.<HandlePacket>b__0(RealmTime t) in C:\Users\penis\Desktop\swooty-swagger-of-booty\wServer\networking\handlers\UsePortalHandler .cs:line 109
I'm not exactly sure what's wrong, and I've messed around with it for 1 hour. Any help on this one? I'm using Fabiano Swagger of Doom.
