Recent Topics

Hola/Hello by Iceman
[June 21, 2017, 10:42:38 AM]


My other Stuff by Monkey D. Luffy
[June 19, 2017, 08:44:25 PM]


The Nintendo Switch by Roxas
[June 15, 2017, 03:45:18 AM]


Dragon Ball Super by Monkey D. Luffy
[June 07, 2017, 10:19:02 PM]


¡Qué tal estáis guerreros Z! by Voul
[May 20, 2017, 08:09:54 AM]

View Desktop Site View Mobile Site

* ShoutBox!

Refresh History
  • Keep it Clean! No Advertising!
  • Yesterday at 09:43:28 PM
    :nonose:
  • Yesterday at 11:39:49 AM
    Oh, Nia is alive!
  • Yesterday at 10:35:27 AM
    I count as -10, so after the maths is done, Sendoku was pretty close
  • Yesterday at 09:36:15 AM
    whoops
  • Yesterday at 09:36:09 AM
    Con\\\
  • Yesterday at 09:36:03 AM
    1 for every letter of your name
  • Yesterday at 04:30:10 AM
    :r_flame:
  • Yesterday at 03:58:02 AM
    :hype:
  • Yesterday at 03:23:09 AM
    I'm so badass, I'm worth at least 5 on my own!
  • Yesterday at 03:22:52 AM
    3 of us...? See now, I'm offended.
  • June 25, 2017, 11:08:29 PM
    Sendoku is EZ
  • June 25, 2017, 06:21:49 AM
    :derp:
  • June 25, 2017, 06:02:15 AM
    :r_annoyed:
  • June 24, 2017, 12:03:36 PM
    Also, there's more than three of us... Probably about 5 or 6. Sendoku knows nothing. Joke's on him
  • June 24, 2017, 12:03:03 PM
    Theeeeere is the picture XD
  • June 24, 2017, 08:45:43 AM
    man i love the old classics like metallica and such
  • June 24, 2017, 02:45:54 AM
    [link]
  • June 24, 2017, 01:59:35 AM
    :r_worried:
  • June 23, 2017, 09:49:49 PM
    hope u doing well cya
  • June 23, 2017, 09:49:19 PM
    all 3 of you FeelsBadMan
  • June 23, 2017, 09:48:03 PM
    How are u guys
  • June 23, 2017, 09:36:52 AM
    Though, if I had to choose between a hot humid place, or a hot dried one, I would probably choose a permanent state of aestivation for the rest of the season
  • June 23, 2017, 09:30:29 AM
    Nah mate... Hell generally spawns in portuguese forests every year during summer. European Champions in football and forest fires
  • June 23, 2017, 08:22:53 AM
    :vomit:
  • June 23, 2017, 03:03:36 AM
    You too buddy, you too xD

Topic: Development Diary #2  (Read 17204 times)

0 Members and 1 Guest are viewing this topic.

Development Diary #2
« on: July 21, 2014, 01:23:36 PM »

    Offline Luke[Dumke]

  • Administrator
  • Dragon King's Focus
  • Honor: 168 / 1
  • Posts: 2,991
    • View Profile
  • Project Leader
  • I am a: Great Namek

You can discuss this announcement here: http://dborevelations.com/forums/index.php?topic=3734


Greetings all,

Here is the much requested Development Diary #2. This development diary is going to be fairly technical as we've been getting some technical questions about our core server and other development related topics on the forum and from the AMA. Hopefully it's not too boring to anyone.

At a high level, the server has two main parts: network and simulation (of course, there are others like the database, but let's ignore that for now).

For the network side, There is the network thread pool which handles all the connections and inputs from players, the simulation is the core of the game play. This is where the world, and all the game objects (players, npcs, and everything) are, as well as all the game logic.

The simulation consists of many subsystems, In our initial list, we have spec'd out more than 40 subsystems. From simple ones like inventory or mail, to more complex and heavy ones like collision detection. And I'm almost positive that there will be more as we go.

All these subsystems communicate with each other via events. Each type of events can be subscribed to. In our last sneak peek video where you see a simple combat, it was basically a test of a combat event flow among a number of subsystems.

Here is a quick step through on how different subsystems worked together in that example:
  • When the player starts an attack on a mob, it sends an event which the combat manager has subscribed for.
  • The combat manager starts the combat logic between the two objects. Each round of attacks it will fire off events that get sent back to the player like damages and LP/Lifepoints updates.
  • When the mob dies, an event is fired off again to indicate that the player has killed the mob.
  • The player manager that has subscribed to this event can award the player with experience point, while the drop manager that has suscribed to the same event can award the player a drop of money or, like, 7 dragon balls ;)
Similarly, the quest manager can subscribe to this event to update the player's quest progress (if killing this mob is part of a quest).

Having subsystems not only make things more manageable, it also makes it possible to have them running in parallel where we see fit. It also allows us to move a subsystem to a different process or a different host, which makes the server more scalable. For instance, the collision detection or the proximity manager might get overloaded as we get more and more players.

I'm not saying this design is perfect (and it definitely isn't), but this is what we've been working with. I'm sure our design will be broken, changed, and improved as we progress.

There are also things that we have implemented purely for development benefits. From simple things like auto login and auto character selection, to things like a special server mode which we can terminate the game server, make some code changes, recompile and restart, all that while the clients stay connected and without the need of restarting. Of course, some states of world are not preserved after a restart (not yet anyway since there is no point), but it does help a lot when testing various areas of the server.

This quick video demonstrates this:


The two players could see each other's movements, until the game server was stopped. Both clients stayed up without knowing what had happened. When the server was brought again, things were back to normal. You can also see how the npc's positions were resetted when the server was restarted, as their states were not preserved.

I'm also in the progress of writing up some test clients so we could do some early profiling and stress test, and I'll post a video of it when I get to it.

Apart from writing actual server code, we also need to do a lot of reverse engineering to see how the client work.

A lot of people think since now we all have the old client source code and libraries, it should be easy. Well, the old source code does help obviously. But the fact is a lot of the protocols, packet structures, data tables, etc have been changed. Some of them took us more time to work out.

Unsurprisingly, we have also found that even the TW client has a different build from the HK client in terms of protocols and packet structures, and they are incompatible with each other.

Meanwhile, the client will just crash if you send it just one byte (or bit) of incorrect data, and there is no easy way to debug without the source, assuming you don't count the assembler code as source ;) And since we are writing everything from scratch and not relying on any existing DBO/NTL's code, this makes the process a pretty long one.

To sum it up, our goal is certainly a big and an ambitious one, but we are happy with what we have done so far. And once again, thank you for the patience.

I would also like to say a few words about other DBO projects that's been going on. I personally think they are all great. And as a developer, there's nothing more exciting than seeing people taking interesting in programming. Different projects will have different directions and different ways of doing things, but ultimately we all share the same goal - bringing DBO back. I truly wish that we can all respect each other, respect each other's work, and respect the differences.

Well, I think that's all for now. I hope I can do more this kind of write up more often. If you have any questions, feel free to ask and I'll try my best to answer.


Thank you!
Pigeon.
« Last Edit: August 08, 2014, 02:51:48 PM by Luke[Dumke] »
Project Leader for DBORevelations || Contact Email: Support@dborevelations.com

"We'd rather under-promise and over-deliver"