Warning: Long Post
I am looking to create an authoritative server rather than using the signalling server.
I think you misunderstood signalling functionality, AFAIK signalling server only serve to:
- Create Game
- Create Instance
- Create Room
- Assign/associate peerID and peerAlias
- Assign Host
- Connect Peer to host
It doesn't handle game logic at all. You can actually create authoritative server using C2, it will be flimsy but it is definitely doable, what you'll be needing is:
Note: MP beginners do not read this or read at your own risk.
- Client made from C2. This is obvious.
- Lobbyhost, area host, or generally call it serverHost, this can be made from C2 as well to handle the logic. I know this is doable because I'm actually doing it.
Below is the actual screenshot of client.
Below is the actual screenshot of duelhost.
If you're going into the path of server side logic, this might be the thing that you have to tackle, which is creating a totally more than 2 different project, this is extremely difficult but doable, only your patience will tell how far you can go.
- VPS or dedicated hosting server to run browser. This browser will run your exported C2. For scalability, you can open up multiple tabs for the same project, but log it into separate instance (game instance top level) and separate room (area instance). Furthermore, if you ran out of computing ability on one server, you can just host the serverhost in another computer!
- Access to remote desktop to your server to actually run your browser, or if you know how to run the browser using php or any sorts of vodoo, you probably don't need the remote desktop access.
On side note, you're trying to make an RPG, so will it involve collision check? If you do, I think that would be the most difficult to do if you intend to do that using the way you wanted in the first post. The advantage of doing server logic in C2 is, you already have collision covered, I believe that cut a lot of developing time, the project can be minimal, without any visual, just collision mask to represent you players/objects.
In terms of reliability, I would admit that, doing so probably gives you a flimsy server, but this is not tested fully and unproven. I think what is doable with C2 now is actually acceptable for small scale MORPG unless you're building a full-blown massive scale MMORPG, which I think you're probably need what you wanted in your first post.
If you know Real of the Mad God, something like that is totally doable with C2, I tried it, seen it happen, yes it is possible.