Help❗ Can't add a custom map

Posts 1–7 of 7 · Page 1 of 1
❗ Can't add a custom map
So, I'm trying to add a new dungeon in, here is the code:

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());
        }
    }
}
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.
Quote Originally Posted by hydranoid800 View Post
Bump
Sleep
Repeat
Bump
Sleep
Repeat
you have to make the map build as an embeddedresource
Quote Originally Posted by CrazyBank View Post
you have to make the map build as an embeddedresource
How would one go about this? Does it require client editing?
Quote Originally Posted by hydranoid800 View Post
How would one go about this? Does it require client editing?
Absolutely none. Just right quick the wmap or jm file if you'd like to convert it to jm and change the build type from "None" to "Embedded Resource".

ezpeezylimonsqueezy.
Quote Originally Posted by Omniraptor View Post
Absolutely none. Just right quick the wmap or jm file if you'd like to convert it to jm and change the build type from "None" to "Embedded Resource".

ezpeezylimonsqueezy.
Thank you Omniraptor! NOW I SHALL CONTINUE CURSING THIS WORLD WITH MY TERRIBLE DUNGEONS



do you even know what you have done
Posts 1–7 of 7 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us