CN111054064A - Unity-based mobile phone game bag body optimization method and system - Google Patents

Unity-based mobile phone game bag body optimization method and system Download PDF

Info

Publication number
CN111054064A
CN111054064A CN201911201186.6A CN201911201186A CN111054064A CN 111054064 A CN111054064 A CN 111054064A CN 201911201186 A CN201911201186 A CN 201911201186A CN 111054064 A CN111054064 A CN 111054064A
Authority
CN
China
Prior art keywords
mobile phone
game
update
unity
hot
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911201186.6A
Other languages
Chinese (zh)
Inventor
刘美智
张强
杨明邦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhuhai Kingsoft Online Game Technology Co Ltd
Original Assignee
Zhuhai Kingsoft Online Game Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhuhai Kingsoft Online Game Technology Co Ltd filed Critical Zhuhai Kingsoft Online Game Technology Co Ltd
Priority to CN201911201186.6A priority Critical patent/CN111054064A/en
Publication of CN111054064A publication Critical patent/CN111054064A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/30Interconnection arrangements between game servers and game devices; Interconnection arrangements between game devices; Interconnection arrangements between game servers
    • A63F13/33Interconnection arrangements between game servers and game devices; Interconnection arrangements between game devices; Interconnection arrangements between game servers using wide area network [WAN] connections
    • A63F13/332Interconnection arrangements between game servers and game devices; Interconnection arrangements between game devices; Interconnection arrangements between game servers using wide area network [WAN] connections using wireless networks, e.g. cellular phone networks
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/70Game security or game management aspects
    • A63F13/77Game security or game management aspects involving data related to game devices or game servers, e.g. configuration data, software version or amount of memory
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/40Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterised by details of platform network
    • A63F2300/406Transmission via wireless network, e.g. pager or GSM
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/50Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by details of game servers
    • A63F2300/55Details of game data or player data management
    • A63F2300/552Details of game data or player data management for downloading to client devices, e.g. using OS version, hardware or software profile of the client device

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Business, Economics & Management (AREA)
  • Computer Security & Cryptography (AREA)
  • General Business, Economics & Management (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Telephonic Communication Services (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides a Unity-based mobile phone game bag body optimization method and a Unity-based mobile phone game bag body optimization system, which comprise the following steps: a Unity-based mobile phone game bag body optimization method is characterized by comprising the following steps: when a game program is installed or operated on the mobile phone, hot updating is carried out on game resources which are lacked in the game, and meanwhile, hardware information of the mobile phone is read and sent to an updating server; and generating a corresponding update package of the update resource corresponding to the resource allocation according to the update request information and the mobile phone hardware information sent by the mobile phone, and sending the update package to the mobile phone for hot update. The invention has the beneficial effects that: the invention has the beneficial effects that: different mobile phones are enabled to download correspondingly configured game hot update resources, the size corresponding to the mobile phone installation package is reduced, extra waste of system resources is saved, and user experience is improved.

Description

Unity-based mobile phone game bag body optimization method and system
Technical Field
The invention belongs to the field of computer games, and particularly relates to a Unity-based mobile phone game bag body optimization method and a Unity-based mobile phone game bag body optimization system.
Background
The Unity game engine is the most popular development tool for the mobile phone games at present, and a great number of popular mobile phone games are developed by using the engine. The current market competition of mobile phones is intense, and the hardware performance of the mobile phones is different. In order to attract more users to play games, the games are generally divided into three levels of high, medium and low, and the three levels are automatically selected according to the performance of the mobile phone or can be manually switched by the user. For different levels of settings, the game uses resources with different sizes or precisions, for example, the same character model is divided into high mode, middle mode and low mode, the picture size is divided into 1024, 512 and 256, and the video resolution is divided into 1080P and 720P. However, the same resources with different sizes or precisions exist in the game package body, so that different mobile phone users can download the same game package, but the game package body is larger and larger, and the only difference of a large amount of the same resources is different in precision.
Disclosure of Invention
The invention aims to solve at least one of the technical problems in the prior art, provides a Unity-based mobile phone game bag body optimization method and a Unity-based mobile phone game bag body optimization system, which can solve the problem of bag body size, and can also manufacture resources with different precisions, but the resources are all placed in a server, the performance of mobile phone hardware is detected when a game is started, and the resources with corresponding grades are downloaded.
The technical scheme of the invention comprises a Unity-based mobile phone game bag body optimization method, which is characterized by comprising the following steps: s100, when a game program is installed or operated on the mobile phone, carrying out hot updating on game resources missing in the game, reading mobile phone hardware information and sending the mobile phone hardware information to an updating server; and S200, generating a corresponding update package of the update resource corresponding to the resource allocation according to the update request information and the mobile phone hardware information sent by the mobile phone, and sending the update package to the mobile phone for hot update.
According to the Unity-based mobile phone game inclusion optimization method, mobile phone hardware information is obtained by calling a mobile phone system, and the hardware information comprises a memory, a CPU, a GPU and a network of a mobile phone.
According to the Unity-based mobile phone game bag body optimization method, the step S100 further comprises the following steps: after the game is started, judging whether resources needing to be subjected to hot updating exist, if not, requesting a server to download the resources, and if so, skipping downloading.
According to the Unity-based mobile phone game bag body optimization method, the downloading comprises the following steps: and calling an interface UnityWebRequestAssetBundle () and transmitting a parameter corresponding to the URI address to download the resource.
According to the Unity-based mobile phone game inclusion optimization method, resource configuration requirements comprise mobile phone hardware information and game running requirements, and the configuration specifically comprises UI mapping resource size, role model grid accuracy, video resolution and a mobile phone network.
According to the Unity-based mobile phone game bag body optimization method, the step S200 specifically comprises the following steps: calling corresponding resource data according to the resource configuration, calling a Unity interface to generate a game installation package, sending the game installation package to an update server, and generating corresponding URI addresses for hot update game installation packages of different levels by the update server;
and the updating server sends the corresponding game installation package through the URI address according to the user hardware information.
According to the Unity-based mobile phone game inclusion optimization method, a Unity interface is configured as buildpipeline.
The technical scheme of the invention also comprises a Unity-based mobile phone game bag body optimization system, which comprises: the mobile phone is used for checking the missing resources of the running game program, issuing a corresponding hot update instruction to the update server according to the check result, and sending the hardware configuration of the mobile phone; the updating server is used for issuing a command corresponding to the generation requirement to the updating packet generation module according to the hardware configuration of the mobile phone and the game running requirement, creating a corresponding hot updating link according to the hot updating resource packet sent by the updating packet generation module and transmitting the hot updating link to the mobile phone; and the update package generation module is used for calling an official interface according to the instruction of the generation requirement of the update server to generate a hot update installation package corresponding to the resource configuration and sending the hot update installation package to the update server.
The invention has the beneficial effects that: different mobile phones are enabled to download correspondingly configured game hot update resources, the size corresponding to the mobile phone installation package is reduced, extra waste of system resources is saved, and user experience is improved.
Drawings
The invention is further described below with reference to the accompanying drawings and examples;
FIG. 1 shows a general flow diagram according to an embodiment of the invention.
Fig. 2 is a general system block diagram according to an embodiment of the present 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. If the first and second are described for the purpose of distinguishing technical features, they are not to be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated or implicitly indicating the precedence of the technical features indicated.
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 method specifically comprises the following steps: s100, when a game program is installed or operated on the mobile phone, carrying out hot updating on game resources missing in the game, reading mobile phone hardware information and sending the mobile phone hardware information to an updating server; and S200, generating a corresponding update package of the update resource corresponding to the resource allocation according to the update request information and the mobile phone hardware information sent by the mobile phone, and sending the update package to the mobile phone for hot update.
Based on the flow shown in fig. 1, the present invention proposes the following specific embodiments, including:
the first step is as follows: and hot updating of resources is realized, namely, partial resources of the game are not in the original game package, and after the game needs to be run, the game dynamically downloads the resources according to the needs. And if the resources do not exist, requesting the server to download the resources, and if the resources exist, skipping the downloading. The AssetBundle resource format provided by the Unity official is used for hot updating the resource file format, and the official interface UnityWebRequestAssetBundle, GetAssetBundle () is transmitted into the uri address and other parameters for resource downloading.
The second step is that: making high, medium and low grade resources. When the UI map resource size is set, the high configuration is 512 by 512, the medium configuration is 256 by 256, and the low configuration is 128 by 128; if the grid precision of the character model is set, the high configuration is 3000 surfaces, the medium configuration is 2000 surfaces, the low configuration is 1000 surfaces and the like; such as 1080P, 720P video resolution. The higher the grade, the larger the resource storage, the more exquisite the picture, on the contrary, the lower the grade, the smaller the resource storage.
The third step: and manufacturing the hot updating resource in the AssetBundle format for the high-level resource, the medium-level resource and the low-level resource. Using a Unity official interface buildpipeline. buildassedbond () to enter a resource path, a corresponding hot update resource file is generated in a specified directory, and high, medium and low-level resources are respectively in folders with names of "high", "medium" and "low", and then transmitted to a resource update server.
The fourth step: the method realizes the classification of level logic according to mobile phone hardware and configures different level resource download addresses. Hardware information of the mobile phone, such as a memory, a CPU and a GPU, is read, and then level division is performed according to the specific game requirement formulation standard, such as the memory 2G and the lower is a low level, 2-4G is a medium level, and more than 4G is a high level. After the grade division, the download address is set according to the path name corresponding to the different grade of the third step.
The fifth step: and (3) using the C # programming language, operating the logic of the fourth step when the game is just started, and operating the logic of the first step by taking the obtained resource path as a parameter, so that the mobile phones are configured differently to download the resources of the corresponding grades.
And a sixth step: and making a game installation package which does not contain hot updating resources. The game installation package is made by using a Unity official interface buildpipeline buildplayer (), the installation package does not contain a large amount of any hot update resources, and the size of the installation package is effectively reduced.
Fig. 2 is a general system block diagram according to an embodiment of the present invention. The system comprises: the mobile phone is used for checking the missing resources of the running game program, issuing a corresponding hot update instruction to the update server according to the check result, and sending the hardware configuration of the mobile phone; the updating server is used for issuing a command corresponding to the generation requirement to the updating packet generation module according to the hardware configuration of the mobile phone and the game running requirement, creating a corresponding hot updating link according to the hot updating resource packet sent by the updating packet generation module and transmitting the hot updating link to the mobile phone; and the update package generation module is used for calling an official interface according to the instruction of the generation requirement of the update server to generate a hot update installation package corresponding to the resource configuration and sending the hot update installation package to the update server.
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.

Claims (8)

1. A Unity-based mobile phone game bag body optimization method is characterized by comprising the following steps:
s100, when a game program is installed or operated on the mobile phone, carrying out hot updating on game resources missing in the game, reading mobile phone hardware information and sending the mobile phone hardware information to an updating server;
and S200, generating a corresponding update package of the update resource corresponding to the resource allocation according to the update request information and the mobile phone hardware information sent by the mobile phone, and sending the update package to the mobile phone for hot update.
2. The Unity-based mobile phone game bag body optimization method according to claim 1, wherein the mobile phone hardware information is obtained by calling a mobile phone system to obtain corresponding hardware information, and the hardware information includes a memory, a CPU, a GPU and a network of the mobile phone.
3. The Unity-based mobile game inclusion optimization method of claim 1, wherein the S100 further comprises:
after the game is started, judging whether resources needing to be subjected to hot updating exist, if not, requesting a server to download the resources, and if so, skipping downloading.
4. The Unity-based mobile gaming body optimization method of claim 1, wherein said downloading comprises:
and calling an interface UnityWebRequestAssetBundle () and transmitting a parameter corresponding to the URI address to download the resource.
5. The Unity-based mobile phone game inclusion optimization method according to claim 1, wherein the resource configuration requirements include mobile phone hardware information and game running requirements, and the configuration specifically includes UI mapping resource size, character model grid accuracy, video resolution, and a network of a mobile phone.
6. The Unity-based mobile phone game inclusion optimization method according to claim 1, wherein the S200 specifically comprises:
calling corresponding resource data according to the resource configuration, calling a Unity interface to generate a game installation package, sending the game installation package to an update server, and generating corresponding URI addresses for hot update game installation packages of different levels by the update server;
and the updating server sends the corresponding game installation package through the URI address according to the user hardware information.
7. The Unity-based handset game enclosure optimization method of claim 6, wherein the Unity interface is configured as buildpipeline buildplayer ().
8. A Unity-based mobile gaming body optimization system for performing the method of any of claims 1-7, wherein:
the mobile phone is used for checking the missing resources of the running game program, issuing a corresponding hot update instruction to the update server according to the check result, and sending the hardware configuration of the mobile phone;
the updating server is used for issuing a command corresponding to the generation requirement to the updating packet generation module according to the hardware configuration of the mobile phone and the game running requirement, creating a corresponding hot updating link according to the hot updating resource packet sent by the updating packet generation module and transmitting the hot updating link to the mobile phone;
and the update package generation module is used for calling an official interface according to the instruction of the generation requirement of the update server to generate a hot update installation package corresponding to the resource configuration and sending the hot update installation package to the update server.
CN201911201186.6A 2019-11-29 2019-11-29 Unity-based mobile phone game bag body optimization method and system Pending CN111054064A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911201186.6A CN111054064A (en) 2019-11-29 2019-11-29 Unity-based mobile phone game bag body optimization method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911201186.6A CN111054064A (en) 2019-11-29 2019-11-29 Unity-based mobile phone game bag body optimization method and system

Publications (1)

Publication Number Publication Date
CN111054064A true CN111054064A (en) 2020-04-24

Family

ID=70299632

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911201186.6A Pending CN111054064A (en) 2019-11-29 2019-11-29 Unity-based mobile phone game bag body optimization method and system

Country Status (1)

Country Link
CN (1) CN111054064A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111714894A (en) * 2020-06-08 2020-09-29 咪咕互动娱乐有限公司 Game data acquisition method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102137390A (en) * 2010-12-13 2011-07-27 华为软件技术有限公司 Method, equipment and system for downloading mobile phone software
CN103167428A (en) * 2011-12-15 2013-06-19 中国电信股份有限公司 Picture adaptive method, mobile phone newspaper delivering device and system
CN103984564A (en) * 2013-02-08 2014-08-13 百度国际科技(深圳)有限公司 Method and device for installing and upgrading software
CN106293823A (en) * 2016-08-04 2017-01-04 北京白鹭时代信息技术有限公司 A kind of game accelerator automatic heating updates and loading method and device
CN107968838A (en) * 2017-12-13 2018-04-27 张宇 A kind of cell phone software update method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102137390A (en) * 2010-12-13 2011-07-27 华为软件技术有限公司 Method, equipment and system for downloading mobile phone software
CN103167428A (en) * 2011-12-15 2013-06-19 中国电信股份有限公司 Picture adaptive method, mobile phone newspaper delivering device and system
CN103984564A (en) * 2013-02-08 2014-08-13 百度国际科技(深圳)有限公司 Method and device for installing and upgrading software
CN106293823A (en) * 2016-08-04 2017-01-04 北京白鹭时代信息技术有限公司 A kind of game accelerator automatic heating updates and loading method and device
CN107968838A (en) * 2017-12-13 2018-04-27 张宇 A kind of cell phone software update method and system

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
ANIL: ""移动平台自动化构建之脚本系统"", pages 1 - 5 *
子非鱼: ""Unity 游戏开发笔记"", 《HTTPS://WWW.CNBLOGS.COM/IMTEACH/P/11257275.HTML》, pages 1 - 5 *
子非鱼: ""Unity游戏开发笔记"", pages 1 - 5 *
爱尚游BIN: ""Unity加载AssetBundle的几种方式示例"", pages 1 - 2 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111714894A (en) * 2020-06-08 2020-09-29 咪咕互动娱乐有限公司 Game data acquisition method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN108510389B (en) Intelligent contract calling method and device based on block chain and readable storage medium
JP2021516395A (en) Resource configuration method, equipment, terminals, and storage media
US9864595B2 (en) Software updating method, system, and device
US20170192819A1 (en) Method and electronic device for resource allocation
CN1222183C (en) Methods of transmitting and executing contents of program for hand-held terminal
CN109684054A (en) Information processing method and device, electronic equipment and memory
CN104754062B (en) Information popularization method, server and user terminal based on internet
WO2019091344A1 (en) Method for resource allocation and related products
WO2021115177A1 (en) Application installation method and apparatus, terminal device, server and storage medium
CN110333947A (en) A kind of subcontracting resource loading method, device, equipment and the medium of game application
CN110888658B (en) Method and device for dynamically changing function modules in application program and storage medium
CN103259936A (en) Operating system upgrade method for mobile terminal and operating system upgrade device of operating system upgrade method
CN105095265A (en) Method and apparatus for implementing page display of mobile device
CN103716346A (en) Management method and device of application on android handset client
JP2023523242A (en) DATA PROCESSING METHOD, DATA PROCESSING APPARATUS, COMPUTER DEVICE, AND COMPUTER PROGRAM
CN100401281C (en) System for multimedia rendering in a portable device
CN111679790A (en) Remote software development storage space distribution method and device
CN102479355A (en) Method and device for loading business documents and mobile terminal
CN103593233A (en) Method and system for pushing software information
CN111698730B (en) Flow control method, operating system, terminal equipment and distributed system
CN111054064A (en) Unity-based mobile phone game bag body optimization method and system
CN112346758B (en) Digital infrastructure service updating platform, updating method and electronic equipment
CN109032693A (en) Method and device for loading display information, electronic equipment and readable storage medium
CN103365672A (en) Method and system for processing description information of application program
CN113268509A (en) Layered cache updating method and device, storage medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination