Can't even get started

Options
Vire
edited July 2012 in Photon Server
Hi,

I've tried following tutorials but I can't even make the most basic of server applications with photon.

90% of the ones I find use this format:
public class MyPeer : IPeer

And it doesn't even seem like IPeer exists. Then there's other ones, supposedly newer, that use something like this:
public class ChatServer : ApplicationBase
{
    protected override PeerBase CreatePeer(InitRequest initRequest)
    {
    }

And they don't even work, period. It just errors out on the --
protected override PeerBase CreatePeer(InitRequest initRequest)

-- line every time, specifically 'CreatePeer'- there appears to be no solution on google.

It produces this error:
Error	1	'MyMMOServer.MyMMOPeer.CreatePeer(Photon.SocketServer.InitRequest)': no suitable method found to override

I've wasted a lot of time trying to get this to work, maybe it's just because I'm tired but it doesn't seem like photon even works, the functionality that did is apparently gone, and been replaced with functionality that doesn't.

If anyone knows how to solve this I'd appreciate it. I haven't been doing C# for very long so it's very possible a user + frustration error.

And here's the other big thing. I've found some pretty good tutorials except I can not follow alone because I don't know how to translate:

http://cjrgaming.com/node/13 into http://doc.exitgames.com/photon-server/ ... -tutorials

For example. Old system into new. So if anyone could provide me with the information I need to get started with following the tutorials found here: http://cjrgaming.com/photon_mmo_development

-- I'd really appreciate that a lot. Excuse my frustration.

Comments

  • Tobias
    Options
    I get your frustration and I'm sorry you are.
    The error "no suitable method found to override" means that something has to override CreatePeer, as it's defined only as abstract. You have to implement this method in extending classes, else it won't compile.

    The MMO part is a bit overly complex. You can start much simpler by loading the "Lite" solution:
    \src-server\Lite\Lite.sln

    In it, the MyApplication project should show you how to extend Lite by overriding it's classes. It should build out of the box, too.