Method, device and medium for reducing mobile phone game first pack

文档序号:576958 发布日期:2021-05-25 浏览:28次 中文

阅读说明:本技术 降低手机游戏首包的方法、装置及介质 (Method, device and medium for reducing mobile phone game first pack ) 是由 潘亚楠 蔡其锋 赖炳新 张鹏飞 于 2021-01-11 设计创作,主要内容包括:本发明涉及一种低手机游戏首包的方法、装置及介质的技术方案,包括:进行资源上报,记录每次加载的主动资源,上报至服务器;通过服务器对上报的主动资源生成资源使用记录表;将首包的必要游戏场景资源,以及,资源使用记录表及其对应的依赖资源列表,添加至首包;将游戏工程项目所需的所有资源减去首包所需的资源,得到扩展包资源列表;将首包发送至客户端,客户端在进行持续下载扩展包资源。本发明的有益效果为:减小首包大小,提高玩家下载率,方便推广游戏,自动化出包,方便功能测试。(The invention relates to a method, a device and a medium for low mobile phone game first package, which comprises the following steps: reporting the resources, recording the active resources loaded each time, and reporting to a server; generating a resource use record table for the reported active resources through a server; adding necessary game scene resources of the first package, a resource use record table and a corresponding dependency resource list to the first package; subtracting the resources required by the first package from all the resources required by the game engineering project to obtain an extended package resource list; and sending the first package to the client, and continuously downloading the extended package resources by the client. The invention has the beneficial effects that: the size of the first package is reduced, the download rate of players is improved, the game is convenient to popularize, the package is automatically output, and the function test is convenient.)

1. A method for reducing mobile phone game initial packages, which is characterized by comprising the following steps:

s100, reporting resources in a testing stage of the mobile phone game, recording active resources loaded each time, and reporting to a server;

s200, generating a resource use record table for the reported active resources through a server;

s300, adding necessary game scene resources of the first package, a resource use record table and a corresponding dependency resource list to the first package;

s400, subtracting the resources required by the first package from all the resources required by the game engineering project to obtain an expansion package resource list;

and S500, sending the first package to the client, wherein the client continuously downloads the extended package resource.

2. The method for reducing the mobile phone game initial package according to claim 1, wherein the S100 comprises:

and starting a resource reporting function only when the game processing version is tested, dotting and recording the loaded active resources and the current scene of the player through all resource loading inlets for resource reporting, reporting to a resource collection and sending to a server.

3. The method for reducing the initial package of a mobile phone game as claimed in claim 2, wherein the testing stage is a debug stage.

4. The method of claim 1, wherein the active resources comprise a list of active loading resources used for each scene.

5. The method for reducing the mobile phone game initial package according to claim 1, wherein the S300 comprises:

and adding the resource lists of the login scene and the teaching scene which are necessary scenes into the first package, acquiring the dependent resources of the resources in the resource use record table according to the resource dependent relationship, and adding the dependent resources into the first package.

6. The method for reducing the mobile phone game initial package according to claim 1, wherein the step S400 further comprises:

according to the game process, the scenes of the extended package resource list are subjected to priority division, corresponding downloading is carried out according to the priority high level when subsequent downloading is carried out, specifically, according to the scene dimension, the DLC resource list and the dependent resources of each scene are divided, then the scenes are divided into priorities, and the DLC resources are downloaded in the background according to the scene priorities.

7. An apparatus for reducing a mobile phone game piece, the apparatus comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method steps of any of claims 1-6 when executing the computer program.

8. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method steps of any one of claims 1 to 7.

Technical Field

The invention relates to the field of computers, in particular to a method, a device and a medium for reducing a mobile phone game first package.

Background

In the Unity 3D mobile game, the existing mobile game installation package which is released is getting larger and larger, which affects the download time and download rate, so a technical scheme capable of reducing the size of the first package of the mobile game is urgently needed.

Disclosure of Invention

The invention aims to solve at least one of the technical problems in the prior art, and provides a method, a device and a medium for reducing bundle dependence chain redundancy, which reduce the size of a primary package, improve the download rate of players, facilitate game promotion, automatically package output and facilitate function test.

The technical scheme of the invention comprises a method for reducing the first package of a mobile phone game, which is characterized by comprising the following steps: s100, reporting resources in a testing stage of the mobile phone game, recording active resources loaded each time, and reporting to a server; s200, generating a resource use record table for the reported active resources through a server; s300, adding necessary game scene resources of the first package, a resource use record table and a corresponding dependency resource list to the first package; s400, subtracting the resources required by the first package from all the resources required by the game engineering project to obtain an expansion package resource list; and S500, sending the first package to the client, wherein the client continuously downloads the extended package resource.

According to the method for reducing the mobile phone game initial package, S100 comprises the following steps: and starting a resource reporting function only when the game processing version is tested, dotting and recording the loaded active resources and the current scene of the player through all resource loading inlets for resource reporting, reporting to a resource collection and sending to a server.

According to the method for reducing the initial package of the mobile phone game, the testing stage is a debug stage.

According to the method for reducing the mobile phone game first package, the active resources comprise active loading resource lists used in all scenes.

According to the method for reducing the mobile phone game initial package, S300 comprises: and adding the resource lists of the login scene and the teaching scene which are necessary scenes into the first package, acquiring the dependent resources of the resources in the resource use record table according to the resource dependent relationship, and adding the dependent resources into the first package.

According to the method for reducing the mobile phone game initial package, S400 further includes: according to the game process, the scenes of the extended package resource list are subjected to priority division, corresponding downloading is carried out according to the priority high level when subsequent downloading is carried out, specifically, according to the scene dimension, the DLC resource list and the dependent resources of each scene are divided, then the scenes are divided into priorities, and the DLC resources are downloaded in the background according to the scene priorities.

The technical scheme of the invention also comprises a device for reducing the initial package of the mobile phone game, which comprises a memory, a processor and a computer program which is stored in the memory and can run on the processor, and is characterized in that any one of the method steps is realized when the processor executes the computer program.

The invention also relates to a computer-readable storage medium, in which a computer program is stored, which, when being executed by a processor, carries out any of the method steps.

The invention has the beneficial effects that: the size of the first package is reduced, the download rate of players is improved, the game is convenient to popularize, the package is automatically output, and the function test is convenient.

Drawings

The invention is further described below with reference to the accompanying drawings and examples;

FIG. 1 illustrates an overall flow diagram according to an embodiment of the invention;

FIG. 2 is a schematic flow chart illustrating a process for reducing a mobile phone game initial package according to an embodiment of the present invention;

fig. 3 shows a diagram of an apparatus according to an embodiment of the invention.

Detailed Description

Reference will now be made in detail to the present preferred embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like reference numerals refer to like elements throughout.

In the description of the present invention, the meaning of a plurality of means is one or more, the meaning of a plurality of means is two or more, and larger, smaller, larger, etc. are understood as excluding the number, and larger, smaller, inner, etc. are understood as including the number.

In the description of the present invention, the consecutive reference numbers of the method steps are for convenience of examination and understanding, and the implementation order between the steps is adjusted without affecting the technical effect achieved by the technical solution of the present invention by combining the whole technical solution of the present invention and the logical relationship between the steps.

In the description of the present invention, unless otherwise explicitly defined, terms such as set, etc. should be broadly construed, and those skilled in the art can reasonably determine the specific meanings of the above terms in the present invention in combination with the detailed contents of the technical solutions.

Fig. 1 shows a general flow diagram according to an embodiment of the invention, the flow comprising: s100, reporting resources in a testing stage of the mobile phone game, recording active resources loaded each time, and reporting to a server; s200, generating a resource use record table for the reported active resources through a server; s300, adding necessary game scene resources of the first package, a resource use record table and a corresponding dependency resource list to the first package; s400, subtracting the resources required by the first package from all the resources required by the game engineering project to obtain an expansion package resource list; and S500, sending the first package to the client, wherein the client continuously downloads the extended package resource.

Fig. 2 is a schematic flow chart illustrating a process of reducing the number of mobile phone game initial packages according to an embodiment of the present invention, including:

(1) only starting a resource reporting function on the Debug version application, wherein the resource reporting is to record the loaded active resources and the current scene of the player by dotting at all resource loading inlets and report to a resource collection server;

(2) the server collects all the reported data, and summarizes the data into a list (a resource usage record list), so that an active loading resource list used by each scene can be obtained;

(3) a login scene, a novice scene and a necessary scene in the process that a player experiences novice are acquired, ApkSceneList entering an apk first package is acquired, all active loading resource lists entering the apk are acquired through a resource use recording table SceneUseFileList, all dependent resource lists are found through a dependent relation, and the dependent resource lists also enter the apk;

(4) subtracting all resources entering apk from all resources needing to be packaged in the project, namely obtaining a residual DLC resource list;

(5) DLC resource list, dividing DLC resource list of each scene and dependent resources according to scene dimension, dividing each scene into priority, slowly downloading DLC resources according to scene priority background, and when the player plays corresponding DLC scenes, finishing downloading corresponding resources;

(6) the player can download a smaller apk, play the Dlc resource behind the player while playing, and experience the game more smoothly.

Fig. 3 shows a diagram of an apparatus according to an embodiment of the invention. The apparatus comprises a memory 100 and a processor 200, wherein the processor 200 stores a computer program for performing: reporting the resources, recording the active resources loaded each time, and reporting to a server; generating a resource use record table for the reported active resources through a server; adding necessary game scene resources of the first package, a resource use record table and a corresponding dependency resource list to the first package; subtracting the resources required by the first package from all the resources required by the game engineering project to obtain an extended package resource list; and sending the first package to the client, and continuously downloading the extended package resources by the client. Wherein the memory 100 is used for storing data.

The embodiments of the present invention have been described in detail with reference to the accompanying drawings, but the present invention is not limited to the above embodiments, and various changes can be made within the knowledge of those skilled in the art without departing from the gist of the present invention.

7页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种游戏更新方法、装置、设备和存储介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类