CN111346380A - Resource loading method, device, equipment and storage medium - Google Patents

Resource loading method, device, equipment and storage medium Download PDF

Info

Publication number
CN111346380A
CN111346380A CN202010102503.5A CN202010102503A CN111346380A CN 111346380 A CN111346380 A CN 111346380A CN 202010102503 A CN202010102503 A CN 202010102503A CN 111346380 A CN111346380 A CN 111346380A
Authority
CN
China
Prior art keywords
target
map scene
resource
list
resources
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.)
Granted
Application number
CN202010102503.5A
Other languages
Chinese (zh)
Other versions
CN111346380B (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202010102503.5A priority Critical patent/CN111346380B/en
Publication of CN111346380A publication Critical patent/CN111346380A/en
Application granted granted Critical
Publication of CN111346380B publication Critical patent/CN111346380B/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/50Controlling the output signals based on the game progress
    • A63F13/53Controlling the output signals based on the game progress involving additional visual information provided to the game scene, e.g. by overlay to simulate a head-up display [HUD] or displaying a laser sight in a shooting game
    • A63F13/537Controlling the output signals based on the game progress involving additional visual information provided to the game scene, e.g. by overlay to simulate a head-up display [HUD] or displaying a laser sight in a shooting game using indicators, e.g. showing the condition of a game character on screen
    • 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/50Controlling the output signals based on the game progress
    • A63F13/53Controlling the output signals based on the game progress involving additional visual information provided to the game scene, e.g. by overlay to simulate a head-up display [HUD] or displaying a laser sight in a shooting game
    • A63F13/537Controlling the output signals based on the game progress involving additional visual information provided to the game scene, e.g. by overlay to simulate a head-up display [HUD] or displaying a laser sight in a shooting game using indicators, e.g. showing the condition of a game character on screen
    • A63F13/5378Controlling the output signals based on the game progress involving additional visual information provided to the game scene, e.g. by overlay to simulate a head-up display [HUD] or displaying a laser sight in a shooting game using indicators, e.g. showing the condition of a game character on screen for displaying an additional top view, e.g. radar screens or maps
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Physics & Mathematics (AREA)
  • Optics & Photonics (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the application discloses a resource loading method, a device, equipment and a storage medium, wherein the method comprises the following steps: acquiring an object resource set constructed aiming at a target application, wherein the object resource set comprises all object resources in various map scenes supported by the target application; when a target map scene supported by the target application needs to be loaded, acquiring a target object list corresponding to the target map scene, wherein the target object list is used for representing whether object resources in an object resource set take effect in the target map scene; and controlling the object resources in the object resource set to be loaded and displayed in the target map scene according to the target object list. The method can reduce the workload of related designers, avoid introducing a large amount of repeated object resources, and support the loading of various different map scenes under the condition of additionally occupying a small amount of memory.

Description

Resource loading method, device, equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a resource loading method, apparatus, device, and storage medium.
Background
Nowadays, many applications need to load a large-scale map scene in order to adapt to their business requirements, and some applications further support loading a plurality of map scenes comprising different objects in order to provide a richer use experience for users. Taking a 3D game application as an example, many 3D game applications can provide multiple play modes for players, and objects in map scenes that need to be loaded in different play modes are different.
At present, the related art mainly adopts a mode of loading all object resources by map, and supports the loading of various map scenes. Specifically, a related designer will respectively make an object resource set for each map scene, where the object resource set includes all object resources that need to be deployed in the map scene; when the program runs, the related equipment directly loads the object resource set of the map scene corresponding to the program.
However, the inventor of the present application has found that the above implementation mode mainly has the following defects: on one hand, in practical applications, many reusable object resources are often included in a plurality of different map scenes supported by the same application, and for this part of the object resources, related designers need to repeatedly rearrange and export when developing object resource sets corresponding to the respective map scenes, so that the workload of the related designers is increased, and a large amount of repeated object resources are introduced. On the other hand, each time a map scene is added, the related devices need to consume more corresponding memory to load the object resource set corresponding to the map scene, and a large amount of memory resources are wasted for the related devices.
Disclosure of Invention
The embodiment of the application provides a resource loading method, a resource loading device and a storage medium, which can reduce the workload of related designers, avoid the introduction of a large amount of repeated object resources, and support the loading of various map scenes under the condition of additionally occupying a small amount of memory.
In view of this, a first aspect of the present application provides a resource loading method, where the method includes:
acquiring an object resource set constructed aiming at a target application; the set of object resources comprises all object resources in a plurality of map scenes supported by the target application;
when a target map scene supported by the target application needs to be loaded, acquiring a target object list corresponding to the target map scene; the target object list is used for representing whether object resources in the object resource set take effect in the target map scene;
and controlling the object resources in the object resource set to be loaded and displayed in the target map scene according to the target object list.
A second aspect of the present application provides a resource loading apparatus, including:
the system comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring an object resource set constructed aiming at a target application; the set of object resources comprises all object resources in a plurality of map scenes supported by the target application;
the second acquisition module is used for acquiring a target object list corresponding to a target map scene when the target map scene supported by the target application needs to be loaded; the target object list is used for representing whether object resources in the object resource set take effect in the target map scene;
and the loading display module is used for controlling the object resources in the object resource set to be loaded and displayed in the target map scene according to the target object list.
A third aspect of the application provides an apparatus comprising a processor and a memory:
the memory is used for storing a computer program;
the processor is configured to perform the steps of the resource loading method according to the first aspect.
A fourth aspect of the present application provides a computer-readable storage medium for storing a computer program for executing the steps of the resource loading method of the first aspect.
A fifth aspect of the present application provides a computer program product comprising instructions which, when run on a computer, cause the computer to perform the steps of the resource loading method of the first aspect described above.
According to the technical scheme, the embodiment of the application has the following advantages:
in the resource loading method provided by the embodiment of the application, the terminal device first obtains an object resource set constructed for a target application, wherein the object resource set comprises all object resources in a plurality of map scenes supported by the target application; when a target map scene supported by a target application needs to be loaded, a target object list corresponding to the target map scene is obtained, and the target object list can represent whether object resources in an object resource set take effect in the target map scene or not; and further controlling the object resources in the object resource set to be loaded and displayed in the target map scene according to the target object list. Compared with the implementation mode in the related art, the method provided by the embodiment of the application only needs to configure one full object resource set for various map scenes supported by the target application, and relevant designers do not need to repeatedly rearrange and export the object resources when configuring the object resources for the various map scenes, and only configure corresponding object lists for different map scenes, so that the workload of the relevant designers is reduced, and the introduction of a large amount of repeated object resources is avoided. In addition, when the related equipment loads various map scenes, the whole object resources corresponding to each map scene do not need to be loaded, and only one object resource set and the object lists corresponding to the various map scenes need to be loaded, so that the memory resources consumed by the related equipment can be greatly reduced.
Drawings
FIG. 1 is a diagram illustrating a deployment and loading manner of an object resource in the related art;
fig. 2 is a schematic view of an application scenario of a resource loading method according to an embodiment of the present application;
fig. 3 is a schematic flowchart of a resource loading method according to an embodiment of the present application;
FIG. 4 is a schematic diagram illustrating the composition of an exemplary asset collection of an object provided by an embodiment of the present application;
FIG. 5 is an illustration of an effect of loading and displaying object resources in different map scenes according to an embodiment of the present disclosure;
FIG. 6 is an interaction signaling diagram for validity verification of a target object according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a first resource loading apparatus according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a second resource loading apparatus according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of a third resource loading apparatus according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of a fourth resource loading apparatus according to an embodiment of the present application;
fig. 11 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions of the present application better understood, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims of the present application and in the drawings described above, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In the related technology, the loading of various map scenes is supported mainly by adopting a mode of loading all object resources by map. Taking an example that a 3D game application supports loading of two map scenes, an implementation manner in the related art is described with reference to fig. 1, as shown in fig. 1, a map scene resource library 110 deployed at a client and a map scene resource library 110 deployed at a server store a total object resource 101 in a map scene one and a total object resource 102 in a map scene two; when the map scene one and the map scene two need to be loaded, the client loads the full-scale object resources 101 of the map scene one and the full-scale object resources 102 of the map scene two in the program memory 120 thereof, and the server loads the full-scale object resources 101 of the map scene one and the full-scale object resources 102 of the map scene two in the program memory 120 thereof.
As a basis for the implementation of the above implementation, the relevant designer needs to make a complete set of object resources for each map scene, and although many object resources in different map scenes can be reused, the relevant designer needs to rearrange and export these object resources repeatedly to configure the whole number of object resources corresponding to another map scene, and the relevant designer needs to consume a lot of time and effort and also introduce a lot of repeated object resources. In addition, for 3D network games, each time a set of full object resources is added, the server needs to consume about 2GB more memory to store and load the part of object resources, and for the server, each addition of a set of full object resources means that the total amount of memory used by the server process is increased by 2GB, the number of processes that the server can carry is correspondingly reduced, the number of players that the server can carry is also correspondingly reduced, and great waste is caused to the server memory resources and the deployment cost; for the client, each time a set of full object resources is added to the application program, the installation package of the application program is correspondingly increased, and further, the hard disk space occupied by the application program in the terminal device is increased.
In order to solve the problems in the related art, embodiments of the present application provide a resource loading method, which can effectively reduce the workload that related designers need to consume when configuring object resources for multiple map scenes, avoid introducing repeated object resources, and save memory resources of related devices when loading multiple map scenes.
Specifically, the resource loading method provided by the embodiment of the present application includes: the method comprises the steps of obtaining an object resource set constructed aiming at a target application, wherein the object resource set comprises all object resources in a plurality of map scenes supported by the target application, namely the object resource set comprises object resources shared by the map scenes and object resources specific to each map scene. When a target map scene in a target application needs to be loaded, a target object list corresponding to the target map scene is obtained, and the target object list can represent whether object resources in an object resource set take effect in the target map scene or not. And further controlling the object resources in the object resource set to be loaded and displayed in the target map scene according to the target object list.
Compared with the implementation mode in the related art, the method provided by the embodiment of the application only needs to configure one object resource set for various map scenes supported by the target application, and when the related designers configure the object resources for various map fields, the related designers do not need to repeatedly rearrange and export the object resources, and only configure corresponding object lists for different map scenes, so that the workload of the related designers is reduced, and the introduction of a large amount of repeated object resources is avoided. In addition, when the related equipment loads various map scenes, the whole object resources contained in each map scene do not need to be loaded, and the object resources in the object resource set are only controlled to be loaded and displayed according to the object list, so that the memory resources consumed by the related equipment can be greatly reduced.
It should be understood that the resource loading method provided in the embodiment of the present application may be applied to a terminal device capable of supporting application operation, where the terminal device may specifically be a smart phone, a computer, a tablet computer, a Personal Digital Assistant (PDA), and the like.
In order to facilitate understanding of the technical solution provided in the embodiment of the present application, an application scenario in which the resource loading method provided in the embodiment of the present application is applicable is described below by taking a target application as an example of an online game application.
Referring to fig. 2, fig. 2 is a schematic view of an application scenario of the resource loading method according to the embodiment of the present application. As shown in fig. 2, the application scenario includes a terminal device 210 and a server 220; the terminal device 210 runs a target application, and the terminal device 210 is configured to execute the resource loading method provided in the embodiment of the present application; the server 220 is configured to provide a logical processing service for the target application, that is, the server 220 is configured to perform corresponding logical processing for an operation triggered by the user on the target application, and feed back a corresponding processing result to the terminal device 210, so that the terminal device 210 controls the target application to provide a subsequent service for the user according to the processing result.
When the terminal device 210 executes the resource loading method provided in the embodiment of the present application, it may acquire an object resource set constructed for a target application while downloading the target application, and store the object resource set in its own hard disk space when installing the target application, where the object resource set includes all object resources in multiple map scenes supported by the target application, that is, the object resource set includes both object resources common to the multiple map scenes and object resources specific to each map scene.
When the terminal device 210 detects that the user starts the target application and triggers loading of the target map scene in the target application, the terminal device 210 may generate an item list request message and send the item list request message to the server 220 through the network, where the server 220 is requested to provide a target item list corresponding to the target map scene, and the target item list can represent whether the item resources in the item resource set are effective in the target map scene. After receiving the item list request message, the server 220 correspondingly obtains a target item list corresponding to the target map scene, and sends the target item list to the terminal device 210 through the network.
After receiving the target object list, the terminal device 210 may control the object resources in the object resource set to be correspondingly loaded and displayed in the target map scene according to the target object list.
It should be noted that, in a scenario where the target application is an online game application, in order to provide a corresponding logical processing service for an operation triggered by a user in a target map scenario, after the server 220 acquires the target object list, the server 220 also controls an effective state of each object resource in the loaded object resource set in the target map scenario according to the target object list.
It should be understood that the scenario shown in fig. 2 is only an example, and in practical applications, the target application may be other applications that can support loading of multiple map scenarios, such as a standalone game application, a map navigation application, and so on, besides the network game application. In addition, in many application scenarios, the terminal device 210 may also independently execute the method provided in the embodiment of the present application to complete the loading of the object resource in the map scenario, without interacting with the server 220, and no limitation is made to the application scenario to which the resource loading method provided in the embodiment of the present application is applied.
The resource loading method provided by the present application is described in detail below by way of an embodiment.
Referring to fig. 3, fig. 3 is a schematic flowchart of a resource loading method provided in the embodiment of the present application, and the method can be applied to the terminal. As shown in fig. 3, the resource loading method includes the following steps:
step 301: acquiring an object resource set constructed aiming at a target application; the set of object resources includes all object resources in a plurality of map scenes supported by the target application.
When the terminal device downloads the target application, the object resource set integrated in the target application installation package can be correspondingly acquired, and when the terminal device installs the target application, the object resource set integrated in the target application installation package can be correspondingly deployed and installed in a hard disk space of the terminal device, so that the terminal device calls the object resource set when detecting that a user triggers and loads various map scenes in the target application, and loads the object resources in the object resource set into a memory of the terminal device.
It should be noted that the object resource set includes all object resources in multiple map scenes supported by the target application, that is, the object resource set includes both object resources common to the multiple map scenes and object resources specific to each map scene, and the same object resource in the object resource set includes only one copy, and there is no duplicate object resource. Fig. 4 is a schematic composition diagram of an exemplary object resource set, and assuming that a target application supports three map scenes, an object resource set constructed for the target application is substantially a union of an object resource 401 in a map scene one, an object resource 402 in a map scene two, and an object resource 403 in a map scene three, and the object resource set includes only one object resource common to any two or three of the map scene one, the map scene two, and the map scene three.
The object resource in the object resource set substantially refers to the resource that is required to be utilized when the terminal device loads and displays the object. The object resources at least comprise a physical model corresponding to the object, wherein the physical model is a model determined by parameters of the object in the aspects of space coordinates, shape proportion, position rotation and the like in a map scene and can be expressed in a program; the above objects refer to physical and environmental units occupying a certain space in a map scene, which include but are not limited to rocks, trees, buildings, and the like. In addition, the article resources in the article resource set deployed on the terminal device side may further include a rendering model of the article, an art sticker, and the like.
In practical application, the target application may be a stand-alone application or a network application that needs to be networked to obtain a service. When the target application is a web application, the server for providing the logical processing service for the target application client generally needs to acquire an object resource set, and automatically loads the object resource set when the server is started, so as to provide the relevant service for the user of the target application.
It should be noted that, since the server generally does not need to provide a display screen, and only provides a logical processing service for a user operation, the asset in the asset resource set deployed at the server end generally only includes a physical model of the asset, but does not include a rendering model of the asset, an art map, and the like.
Optionally, when the target application has a new map scene, the terminal device may obtain an updated object resource set, where the updated object resource set includes all object resources in the new map scene and multiple map scenes originally supported by the target application.
Specifically, when a related designer develops a new map scene for a target application, object resources in the new map scene different from the original map scene may be added to the object resource set to obtain an updated object resource set, and the updated object resource set is integrated into an update installation package of the target application. The terminal device can download and install the update installation package of the target application in a mode of updating the target application, so that the updated object resource set is obtained.
That is to say, when a new map scene is developed, the related designers do not need to rearrange and export the reusable object resources in the original map scene, the exported object resources and the new object resources are used to reconfigure the full amount of object resources corresponding to the new map scene, and the related designers only need to add the new object resources to the original object resource set, so that the workload of the related designers is greatly reduced.
Step 302: when a target map scene supported by the target application needs to be loaded, acquiring a target object list corresponding to the target map scene; the target object list is used for representing whether object resources in the object resource set take effect in the target map scene.
When the terminal device detects that a user triggers a target map scene supported by a target application to be loaded, the terminal device correspondingly obtains a target object list corresponding to the target map scene, and the target object list can represent whether object resources in an object resource set take effect in the target map scene or not.
It should be understood that the target map scene may be any one of a plurality of map scenes supported by a target application, and the target object list is an object list corresponding to the target map scene. When a related designer develops each map scene supported by the target application, a corresponding object list is configured for the map scene, and the object list can represent whether each object resource in the object resource set takes effect in the corresponding map scene.
In view of the fact that when a related designer configures an item resource set, a corresponding identifier is usually set for each item resource, and one identifier can uniquely characterize one item resource, the present application provides three exemplary representations of item lists:
in a first expression, an identification of an item resource that is not valid in its corresponding map scene in the set of item resources is recorded in the item list. That is, in the item list corresponding to a certain map scene, the identifiers of all the item resources in the item resource set that are not effective in the map scene are recorded.
In a second expression, the item list records the identifiers of the item resources in the set of item resources that are effective in the corresponding map scene. That is, in the item list corresponding to a certain map scene, the identifiers of all the item resources in the item resource set that are effective in the map scene are recorded.
In a third expression form, the object list records identifiers of object resources in the object resource set in the map scene corresponding to the object list and logic switch states corresponding to the identifiers, the logic switch states corresponding to the object resources represent that the object resources take effect in the map scene, and the logic switch states corresponding to the object resources represent that the object resources do not take effect in the map scene. That is, in the object list corresponding to a certain map scene, the identifier of each object resource in the object resource set and the logic switch state of each object resource in the map scene are recorded.
It should be understood that, in practical applications, the representation form of the object list may be other representation forms besides the three representation forms described above, and the present application does not specifically limit the representation form of the object list.
In one possible implementation manner, the terminal device may retrieve a target object list corresponding to the target map scene from its own memory. Specifically, object lists corresponding to various map scenes supported by the target application may be integrated in an installation package of the target application, and when the target application is installed by the terminal device, the object lists integrated in the installation package are correspondingly stored in a hard disk space of the terminal device. When the terminal device detects that a user triggers loading of a target map scene in a target application, a target object list stored in a hard disk space is loaded into a memory, and then the terminal device can call the target object list corresponding to the target map scene from the memory correspondingly.
In another possible implementation manner, the terminal device may obtain a target object list corresponding to the target map scene from the server. When the terminal device detects that a user triggers loading of a target map scene in a target application, the terminal device may generate an item list request message and send the item list request message to a server for providing a logical processing service for the target application through a network. After receiving the object list request message, the server correspondingly searches a target object list corresponding to the target map scene, and returns the searched target object list to the terminal equipment through the network, so that the terminal equipment can acquire the target object list.
It should be noted that, in the case that the target application is a network application that needs the server to provide the logic processing service for the target application, the terminal device needs to send a target map scene loading notification message or an item list request message to the relevant server to notify the relevant server that the target application currently needs to load the target map scene. After the relevant server learns that the target application needs to load the target map scene currently, the relevant server also needs to acquire the target object list corresponding to the target map scene, so as to control the loading of the object resources in the target map scene based on the target object list, and on the basis, provide corresponding logic processing service for the operation triggered by the user in the target map scene.
It should be noted that, when a new map scene exists in the target application, the related designer needs to configure an object list corresponding to the new map scene for the new map scene.
In a possible implementation manner, the related designer may integrate the object list corresponding to the newly added map scene into an update installation package of the target object, and the terminal device may obtain the object list corresponding to the newly added map scene, which is integrated into the update installation package, in a manner of updating the target application, and store the object list in a hard disk space of the terminal device, so as to detect that the user triggers and loads the newly added map scene, and call the object list.
In another possible implementation manner, the related designer may directly deploy the object list corresponding to the newly added map scene at the server side, and when the server receives an object list request message sent by the terminal device and requests to acquire the object list corresponding to the newly added map scene, the related designer sends the object list corresponding to the newly added map scene to the terminal device through the network.
Step 303: and controlling the object resources in the object resource set to be loaded and displayed in the target map scene according to the target object list.
After the terminal device obtains the target object list, the object resources in the object resource set can be controlled to be loaded and displayed in the target map scene according to the target object list. If the object resource is determined to be effective in the target map scene according to the target object list, loading and displaying the object resource in the target map scene; and if the object resource is determined not to be effective in the target map scene according to the target object list, the object resource is not loaded and displayed in the target map scene.
In a possible implementation manner, the terminal device may first directly load all the object resources in the object resource set in its memory, and then determine which objects are specifically displayed in the target map scene according to the target object list. Specifically, the terminal device may load all the object resources in the object resource set in its memory; then, according to each loaded object resource, judging whether the object resource is effective in the target map scene according to the target object list, if so, displaying the object resource, and if not, not displaying the object resource.
When the identifier of the invalid object resource in the object resource set in the target map scene is recorded in the target object list, the terminal device can judge whether the corresponding identifier of each loaded object resource is recorded in the target object list, if so, the object resource is not displayed, and if not, the object resource is displayed. When the identifier of the object resource which is effective in the target map scene in the object resource set is recorded in the target object list, the terminal device can judge whether the corresponding identifier of each loaded object resource is recorded in the target object list, if so, the object resource is displayed, and if not, the object resource is not displayed. When the identifier of each object resource in the object resource set in the target map scene and the logic switch state corresponding to each object resource are recorded in the target object list, the terminal device can judge whether the logic switch state corresponding to each loaded object resource is on or off, if the logic switch state corresponding to each loaded object resource is on, the object resource is displayed, and if the logic switch state corresponding to each loaded object resource is off, the object resource is not displayed.
In practical applications, the display states of the objects in the map scene may change along with the operation of the user, for example, the display states of some objects may change from non-display to display along with the operation of the user; the method has the advantages that all object resources in the object resource set are loaded in advance, so that the middle object resource loading process is omitted when the display state of the subsequent objects is changed from non-display to display, and the loaded object resources are displayed in time. In addition, under some conditions, the terminal device may not be able to quickly acquire the target object list from the server under the influence of the network state, at this time, all object resources in the object resource set are directly loaded, and after the target object list is acquired, the object resources in the target map scene are correspondingly displayed, so that the influence caused by delayed acquisition of the target object list can be reduced to the greatest extent, and the loading and displaying efficiency of the object resources is ensured.
In another possible implementation manner, after the target object list is obtained, the terminal device may control, according to the target object list, the object resources in the object resource set to be correspondingly loaded and displayed in the target map scene. Specifically, the terminal device may determine, for each object resource in the object resource set, whether the object resource is in effect in the target map scene according to the target object list, and if the object resource is in effect, load the object resource in a memory of the terminal device and display the object resource in the map scene displayed on the interface, and if the object resource is not in effect, not load and display the object resource.
When the target object list records identifiers of the invalid object resources in the object resource set in the target map scene, the terminal device can judge whether the corresponding identifiers of the invalid object resources in the object resource set are recorded in the target object list or not according to each object resource in the object resource set, if yes, the object resources are not loaded and displayed, and if not, the object resources are loaded and displayed. When the object resource set records the identifier of the object resource which is effective in the target map scene in the object resource set, the terminal device can judge whether the corresponding identifier of each object resource in the object resource set is recorded in the target object list, if so, the object resource is loaded and displayed, and if not, the object resource is not loaded and displayed. When the mark of each object resource in the object resource set in the target map scene and the logic switch state corresponding to each object resource are recorded in the target object list, the terminal device can judge whether the corresponding logic switch state is on or off for each object resource in the object resource set, if the corresponding logic switch state is on, the object resource is loaded and displayed, and if the corresponding logic switch state is off, the object resource is not loaded and displayed.
Therefore, when the terminal equipment loads the object resources in the target map scene, the object resources can be loaded according to needs, namely, which objects are actually needed to load which objects, and the memory space consumed by loading the object resources can be saved to a certain extent.
In order to facilitate understanding of the actual loading effect of the object resources in the map scene, a certain game application supporting two geographic scenes is taken as an example below to introduce the loading display effect of the object resources in different map scenes. As shown in fig. 5, the image (a) and the image (b) respectively show the map scenes corresponding to the two play modes of the game application, and the frames shown by the image (a) and the image (b) correspond to the same coordinate point in different map scenes, the map scene shown by the image (a) is loaded with the display object 501, and the map scene shown by the image (b) is not loaded with the display object 501.
Optionally, in many application scenarios, the terminal device may further modify the target object list according to an operation triggered by the user on an object in the target map scenario, and update the object loaded and displayed in the target map scenario based on the modified target object list. Specifically, when the terminal device detects that a target operation is triggered for a target object in a target map scene, the terminal device may modify the target object list according to the target object and the target operation, and then control, according to the modified target object list, the object resources in the object resource set to be loaded and displayed in the target map scene.
Taking the target application as the shooting game application as an example, when the terminal device detects that a game character operated by a player triggers a shooting operation for a certain object in a target map scene, the terminal device may modify the target object list accordingly according to the shooting operation and the object targeted by the shooting operation, specifically, the effective state of the shot object in the target object list may be changed from effective to ineffective, and then the shot object in the target map scene is controlled to be cancelled and displayed according to the modified target object list.
Certainly, in practical application, the terminal device may also modify an object resource whose valid state is invalid in the target object list into a valid object resource according to a target operation triggered by the user, and further control the object resource to be loaded and displayed in the target map scene according to the modified target object list.
It should be understood that the modification manner for the target item list depends on the actual representation form of the target item list, for example, when the target item list records the identification of the item resource that is not valid in the target map scene in the item resource set, for the item resource whose valid state is changed from valid to invalid, the identification of the item resource may be added in the target item list, and for the item resource whose valid state is changed from invalid to valid, the identification of the item resource in the target item list may be deleted. For another example, when the identification of the item resource in the item resource set that is in effect in the target map scene is recorded in the target item list, the identification of the item resource in the target item list may be deleted for the item resource whose effective state is changed from effective to ineffective, and the identification of the item resource may be added to the target item list for the item resource whose effective state is changed from ineffective to effective. For another example, when the identifier of each object resource in the object resource set in the target map scene and the corresponding logic switch state are recorded in the target object list, for an object resource whose valid state is changed from valid to invalid, the logic switch state corresponding to the object resource may be switched from on to off, and for an object resource whose valid state is changed from invalid to valid, the logic switch state corresponding to the object resource may be switched from off to on.
Optionally, when the target application is an online game application, some users may be unauthorized to modify the target application client deployed on the terminal device in order to more easily win the game, for example, additionally deploy a plug-in program, and in order to prevent these operations of the users from affecting the fairness of the game, the server for providing the logical processing service for the target application may verify the operations of the users based on the object resource set loaded by the server and the target object list.
Specifically, when the terminal device detects that a target operation is triggered for a target object in a target map scene, the terminal device sends an operation request to the server, wherein the operation request at least comprises an identifier of the target object; then, receiving a response message returned by the server for the operation request, wherein the response message comprises indication information used for indicating whether the target object takes effect in the target map scene, and the indication information is determined by the server according to a target object list loaded by the server; and then, judging whether the triggered target operation takes effect or not according to the indication information in the response message.
Referring to fig. 6, after detecting that the user triggers a target operation for a target object in a target map scene, the terminal device sends an operation request to the server, where the operation request at least includes an identifier of the target object; and after receiving the operation request, the server judges whether the target object is effective in the target map scene according to the loaded target object list, generates indication information according to a judgment result, adds the indication information into a response message and sends the response message to the terminal equipment. And after receiving the response message, the terminal equipment judges whether the target operation is effective according to the indication information, if so, modifies the relevant game parameters based on the target operation, and if not, prompts the user that the current triggered operation is invalid.
Therefore, the method can avoid the user from triggering effective operation on the objects which should not exist in the target map scene, and prevent the user from cheating games and influencing the fairness of the games.
It should be noted that, when the target application is an online game application, the method provided in the embodiment of the present application may further modify the target object list according to an operation triggered by the user on an object in the target map scene by using the server while verifying whether the target operation is valid, and return the modified target object list to the terminal device, so that the terminal device updates the object loaded and displayed in the target map scene according to the modified target object list.
Specifically, the operation request sent by the terminal device to the server may include the operation information of the target operation in addition to the identifier of the target object; after determining that the target object takes effect in the target map scene according to the loaded target object list, the server may further modify the target object list according to the identifier of the target object and the operation information of the target operation, and add the modified target object list in the response message and return the modified target object list to the terminal device. After receiving the response message, the terminal device determines whether the target operation is valid according to the indication information, and may further control the object resources in the object resource set to be loaded and displayed in the target map scene according to the modified target object list in the response message under the condition that the target operation is determined to be valid.
The implementation manner of the server specifically determining whether the target object is valid in the target map scene is the same as the implementation manner of the terminal device described above for determining whether the target object is valid in the target map scene, and reference may be made to the above related contents in detail, which is not described herein again.
It should be understood that in practical applications, the server can not only verify the validity of the target object, but also update the target object list in the manner described above; the server can also only execute the verification operation of the validity of the target object or only execute the update operation of the target object list according to the actual requirement.
Optionally, the target application may be a multiplayer network game application, and when a user uses a target application client to participate in a multiplayer game, a server for providing a logic processing service for the target application may correspondingly load an object resource set and a target object list corresponding to a current game map scene (i.e., a target map scene), and the server may correspondingly modify the target object list according to an operation triggered by each user in the same game for an object in the target map scene within a preset time period, and issue the modified target object list to each terminal device participating in the game. And after receiving the modified target object list issued by the server, the terminal equipment controls the object resources in the object resource set to be loaded and displayed in the target map scene according to the modified target object list.
In order to ensure that the operation triggered by each user in the multiplayer online game application can be perceived by other users in the game, the server can modify the target object list corresponding to the game map scene in time based on the operation triggered by each user in the same game, and send the modified target object list to the terminal equipment controlled by each user, so that each user can perceive the operation triggered by other users in the game in time.
In the above several optional implementation manners, after detecting that the user triggers the target operation on the target object in the target map scene, the terminal device may correspondingly obtain the modified target object list generated by itself or the server based on the target operation, and control the object resources in the object resource set to be loaded and displayed in the target map scene according to the modified target object list. An exemplary implementation manner of controlling loading and displaying of the object resource by the terminal device according to the modified target object list will be described below.
Specifically, the terminal device may compare the modified target object list with an original target object list, where the original target object list is an object list on which the last loading and displaying of the object resource is controlled; for a first object resource with an effective state changed into an ineffective state, the terminal device can cancel the loading and displaying of the first object resource in a target map scene; for a second object resource whose validation status changes from non-validation to validation, the terminal device may display the second object resource in the target map scene.
For target object lists with different expression forms, the terminal device can correspondingly adopt different modes to judge the change of the effective state of each object resource. For example, when the identifier of an item resource that is not valid in the target map scene in the item resource set is recorded in the target item list, the terminal device may determine an item resource whose valid state is changed from valid to invalid, from an item resource whose valid state is changed to invalid, to an item resource whose valid state is changed from invalid to valid, from an item resource that is recorded in the original target item list but not recorded in the modified target item list. For another example, when the identifier of the item resource in the set of item resources that is in effect in the target map scene is recorded in the target item list, the terminal device may determine that the item resource whose effect status changes from in effect to in-effect is the item resource whose effect status changes from in effect to in-effect, and determine that the item resource whose effect status changes from in-effect to in-effect is the item resource whose effect status changes from in-effect is the item resource that is not recorded in the original target item list but recorded in the modified target item list. For another example, when the identifiers of the object resources in the object resource set in the target map scene and the logic switch states corresponding to the identifiers are recorded in the target object list, the terminal device may switch the logic switch states from on to off, determine that the valid state is changed from valid to invalid, switch the logic switch states from off to on, and determine that the valid state is changed from invalid to valid.
It should be understood that, in practical applications, the terminal device may also adopt other manners to control the loading and displaying of the object resource in the target map scene according to the modified target object list, and the implementation manner of this application is not limited in any way.
The resource loading method provided by the embodiment of the application only needs to configure one object resource set for various map scenes supported by the target application, and when related designers configure the object resources for various map fields, the related designers do not need to repeatedly rearrange and export the object resources, and only configure corresponding object lists for different map scenes, so that the workload of the related designers is reduced, and the introduction of a large amount of repeated object resources is avoided. In addition, when the related equipment loads various map scenes, the whole object resources contained in each map scene do not need to be loaded, and the object resources in the object resource set are only controlled to be loaded and displayed according to the object list, so that the memory resources consumed by the related equipment can be greatly reduced.
In order to further understand the resource loading method provided in the embodiment of the present application, a target application is taken as an example of an online game application, and the resource loading method provided in the embodiment of the present application is integrally and exemplarily described below.
The terminal device can acquire an object resource set integrated in the target application installation package when downloading and installing the target application, wherein the object resource set comprises all object resources in various game map scenes supported by the target application.
When the terminal device detects that a user starts the target application and triggers a target play mode in the target application (the target play mode corresponds to a target map scene), the terminal device sends an object list request message to a server for providing logic processing service for the target application, and requests the server to provide a target object list corresponding to the target map scene; the server calls a target object list prestored in the server and feeds the target object list back to the terminal equipment, and meanwhile, the server starts to control the loading of object resources in the object resource set based on the target object list.
The terminal device can load all the object resources in the object resource set in the memory of the terminal device when the terminal device waits for the server to feed back the target object list, and after the terminal device obtains the target object list, the terminal device can further judge whether each loaded object resource is effective in a target map scene according to the target object list.
When a user plays a game based on a target play mode in a target application, a terminal device correspondingly detects an operation triggered by the user in a target map scene, and when the terminal device detects that the user triggers a target operation for a target object in the target map scene, the terminal device can send an operation request to a server, wherein the operation request carries an identifier of the target object and operation information of the target operation. After receiving the operation request, the server may first determine whether the target object is valid in the target map scene according to the target object list loaded by the server and the identifier of the target object, and if the target object is valid, the server may generate indication information indicating that the target object is valid, and further modify the target object list correspondingly according to the identifier of the target object and the operation information of the target operation, and further add the indication information and the modified target object list in a response message and return the response message to the terminal device.
After receiving the response message, the terminal device may first determine whether the target operation is valid according to the indication information therein, and under the condition that the target operation is determined to be valid, the terminal device may further compare the modified target object list in the response message with the original target object list, and for the object resource whose valid state is changed from valid to invalid, the terminal device may correspondingly cancel displaying the object in the target map scene, and for the object resource whose valid state is changed from invalid to valid, the terminal device may correspondingly display the object in the target map scene.
For the above described resource loading method, the present application also provides a corresponding resource loading device, so that the resource loading method is applied and implemented in practice.
Referring to fig. 7, fig. 7 is a schematic structural diagram of a resource loading apparatus 700 corresponding to the resource loading method shown in fig. 3, where the resource loading apparatus 700 includes:
a first obtaining module 701, configured to obtain an object resource set constructed for a target application; the set of object resources comprises all object resources in a plurality of map scenes supported by the target application;
a second obtaining module 702, configured to obtain a target object list corresponding to a target map scene when the target map scene supported by the target application needs to be loaded; the target object list is used for representing whether object resources in the object resource set take effect in the target map scene;
a loading display module 703, configured to control, according to the target object list, object resources in the object resource set to be loaded and displayed in the target map scene.
Optionally, on the basis of the resource loading apparatus shown in fig. 7, the loading display module 703 is specifically configured to:
loading all the object resources in the object resource set;
and aiming at each loaded object resource, judging whether the object resource is effective in the target map scene according to the target object list, if so, displaying the object resource, and if not, not displaying the object resource.
Optionally, on the basis of the resource loading apparatus shown in fig. 7, the loading display module 703 is specifically configured to:
and aiming at each object resource in the object resource set, judging whether the object resource is effective in the target map scene according to the target object list, if so, loading and displaying the object resource, and if not, not loading and displaying the object resource.
Optionally, on the basis of the resource loading apparatus shown in fig. 7, referring to fig. 8, fig. 8 is a schematic structural diagram of another resource loading apparatus 800 provided in the embodiment of the present application. As shown in fig. 8, the resource loading apparatus 800 further includes:
an object list modification module 801, configured to modify the target object list according to a target object and a target operation when it is detected that the target operation is triggered for the target object in the target map scene;
the loading display module 703 is further configured to control, according to the modified target object list, the object resources in the object resource set to be loaded and displayed in the target map scene.
Optionally, on the basis of the resource loading apparatus shown in fig. 7, the target application is an online game application; referring to fig. 9, fig. 9 is a schematic structural diagram of another resource loading apparatus 900 according to an embodiment of the present application. As shown in fig. 9, the resource loading apparatus 900 further includes:
a sending module 901, configured to send an operation request to a server when it is detected that a target operation is triggered for a target object in the target map scene; the operation request comprises an identification of the target object;
a receiving module 902, configured to receive a response message returned by the server for the operation request; the response message comprises indication information used for indicating whether the target object takes effect in the target map scene, wherein the indication information is determined by the server according to the target object list loaded by the server;
an operation validation judging module 903, configured to determine whether the target operation is validated according to the indication information in the response message.
Optionally, on the basis of the resource loading apparatus shown in fig. 9, the operation request further includes operation information of the target operation; under the condition that the server determines that the target object takes effect in the target map scene, the response message further comprises a modified target object list, wherein the modified target object list is obtained by modifying the target object list by the server according to the identification of the target object and the operation information of the target operation;
the loading display module 703 is further configured to control, according to the modified target object list, the object resources in the object resource set to be loaded and displayed in the target map scene.
Optionally, on the basis of the resource loading apparatus shown in fig. 7, the target application is a multiplayer network game application; referring to fig. 10, fig. 10 is a schematic structural diagram of another resource loading apparatus 1000 according to an embodiment of the present application. As shown in fig. 10, the resource loading apparatus 1000 further includes:
a receiving module 1001, configured to receive a modified target object list sent by a server; the modified target object list is obtained by modifying the target object list loaded by the server according to the operation triggered by each user in the same game in a preset time period aiming at the object in the target map scene;
the loading display module 703 is further configured to control, according to the modified target object list, the object resources in the object resource set to be loaded and displayed in the target map scene.
Optionally, on the basis of the resource loading apparatus shown in fig. 8, 9 and 10, the loading display module 703 is specifically configured to:
comparing the modified target object list with the target object list;
for a first object resource with an effective state changed from effective to ineffective, canceling the loading and displaying of the first object resource in the target map scene;
and for the second object resource with the effective state changed from the non-effective state to the effective state, loading and displaying the second object resource in the target map scene.
Optionally, on the basis of the resource loading apparatus shown in fig. 7, an identifier of an item resource that is not valid in the target map scene in the item resource set is recorded in the target item list;
or, the target object list records identifiers of object resources in the object resource set, which take effect in the target map scene;
or, the target object list records identifiers of the object resources in the object resource set in the target map scene and logic switch states corresponding to the identifiers, the logic switch state corresponding to the object resource indicates that the object resource takes effect in the target map scene, and the logic switch state corresponding to the object resource indicates that the object resource does not take effect in the target map scene.
Optionally, on the basis of the resource loading apparatus shown in fig. 7, when there is a new map scene, the first obtaining module 701 is further configured to:
acquiring an updated object resource set; the updated object resource set comprises the newly added map scene and all object resources in various map scenes originally supported by the target application
The resource loading device provided by the embodiment of the application only needs to configure one object resource set for various map scenes supported by target application, and when related designers configure object resources for various map fields, the related designers do not need to repeatedly rearrange and export the object resources, and only configure corresponding object lists for different map scenes, so that the workload of the related designers is reduced, and the introduction of a large amount of repeated object resources is avoided. In addition, when the related equipment loads various map scenes, the whole object resources contained in each map scene do not need to be loaded, and the object resources in the object resource set are only controlled to be loaded and displayed according to the object list, so that the memory resources consumed by the related equipment can be greatly reduced.
The embodiment of the present application further provides a device for controlling resource loading, where the device may specifically be a terminal device, and the terminal device provided in the embodiment of the present application will be described below from the perspective of hardware materialization.
Referring to fig. 11, fig. 11 is a schematic structural diagram of a terminal device provided in an embodiment of the present application. As shown in fig. 11, for convenience of explanation, only the parts related to the embodiments of the present application are shown, and details of the technology are not disclosed, please refer to the method part of the embodiments of the present application. The terminal may be any terminal device including a mobile phone, a tablet computer, a personal digital Assistant (PDA, for short in english), a Point of sale terminal (POS, for short in english), a vehicle-mounted computer, and the like, taking the terminal as a smart phone as an example:
fig. 11 is a block diagram illustrating a partial structure of a smart phone related to a terminal provided in an embodiment of the present application. Referring to fig. 11, the smart phone includes: radio Frequency (RF) circuit 1110, memory 1120, input unit 1130, display unit 1140, sensor 1150, audio circuit 1160, wireless fidelity (WiFi) module 1170, processor 1180, and power supply 1190. Those skilled in the art will appreciate that the smartphone configuration shown in fig. 11 does not constitute a limitation of a smartphone, and may include more or fewer components than shown, or some components in combination, or a different arrangement of components.
The memory 1120 may be used to store software programs and modules, and the processor 1180 may execute various functional applications and data processing of the smart phone by operating the software programs and modules stored in the memory 1120. The memory 1120 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the smartphone, and the like. Further, the memory 1120 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 1180 is a control center of the smart phone, and is connected to various parts of the whole smart phone through various interfaces and lines, and executes various functions and processes data of the smart phone by running or executing software programs and/or modules stored in the memory 1120 and calling data stored in the memory 1120, thereby integrally monitoring the smart phone. Optionally, processor 1180 may include one or more processing units; preferably, the processor 1180 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated within processor 1180.
In the embodiment of the present application, the processor 1180 included in the terminal further has the following functions:
acquiring an object resource set constructed aiming at a target application; the set of object resources comprises all object resources in a plurality of map scenes supported by the target application;
when a target map scene supported by the target application needs to be loaded, acquiring a target object list corresponding to the target map scene; the target object list is used for representing whether object resources in the object resource set take effect in the target map scene;
and controlling the object resources in the object resource set to be loaded and displayed in the target map scene according to the target object list.
Optionally, the processor 1180 is further configured to execute the steps of any implementation manner of the resource loading method provided in the embodiment of the present application.
The embodiment of the present application further provides a computer-readable storage medium, configured to store a computer program, where the computer program is configured to execute any implementation manner of the resource loading method described in the foregoing embodiments.
The present application further provides a computer program product including instructions, which when run on a computer, cause the computer to perform any one of the embodiments of a resource loading method described in the foregoing embodiments.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U disk, a removable hard disk, a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing computer programs.
It should be understood that in the present application, "at least one" means one or more, "a plurality" means two or more. "and/or" for describing an association relationship of associated objects, indicating that there may be three relationships, e.g., "a and/or B" may indicate: only A, only B and both A and B are present, wherein A and B may be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "at least one of the following" or similar expressions refer to any combination of these items, including any combination of single item(s) or plural items. For example, at least one (one) of a, b, or c, may represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", wherein a, b, c may be single or plural.
The above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (15)

1. A method for resource loading, the method comprising:
acquiring an object resource set constructed aiming at a target application; the set of object resources comprises all object resources in a plurality of map scenes supported by the target application;
when a target map scene supported by the target application needs to be loaded, acquiring a target object list corresponding to the target map scene; the target object list is used for representing whether object resources in the object resource set take effect in the target map scene;
and controlling the object resources in the object resource set to be loaded and displayed in the target map scene according to the target object list.
2. The method according to claim 1, wherein the controlling the object resources in the object resource set to be displayed in the target map scene in an loading manner according to the target object list comprises:
loading all the object resources in the object resource set;
and aiming at each loaded object resource, judging whether the object resource is effective in the target map scene according to the target object list, if so, displaying the object resource, and if not, not displaying the object resource.
3. The method according to claim 1, wherein the controlling the object resources in the object resource set to be displayed in the target map scene in an loading manner according to the target object list comprises:
and aiming at each object resource in the object resource set, judging whether the object resource is effective in the target map scene according to the target object list, if so, loading and displaying the object resource, and if not, not loading and displaying the object resource.
4. The method of claim 1, further comprising:
when detecting that a target operation is triggered aiming at a target object in the target map scene, modifying the target object list according to the target object and the target operation;
and controlling the object resources in the object resource set to be loaded and displayed in the target map scene according to the modified target object list.
5. The method of claim 1, wherein the target application is a network gaming application; the method further comprises the following steps:
when detecting that a target operation is triggered aiming at a target object in the target map scene, sending an operation request to a server; the operation request at least comprises an identification of the target object;
receiving a response message returned by the server for the operation request; the response message comprises indication information used for indicating whether the target object takes effect in the target map scene, wherein the indication information is determined by the server according to the target object list loaded by the server;
and determining whether the target operation is effective or not according to the indication information in the response message.
6. The method of claim 5, wherein the operation request further comprises operation information of the target operation; under the condition that the server determines that the target object takes effect in the target map scene, the response message further comprises a modified target object list, wherein the modified target object list is obtained by modifying the target object list by the server according to the identification of the target object and the operation information of the target operation; the method further comprises the following steps:
and controlling the object resources in the object resource set to be loaded and displayed in the target map scene according to the modified target object list.
7. The method of claim 1, wherein the target application is a multiplayer network gaming application; the method further comprises the following steps:
receiving a modified target object list sent by a server; the modified target object list is obtained by modifying the target object list loaded by the server according to the operation triggered by each user in the same game in a preset time period aiming at the object in the target map scene;
and controlling the object resources in the object resource set to be loaded and displayed in the target map scene according to the modified target object list.
8. The method according to claim 4, 6 or 7, wherein the controlling of the object resources in the object resource set to be loaded and displayed in the target map scene according to the modified target object list comprises:
comparing the modified target object list with the target object list;
for a first object resource with an effective state changed from effective to ineffective, canceling the loading and displaying of the first object resource in the target map scene;
and for the second object resource with the effective state changed from the non-effective state to the effective state, loading and displaying the second object resource in the target map scene.
9. The method of claim 1, wherein the target item list has recorded therein an identification of an item resource of the set of item resources that is not valid in the target map scene;
or, the target object list records identifiers of object resources in the object resource set, which take effect in the target map scene;
or, the target object list records identifiers of the object resources in the object resource set in the target map scene and logic switch states corresponding to the identifiers, the logic switch state corresponding to the object resource indicates that the object resource takes effect in the target map scene, and the logic switch state corresponding to the object resource indicates that the object resource does not take effect in the target map scene.
10. The method of claim 1, wherein when there are additional map scenes, the method further comprises:
acquiring an updated object resource set; the updated object resource set comprises all object resources in the newly added map scene and various map scenes originally supported by the target application.
11. An apparatus for resource loading, the apparatus comprising:
the system comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring an object resource set constructed aiming at a target application; the set of object resources comprises all object resources in a plurality of map scenes supported by the target application;
the second acquisition module is used for acquiring a target object list corresponding to a target map scene when the target map scene supported by the target application needs to be loaded; the target object list is used for representing whether object resources in the object resource set take effect in the target map scene;
and the loading display module is used for controlling the object resources in the object resource set to be loaded and displayed in the target map scene according to the target object list.
12. The apparatus of claim 11, further comprising:
the object list modification module is used for modifying the target object list according to the target object and the target operation when the target operation is triggered aiming at the target object in the target map scene is detected;
and the loading display module is further used for controlling the object resources in the object resource set to be loaded and displayed in the target map scene according to the modified target object list.
13. The apparatus of claim 11, wherein the target application is a network game application, and wherein a server for providing logical processing services for the target application is loaded with the item resource set and the target item list; the device further comprises:
the sending module is used for sending an operation request to the server when detecting that target operation is triggered aiming at a target object in the target map scene; the operation request comprises an identification of the target object;
a receiving module, configured to receive a response message returned by the server for the operation request; the response message comprises indication information used for indicating whether the target object takes effect in the target map scene, wherein the indication information is determined by the server according to the target object list loaded by the server;
and the operation validation judging module is used for determining whether the target operation is valid according to the indication information in the response message.
14. An apparatus, comprising a processor and a memory;
the memory is used for storing a computer program;
the processor is configured to execute the resource loading method of any one of claims 1 to 10 in accordance with the computer program.
15. A computer-readable storage medium for storing a computer program for performing the resource loading method of any one of claims 1 to 10.
CN202010102503.5A 2020-02-19 2020-02-19 Resource loading method, device, equipment and storage medium Active CN111346380B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010102503.5A CN111346380B (en) 2020-02-19 2020-02-19 Resource loading method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010102503.5A CN111346380B (en) 2020-02-19 2020-02-19 Resource loading method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111346380A true CN111346380A (en) 2020-06-30
CN111346380B CN111346380B (en) 2023-08-08

Family

ID=71188680

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010102503.5A Active CN111346380B (en) 2020-02-19 2020-02-19 Resource loading method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111346380B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105025061A (en) * 2014-04-29 2015-11-04 中国电信股份有限公司 Method and server for constructing cloud-end shared game scene
CN106412277A (en) * 2016-09-26 2017-02-15 腾讯科技(深圳)有限公司 Method and apparatus for loading virtual scene
CN106951067A (en) * 2017-02-13 2017-07-14 歌尔科技有限公司 The generation method and equipment of a kind of virtual reality scenario
CN109408750A (en) * 2018-09-26 2019-03-01 中国平安财产保险股份有限公司 Page display method, device, computer equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105025061A (en) * 2014-04-29 2015-11-04 中国电信股份有限公司 Method and server for constructing cloud-end shared game scene
CN106412277A (en) * 2016-09-26 2017-02-15 腾讯科技(深圳)有限公司 Method and apparatus for loading virtual scene
CN106951067A (en) * 2017-02-13 2017-07-14 歌尔科技有限公司 The generation method and equipment of a kind of virtual reality scenario
CN109408750A (en) * 2018-09-26 2019-03-01 中国平安财产保险股份有限公司 Page display method, device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN111346380B (en) 2023-08-08

Similar Documents

Publication Publication Date Title
CN111084983B (en) Cloud game service method, device, equipment and storage medium
US20160275560A1 (en) Server apparatus and server program
CN109413186B (en) Application program updating method, terminal, server and system
US20140351954A1 (en) Providing limited versions of applications
US20170048117A1 (en) Information processing device and method of displaying download progress state
CN101604358B (en) Method, device and system for updating resources
CN109324857B (en) User guide implementation method, device and storage medium
CN106155750A (en) The loading method of a kind of resource file and device
US20170001116A1 (en) Game system, storage control device, and information storage medium
JP6152289B2 (en) Information processing apparatus, terminal system, information processing program, and application update data acquisition method
US20060135230A1 (en) Post-deployment spot creation
CN102779054A (en) Installation treatment method and device of application program as well as server
CN112473144A (en) Game resource data processing method and device
CN108319554B (en) Application function testing method, computer readable storage medium and terminal device
CN112084044B (en) Event processing method in system and related device
JP5132825B1 (en) Game management server device, game management server device program, and terminal device program
CN104850428A (en) Method and device for updating user interface of mobile client
CN112044061B (en) Game picture processing method and device, electronic equipment and storage medium
CN111346380B (en) Resource loading method, device, equipment and storage medium
CN113721936B (en) Application management method, intelligent terminal, device and storage medium
US20210252412A1 (en) Video game page providing information and functionalities based on video game lifecycle and user context
CN106802856B (en) Performance testing method of game application program, server and game application client
US11992776B2 (en) Information processing device and installation method
CN112891952A (en) Data processing method and device, electronic equipment and computer readable storage medium
JP6412667B1 (en) Server, method, and program for providing game

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
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40024761

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant