Read about how to make game server for game, The latest news, videos, and discussion topics about how to make game server for game from alibabacloud.com
First, the preface
"Code God Alliance" is a technology for people to do open source feelings of the game, each programming language is a hero. Both the client and the server use C # development, the client uses the Unity3d engine, and the database uses MySQL. This Moba class game is the author in the study time and the client art plan's small partner to do toget
The Broadcast Algorithm on the erlang server of a browser game is inefficient. It should be a bug. The erlang ServerAn error occurred while obtaining the erlang webpage server code.The documentation is very elegant, but I can see that the Broadcast Algorithm in the scenario management is very beautiful, but the efficiency is very low.
Every time a
Before talking about this topic, let everyone know what a server is. In online games, servers play the role of synchronization, broadcast and server-initiated behaviors, such as weather, npc ai, etc, the reason why many online game servers need to carry some game logic operations is to prevent client cheating. With thi
The early development of the game must use C + +, it is not to say, 2000-2004, Java has no NIO, other dynamic language is not heavy, only C + + can develop a fully available game server. Until 2005, many Korean games are still pure C + + write service side, Jinshan has also developed a lot of pure C + + game
Recently, I was not very busy. I wrote a prototype of my own game server framework, which is not perfect in many places, but it is basically enough to run. Let me start with the upper-layer structure, to the Implementation Details, and write anything when I think of it.
Part 1 server LogicThe server is simply divided i
connection is using bootstrap and using an event loop, and the server typically uses two event loops.The specific code can look at the section content: Build a simplest socket server and client.Iv. What are the advantages of Netty building a game server?1, the game
number |
Ten bits: Serial number | * * public class gameuuid{//Base time private long Twepoch = 1288834974657L//thu Nov 01:42:54 GMT//area flag number Private
Final static long regionidbits = 3L;
Number of machine ID digits private final static long workeridbits = 10L;
Number identification number private final static long sequencebits = 10L;
Area Flag ID Maximum private final static long Maxregionid = -1l ^ ( -1l
A few things to note when using this method of customization:
In order to m
Time is always inadvertently when the flow away, suddenly recalled that I have done four years of game development, experienced several game projects, the previous project in the game server framework is not my ideal framework, although I do not know is not enough. Here's a simple thought of my
1. server network connection
Most online game servers use a non-blocking select structure. Why? Because the network game servers need to process a large number of connections, and most of them will choose to run in Linux/Unix, it is not cost-effective to open a thread for each user, on the one hand, threads in Linux/Unix are simulated by the concept of processes,
started using node. js to do the game, I was more curious, so I looked at the site of Nodejs, and saw the comments on the Internet, I think this goods is magical, single-threaded event-driven, feeling relatively simple. Then pomelo into the field of vision, I actually found that netease open source a Nodejs write game server architecture, really Xicongtianjiang,
route information must be specified for all messages on the client, and the messages are correctly delivered.Logic servers can be divided into different servers by function, such as scenario servers, chat servers, and user information management servers. Therefore, communication between different servers is inevitable. Therefore, pomelo introduces the RPC mechanism, that is, the communication between all logic servers can be completed through RPC, which is convenient.References:Pomelo framework
process to see Figure 3 Player data query processWhen modifying player data, three layers of data need to be synchronized. The data is first modified in memory, then the Modify command is initiated to the data server, and the data server presses the Modify command into the redis database command queue and the mysql command queue, respectively. Two more threads execute asynchronously on the command queue
First, prefaceThis game server architecture is a single-service form, that is, all game logic in a project, no distinction between landing server, combat server, the world server and so on. This architecture has been successfully
Preface:
I have always wanted to write a series about this project. Currently, this game is under dismounting (poor operation, although I still like this game ).
It has been more than a year since development. I have not forgotten it yet, so I will sort it out and share it here.
How much can be written? Don't blame me for throwing away...
The first server archit
This is a creation in
Article, where the information may have evolved or changed.
Choose Golang to do game server development
After six months of mobile game operation, maintenance, follow-up development, the next network game server-side development technology selection req
Three Kingdoms (the Wind of the Wind) client source code + Server source + Complete planning document)The blade of the troubled Times source code download "The Blade of the Wind 2" is about to be launched in the near future, in order to let the players feel the most smooth game experience, the game has done all the preparation, November 20 to seal the test. [2]
no trend in this kind of things (the bottom layer is TCP/IP, udp), and what technology, completely, depending on the capabilities of the main process .... the main process can be used for good use.
In the end, the most important thing is people, not technology. Your ability is not good. It's useless to use the technology that is now Awesome. For example, erlang cannot do anything awesome.
Java, python, node, and erlang are widely used.
Go is also used by companies.
Of course, you can use php
Currently, many web games or mobile games use php for server development, such as swoole or workman. I was developed on a php Web page. I am very interested in Game Development and want to learn, but I don't know how to learn, or what books or open-source projects I want to read... currently, many web games or mobile games use php for server development, such as
option, as shown below.
2, in the Entry window selected "Set Time and Date", the following figure.
3, select the Internet Time option, and click on the change settings, as shown below.
4, check and iternet time server synchronization, and select a good server, click to update immediately.
5, after the completion of the update, click to confirm.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.