HelpAdding maps to club's source

Posts 115 of 16 · Page 1 of 2
Adding maps to club's source
So I got this error after I added the new map.

Code:
System.TypeInitializationException: The type initializer for 'wServer.realm.RealmManager' threw an exception. ---> System.NotSupportedException: WMap version 120
   at wServer.realm.Wmap.Load(Stream stream, Int32 idBase) in c:\Users\AWong\Desktop\ROTMGServer-master\wServer\realm\Wmap.cs:line 146
   at wServer.realm.World.FromWorldMap(Stream dat) in c:\Users\AWong\Desktop\ROTMGServer-master\wServer\realm\World.cs:line 134
   at wServer.realm.worlds.Troll..ctor() in c:\Users\AWong\Desktop\ROTMGServer-master\wServer\realm\worlds\Troll.cs:line 16
   at wServer.realm.RealmManager..cctor() in c:\Users\AWong\Desktop\ROTMGServer-master\wServer\realm\RealmManager.cs:line 65
   --- End of inner exception stack trace ---
   at wServer.realm.RealmManager.CoreTickLoop()
   at wServer.Program.Main(String[] args) in c:\Users\AWong\Desktop\ROTMGServer-master\wServer\Program.cs:line 58
The codes for the map are

Code:
static RealmManager()
        {
            Worlds[World.TUT_ID] = new Tutorial(false);
            Worlds[World.NEXUS_ID] = Worlds[0] = new Nexus();
            Worlds[World.NEXUS_LIMBO] = new NexusLimbo();
            Worlds[World.VAULT_ID] = new Vault(true);
            Worlds[World.TEST_ID] = new Test();
            Worlds[World.RAND_REALM] = new RandomRealm();
            Worlds[World.GAUNTLET] = new GauntletMap();
            Worlds[World.WC] = new WineCellarMap();
            Worlds[World.ARENA] = new ArenaMap();
            Worlds[World.SHOP] = new ShopMap("Default");
            Worlds[World.MARKET] = new MarketMap();
            Worlds[World.TROLL] =new Troll();
Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System****;

namespace wServer.realm.worlds
{
    public class Troll : World
    {
        public Troll()
        {
            Name = "Troll";
            Background = 0;
            AllowTeleport = true;
            base.FromWorldMap(typeof(RealmManager).Assembly.GetManifestResourceStream("wServer.realm.worlds.troll.wmap"));
        }

        public override World GetInstance(ClientProcessor psr)
        {
            return RealmManager.AddWorld(new Troll());
        }
    }
}
Code:
case 0x2553:
                world = RealmManager.AddWorld(new Troll()); break;
Code:
public const int TUT_ID = -1;
        public const int NEXUS_ID = -2;
        public const int RAND_REALM = -3;
        public const int NEXUS_LIMBO = -4;
        public const int VAULT_ID = -5;
        public const int TEST_ID = -6;
        public const int GAUNTLET = -7;
        public const int WC = -8;
        public const int ARENA = -9;
        public const int SHOP = -10;
        public const int GHALL = -11;
        public const int MARKET = -12;
        public const int TROLL = -13;
Code:
 </Object>
	<Object type="0x2553" id="Troll Portal">
    <Class>Portal</Class>
    <IntergamePortal/>
    <DungeonName>Troll</DungeonName>
    <Texture>
      <File>lofiEnvironment</File>
      <Index>0x7c</Index>
    </Texture>
  </Object>

  <Object type="0x2554" id="Troll Key">
    <Class>Equipment</Class>
    <Item/>
    <Texture>
      <File>lofiObj3</File>
      <Index>0xf0</Index>
    </Texture>
    <SlotType>10</SlotType>
    <Description>A key which opens an entrance to a troll place.</Description>
    <Sound>use_key</Sound>
    <Consumable/>
    <Soulbound/>
    <Activate id="Troll Portal">Create</Activate>
    <DungeonName>Troll</DungeonName>
  </Object>
@Lunati @Trapped @Travoos @C453 @sacredmike please help. If you want to know what are in the files which the errors point to I will happily post it up. Also I followed Trapped's tut and did exactly what he said. I changed the build action for the troll.wmap to embeddedresource so I have no idea what is wrong. Since I know that you guys have made maps and added them to your source I am asking you.
The instructions I gave were meant to be used on the same version of the server I was using (the one I used to update and push to GitHub).
Also, the error is pretty clear. The problem is in the WMAP file. What did you use to convert it from JSON?
Quote Originally Posted by Trapped View Post
The instructions I gave were meant to be used on the same version of the server I was using (the one I used to update and push to GitHub).
Also, the error is pretty clear. The problem is in the WMAP file. What did you use to convert it from JSON?
I used your source. I put in the C drive and let it do the work as map.jm then I changed the name of the wmap
Quote Originally Posted by Ahl View Post
I used your source
>inb4 thread name "Adding maps to club's source"
Quote Originally Posted by Trapped View Post
>inb4 thread name "Adding maps to club's source"
Haha, I think he meant he used your source for converting, but he is trying to add the map to server that is running club's source
Quote Originally Posted by Trapped View Post
>inb4 thread name "Adding maps to club's source"
Exactly what CrazyJani said. Although the wmap converter was too outdated...

Oh well I need help with club's source because the world converter doesn't work
Quote Originally Posted by CrazyJani View Post
he used your source for converting, but he is trying to add the map to server that is running club's source
I understood it already, there was no need for you to explain.
Quote Originally Posted by Ahl View Post
I need help with club's source
I can only give help about my source, never used the current version of his source and not gonna get back to RotMG.
Quote Originally Posted by Trapped View Post
I understood it already, there was no need for you to explain.

I can only give help about my source, never used the current version of his source and not gonna get back to RotMG.
Oh ok. well i would use your source except that it doesn't have all the things that club's does
Quote Originally Posted by Ahl View Post
Oh ok. well i would use your source except that it doesn't have all the things that club's does
The purpose of having my source as the community standard was to minimize crashes and provide prod-like features, not to add them. It was, like, a "basic/standard" version. Though, if I ever get back to coding for RotMG (private servers-related coding), I'll probably rewrite the server from scratch instead of using that one.
The Troll map has 2 Oryx 3 and also 4 stone guardians. 2 right and 2 left stone guardians. The tiles move so it makes it hard and also fun. I can upload the map for you to have a look at it. I can take a screen shot of the map although it shouldn't be the problem. The new MMOE doesn't allow the worldconverter to work because I get the error

Code:
Line 21
The type 'terrain.Json2Wmap' exists in both 'c:\User\AWong\Desktop\ROTMGServer-master\terrain\bin\debug\terrain.exe' and  'c:\User\AWong\Desktop\ROTMGServer-master\bin\debug\wServer\wServer.exe' (CS0433)
Program.cs
Json2wmapconv


This is my map that I have made. It's not that good as it is a troll map and to make the area small will make it easier to get killed.
Quote Originally Posted by CrazyJani View Post

Nope
its a yes and no
Posts 115 of 16 · Page 1 of 2

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?