On Mon, Jul 21, 2008 at 10:27 AM, Vincent Verhoeven
<[EMAIL PROTECTED]> wrote:
> I think the last one has my preference, both from the viewpoint of
> solving Starmapper's problem as well as making sense in a general way.
> It would be nice if this were inherently supported in tpsever-cpp, and
> not in the rulesets. Being able to manipulate the universe in some
> degree would be even more fun and it could allow a whole different
> game type, kinda campaign-like with an admin/dungeon master.

Sounds cool.

> Is this a good idea? How much of this would be possible with the
> current tpserver-cpp implementation and would it be much work? Is the
> recent work on remote configuration applicable here?

Yes, all of it (once the config branch is merged), I don't think so,
and absolutely.

To be more specific, an administrator can do anything at the server
level provided there is support for it.

The current implementation mainly uses the Command frame family [1].
However, the administration protocol is an extended TP protocol and
could easily dump and even manipulate the entire universe by adding
server-side support for game-related TP frames in the admin context.
Off the top of my head, it seems like the easiest way to do this would
be to add player-like support to the AdminConnection class (maybe give
it an omnipotent PlayerAgent somehow) and handle any in-game frames
through that. Take a look at the config branch of tpserver-cpp,
particularly comparing AdminConnection to PlayerConnection.

Right now, I'm working on the Python client and libraries for the
single-player mode, which I need to finish during GSoC, and which
looks like it's going to take up the rest of my time. Is this just
something extra you want to do? If so, I'd be happy to help you
implement it after GSoC is over.

[1] 
http://git.thousandparsec.net/gitweb/gitweb.cgi?p=tpserver-cpp.git;a=blob;f=tpserver/commandmanager.cpp;h=bc3df001ad0f2efa5cde922df962965d9aa2ff73;hb=15de47dc11d7fc98f8aaa85b494cd8371502cd2e

-- 
Aaron Mavrinac
www.mavrinac.com

PGP Public Key: http://www.mavrinac.com/pgp.asc
_______________________________________________
tp-devel mailing list
[email protected]
http://www.thousandparsec.net/tp/mailman.php/listinfo/tp-devel

Reply via email to