CN110201397B - Game resource allocation method and device and electronic equipment - Google Patents

Game resource allocation method and device and electronic equipment Download PDF

Info

Publication number
CN110201397B
CN110201397B CN201910580215.8A CN201910580215A CN110201397B CN 110201397 B CN110201397 B CN 110201397B CN 201910580215 A CN201910580215 A CN 201910580215A CN 110201397 B CN110201397 B CN 110201397B
Authority
CN
China
Prior art keywords
resource
resources
folder
game
path
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.)
Active
Application number
CN201910580215.8A
Other languages
Chinese (zh)
Other versions
CN110201397A (en
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.)
Beijing Kingsoft Internet Security Software Co Ltd
Original Assignee
Beijing Kingsoft Internet Security Software 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 Beijing Kingsoft Internet Security Software Co Ltd filed Critical Beijing Kingsoft Internet Security Software Co Ltd
Priority to CN201910580215.8A priority Critical patent/CN110201397B/en
Publication of CN110201397A publication Critical patent/CN110201397A/en
Application granted granted Critical
Publication of CN110201397B publication Critical patent/CN110201397B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/60Generating or modifying game content before or while executing the game program, e.g. authoring tools specially adapted for game development or game-integrated level editor
    • 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

Abstract

The embodiment of the invention provides a game resource allocation method, a game resource allocation device and electronic equipment, wherein the game resource allocation method comprises the following steps: the method comprises the steps of obtaining a preset configuration information table, wherein resource folder paths, resource configuration template paths and resource configuration screening rules to be configured are recorded in the configuration information table, resource folders corresponding to the resource folder paths are also recorded in the configuration information table, and resource configuration templates corresponding to the resource configuration template paths are determined, wherein a plurality of game resources are pre-stored in the resource folders, the resource configuration templates are pre-generated templates in which resource configuration information is recorded, the resources to be configured are screened out from a plurality of game resources pre-stored in the resource folders on the basis of the resource configuration screening rules to be configured, the resources to be configured are configured according to the resource configuration information recorded in the resource configuration templates, and the resources to be configured can be configured only through the configuration information table, so that the resources to be configured are prevented from being manually configured, and the efficiency of resource configuration is improved.

Description

Game resource allocation method and device and electronic equipment
Technical Field
The present invention relates to the field of game development technologies, and in particular, to a method and an apparatus for configuring game resources, and an electronic device.
Background
The Unity game editor is a multi-platform comprehensive game development tool, and game developers can conveniently complete the development of game projects through the Unity game editor.
In the process of developing a game project by using a Unity game editor, the game developer needs to manually configure game resources each time game resources are added or modified, wherein the game resources represent files such as 2D (2 Dimensions) pictures, 3D (3 Dimensions) models or music required by game operation. For example, when a 2D image needs to be added to a game, a game developer needs to manually select configuration information such as a texture type, an alpha channel source, and whether to start a filtering algorithm of the 2D image in a 2D image configuration interface.
The inventor finds that the prior art at least has the following problems in the process of implementing the invention:
in the process of game project development, game resources are continuously increased along with the development of the project, and game developers need to manually reconfigure the game resources each time game resources are added or modified, so that the efficiency of game resource allocation is low.
Disclosure of Invention
The embodiment of the invention aims to provide a resource allocation method for improving the efficiency of game resource allocation. The specific technical scheme is as follows:
the embodiment of the invention provides a game resource allocation method, which comprises the following steps:
acquiring a preset configuration information table, wherein a resource folder path, a resource configuration template path and a resource screening rule to be configured are recorded in the configuration information table;
determining a resource folder corresponding to the resource folder path and a resource configuration template corresponding to the resource configuration template path, wherein a plurality of game resources are pre-stored in the resource folder, and the resource configuration template is a pre-generated template recorded with resource configuration information;
screening out the resources to be configured from the plurality of game resources prestored in the resource folder based on the resource screening rule to be configured;
and configuring the resources to be configured according to the resource configuration information recorded in the resource configuration template.
Further, before the reading of the preset configuration information table, the method further includes:
displaying the automatic configuration control;
the acquiring of the preset configuration information table includes:
and when receiving the selected operation aiming at the automatic configuration control, acquiring a preset configuration information table.
Further, before the determining the resource folder corresponding to the resource folder path and the resource configuration template corresponding to the resource configuration template path, the method further includes:
judging whether a folder exists under the resource folder path and whether a resource configuration template exists under the resource configuration template path;
when no folder exists in the resource folder path or no resource configuration template exists in the resource configuration template path, marking the configuration information table as unqualified;
the determining the resource folder corresponding to the resource folder path and the resource configuration template corresponding to the resource configuration template path includes:
and when a folder exists under the resource folder path and a resource configuration template exists under the resource configuration template path, determining the resource folder corresponding to the resource folder path and the resource configuration template corresponding to the resource configuration template path.
Further, the resource screening rule to be configured comprises a preset first keyword and a preset second keyword;
the screening out the resources to be configured from the plurality of game resources prestored in the resource folder based on the screening rules of the resources to be configured includes:
screening out game resources with names containing the first keyword from the plurality of game resources prestored in the resource folder, wherein the game resources are used as first type resources;
screening out game resources which do not contain the second keyword in the names from the first type of resources as resources to be configured; alternatively, the first and second electrodes may be,
and screening out game resources with names containing the second keywords from the first type of resources as resources to be configured.
Further, the generating the template recorded with the resource configuration information includes:
the method comprises the steps of obtaining game resources to be configured as first resources, and determining the game resource types of the first resources;
popping up a resource allocation frame according to the game resource type, wherein each allocation option of the game resource type is displayed in the resource allocation frame;
when a selection operation aiming at each configuration option is received, determining the configuration information selected by the selection operation as first configuration information;
and when receiving a resource configuration template generation operation, generating a resource configuration template recorded with the first configuration information.
The embodiment of the invention also provides a game resource allocation device, which comprises:
the information table acquisition module is used for acquiring a preset configuration information table, and a resource folder path, a resource configuration template path and a resource screening rule to be configured are recorded in the configuration information table;
the first determining module is used for determining a resource folder corresponding to the resource folder path and a resource configuration template corresponding to the resource configuration template path, wherein a plurality of game resources are prestored in the resource folder, and the resource configuration template is a pre-generated template recorded with resource configuration information;
the resource screening module is used for screening out the resources to be configured from the plurality of game resources prestored in the resource folder based on the resource screening rule to be configured;
and the resource allocation module is used for allocating the resources to be allocated according to the resource allocation information recorded in the resource allocation template.
Further, the apparatus further comprises:
the control display module is used for displaying the automatic configuration control;
the information table obtaining module is specifically configured to obtain a preset configuration information table when receiving a selection operation for the automatic configuration control.
Further, the apparatus further comprises:
the judging module is used for judging whether a folder exists in the resource folder path and whether a resource configuration template exists in the resource configuration template path;
the marking module is used for marking the configuration information table as unqualified when no folder exists under the resource folder path or no resource configuration template exists under the resource configuration template path;
the first determining module is specifically configured to determine, when a folder exists in the resource folder path and a resource allocation template exists in the resource allocation template path, a resource folder corresponding to the resource folder path and a resource allocation template corresponding to the resource allocation template path.
Further, the resource screening rule to be configured comprises a preset first keyword and a preset second keyword;
the resource screening module is specifically configured to screen out game resources, which include the first keyword in the name, from the game resources pre-stored in the resource folder as a first type of resource, and screen out game resources, which do not include the second keyword in the name, from the first type of resource as resources to be configured, or screen out game resources, which include the second keyword in the name, from the first type of resource as resources to be configured.
Further, the apparatus further comprises:
the resource acquisition module is used for acquiring game resources to be configured as first resources and determining the game resource types of the first resources;
a configuration frame popping module, configured to pop up a resource configuration frame according to the game resource type, where each configuration option of the game resource type is shown in the resource configuration frame;
a second determining module, configured to determine, when a selection operation for each configuration option is received, configuration information selected by the selection operation as first configuration information;
and the template generating module is used for generating the resource configuration template recorded with the first configuration information when receiving the resource configuration template generating operation.
The embodiment of the invention also provides electronic equipment which comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
a memory for storing a computer program;
and the processor is used for realizing the steps of any game resource allocation method when executing the program stored in the memory.
The present invention also provides a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the steps of any of the above game resource allocation methods.
Embodiments of the present invention further provide a computer program product containing instructions, which when run on a computer, cause the computer to execute any of the above game resource allocation methods.
In the scheme, a preset configuration information table is obtained, a resource folder path, a resource configuration template path and a resource screening rule to be configured are recorded in the configuration information table, a resource folder corresponding to the resource folder path and a resource configuration template corresponding to the resource configuration template path are determined, wherein a plurality of game resources are pre-stored in the resource folder, the resource configuration template is a pre-generated template recorded with resource configuration information, the resource to be configured is screened out from a plurality of game resources pre-stored in the resource folder based on the resource screening rule to be configured, the resource to be configured is configured according to the resource configuration information recorded in the resource configuration template, and the resource to be configured in the resource folder can be configured only through the configuration information table, the manual configuration of the resources to be configured is avoided, and the efficiency of resource configuration is improved.
Of course, not all of the advantages described above need to be achieved at the same time in the practice of any one product or method of the invention.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the prior art descriptions will be briefly described below.
FIG. 1 is a flow chart of a method for configuring game resources according to an embodiment of the present invention;
FIG. 2 is a schematic structural diagram of a game resource allocation apparatus according to an embodiment of the present invention;
fig. 3 is a flowchart of a resource allocation template generation method according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a resource allocation template generating apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to provide an implementation scheme for improving the configuration efficiency of game resources, embodiments of the present invention provide a game resource configuration method, a game resource configuration device, and an electronic device, and the following describes embodiments of the present invention with reference to the drawings in the specification. And the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.
In one embodiment of the present invention, a game resource allocation method is provided, as shown in fig. 1, the method includes the following steps:
s101: and acquiring a preset configuration information table, wherein a resource folder path, a resource configuration template path and a resource screening rule to be configured are recorded in the configuration information table.
In this step, the configuration information table may be preset, and in one embodiment, the configuration information table may be a json file, for example, a config.
In one embodiment, the resource folder path is a path where the resource folder is located, and the resource folder may be preset, and each game resource which is prepared and set in advance is stored in the resource folder, and exemplarily, the resource folder a is stored with a picture a, a picture b, and a picture C, and the path of the resource folder a is C: \users \ Public, and the resource folder path recorded by the configuration information table is C: \users \ Public.
In one embodiment, the resource configuration template path is a path where a pre-generated resource configuration template is located, and illustratively, a resource configuration template B exists, and the path where the pre-generated resource configuration template is located is C: \ Userdata \ Desktop \ resource configuration template B, then the resource configuration template path of the configuration information table is C: \ Userdata \ Desktop \ resource configuration template B.
In one embodiment, the resource to be configured screening rule may be determined based on experience, requirements, and application scenarios, and is used to screen out the resource to be configured that meets the requirements of the resource configuration template from the game resources stored in the resource folder.
In one embodiment, the configuration information table may record a plurality of pairs of configurations, where each pair of configurations corresponds to a resource folder path, a resource configuration template path, and a resource screening rule to be configured, respectively, and the resource folder path, the resource configuration template path, and the resource screening rule to be configured are associated with each other. Illustratively, two pairs of configurations are recorded in the configuration information table, configuration T: a resource folder path A, a resource configuration template path B and a resource screening rule C to be configured are configured, P: in one embodiment, a plurality of resource folders may be set according to different types of game resources, for example, a resource file G is set to store image-type game resources, a resource file H is set to store 3D model-type game resources, and a resource file J is set to store music-type game resources, and further, each resource folder may correspond to a plurality of resource configuration templates or screening rules.
In one embodiment, before obtaining the preset configuration information table, the automatic configuration control may be displayed, and when receiving a selection operation for the automatic configuration control, the preset configuration information table is obtained. The automatic configuration control can be an icon control or an option arranged on a menu bar, and when a selection operation for the automatic configuration control is received, a preset configuration information table is obtained. An AssetsSet (resource setting) option is set as an automatic configuration control in a menu bar, and when a click operation of the AssetsSet is received, a configuration information table may be acquired through a default path, which may be Assets/Third/AssetsSetRes/config.
S102: judging whether a folder exists under a resource folder path or not and whether a resource configuration template exists under a resource configuration template path or not;
in this step, in order to avoid an erroneous operation, after the preset configuration information table is obtained, it may be determined whether a folder exists under a resource folder path recorded in the configuration information table, and whether a resource configuration template exists under a resource configuration template path recorded in the configuration information table.
In one embodiment, when there is a folder in the resource folder path and there is a resource allocation template in the resource allocation template path, that is, the configuration information table is legal, step S103 is executed.
In one embodiment, when there is no folder in the resource folder path or no resource configuration template in the resource configuration template path, step S106 is executed.
S103: determining a resource folder corresponding to a resource folder path and a resource configuration template corresponding to a resource configuration template path, wherein a plurality of game resources are pre-stored in the resource folder, and the resource configuration template is a pre-generated template recorded with resource configuration information.
In this step, the resource folder in the resource folder path may be determined through the resource folder path and the resource allocation template in the resource allocation template path may be determined through the resource allocation template path under the condition that the folder exists in the resource folder path and the resource allocation template exists in the resource allocation template path.
In one embodiment, the resource folder may have a plurality of game resources pre-stored therein, for example, resource folder a, which has pictures a, b, and c pre-stored therein.
In an embodiment, the resource configuration template is a pre-generated template recorded with resource configuration information, and details on how to survive the resource configuration template are described later and are not described herein again.
S104: and screening out the resources to be configured from a plurality of game resources prestored in the resource folder based on the resource screening rule to be configured.
In this step, the plurality of game resources pre-stored in the resource folder can be screened according to the resource screening rule to be configured, so that the game resources of the resource configuration template can be used in the plurality of game resources pre-stored in the resource folder.
For example, the resource folder a prestores a picture a, a picture B, and a picture c, where texture types of the picture a and the picture B are Default types, a texture type of the picture c is a NormalMap (standard map) type, and a texture type of the resource screening rule to be configured corresponding to the resource configuration template B is a Default type picture, and then it is determined that the picture a and the picture B are resources to be configured in the resource file a.
In one embodiment, the screening of the resources to be configured may also be performed by names of the game resources, and as will be understood by those skilled in the art, the screening of the resources to be configured by names means that the name of each game resource matches with its resource type, application scenario, and the like.
In one embodiment, the resource screening rule to be configured includes a preset first keyword and a preset second keyword, where the first keyword and the second keyword are different, and at this time, the resource screening rule to be configured at least has the following two modes:
the first mode is as follows: and screening out game resources which contain the first keyword in the name from a plurality of game resources prestored in the resource folder as a first type of resource, and screening out game resources which do not contain the second keyword in the name from the first type of resource as resources to be configured.
Illustratively, the first keyword is wood (stone), the second keyword is corrupt, and picture a, picture b and picture c in the resource folder a, where the name of picture a is wood _ normal.png, the name of picture b is stone _ normal.png, and the name of picture c is wood _ corrupt.png, then picture a and picture c can be screened out based on the first keyword wood as a first type of resource, and picture a is screened out based on the second keyword corrupt as a resource to be configured.
The second mode is as follows: the method comprises the steps of screening game resources with names containing first keywords from a plurality of game resources prestored in a resource folder to serve as first-class resources, screening the game resources with the names containing the first keywords from the plurality of game resources prestored in the resource folder to serve as the first-class resources, and screening the game resources with the names containing the second keywords from the first-class resources to serve as resources to be configured.
Illustratively, the first keyword is wood, the second keyword is corrupt, and the image a, the image b and the image c in the resource folder a are named as wood _ normal.png, the image b is named as stone _ normal.png and the image c is named as wood _ corrupt.png, so that the image a and the image c can be screened out as the first type of resource based on the first keyword wood, and the image c is screened out as the resource to be configured based on the second keyword corrupt.
In one embodiment, the filtering rule of the resource to be configured only includes a preset keyword, and the filtering rule of the resource to be configured corresponding to the filtering rule of the resource to be configured may use, as the resource to be configured, the game resource whose name includes the keyword, or use, as the resource to be configured, the game resource whose name does not include the keyword.
S105: and configuring the resources to be configured according to the resource configuration information recorded in the resource configuration template.
In this step, after the resources to be configured are screened out from the resource folder, the resources to be configured may be configured according to the resource configuration information recorded in the resource configuration template, and in one embodiment, a plurality of screened out resources with configuration may be provided.
For example, if the resource to be configured screened by the screening rule to be configured corresponding to the resource configuration template B is the image a, the image a may be configured according to the resource configuration information recorded in the resource configuration template B.
In one embodiment, as can be understood by those skilled in the art, for a game development project, in the whole game development process, pictures, 3D models, music and the like required in a game are made in advance, only a few game resources need to be modified, replaced or newly added in the game development process, and for game resources of the same type and with substantially the same application scenario, the required resource configuration is the same, so that resource configuration information of the game resources of different types and different application scenarios can be determined in advance and stored as a resource configuration template, and the game resources of the same application scenario are configured by using the resource configuration template in the same type existing in a resource folder.
S106: the configuration information table is marked as ineligible.
In this step, when no folder exists in the resource folder path or no resource configuration template exists in the resource configuration template path, it is determined that the information recorded in the configuration information table is incorrect, and at this time, the configuration information table may be marked as being unqualified.
In the game resource allocation method provided by the embodiment of the invention, a preset allocation information table is obtained, a resource folder path, a resource allocation template path and a resource screening rule to be allocated are recorded in the allocation information table, and a resource folder corresponding to the resource folder path and a resource allocation template corresponding to the resource allocation template path are determined, wherein a plurality of game resources are prestored in the resource folder, the resource allocation template is a pre-generated template recorded with resource allocation information, and based on the resource screening rule to be allocated, the resource to be allocated is screened out from a plurality of game resources prestored in the resource folder, and the resource to be allocated is allocated according to the resource allocation information recorded in the resource allocation template, and because the resource to be allocated existing in the resource folder can be allocated only through the allocation information table, the manual allocation of the resource to be allocated is avoided, the efficiency of resource allocation is improved.
An embodiment of the present invention further provides a resource allocation template generating method for generating the resource allocation template in step S103, as shown in fig. 2, including the steps of:
s201: the method comprises the steps of obtaining game resources to be configured as first resources, and determining the game resource types of the first resources.
In this step, a game resource to be configured may be obtained, where the game resource may be obtained when a game resource addition operation is received, and after the game resource to be configured is obtained, a game resource type of the game resource is determined, where the game resource type at least includes: the image, the 3D model and the music can be further subdivided, and specific classification rules can be determined according to factors such as experience, requirements and application scenes.
Illustratively, if the game resource to be configured is acquired as a picture a, it is determined that the resource type of the game resource is a picture.
S202: and popping up a resource allocation frame according to the game resource type, wherein each allocation option of the game resource type is displayed in the resource allocation frame.
In this step, for each game resource type, a resource allocation frame corresponding to the game resource type exists, wherein each allocation option of the game resource type is displayed in the resource allocation frame.
For example, for a picture type, the popped resource configuration box may include options such as a texture type, an α channel source, whether the α channel is transparent, a filtering mode, and the like.
S203: when a selection operation for each configuration option is received, configuration information selected by the selection operation is determined as first configuration information.
In this step, the selection operation for each configuration option may be a checking operation for each configuration option of the resource configuration box, or may be a selection operation for a plurality of selection items.
For example, for a picture type, a selection item of multiple texture types may be provided in advance, a selection operation may select one texture type as a texture type of a corresponding picture, and after the selection operation is completed, for example, the selected texture type is a Default type, the Default type is determined as configuration information selected by the selection operation.
S204: and when receiving the resource configuration template generation operation, generating the resource configuration template recorded with the first configuration information.
In this step, the resource allocation template generating operation may be a holding operation after the first configuration information is determined, and the first configuration information is recorded in the resource allocation template that is held and generated.
In the resource allocation template generation method provided in the embodiment of the present invention, a game resource to be allocated is acquired as a first resource, a game resource type to which the first resource belongs is determined, a resource allocation frame is popped up according to the game resource type, configuration options of the game resource type are displayed in the resource allocation frame, configuration information selected by a selection operation is determined as first configuration information when the selection operation for the configuration options is received, a resource allocation template in which the first configuration information is recorded is generated when the resource allocation template generation operation is received, and a resource allocation template for automatic allocation can be generated for a game resource of an unconfigured resource type.
Based on the same inventive concept, according to the game resource allocation method provided in the embodiment of the present invention, the embodiment of the present invention further provides a game resource allocation device, as shown in fig. 3, the device includes:
an information table obtaining module 301, configured to obtain a preset configuration information table, where the configuration information table records a resource folder path, a resource configuration template path, and a resource screening rule to be configured;
a first determining module 302, configured to determine a resource folder corresponding to a resource folder path and a resource configuration template corresponding to a resource configuration template path, where multiple game resources are prestored in the resource folder, and the resource configuration template is a pre-generated template in which resource configuration information is recorded;
the resource screening module 303 is configured to screen out the resource to be configured from a plurality of game resources prestored in the resource folder based on the resource to be configured screening rule;
the resource allocation module 304 is configured to allocate the resource to be allocated according to the resource allocation information recorded in the resource allocation template.
Further, the apparatus further comprises:
a control display module 305, configured to display an automatic configuration control;
the information table obtaining module 301 is specifically configured to obtain a preset configuration information table when receiving a selection operation for an automatic configuration control.
Further, the apparatus further comprises:
the judging module 306 is configured to judge whether a folder exists in the resource folder path and whether a resource allocation template exists in the resource allocation template path;
a marking module 307, configured to mark the configuration information table as unqualified when no folder exists in the resource folder path or no resource configuration template exists in the resource configuration template path;
the first determining module 302 is specifically configured to determine a resource folder corresponding to a resource folder path and a resource configuration template corresponding to a resource configuration template path when the resource folder exists in the resource folder path and the resource configuration template exists in the resource configuration template path.
Further, the resource screening rule to be configured comprises a preset first keyword and a preset second keyword;
the resource screening module 303 is specifically configured to screen out, from a plurality of game resources pre-stored in the resource folder, a game resource whose name includes a first keyword as a first type of resource, and screen out, from the first type of resource, a game resource whose name does not include a second keyword as a resource to be configured.
Based on the same inventive concept, according to the resource allocation template generation method provided in the embodiment of the present invention, the embodiment of the present invention further provides a resource allocation template generation apparatus, as shown in fig. 4, the apparatus includes:
a resource obtaining module 401, configured to obtain a game resource to be configured as a first resource, and determine a game resource type to which the first resource belongs;
a configuration box popping module 402, configured to pop up a resource configuration box according to the game resource type, where each configuration option of the game resource type is shown in the resource configuration box;
a second determining module 403, configured to, when receiving a selection operation for each configuration option, determine configuration information selected by the selection operation as first configuration information;
the template generating module 404 is configured to generate a resource configuration template recorded with first configuration information when receiving a resource configuration template generating operation.
An embodiment of the present invention further provides an electronic device, as shown in fig. 5, which includes a processor 501, a communication interface 502, a memory 503 and a communication bus 504, where the processor 501, the communication interface 502 and the memory 503 complete mutual communication through the communication bus 504,
a memory 503 for storing a computer program;
the processor 501 is configured to implement the following steps when executing the program stored in the memory 503:
acquiring a preset configuration information table, wherein a resource folder path, a resource configuration template path and a resource screening rule to be configured are recorded in the configuration information table;
determining a resource folder corresponding to the resource folder path and a resource configuration template corresponding to the resource configuration template path, wherein a plurality of game resources are pre-stored in the resource folder, and the resource configuration template is a pre-generated template recorded with resource configuration information;
screening out the resources to be configured from the plurality of game resources prestored in the resource folder based on the resource screening rule to be configured;
and configuring the resources to be configured according to the resource configuration information recorded in the resource configuration template.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
In another embodiment of the present invention, a computer-readable storage medium is further provided, in which a computer program is stored, and the computer program, when executed by a processor, implements the steps of any of the above game resource allocation methods.
In yet another embodiment, the present invention further provides a computer program product containing instructions, which when run on a computer, causes the computer to execute any of the game resource allocation methods of the above embodiments.
In the above embodiments, all or part of the implementation may be realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to be performed in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the apparatus, the electronic device, the computer-readable storage medium, and the computer program product, since they are substantially similar to the method embodiments, the description is relatively simple, and reference may be made to the partial description of the method embodiments for relevant points.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (12)

1. A method for allocating game resources, comprising:
acquiring a preset configuration information table, wherein a resource folder path, a resource configuration template path and a resource screening rule to be configured are recorded in the configuration information table;
determining a resource folder corresponding to the resource folder path and a resource configuration template corresponding to the resource configuration template path, wherein a plurality of game resources are pre-stored in the resource folder, and the resource configuration template is a pre-generated template recorded with resource configuration information;
screening out the resources to be configured from the plurality of game resources prestored in the resource folder based on the resource screening rule to be configured;
and configuring the resources to be configured according to the resource configuration information recorded in the resource configuration template.
2. The method according to claim 1, further comprising, before said reading the preset configuration information table:
displaying the automatic configuration control;
the acquiring of the preset configuration information table includes:
and when receiving the selected operation aiming at the automatic configuration control, acquiring a preset configuration information table.
3. The method according to claim 1, before said determining the resource folder corresponding to the resource folder path and the resource configuration template corresponding to the resource configuration template path, further comprising:
judging whether a folder exists in the resource folder path and whether a resource configuration template exists in the resource configuration template path;
when no folder exists in the resource folder path or no resource configuration template exists in the resource configuration template path, marking the configuration information table as unqualified;
the determining the resource folder corresponding to the resource folder path and the resource configuration template corresponding to the resource configuration template path includes:
and when a folder exists in the resource folder path and a resource configuration template exists in the resource configuration template path, determining a resource folder corresponding to the resource folder path and a resource configuration template corresponding to the resource configuration template path.
4. The method according to claim 1, wherein the resource screening rule to be configured comprises a preset first keyword and a preset second keyword;
the screening out the resources to be configured from the plurality of game resources prestored in the resource folder based on the screening rules of the resources to be configured includes:
screening out game resources with names containing the first keyword from the plurality of game resources prestored in the resource folder, wherein the game resources are used as first type resources;
screening out game resources, of which the names do not contain the second keywords, from the first type of resources as resources to be configured; alternatively, the first and second electrodes may be,
and screening out game resources with names containing the second keywords from the first type of resources as resources to be configured.
5. The method of claim 1, wherein generating the template recorded with the resource configuration information comprises:
the method comprises the steps of obtaining game resources to be configured as first resources, and determining the game resource types of the first resources;
popping up a resource allocation frame according to the game resource type, wherein each allocation option of the game resource type is displayed in the resource allocation frame;
when receiving selection operation aiming at each configuration option, determining the configuration information selected by the selection operation as first configuration information;
and when receiving a resource configuration template generation operation, generating a resource configuration template recorded with the first configuration information.
6. A game resource allocation apparatus, comprising:
the information table acquisition module is used for acquiring a preset configuration information table, and the configuration information table records a resource folder path, a resource configuration template path and a resource screening rule to be configured;
the first determining module is used for determining a resource folder corresponding to the resource folder path and a resource configuration template corresponding to the resource configuration template path, wherein a plurality of game resources are prestored in the resource folder, and the resource configuration template is a pre-generated template recorded with resource configuration information;
the resource screening module is used for screening out the resources to be configured from the plurality of game resources prestored in the resource folder based on the resource screening rule to be configured;
and the resource allocation module is used for allocating the resources to be allocated according to the resource allocation information recorded in the resource allocation template.
7. The apparatus of claim 6, further comprising:
the control display module is used for displaying the automatic configuration control;
the information table obtaining module is specifically configured to obtain a preset configuration information table when receiving a selection operation for the automatic configuration control.
8. The apparatus of claim 6, further comprising:
the judging module is used for judging whether a folder exists under the resource folder path and whether a resource configuration template exists under the resource configuration template path;
the marking module is used for marking the configuration information table as unqualified when no folder exists in the resource folder path or no resource configuration template exists in the resource configuration template path;
the first determining module is specifically configured to determine, when a folder exists in the resource folder path and a resource configuration template exists in the resource configuration template path, a resource folder corresponding to the resource folder path and a resource configuration template corresponding to the resource configuration template path.
9. The apparatus according to claim 6, wherein the resource screening rule to be configured includes a preset first keyword and a preset second keyword;
the resource screening module is specifically configured to screen out, from the plurality of game resources pre-stored in the resource folder, game resources whose names include the first keyword as a first type of resource, and screen out, from the first type of resource, game resources whose names do not include the second keyword as resources to be configured; or screening out the game resources with the names containing the second keywords from the first type of resources as the resources to be configured.
10. The apparatus of claim 6, further comprising:
the resource acquisition module is used for acquiring game resources to be configured as first resources and determining the game resource types of the first resources;
a configuration frame popping module, configured to pop up a resource configuration frame according to the game resource type, where each configuration option of the game resource type is displayed in the resource configuration frame;
a second determining module, configured to determine, when a selection operation for each configuration option is received, configuration information selected by the selection operation as first configuration information;
and the template generating module is used for generating the resource configuration template recorded with the first configuration information when receiving the resource configuration template generating operation.
11. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any one of claims 1 to 5 when executing a program stored in the memory.
12. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of the claims 1-5.
CN201910580215.8A 2019-06-28 2019-06-28 Game resource allocation method and device and electronic equipment Active CN110201397B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910580215.8A CN110201397B (en) 2019-06-28 2019-06-28 Game resource allocation method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910580215.8A CN110201397B (en) 2019-06-28 2019-06-28 Game resource allocation method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN110201397A CN110201397A (en) 2019-09-06
CN110201397B true CN110201397B (en) 2022-07-22

Family

ID=67795528

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910580215.8A Active CN110201397B (en) 2019-06-28 2019-06-28 Game resource allocation method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN110201397B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110990048A (en) * 2019-11-04 2020-04-10 珠海西山居移动游戏科技有限公司 Method and system for monitoring resource loss of Unity project
CN111259019B (en) * 2020-01-09 2023-05-12 腾讯科技(深圳)有限公司 Resource allocation method, device, equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103488706A (en) * 2013-09-06 2014-01-01 北京东方艾迪普科技发展有限公司 Processing method and device for mass data base
CN105677883A (en) * 2016-01-14 2016-06-15 网易(杭州)网络有限公司 Animation resource optimization method and device
CN105843624A (en) * 2016-04-01 2016-08-10 上海班图网络科技有限公司 Doujin game engine
WO2016138666A1 (en) * 2015-03-05 2016-09-09 Telefonaktiebolaget Lm Ericsson (Publ) Resource allocation method, control entity and access node using the same
CN107291718A (en) * 2016-03-30 2017-10-24 阿里巴巴集团控股有限公司 Page resource put-on method and device
CN107844301A (en) * 2017-12-12 2018-03-27 苏州蜗牛数字科技股份有限公司 A kind of Android application channel closes bag method and device
CN109660377A (en) * 2017-10-12 2019-04-19 中兴通讯股份有限公司 Unified configuring management method, service server and operation and maintenance management platform
CN109806592A (en) * 2019-01-18 2019-05-28 网易(杭州)网络有限公司 A kind of monitoring method and device of game resource

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8695006B2 (en) * 2008-05-02 2014-04-08 Oracle International Corporation Resource management method

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103488706A (en) * 2013-09-06 2014-01-01 北京东方艾迪普科技发展有限公司 Processing method and device for mass data base
WO2016138666A1 (en) * 2015-03-05 2016-09-09 Telefonaktiebolaget Lm Ericsson (Publ) Resource allocation method, control entity and access node using the same
CN105677883A (en) * 2016-01-14 2016-06-15 网易(杭州)网络有限公司 Animation resource optimization method and device
CN107291718A (en) * 2016-03-30 2017-10-24 阿里巴巴集团控股有限公司 Page resource put-on method and device
CN105843624A (en) * 2016-04-01 2016-08-10 上海班图网络科技有限公司 Doujin game engine
CN109660377A (en) * 2017-10-12 2019-04-19 中兴通讯股份有限公司 Unified configuring management method, service server and operation and maintenance management platform
CN107844301A (en) * 2017-12-12 2018-03-27 苏州蜗牛数字科技股份有限公司 A kind of Android application channel closes bag method and device
CN109806592A (en) * 2019-01-18 2019-05-28 网易(杭州)网络有限公司 A kind of monitoring method and device of game resource

Also Published As

Publication number Publication date
CN110201397A (en) 2019-09-06

Similar Documents

Publication Publication Date Title
US10387292B2 (en) Determining application test results using screenshot metadata
CN108347532B (en) Function access method, device, terminal equipment and storage medium
US10606450B2 (en) Method and system for visual requirements and component reuse driven rapid application composition
CN108335718B (en) Test method and device
CN107329899A (en) A kind of application compatibility method of testing and device
CN110201397B (en) Game resource allocation method and device and electronic equipment
CN107239403A (en) A kind of positioning problems method and apparatus
EP2778962A1 (en) Silo-aware databases
CN110825395B (en) Multi-plug-in layered deployment system, device and medium
CN110365776B (en) Picture batch downloading method and device, electronic equipment and storage medium
CN107368293B (en) Page structure generation method, page screenshot reporting method, device and system
CN110955449B (en) Gray scale release method and device for client
CN110058992B (en) Text template effect feedback method and device and electronic equipment
CN114647548A (en) Log generation method and device
US11256501B2 (en) Federated extensibility workbench
CN115599618B (en) Register dynamic change-allocation verification method and device, storage medium and processor
CN109582347B (en) Method and device for acquiring front-end codes
CN111246214A (en) Video decoding method and device
CN110928946A (en) Document editing method and device and terminal equipment
JP2020004340A (en) Business template changing device and program
CN113867778A (en) Method and device for generating mirror image file, electronic equipment and storage medium
CN112559346A (en) Service testing method and device
CN112631931A (en) Version testing method and device, storage medium and electronic equipment
CN111435313A (en) Method and device for changing skin of software
US8359456B2 (en) Generating random addresses for verification of distributed computerized devices

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
GR01 Patent grant
GR01 Patent grant