Problem adding a map, followed tutorial on here
http://www.mpgh.net/forum/showthread...ht=Making+maps
wServer is crashing. The comments are removed when i actually compile it. I cant post the error because I dont know how to make wServer output to a txt file log. I did everything the tutorial said but im kinda confused on RealmManager.cs part and the Player.cs and world.cs part, Im not sure if i entered the proper ID or code, the tutorial is kinda fuzzy at that part.
Please note the Id = ALIENHIVE; //should this be -13? the entry before it is -12
Im also using clubs source, thanks guys
Player.cs
Code:
//case 0x197e: //Alien hive stuff
//world = RealmManager.AddWorld(new AlienHive()); break; //Alien hive stuff
RealmManager.cs
Code:
//Worlds[World.ALIENHIVE] = new AlienHive(); //Alien Hive stuff
World.cs
Code:
public const int ALIENHIVE = -13; //alien hive stuff
AlienHive.cs
Code:
/*
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System****;
namespace wServer.realm.worlds
{
public class AlienHive : World
{
public AlienHive()
{
Id = ALIENHIVE; //should this be -13? the entry before it is -12
Name = "Alien Hive";
Background = 0;
AllowTeleport = true;
base.FromWorldMap(typeof(RealmManager).Assembly.GetManifestResourceStream("wServer.realm.worlds.Alienhive.wmap"));
}
public override World GetInstance(ClientProcessor psr)
{
return RealmManager.AddWorld(new AlienHive());
}
}
}
*/