Results 1 to 6 of 6
  1. #1
    Tehflames's Avatar
    Join Date
    May 2015
    Gender
    male
    Posts
    7
    Reputation
    10
    Thanks
    0

    Adding Dungeons.

    So I have been trying to get my new dungeon to work for the last few hours. I have watched all the tutorials many times, and I just cant seem to get it working. If I remove the line of code from RealmManager.cs the Wserver doesn't crash anymore, but the portal doesn't work.

    Here is what the error looks like: http :// imgur .com/ Tkc9OPs

    As for all the code I have added

    Shatters.cs
    =using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using wServer.realm.entities;
    using wServer.logic.loot;

    namespace wServer.realm.worlds
    {
    public class Shatters : World
    {
    public Shatters()
    {
    Name = "Shatters";
    Background = 0;
    AllowTeleport = true;
    base.FromWorldMap(typeof(RealmManager).Assembly.Ge tManifestResourceStream("wServer.realm.worlds.Shat ters.wmap"));
    }

    public override World GetInstance(ClientProcessor psr)
    {
    return RealmManager.AddWorld(new Shatters());
    }
    }
    }

    Player.cs
    case 0x5050:
    world = RealmManager.AddWorld(new Shatters()); break;

    World.cs
    public const int Shatters = -13;

    RealmManager.cs
    Worlds[World.Shatters] = new Shatters();

    XML
    <Object type="0x5049" id="Shatters Key">
    <Class>Equipment</Class>
    <Item/>
    <RemoteTexture>
    <Instance>draw</Instance>
    <Id>105357490</Id>
    </RemoteTexture>
    <SlotType>10</SlotType>
    <Description>Do you dare enter?</Description>
    <Sound>use_key</Sound>
    <Consumable/>
    <Soulbound/>
    <Activate id="Shatters Portal">Create</Activate>
    </Object>
    <Object type="0x5050" id="Shatters Portal">
    <Class>Portal</Class>
    <IntergamePortal/>
    <DungeonName>The Shatters</DungeonName>
    <RemoteTexture>
    <Instance>draw</Instance>
    <Id>5347860293877760</Id>
    </RemoteTexture>
    </Object>
    Last edited by Tehflames; 02-14-2016 at 08:16 AM.

  2. #2
    Tehflames's Avatar
    Join Date
    May 2015
    Gender
    male
    Posts
    7
    Reputation
    10
    Thanks
    0
    Can anyone help?

  3. #3
    plokijjikolp's Avatar
    Join Date
    Nov 2012
    Gender
    male
    Posts
    15
    Reputation
    10
    Thanks
    1
    Quote Originally Posted by Tehflames View Post
    Shatters.cs
    namespace wServer.realm.worlds
    {
    public class Shatters : World
    {
    public Shatters()
    {
    Name = "Shatters";
    Background = 0;
    AllowTeleport = true;
    base.FromWorldMap(typeof(RealmManager).Assembly.Ge tManifestResourceStream("wServer.realm.worlds.Shat ters.wmap"));
    Player.cs
    case 0x5050:
    world = RealmManager.AddWorld(new Shatters()); break;

    World.cs
    public const int Shatters = -13;

    RealmManager.cs
    Worlds[World.Shatters] = new Shatters();

    XML
    <Object type="0x5050" id="Shatters Portal">
    <Class>Portal</Class>
    <IntergamePortal/>
    <DungeonName>The Shatters</DungeonName>
    <RemoteTexture>
    <Instance>draw</Instance>
    <Id>5347860293877760</Id>
    </RemoteTexture>
    </Object>
    <DungeonName>The Shatters</DungeonName>
    ^ The dungeon name should be the same as the name of the class you made ( public class Shatters : World )
    so change it to
    <DungeonName>Shatters</DungeonName>

    in World.cs above this line
    protected World()
    put in
    public const int SHATTERS = -13;

    in RealmManager.cs above this line
    Monitor = new RealmPortalMonitor(this);
    (or if your using a different source than fab, below one of these lines: AddWorld(World._______ID, new _______()); )
    put in this:
    Worlds[World.SHATTERS] = new Shatters();

    You don't want your class name and the world.cs name to be the same, so one will be caps for this.
    If you get an error with something about embeddedResource, make sure your .jm or .wmap file is inside of the solution and in it's correct location (for you it's wServer/realm/worlds/Shatters.wmap) and then in visual studio, click on the map file, goto the file properties, and in build action change it from None to Embedded Resource and rebuild the solution.

    AFTER MAKING CHANGES TO THE GAME ALWAYS REBUILD THE SOLUTION

    Hope it works for you!
    Last edited by plokijjikolp; 02-14-2016 at 10:57 AM.

  4. #4
    Tehflames's Avatar
    Join Date
    May 2015
    Gender
    male
    Posts
    7
    Reputation
    10
    Thanks
    0
    Thanks for the reply, I added everything that you said and it still gives me the error when I try to launch the Wserver.

    When I remove "public const int SHATTERS = -13;" from Realmmanager.cs the Wserver doesn't crash anymore.

    And if this helps here is what the error looks like: http :// imgur .com/ Tkc9OPs

    Thanks again for your reply.

  5. #5
    Tehflames's Avatar
    Join Date
    May 2015
    Gender
    male
    Posts
    7
    Reputation
    10
    Thanks
    0
    Oh and I forgot to mention that I am using club source.

  6. #6
    Tehflames's Avatar
    Join Date
    May 2015
    Gender
    male
    Posts
    7
    Reputation
    10
    Thanks
    0
    Is this a common problem with Club source? Should I try switching sources?

Similar Threads

  1. [Help Request] [Fabiano] Adding Dungeons
    By Daemonmann in forum Realm of the Mad God Private Servers Help
    Replies: 10
    Last Post: 08-28-2017, 03:50 PM
  2. [Help Request] [Fabiano] Adding Dungeons.
    By Daemonmann in forum Realm of the Mad God Private Servers Help
    Replies: 1
    Last Post: 01-22-2016, 04:07 PM
  3. Adding new dungeon for Club559, Phoenix, Doomed and any other MMOEs
    By lkdjnfoskjednfblksjdfn in forum Realm of the Mad God Private Servers Tutorials/Source Code
    Replies: 6
    Last Post: 10-22-2015, 02:02 AM
  4. [Help Request] adding new dungeons with an external internet link
    By Dragonlord3344 in forum Realm of the Mad God Private Servers Help
    Replies: 6
    Last Post: 01-10-2014, 02:59 PM
  5. [Help Request] Adding dungeons.
    By Battlefildererer in forum Realm of the Mad God Private Servers Help
    Replies: 4
    Last Post: 12-23-2013, 09:04 PM