• Announcements

    • khawk

      Download the Game Design and Indie Game Marketing Freebook   07/19/17

      GameDev.net and CRC Press have teamed up to bring a free ebook of content curated from top titles published by CRC Press. The freebook, Practices of Game Design & Indie Game Marketing, includes chapters from The Art of Game Design: A Book of Lenses, A Practical Guide to Indie Game Marketing, and An Architectural Approach to Level Design. The GameDev.net FreeBook is relevant to game designers, developers, and those interested in learning more about the challenges in game development. We know game development can be a tough discipline and business, so we picked several chapters from CRC Press titles that we thought would be of interest to you, the GameDev.net audience, in your journey to design, develop, and market your next game. The free ebook is available through CRC Press by clicking here. The Curated Books The Art of Game Design: A Book of Lenses, Second Edition, by Jesse Schell Presents 100+ sets of questions, or different lenses, for viewing a game’s design, encompassing diverse fields such as psychology, architecture, music, film, software engineering, theme park design, mathematics, anthropology, and more. Written by one of the world's top game designers, this book describes the deepest and most fundamental principles of game design, demonstrating how tactics used in board, card, and athletic games also work in video games. It provides practical instruction on creating world-class games that will be played again and again. View it here. A Practical Guide to Indie Game Marketing, by Joel Dreskin Marketing is an essential but too frequently overlooked or minimized component of the release plan for indie games. A Practical Guide to Indie Game Marketing provides you with the tools needed to build visibility and sell your indie games. With special focus on those developers with small budgets and limited staff and resources, this book is packed with tangible recommendations and techniques that you can put to use immediately. As a seasoned professional of the indie game arena, author Joel Dreskin gives you insight into practical, real-world experiences of marketing numerous successful games and also provides stories of the failures. View it here. An Architectural Approach to Level Design This is one of the first books to integrate architectural and spatial design theory with the field of level design. The book presents architectural techniques and theories for level designers to use in their own work. It connects architecture and level design in different ways that address the practical elements of how designers construct space and the experiential elements of how and why humans interact with this space. Throughout the text, readers learn skills for spatial layout, evoking emotion through gamespaces, and creating better levels through architectural theory. View it here. Learn more and download the ebook by clicking here. Did you know? GameDev.net and CRC Press also recently teamed up to bring GDNet+ Members up to a 20% discount on all CRC Press books. Learn more about this and other benefits here.
Sign in to follow this  
Followers 0
bearaway

cross-realm function for a existing server architecture

3 posts in this topic

Hello,evevrybody.
We have a mmorpg that developed for more than 4 years named "weapons of the god". in the last few month, we keep developping the version 2.0 of this game, and we want to add WoW like cross-realm functions to it.i have some thought that i want to shared with you and get your suggestions.
first, i want to talk about the existing server architecture. for every server group, threre is(are):
1. one ws (world server): a intenal server for other servers in the group to connect, provide world-scope game logics(guild, team, world-chat...)
2.several cs(cell server):each cs servers a set of map instances. most of the game logic run on cs, like skill,buff,quest,ai...
3.one dp(db proxy):every other server send dp database request to load and save object data.
4.one db: a mysql server
5.one ls(login server):provide login checks.
6.two fep(front end proxy)s:accept client connections, provide some secure to these connectins.one fep connects to ws, CSs connect to each fep, so feps transfer client packets to desired server(ws,cs,or ls).it is ws`s job to determine which cs fep should transfer a client session`s packets to.

one big server group contains several such server groups. server groups in the same big group share a common account database, and each server group has a diffrent character database.

our desired cross-realm function means:
1.players in the same big group(possibly in diffrent server groups) can be transfered to the same cross-realm server group.
2.they do PVP there, uses items and skills to make some achievements(get new items,buffs,titles...)
3.players are thransfered back to their original server group. and all the achievements they got in the cross-ream server group are still valid.

i have to plans to implement this, every plan use a new gait server.
there is only only one gait server in a big group, it accepts connections from WSs in every server group(including the cross-realm group). when each ws-gait connection is established, ws send some information to gait, including:
1.db connection information
2.server group id

then gait connect every db in server groups, its major fuction is to transfer data for players between character databases. after player data are thransfered:
plan A:client closes connection to the original group`s fep and then re-establish connection to the cross-realm group`s fep.this plan maybe is easy to implement but we must have a strong solution to ensure that connections to the cross-realm are legal. after data transfer, we can generate some visa like object, including a serial id, hash it to db and give the client the unhashed serial id. another problem is the cross-realm process is not seamless. re-establish connection is maybe not client friendly.

plan B:there is no fep in the cross-realm group, every cs in it connect other group`s feps.and every other group`s fep connect to the cross-realm group`s WS. when datatransfer is finished, the original client-fep connection is still alive, just mark it a cross-ream flag.
problem with this plan is the cs in the cross-ream group now must connect a lot of feps, bottleneck.

now you guys have experience in cross-relm implement? i like your suggestions, thanks a lot.
0

Share this post


Link to post
Share on other sites
As far as I know the usual way to implement this is to physically move the player's records from one database into another. There may be alternatives but they are increasingly complicated for decreasing benefit.

Are you interested in "permanent transfers" between servers, or more of a "visiting/guesting" feature? Guesting is a totally different matter than permanent transfers. I must confess I found it really hard to follow your description with all the abbreviations, sorry...
0

Share this post


Link to post
Share on other sites
What I would do would be to augment the "player id" concept, and have it contain "home world" as part of the ID.
Then you can have a "id to database server" resolver which runs a transaction for a particular user ID on the right database.
If visiting is "rare" then you can have something like a single proxy server where "non-local" requests are sent to, and that proxy connects to all databases.
If visiting is common, then connect to each database from each server. At some point, that will run out of database connections, but I doubt you're at that scale :-)

Also: once you have the id -> database mapping, you can easily shard/partition by ID for horizontal scalability. However, transactions that include multiple players become a lot harder; you have to put all the items into escrow first, and then use worker items in a reliable work queue to complete the transaction. Unless you pay big bucks for a cross-database transaction monitor system, like DB/2 Enterprise.
0

Share this post


Link to post
Share on other sites
[quote name='ApochPiQ' timestamp='1333353955' post='4927399']
As far as I know the usual way to implement this is to physically move the player's records from one database into another. There may be alternatives but they are increasingly complicated for decreasing benefit.

Are you interested in "permanent transfers" between servers, or more of a "visiting/guesting" feature? Guesting is a totally different matter than permanent transfers. I must confess I found it really hard to follow your description with all the abbreviations, sorry...
[/quote]

i am interested in a "visiting/guesting" feature. players from all common server groups can visit one cross-realm group (with some total number restrictions), this is our current [url="http://dict.bing.com.cn/baiduapp.aspx?bd_user=0&bd_sig=79271129895a44ba8a7aae10c8b523ed&canvas_pos=search&keyword=%E5%9C%A8%E7%BA%BF%E8%AF%8D%E5%85%B8#requirement"]requirement[/url].

let "home world" ID be part of the player ID is a greate concept, l like it.
0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0