一种游戏业务生成方法 技术领域 Game business generation method
本发明涉及移动网络游戏业务领域, 特别是指一种游戏业务生成方 法。 发明背景 The present invention relates to the field of mobile network game services, and more particularly to a game service generation method. Background of the invention
随着互联网和移动通信技术的快速发展, 移动网络游戏已经成为通 信运营商数据业务的重点。 目前游戏开发商普遍采取自己开发移动网络 游戏, 然后通过自己的游戏平台运行开发的游戏的策略, 因此通常开发 出的游戏只能运行于开发商自己的游戏平台, 而对于其它游戏平台的兼 容性比较差。 而若要使该游戏能够运行于其它游戏平台, 则往往需要投 入大量的人力、 物力修改游戏, 以使其满足不同游戏平台的标准, 造成 极大的资源浪费。 有鉴于此, 业界的发展趋勢是游戏开发商以及游戏平 台厂商都遵循统一的标准开发游戏和游戏平台, 这样就可以解决游戏在 多个不同游戏平台运行的问题。 基于这一趋势, 开教移动联盟(OMA ) 已经制定了相关的标准, 各游戏开发商只需才艮据该标准开发出游戏, 就 可以使之运行于根据该标准开发的游戏平台, 这样的游戏平台称为开放 式游戏平台。 With the rapid development of the Internet and mobile communication technologies, mobile network games have become the focus of communication operators' data services. Currently, game developers generally adopt their own strategies for developing mobile online games and then running the developed games through their own game platforms. Therefore, games that are usually developed can only run on the developer's own game platform, and compatibility with other game platforms. Relatively poor. In order to enable the game to run on other game platforms, it is often necessary to invest a large amount of manpower and material resources to modify the game to meet the standards of different game platforms, resulting in great waste of resources. In view of this, the industry's development trend is that game developers and game platform manufacturers follow a unified standard to develop games and game platforms, so that the problem of running the game on multiple different game platforms can be solved. Based on this trend, the Open Education Mobile Alliance (OMA) has developed relevant standards, and each game developer only needs to develop games based on the standard, so that it can run on the game platform developed according to the standard. The game platform is called an open game platform.
显然, 开放式游戏平台使得游戏开发商可以专著于游戏的设计与开 发, 而无需再为游戏的^行而烦恼。 然而由此面临的问题却是: 如何使 一个游戏真正在不同的游戏平台上生成游戏业务, 而投入使用。 由于一 个新的游戏要在游戏平台上正常使用, 必须经过在该游戏平台上增加游 戏基本信息, 游戏桌信息, 游戏级别信息, 终端类型信息, 客户端类型 以及游戏室等, 才能最终生成一个完整的游戏业务。 当游戏开发商使用
自己的游戏平台生成游戏业务时, 可以采取由熟悉该游戏的游戏开发人 员将游戏的基本信息项以及程序等文件直接安装到游戏平台上即可。 而 要使自己开发的游戏在其它的游戏平台上运行时, 则往往由于权限等问 题, 只能将该游戏运行所需的所有必要数据和程序等文件发送给游戏平 台方的发布人员, 由游戏平台发布人员将该游戏的基本信息逐项录入, 然后由游戏平台读取输入的游戏 :据, 生成游戏业务。 然而一个游戏的 信息一般只有其开发人员才会比较熟悉, 而游戏平台的发布人员往往很 难了解游戏的基本信息, 这样要其将自己并不熟悉的庞大的游戏信息数 据项录入到游戏平台系统中, 往往困难重重, 而且错误百出, 导致游戏 业务迟迟不能生成和正常运行, 延长了游戏业务的生成周期, 对游戏的 商业利用极为不利。 发明内容 Obviously, the open game platform allows game developers to focus on the design and development of the game without having to worry about the game. However, the problem is: How to make a game truly generate game business on different game platforms, and put it into use. Since a new game is to be used normally on the game platform, it is necessary to add basic game information, game table information, game level information, terminal type information, client type and game room on the game platform to finally generate a complete game. Game business. When used by game developers When the game platform of the game is generated by the game platform, the game developer who is familiar with the game can directly install the basic information items of the game and the files of the game directly onto the game platform. In order to make the game developed by yourself run on other game platforms, it is often only because of the permissions and other issues that all the necessary data and programs required for the game to be run can be sent to the publisher of the game platform. The platform publisher enters the basic information of the game item by item, and then the game platform reads the input game: according to the game business. However, the information of a game is generally only familiar to its developers, and the publishers of the game platform often have difficulty understanding the basic information of the game, so that they can enter huge game information data items that they are not familiar with into the game platform system. In the middle, it is often difficult, and the mistakes are numerous, which causes the game business to be delayed and normal operation, which prolongs the generation cycle of the game business and is extremely unfavorable for the commercial use of the game. Summary of the invention
有鉴于此, 本发明的主要目的在于提供一种游戏业务生成方法, 解 决一个新开发的游戏在不同的游戏平台上生成游戏业务所面临的操作 困难, 周期漫长的问题。 In view of this, the main object of the present invention is to provide a method for generating a game service, which solves the problem of the operational difficulty and long cycle of a newly developed game for generating a game service on different game platforms.
为了达到上述目的, 本发明提供了一种游戏业务生成方法, 该方法 包括: In order to achieve the above object, the present invention provides a game service generation method, the method comprising:
a、 读取游戏的业务描述信息和上传文件; a, read the game description information and upload files;
b、判断读取的游戏的业务描述信息和上传文件是否符合游戏平台的 运行条件, 如果是, 则将所有业务描述信息生成一个业务描述文件, 然 后执行步骤 c, 否则执行步骤 d; b, judging whether the service description information and the uploaded file of the read game meet the operating conditions of the game platform, and if so, generating a service description file for all the service description information, and then performing step c, otherwise performing step d;
c、 将该游戏的上传文件连同生成的业务描述文件发送到游戏平台, 游戏平台读取接收到的上传文件和业务描述文件, 生成游戏业务; c. Sending the uploaded file of the game together with the generated business description file to the game platform, and the game platform reads the received upload file and the service description file to generate a game service;
d、 发送错误信息。
在上述方法中, 所述读取游戏的业务描述信息包括读取游戏基本信 息数据项、 客户端数据项和游戏桌数据项。 d. Send an error message. In the above method, the service description information of the read game includes reading a game basic information data item, a client data item, and a game table data item.
在上述方法中, 所述读取上传文件包括: 读取游戏图标、 游戏图片、 服务端程序和客户端程序。 In the above method, the reading the uploaded file comprises: reading a game icon, a game picture, a server program, and a client program.
在上述方法中, 步骤 b中, 所述判断读取的游戏的业务描述信息和 上传文件是否符合游戏平台的运行条件包括: 判断所有业务描述信息是 否符合游戏平台的格式要求, 上传文件的类型是否符合游戏平台的类型 要求, 以及通过业务描述信息中的服务端程序主类名调用服务端程序来 判断该服务端主类名是否正确。 In the above method, in step b, determining whether the service description information of the read game and the uploaded file meet the operating conditions of the game platform include: determining whether all the service description information meets the format requirement of the game platform, and whether the type of the uploaded file is In accordance with the type requirements of the game platform, and calling the server program through the server class main class name in the service description information to determine whether the server main class name is correct.
在上述方法中, 步驟 b中, 所述生成业务描述文件为生成可扩展标 识语言 XML文件。 In the above method, in step b, the generating the service description file is generating an extensible markup language XML file.
在上述方法中, 步骤 b中, 所述生成 XML文件的步骤包括: 创建 一个空白文件; 然后, 在该空白文件中顺序写入开始标志、 业务描述信 息数据项内容和结束标志; In the above method, in step b, the step of generating an XML file includes: creating a blank file; and then sequentially writing a start flag, a service description information data item content, and an end flag in the blank file;
步骤 c中, 所述读取接收到的业务描述文件的步骤包括: 顺序读取 接收到的业务描述文件中的开始标志、 业务描述信息数据项内容以及结 束标志 In step c, the step of reading the received service description file includes: sequentially reading the start flag, the service description information data item content, and the end flag in the received service description file.
在上述方法中, 步骤 b中, 所述在空白文件中顺序写入开始标志、 业务描述信息数据项内容和结束标志的步骤包括: 在一个开始标志和一 个结束标志之间写入一项业务描述信息数据项内容, 或在一个开始标志 和一个结束标志之间写入多项业务描述信息数据项内容, 或在一个开始 标志和一个结束标志之间写入所有业务描述信息数据项内容。 In the above method, in step b, the step of sequentially writing the start flag, the service description information data item content, and the end flag in the blank file includes: writing a service description between a start flag and an end flag The information data item content, or a plurality of service description information data item contents are written between a start flag and an end flag, or all service description information data item contents are written between a start flag and an end flag.
在上述方法中, 步骤 C中, 所述将上传文件连同业务描述文件发送 到游戏平台的步骤包括: 将所有上传文件和业务描述文件生成一个游戏 包, 然后^ 1生成的游戏包发送到游戏平台。
在上述方法中, 所述生成游戏包为生成一个 ZIP压缩文件。 Step in the above method, step C, the upload file is sent to the game platform, together with the service description file comprises: all the uploaded file and the service description file to generate a game package, ^ 1 then transmits packets to the generated game game platform . In the above method, the generating the game package is to generate a ZIP compressed file.
在上述方法中, 所述步骤 c进一步包括, 游戏平台判断接收到的游 戏包的类型是否可读, 如果是, 则读取游戏包中的游戏业务描述文件和 上传文件; 否则, 发送错误信息。 In the above method, the step c further includes: the game platform determining whether the type of the received game package is readable, and if so, reading the game service description file and the upload file in the game package; otherwise, sending an error message.
在上述方法中, 所述步骤 c进一步包括, 游戏平台在读取游戏业务 描述文件和上传文件之后 , 判断读取的业务描述文件和上传文件是否符 合游戏平台的运行条件,如果是, 则生成游戏业务; 否则发送错误信息。 In the above method, the step c further includes: after reading the game service description file and uploading the file, the game platform determines whether the read service description file and the uploaded file meet the running condition of the game platform, and if yes, generate the game. Business; otherwise an error message is sent.
在上述方法中, 所述判断读取的业务描述文件和上传文件是否符合 游戏平台的运行条件包括如下步骤: In the above method, determining whether the read service description file and the uploaded file meet the operating conditions of the game platform include the following steps:
cl、 判断读取的业务描述文件中所描述的上传文件的文件名是否与 读取的上传文件的文件名相对应, 如果是, 则执行步骤 c2, 否则发送错 误信息; Cl, determining whether the file name of the uploaded file described in the read service description file corresponds to the file name of the read upload file, and if yes, performing step c2, otherwise sending the error information;
c2、 判断读取的业务描述文件中是否包括游戏的基本信息数据项、 客户端数据项和游戏桌数据项, 如果是, 则执行步驟 c3; 否则发送错误 信息; C2, determining whether the read service description file includes the basic information data item, the client data item and the game table data item of the game, and if yes, executing step c3; otherwise, sending an error message;
c3、逐一判断步骤 c2中所述的游戏基本信息数据项、客户端数据项 和游戏桌数据项中任意一项包括的所有数据项是否符合游戏平台的运 行条件, 如果是, 则生成游戏业务; 否则发送错误信息。 C3, judging one by one whether all the data items included in any one of the game basic information data item, the client data item and the game table data item described in step c2 meet the operating conditions of the game platform, and if so, generate a game service; Otherwise an error message is sent.
在上述方法中, 在所述步驟 cl和 c2之间进一步包括判断所述业务 描述文件中描述的上传文件的文件名是否已经存在于所提交游戏平台 的系统中, 如果是, 则发送错误信息; 否则执行步骤 c2。 In the above method, further comprising determining, between the steps c1 and c2, whether the file name of the uploaded file described in the service description file already exists in the system of the submitted game platform, and if yes, sending an error message; Otherwise, step c2 is performed.
综上所述, 本发明首先读取游戏的业务描述信息和上传文件, 然后 检查读取的游戏的所有业务描述信息和上传文件是否符合游戏平台的 运行条件, 如果是, 则将所有业务描述信息生成一个业务描述文件, 然 后将该游戏的上传文件连同生成的业务描述文件发送到游戏平台, 游戏
平台读取接收到的上传文件和业务描述文件, 由此生成具体游戏业务; 否则发送错误信息。 而且为了防止游戏业务描述文件和上传文件发送到 游戏平台后被误操作 , 本发明进一步包括游戏平台对接收到的游戏业务 描述文件和上传文件的复查 , '从而大大降低了游戏业务生成过程中游戏 数据项出错的概率, 减轻了游戏开发人员和游戏发布人员的工作 缩 短了游戏业务生成和商用周期。 附图简要说明 In summary, the present invention first reads the service description information and the uploaded file of the game, and then checks whether all the service description information and the uploaded file of the read game meet the operating conditions of the game platform, and if so, all the service description information. Generate a business description file, and then send the game's upload file along with the generated business description file to the game platform, the game The platform reads the received upload file and the service description file, thereby generating a specific game service; otherwise, sending an error message. Moreover, in order to prevent the game service description file and the upload file from being mishandled after being sent to the game platform, the present invention further includes the game platform reviewing the received game service description file and the uploaded file, thereby greatly reducing the game during the game service generation process. The probability of data item errors reduces the effort of game developers and game publishers to shorten game business generation and business cycles. BRIEF DESCRIPTION OF THE DRAWINGS
图 1为本发明方法的总体流程图。 . Figure 1 is a general flow diagram of the method of the present invention. .
图 2为本发明一个具体实施例的方法流程图。 实施本发明的方式 2 is a flow chart of a method in accordance with an embodiment of the present invention. Mode for carrying out the invention
为使本发明的目的、 技术方案和优点更加清楚, 下面结合附图对本 发明作进一步的详细描述。 In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be further described in detail with reference to the accompanying drawings.
图 1为本发明方法的总体流程图, 具体包括如下步骤: Figure 1 is a general flow chart of the method of the present invention, specifically including the following steps:
步驟 101: 读取游戏的业务描述信息和上传文件。 Step 101: Read the service description information and upload file of the game.
步骤 102: 判断读取的游戏的业务描述信息和上传文件是否符合游 戏平台的运行条件, 如果是, 则执行步骤 103; 否则, 执行步骤 104。 Step 102: Determine whether the service description information and the uploaded file of the read game meet the operating conditions of the game platform. If yes, execute step 103; otherwise, execute step 104.
步骤 103: 将所有业务描述信息生成一个业务描述文件, 并将该游 戏的上传文件连同生成的业务描述文件发送到游戏平台, 游戏平台读取 接收到的上传文件和业务描述文件, 生成游戏业务。 Step 103: Generate a service description file for all the service description information, and send the uploaded file of the game together with the generated service description file to the game platform, and the game platform reads the received upload file and the service description file to generate a game service.
步骤 104: 发送错误信息。 Step 104: Send an error message.
以上是本发明方法的总体流程, 为了防止游戏业务描述文件和上传 文件被提交到游戏平台后被误操作, 确保游戏业务在游戏平台的正常生 成和运行, 在上述方法流程中进一步包括: 在将游戏的业务描述文件和
上传文件发送到游戏平台后, 由游戏平台对接收到的业务描述文件和上 传文件的复查步驟,本实施例方法流程如图 2所示,具体包括如下步驟: 步骤 201: 读取游戏的业务描述信息和上传文件。 其中, 业务描述 信息主要包括: 基本信息数据项、 客户端数据项以及游戏桌数据项等。 而上传文件主要包括: 游戏图片、 游戏图标、 客户端程序以及服务端程 序等。 The above is the overall process of the method of the present invention. In order to prevent the game service description file and the uploaded file from being mishandled after being submitted to the game platform, and ensuring the normal generation and operation of the game service in the game platform, the method flow further includes: Game business description file and After the uploading of the file to the game platform, the step of reviewing the received service description file and the uploaded file by the game platform, the method flow of this embodiment is as shown in FIG. 2, and specifically includes the following steps: Step 201: Read the service description of the game Information and upload files. The service description information mainly includes: basic information data items, client data items, and game table data items. Upload files mainly include: game pictures, game icons, client programs, and server programs.
步骤 202: 判断读取的游戏的所有业务描述信息和上传文件是否符 合游戏平台的运行条件,如果是,则执行步骤 203;否则,执行步驟 210。 Step 202: Determine whether all the service description information and the uploaded file of the read game meet the operating conditions of the game platform, and if yes, execute step 203; otherwise, execute step 210.
其中, 判断业务描述信息和上传文件的具体步骤包括: The specific steps of determining the service description information and uploading the file include:
判断所有读取的业务描述信息是否符合游戏平台的.格式要求, 如游 戏名称的长度, 数值的范围等等; Determine whether all read service description information conforms to the format requirements of the game platform, such as the length of the game name, the range of values, and the like;
判断所有上传文件的类型是否符合游戏平台的类型要求, 主要指上 传的游戏图片和游戏图标等文件的类型, 如 JPG或位图(BMP )等是否 属于游戏平台支持的类型; Determine whether the type of all uploaded files meets the type requirements of the game platform, mainly refers to the types of files such as uploaded game pictures and game icons, such as JPG or bitmap (BMP), etc., which are of the type supported by the game platform;
判断业务描述信息中的服务端主类名是否正确, 即判断通过该服务 端主类名是否能够调用服务端程序来判断该服务端主类名是否正确, 如 果是, 则表明该服务端主类名是正确的。 Determining whether the server main class name in the service description information is correct, that is, determining whether the server main class name can be called by the server main class name to determine whether the server main class name is correct, and if yes, indicating the server main class The name is correct.
步驟 203: 将所有业务描述信息生成一个业务描述文件, 然后将该 游戏的上传文件连同生成的业务描述文件压缩成一个游戏包, 如 ZIP压 缩文件等, 发送到游戏平台。 Step 203: Generate a service description file for all the service description information, and then compress the uploaded file of the game together with the generated service description file into a game package, such as a ZIP compression file, and send it to the game platform.
在该步驟中, 可以将所有业务描述信息生成一个 XML文件, 生成 方式具体包括如下步驟: 创建一个空白文件; 然后, 在该空白文件中顺 序写入开始标志, 业务描述信息数据项内容和结束标志。 其中, 可以采 取在一个开始标志和一个结束标志之间写入一项业务描述信息数据项 内容, 或在一个开始标志和一个结束标志之间写入多项业务描述信息数
据项内容, 或在一个开始标志和一个结束标志之间写入所有业务描述信 息数据项内容。 In this step, all the service description information may be generated into an XML file, and the generating manner specifically includes the following steps: creating a blank file; then, sequentially writing a start flag, a service description information data item content, and an end flag in the blank file. . Wherein, a service description information data item content may be written between a start flag and an end flag, or a plurality of service description information numbers may be written between a start flag and an end flag. According to the item content, or write all the service description information data item content between a start flag and an end flag.
步驟 204: 游戏平台接收到游戏包后, 判断该游戏包的类型是否可 读, 如果是, 则执行步驟 205; 否则, 执行步驟 210。 如有些游戏平台只能支持 ZIP压缩文件, 则意味着必须提交 ZIP类型的 游戏包给该游戏平台。 Step 204: After receiving the game package, the game platform determines whether the type of the game package is readable. If yes, step 205 is performed; otherwise, step 210 is performed. If some game platforms can only support ZIP archives, it means that a ZIP game pack must be submitted to the game platform.
步骤 205: 游戏平台读取游戏包中的业务描述文件和上传文件, 并 判断读取的业务描述文件中所描述的上传文件的文件名是否与读取的 上传文件的文件名相对应, 如果是, 则执行步驟.206; 否则, 执行步驟 210。 Step 205: The game platform reads the service description file and the upload file in the game package, and determines whether the file name of the uploaded file described in the read service description file corresponds to the file name of the read upload file, if yes , step .206 is performed; otherwise, step 210 is performed.
对于步驟 203中生成的 XML文件来说,读取该 XML文件的步骤具 体包括: 顺序读取业务描述文件中的开始标志、 业务描述信息数据项的 内容和结束标志。 For the XML file generated in step 203, the step of reading the XML file specifically includes: sequentially reading the start flag in the service description file, the content of the service description information data item, and the end flag.
步骤 206: 判断读取的业务描述文件中所描述的上传文件的文件名 是否已经存在于所提交的游戏平台中, 如果是, 则执行步驟 210; 否则, 执行步驟 207。 Step 206: Determine whether the file name of the uploaded file described in the read service description file already exists in the submitted game platform. If yes, execute step 210; otherwise, perform step 207.
步驟 207: 判断读取的业务描述文件中是否包括游戏的基本信息数 据项、 客户端数据项和游戏桌数据项, 如果是, 则执行步骤 208; 如果 缺少上述任何一项, 则执行步驟 210。 ' 步驟 208: 逐一判断基本信息数据项、 客户端数据项和游戏桌数据 项中任意一项包括的所有数据项是否符合该游戏平台的运行条件, 如果 是, 则执行步骤 209; 否则, 执行步骤 210。 Step 207: Determine whether the read basic description data item, the client data item, and the game table data item are included in the read service description file. If yes, go to step 208; if any of the above items is missing, go to step 210. Step 208: Determine whether all data items included in any one of the basic information data item, the client data item, and the game table data item meet the operating conditions of the game platform one by one, and if yes, execute step 209; otherwise, perform steps 210.
步骤 209: 将读取的所有游戏业务描述文件和上传文件生成一个游 戏业务。
步骤 -210: 发送错误信息。 这里发送 吴信息是发送到游戏平台的 人机交互界面, 提示游戏平台操作人员修正出错的游戏数据项。 Step 209: Generate a game service by reading all the game business description files and uploaded files. Step-210: Send an error message. The Wu information sent here is a human-computer interaction interface sent to the game platform, prompting the game platform operator to correct the faulty game data item.
以上所述为本发明的较佳实施例, 并不用于限定本发明的保护范 围。 .
The above is a preferred embodiment of the present invention and is not intended to limit the scope of protection of the present invention. .