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
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();
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());
}
}
}
case 0x2553:
world = RealmManager.AddWorld(new Troll()); break;
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;
</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>
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

