Game Development Community

Multiplayer Editing

by Ian Roach · in Torque Game Engine Advanced · 07/23/2008 (8:09 pm) · 1 replies

Hi guys i had a question regarding the tgea editor. Im trying to create a simplified version of the editor for easy use, and one of the features i wanted was for multiplayer people to join my level as im creating and even help create themselves, adding there own objects whilst i add mine.

Ive noticed a few checks in the code checking for issingleplayer e.t.c, are there any limitations with doing level editing over a network ? Anyone done asimilar thing before ?

#1
08/10/2008 (9:45 am)
It's definitely possible to do this, but it's not so simple as just exposing the editor GUI to players on the server. The editor works by calling functions on the server and reading values directly from the objects you're editing. What you would need to do is create server command functions which in turn call the editor functions they're connected to. You'll also need to feed the information about each object back to the client if you intend to actually use the inspector features of the editor (a lot of the settings/variables attached to objects aren't synced to clients, and will not show up correctly in the client-side editor because of it).

Getting everything to work would not be an easy task.. but if you're happy with just basic world edit support, ie the placement and editing of objects in the world, it's doable.. just not easy. I can't really see terrain editing working at all, unless you write your own code to sync terrain changes to clients (there's simply no such thing right now).