[4] Configuration generation tool for Wanhunjian server development

The xml used by Wanhunzhao is used as a configuration item. At the beginning of the project, I generally counted the configuration xml of the server, which reached more than 1w of horror. This is a huge headache for planning. Let's first explain the method of Wanhun killing, and then further explain the use of excel to generate the configuration of the server client.

    The differences between xml and excel are as follows:

     1. xml can express the meaning more accurately, but the configuration is relatively complicated, and the client-side parsing of xml is time-consuming. When Wanshun is loaded, the xml will be loaded for about 1s.

    2. Excel can be relatively simple to configure. The meaning of the single can be limited. When expressing complex requirements, multiple excel sheets are needed to combine them.

  1. All Souls Kill Configuration
    1. Wan Soul Kill uses xml to configure, although it is more painful. But there is an artifact that can alleviate this pain. XMLSpy opens roughly like this:
    2. For xml, it is better that the server and client can share the same xml, otherwise the planning work will be doubled
  2. desired configuration
    1. The configuration data in excel is parsed by a third-party program or a program written by yourself to generate json or txt or other formats, and the corresponding class java or cs of the configuration is generated at the same time. Roughly as follows:
    2. The client server directly parses the excel client and needs to consider the consumption performance (estimated is not very optimistic)
    3. Provide an available excel2jsontxt tool Click download

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325118248&siteId=291194637