View Full Version : Gamemanager
12-10-2007, 09:20 PM
at the moment I'm playing around with the gamemanager but I stuck at some points. I already have the "ugly" AS example from the prerelease, but I want to use only java plugins. Do you have any other java examples yet? they mustn't be well formatted.
Additionally I've decided to use ES 4 for my already mentioned final exam project, so I would be glad for any additional documentation which I can refer in my dissertation. Otherwise I can only use Jobe's MX 2004 game design book :-)
My final exam work will be a basis for a huge multiplayer site. If somebody is interested in my dissertation, feel free to ask me. Currently it will be written in german only and should be finished in march 2008.
12-11-2007, 01:06 AM
The AS example that comes with the server shows how to use the GameManager. Using it from Java is exactly the same. We tried very hard to make the API for both Java and Flash clients as close to identical as possible and I think we pulled it off pretty well.
As for additional documentation, I assume the manual and API docs don't count? Thanks!
12-11-2007, 01:30 AM
you're right. It was easy to migrate your AS code into my java plugins, but anyways ... the GM won't work as i want.
In you AS-Code the interop function handles all the game create and join stuff, but how should i call this function?
Do I need an explicit PluginRequest with the corresponding EsObject (for the Action variable i.e "CreateGame") or is it enough to call the CreateGameRequest (therefore the GM plugin is never executed). I can't find a good answer in your manual.
Of course I'll use your API and manual documentation, but because this is not a final version from you, it will be very hard for me to quote something from. Maybe you've some "older final" papers from your ES 3 available?
12-11-2007, 03:43 AM
I'm a little confused - some of what you are describing sounds like the plugin-based ActionScript game manager jobe created. Is that the case? If so, it's not a 1-to-1 transition to the new game manager code.
12-11-2007, 04:01 AM
At the prerelease there were two folders: One namend "GameManager" with a "GameManager.as" extension and a "GMSExample" folder.
I used some stuff from GameManager.as for my java plugin. In fact it's a plugin-based game manager.
What I basically want to do is a common lobby where i can choose some different games and create and join games. I think thats, beside mmorpgs, a basic function of many multiplayer games. I thought the GameManager and GMSExmpale would be a great starting point but I didn't figured out how the "GameManager" basically works...
12-11-2007, 04:07 AM
The built in GameManager is quite a bit more capable then the one you are using now. You should take a look at the latest release of the server as well as the manual for it. We cover how to do what you want in some detail.
12-11-2007, 04:27 AM
I already did... At the latest release there is no sample how to use the gamemanager plugin.
Just to clarify... I also need some kind of "plugin based Gamemanager", right?
That means, a plugin where I add all my "game plugins" and call the corresponding functions for the gamelist, joingame, creategame and so on?
12-11-2007, 04:57 AM
The built-in game manager is what you want to use - not a plugin-based game manager. You DO use a plugin (or some other server-level component) to register your game configuration with the game manager but you don't need a plugin to run it. Sorry, I hope that makes sense.
The manual contains a fair bit talking about how to use the built in game manager. Looks like a game manager example with a simple example game are our two big needed examples for the 4.0.3 release.
Powered by vBulletin® Version 4.1.6 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.