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

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

Info

Publication number
CN111346380B
CN111346380B CN202010102503.5A CN202010102503A CN111346380B CN 111346380 B CN111346380 B CN 111346380B CN 202010102503 A CN202010102503 A CN 202010102503A CN 111346380 B CN111346380 B CN 111346380B
Authority
CN
China
Prior art keywords
target
resources
map scene
list
resource
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010102503.5A
Other languages
Chinese (zh)
Other versions
CN111346380A (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

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 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 the target application needs to be loaded, a target object list corresponding to the target map scene is obtained, wherein the target object list is used for representing whether object resources in an object resource set take effect in the target map scene or not; and according to the target object list, controlling object resources in the object resource set to be loaded and displayed in the target map scene. The method can reduce the workload of related designers, avoid introducing a large number 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 disclosure relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a storage medium for loading resources.
Background
Today, many applications need to load large-scale map scenes in order to adapt to their own business needs, and in order to provide a user with a richer use experience, some applications further support loading multiple map scenes including different objects. Taking 3D game applications as an example, many 3D game applications can provide players with multiple play modes, and the objects in the map scene that need to be loaded for the different play modes will be different.
At present, the related technology mainly adopts a mode of loading all object resources by dividing a map to support the loading of various map scenes. Specifically, a related designer makes an object resource set for each map scene, wherein the object resource set comprises all object resources required 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 inventors of the present application have studied and found that the above implementation mainly has the following drawbacks: on the one hand, in practical applications, many reusable object resources are often included in multiple different map scenes supported by the same application, for the object resources, related designers need to be repeatedly rearranged and exported when developing respective object resource sets of multiple map scenes, so that the workload of the related designers is increased, and a large number of repeated object resources are introduced. On the other hand, each time a map scene is added, the related device needs to consume more memory to load the object resource set corresponding to the map scene, and a great deal of memory resources are wasted for the related device.
Disclosure of Invention
The embodiment of the application provides a resource loading method, device, equipment and storage medium, which can reduce the workload of related designers, avoid introducing a large number of repeated object resources, and support the loading of a plurality of different 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, the method including:
acquiring an object resource set constructed for a target application; 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 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 or not;
and controlling 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 device, the device comprising:
the first acquisition module is used for acquiring an object resource set constructed for the target application; the object resource set 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 the 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 or not;
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 present application provides an apparatus comprising a processor and a memory:
the memory is used for storing a computer program;
the processor is configured to execute the steps of the resource loading method according to the first aspect described above according to the computer program.
A fourth aspect of the present application provides a computer readable storage medium for storing a computer program for performing the steps of the resource loading method of the first aspect described above.
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.
From the above technical solutions, the embodiments of the present application have the following advantages:
in the resource loading method provided by the embodiment of the application, a terminal device firstly acquires an object resource set constructed for 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 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; and further, according to the target object list, controlling object resources in the object resource set to be loaded and displayed in the target map scene. Compared with the implementation mode in the related art, the method provided by the embodiment of the application only needs to configure a full amount of object resource sets aiming at various map scenes supported by the target application, when related designers configure the object resources aiming at the various map scenes, the related designers do not need to repeatedly rearrange and export the object resources any more, and only configure corresponding object lists aiming at different map scenes, so that the workload of the related designers is reduced, and a large amount of repeated object resources are avoided from being introduced. In addition, when the related equipment loads various map scenes, the whole object resources corresponding to each map scene are not needed to be loaded, and only one object resource set and the object list corresponding to each map scene are needed to be loaded, so that the memory resources required by the related equipment can be greatly reduced.
Drawings
FIG. 1 is a schematic diagram of a deployment and loading manner of object resources in the related art;
fig. 2 is an application scenario schematic diagram of a resource loading method provided in an embodiment of the present application;
FIG. 3 is a flowchart of a resource loading method according to an embodiment of the present disclosure;
FIG. 4 is a schematic diagram of the composition of an exemplary set of object resources provided by embodiments of the present application;
FIG. 5 is an effect diagram of object resource loading display in different map scenes according to an embodiment of the present application;
FIG. 6 is an interactive signaling diagram for verifying validity of a target object according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a first resource loading device according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a second resource loading device according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of a third resource loading device according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of a fourth resource loading device 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 present application solution better understood by those skilled in the art, the following description will clearly and completely describe the technical solution in the embodiments of the present application with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
The terms "first," "second," "third," "fourth" and the like in the description and in the claims of this application and in the above-described figures, if any, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that embodiments of the present application described herein may be implemented in sequences other than those illustrated or otherwise 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.
The related technology mainly adopts a mode of loading all object resources by map division at present, and supports loading of various map scenes. Taking the 3D game application support to load two map scenes as an example, describing the implementation manner in the related art with reference to fig. 1, as shown in fig. 1, a map scene resource library 110 deployed at a client side and a map scene resource library 110 deployed at a server side are stored with a total object resource 101 in a first map scene and a total object resource 102 in a second map scene; when the first map scene and the second map scene need to be loaded, the client loads the full-quantity object resource 101 of the first map scene and the full-quantity object resource 102 of the second map scene in the program memory 120, and the server loads the full-quantity object resource 101 of the first map scene and the full-quantity object resource 102 of the second map scene in the program memory 120.
As a basis for the implementation of the foregoing implementation, the related designer needs to make a complete set of object resources for each map scene accordingly, and although many object resources in different map scenes can be reused, the related designer needs to repeatedly rearrange and export the object resources to configure a full amount of object resources corresponding to another map scene, so that the related designer needs to consume a great deal of time and effort, and also introduces a great deal of repeated object resources. In addition, for the 3D network game, each time a set of full-amount object resources is added, the server side needs to consume about 2GB of memory to store and load the part of object resources, and for the server, each time the set of full-amount object resources is added, the total amount of memory used by the server process is increased by 2GB, the number of processes that can be borne by the server is correspondingly reduced, the number of players that can be borne by the server is correspondingly reduced, and great waste is caused to the memory resources and the deployment cost of the server; for the client, each time the application program adds a set of full object resources, the installation package of the application program is correspondingly increased, and the hard disk space occupied by the application program in the terminal equipment is increased.
In order to solve the problems of the related art, the embodiments of the present application provide a resource loading method, which can effectively reduce the workload required by related designers to configure 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 application includes: and acquiring an object resource set constructed aiming at the 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 plurality of 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. And further, according to the target object list, controlling object resources in the object resource set to be loaded and displayed in the target map scene.
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 aiming at various map scenes supported by the target application, when related designers configure the object resources aiming at various map scenes, the related designers do not need to repeatedly rearrange and export all the object resources, and only configure corresponding object lists aiming at different map scenes, so that the workload of the related designers is reduced, and a large number of repeated object resources are avoided. In addition, when the related equipment loads various map scenes, the whole amount of object resources contained in each map scene are not needed 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 required by the related equipment can be greatly reduced.
It should be understood that the resource loading method provided in the embodiments of the present application may be applied to a terminal device capable of supporting application running, where the terminal device may specifically be a smart phone, a computer, a tablet computer, a personal digital assistant (Personal Digital Assitant, PDA), and so on.
In order to facilitate understanding of the technical solution provided by the embodiments of the present application, an application scenario to which the resource loading method provided by the embodiments of the present application is applicable is described below by taking a target application as an example of a network game application.
Referring to fig. 2, fig. 2 is an application scenario schematic diagram of a resource loading method provided in an 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 is configured to execute the resource loading method provided by the embodiment of the present application, where a target application is running on the terminal device 210; the server 220 is configured to provide a logic processing service for the target application, that is, the server 220 is configured to perform corresponding logic 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, an object resource set constructed for a target application may be obtained while the target application is downloaded, and the object resource set is stored in a hard disk space of itself when the target application is installed, 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 shared by 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 a 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 request server 220 provides a target item list corresponding to the target map scene, and the target item list can characterize whether the item resources in the item resource set are effective in the target map scene. After receiving the object list request message, the server 220 correspondingly acquires a target object list corresponding to the target map scene, and sends the target object list to the terminal device 210 through the network.
After receiving the target object list, the terminal device 210 can 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 a network game application, in order to provide a corresponding logic processing service for an operation triggered by a user in a target map scenario, after the server 220 obtains a target object list, the server 220 also controls the effective state of each object resource in the object resource set loaded by the server in the target map scenario according to the target object list.
It should be understood that the scenario shown in fig. 2 is merely an example, and in practical applications, the target application may be an application supporting loading multiple map scenarios, such as a stand-alone game application, a map navigation application, and so on, in addition to a 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 loading of the object resource in the map scenario, without interaction with the server 220, and the application scenario applicable to the resource loading method provided in the embodiment of the present application is not limited in any way.
The resource loading method provided by the application is described in detail below through embodiments.
Referring to fig. 3, fig. 3 is a flowchart of a resource loading method provided in an embodiment of the present application, which may be applied to the above terminal. As shown in fig. 3, the resource loading method includes the steps of:
step 301: acquiring an object resource set constructed for a target application; the set of item resources includes all item resources in a variety of map scenarios supported by the target application.
When the terminal equipment downloads the target application, the object resource set integrated in the target application installation package can be correspondingly acquired, and when the terminal equipment 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 equipment, so that the object resource set is called when the terminal equipment detects that a user triggers various map scenes in the loading target application, and object resources in the object resource set are loaded into a memory of the terminal equipment.
It should be noted that, the above 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 part, so that there is no repeated object resource. Fig. 4 is a schematic diagram illustrating an exemplary composition of an object resource set, where, assuming that a target application supports three map scenarios, the object resource set constructed for the target application is essentially a union of an object resource 401 in map scenario one, an object resource 402 in map scenario two, and an object resource 403 in map scenario three, and for any two or three of map scenario one, map scenario two, and map scenario three, only one object resource is included in the object resource set.
The object resources in the object resource set essentially refer to resources that are needed to be utilized when the terminal device loads and displays the object. The object resource at least comprises a physical model corresponding to the object, wherein the physical model is determined by parameters of the object in terms of space coordinates, shape proportion, position rotation and the like in a map scene, and can be expressed in a program; the above items refer to physical and environmental elements in a map scene that occupy a certain space, including but not limited to rocks, trees, buildings, and the like. In addition, the object resources in the object resource set deployed on the terminal device side may further include a rendering model, an art map, and the like of the object.
In practical applications, the target application may be a stand-alone application or a network application that needs to acquire services through networking. When the target application is a network application, a server for providing a logical processing service for the target application client also typically needs to acquire an object resource set, and automatically load the object resource set when the server is started to provide relevant services for users of the target application.
It should be noted that, since the server generally does not need to provide a display screen, only provides a logic processing service for a user operation, the object resources in the object resource set deployed at the server end generally only include a physical model of the object, and do not include a rendering model, art map, and the like of the object.
Optionally, when the target application has a new map scene, the terminal device may acquire an updated object resource set, where the updated object resource set includes the new map scene and all object resources in 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, which are different from those in the original map scene, can be added into an 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 equipment 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, when developing a new map scene, the related designer does not need to rearrange and export the reusable object resources in the original map scene, and the related designer only needs to add the new object resources to the original object resource set by using the exported object resources and the new object resources to reconfigure the total object resources corresponding to the new map scene, thus greatly reducing the workload of the related designer.
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 are effective in the target map scene.
When the terminal equipment detects that a user triggers loading of a target map scene supported by the target application, the terminal equipment correspondingly acquires a target object list corresponding to the target map scene, and the target object list can represent whether object resources in the object resource set take effect in the target map scene.
It should be understood that the target map scene may be any one of a plurality of map scenes supported by the target application, and the target object list is an object list corresponding to the target map scene. When developing each map scene supported by the target application, the related designer correspondingly configures an object list corresponding to 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 the related designer configures the set of object resources, a corresponding identifier is typically set for each object resource, where one identifier can uniquely characterize one object resource, three exemplary object list expressions are provided herein:
In the first expression form, the object list records the identification of object resources which are not effective in the corresponding map scene in the object resource set. In the corresponding object list of a certain map scene, the identifiers of all object resources in the object resource set, which are not effective in the map scene, are recorded.
In the second expression form, the object list records the identification of the object resources in the object resource set, which are effective in the corresponding map scene. In the object list corresponding to a certain map scene, the identifiers of all the object resources in the object resource set, which are effective in the map scene, are recorded.
In the third expression form, the object list is recorded with the identification of each object resource in the object resource set in the corresponding map scene and the corresponding logic switch state, wherein the logic switch state corresponding to the object resource is on to indicate that the object resource takes effect in the map scene, and the logic switch state corresponding to the object resource is off to indicate that the object resource does not take effect in the map scene. Namely, in an object list corresponding to a certain map scene, the identification 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 expression forms of the object list may be other expression forms besides the three expression forms, and the application does not specifically limit the expression forms of the object list herein.
In one possible implementation, the terminal device may retrieve a target object list corresponding to the target map scene from its own memory. Specifically, the object lists corresponding to the map scenes supported by the target application may be integrated in an installation package of the target application, and when the terminal device installs the target application, the object lists integrated in the installation package of the terminal device are correspondingly stored in the hard disk space of the terminal device. When the terminal equipment detects that the user triggers loading the target map scene in the target application, the target object list stored in the hard disk space is loaded into the memory, and then the terminal equipment can correspondingly call the target object list corresponding to the target map scene from the memory.
In another possible implementation, the terminal device may obtain a target item list corresponding to the target map scene from the server. When the terminal device detects that the user triggers loading of the target map scene in the target application, the terminal device can generate an object list request message and send the object list request message to a server for providing logic processing service for the target application through a network. After receiving the object list request message, the server searches a target object list corresponding to the target map scene correspondingly, and returns the searched target object list to the terminal equipment through the network, so that the terminal equipment acquires the target object list.
It should be noted that, in the case that the target application is a network application for which the server is required to provide the logic processing service, the terminal device needs to send a target map scene loading notification message or an object 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 knowing that the target application needs to load the target map scene currently, the related server also needs to acquire a target object list corresponding to the target map scene, so as to control the loading of object resources in the target map scene based on the target object list, and provide corresponding logic processing service for the operation triggered by the user in the target map scene based on the object list.
It should be noted that, when the target application has a new map scene, the related designer needs to configure the object list corresponding to the new map scene.
In one possible implementation manner, the related designer may integrate the object list corresponding to the new map scene into an update installation package of the target object, and the terminal device may acquire the object list corresponding to the new map scene integrated in the update installation package by means of updating the target application, and store the object list in the hard disk space of the terminal device, so as to detect that the user triggers the update installation package to call the new map scene.
In another possible implementation manner, the related designer may directly deploy the object list corresponding to the new map scene at the server, and when the server receives the object list request message sent by the terminal device and requests to obtain the object list corresponding to the new map scene, the server sends the object list corresponding to the new map scene to the terminal device through the network.
Step 303: and controlling 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 equipment acquires the target object list, 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 confirmed to be effective in the target map scene according to the target object list, the object resource is loaded and displayed in the target map scene; if the object resource is determined to be not 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 one possible implementation, the terminal device may load all the object resources in the object resource set directly 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 object resources in the object resource set in its memory first; and then, judging whether the object resource is effective in the target map scene according to the target object list aiming at each loaded object resource, if so, displaying the object resource, and if not, not displaying the object resource.
When the object list records the identifiers of the object resources which are not effective in the object map scene in the object resource set, the terminal equipment can judge whether the corresponding identifiers are recorded in the object list aiming at each loaded object resource, if so, the object resource is not displayed, and if not, the object resource is displayed. When the object list records the identifiers of the object resources in the object resource set, the terminal device can judge whether the corresponding identifiers are recorded in the object list for each loaded object resource, if so, the object resource is displayed, and if not, the object resource is not displayed. When the identification of each object resource in the object resource set in the object map scene and the corresponding logic switch state thereof are recorded in the object list, the terminal equipment can judge whether the corresponding logic switch state is on or off according to each loaded object resource, if the corresponding logic switch state is on, the object resource is displayed, and if the corresponding logic switch state is off, the object resource is not displayed.
In practical applications, the display state of the objects in the map scene may change according to the operation of the user, for example, the display state of some objects may change from non-display to display according to the operation of the user; each object resource in the object resource set is loaded in advance, so that when the display state of the subsequent object is changed from non-display to display, the intermediate object resource loading process is omitted, and the loaded object resource is displayed in time. In addition, in some cases, 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 display efficiency of the object resources is ensured.
In another possible implementation manner, after the terminal device acquires the target object list, the terminal device controls 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. Specifically, the terminal device may determine, for each object resource in the object resource set, whether the object resource is validated in the target map scene according to the target object list, if validated, load the object resource in the memory of the terminal device, and display the object resource in the map scene displayed on the interface, and if not validated, not load and display the object resource.
When the object list records the identification of the object resources which are not effective in the object map scene in the object resource set, the terminal equipment can judge whether the corresponding identification is recorded in the object list aiming at each object resource in the object resource set, if so, the object resource is not loaded and displayed, and if not, the object resource is loaded and displayed. When the object list records the identifiers of the object resources in the object resource set, the terminal device can judge whether the corresponding identifiers are recorded in the object list for each object resource in the object resource set, if so, the object resource is loaded and displayed, and if not, the object resource is not loaded and displayed. When the identification of each object resource in the object resource set in the object map scene and the corresponding logic switch state thereof are recorded in the object list, the terminal equipment 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, the object resources in the target map scene can be loaded as required when the terminal equipment loads the object resources, namely, which objects are loaded as required, so that the memory space consumed by loading the object resources can be saved to a certain extent.
In order to facilitate understanding of actual object resource loading effects in map scenes, a game application supporting two geographic scenes is taken as an example, and loading display effects of object resources in different map scenes are described below. 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 pictures shown in the image (a) and the image (b) correspond to the same coordinate place in different map scenes, and the object 501 is loaded and displayed in the map scene shown in the image (a), but the object 501 is not loaded and displayed in the same position in the map scene shown in the image (b).
Optionally, in many application scenarios, the terminal device may further modify the target object list according to an operation triggered by the user on the 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 the target operation is triggered for the target object in the target map scene, the terminal device may modify the target object list according to the target object and the target operation, and 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.
Taking the target application as a shooting game application as an example, when the terminal equipment detects that a game character controlled by a player triggers shooting operation for a certain object in a target map scene, the terminal equipment can correspondingly modify a target object list according to the shooting operation and the object aimed by the shooting operation, specifically, the effective state of the object shot in the target object list can be changed from effective to non-effective, and further, the display of the shot object in the target map scene is canceled according to the modified target object list control.
Of course, in practical application, the terminal device may modify the object resource whose effective state is not effective in the object list into an effective object resource according to the 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 object list.
It should be appreciated that the modification manner for the target object list depends on the actual expression form of the target object list, for example, when the identification of the object resource which is not validated in the target map scene in the object resource set is recorded in the target object list, the identification of the object resource can be added in the target object list for the object resource whose validation state is changed from validation to non-validation, and the identification of the object resource in the target object list can be deleted for the object resource whose validation state is changed from non-validation to validation. For another example, when the object list records the identifiers of the object resources in the object resource set, the object resources in the object map scene can be deleted, and the object resources in the object list can be added. For another example, when the identification of each object resource in the object resource set in the object map scene and the corresponding logic switch state thereof are recorded in the object list, the logic switch state corresponding to the object resource can be switched from on to off for the object resource with the effective state changed from effective to non-effective, and the logic switch state corresponding to the object resource can be switched from off to on for the object resource with the effective state changed from non-effective to effective.
Alternatively, when the target application is a network game application, some users may be unaware of modification of the target application client deployed on the terminal device, such as additional deployment of a plug-in program, etc., in order to more easily win the game, and in order to prevent these operations of the users from affecting fairness of the game, the server for providing the logic processing service for the target application may verify the operations of the users based on the object resource set and the object list loaded by itself.
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 a server, wherein the operation request at least comprises an identifier of the target object; then, receiving a response message returned by the server aiming at the operation request, wherein the response message comprises indication information 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; further, according to the indication information in the response message, whether the triggered target operation is effective or not is judged.
The following describes the above process in detail with reference to the interactive signaling diagram shown in fig. 6, and as shown in fig. 6, after detecting that the user triggers the target operation for the target object in the target map scene, the terminal device sends an operation request to the server, where the operation request at least includes the identifier of the target object; 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 the judging result, and adds the indication information into a response message to be sent to the terminal equipment. After receiving the response message, the terminal equipment judges whether the target operation is effective or not according to the indication information in the response message, if so, the terminal equipment modifies the relevant game parameters based on the target operation, and if not, the terminal equipment prompts the user that the current triggered operation is invalid.
Therefore, the user can be prevented from triggering effective operation on objects which should not exist in the target map scene, cheating of the user game is prevented, and fairness of the game is affected.
It should be noted that, when the target application is a network game application, the method provided in the embodiment of the present application may further utilize the server to modify the target object list according to the operation triggered by the user on the object in the target map scene while verifying whether the target operation is effective, 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, in addition to the identifier of the target object, operation information of the target operation; after the server determines that the target object takes effect in the target map scene according to the loaded target object list, the server can further modify the target object list according to the identification of the target object and the operation information of the target operation, and the modified target object list is also added in the response message and returned to the terminal equipment. After receiving the response message, the terminal device determines whether the target operation is effective according to the indication information therein, and can further control 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 effective.
The implementation manner of the server for judging whether the target object is effective in the target map scene is the same as the implementation manner of the terminal device for judging whether the target object is effective in the target map scene, and details of the implementation manner can be seen from the related content, and details are not repeated here.
It should be understood that, in practical application, the server may not only verify the validity of the target object, but also update the target object list in the manner described above; the server may also perform only the verification operation of the validity of the target object or only the update operation of the target object list according to the actual requirement.
Optionally, the target application may be a multiplayer network game application, while the user uses the target application client to participate in the multiplayer game, the server for providing logic processing service for the target application loads the object resource set and the target object list corresponding to the current game map scene (i.e. the target map scene) accordingly, and the server modifies the target object list accordingly according to the operation triggered by each user in the same game for the object in the target map scene in the preset period, and issues the modified target object list to each terminal device participating in the game. And after the terminal equipment receives the modified target object list issued by the server, controlling 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 multi-player network game application can be perceived by other users in the game, the server can timely modify the target object list corresponding to the game map scene 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 timely perceive the operation triggered by other users in the game.
In the above-mentioned several optional implementations, 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 object list, 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 of the terminal device controlling the object resource loading display 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 according to which the object resource loading display is controlled last time; for a first object resource with the effective state changed from effective to non-effective, the terminal equipment can cancel loading and displaying the first object resource in the target map scene; for a second object resource whose validation state changes from non-validation to validation, the terminal device may display the second object resource in the target map scene.
For the target object list with different expression forms, the terminal equipment can correspondingly judge the change of the effective state of each object resource in different modes. For example, when the object list records the identification of the object resources which are not validated in the object map scene in the object resource set, the terminal device may determine the object resources which are not recorded in the original object list but are recorded in the modified object list as the object resources whose validated state is changed from validated to not validated, and determine the object resources which are recorded in the original object list but are not recorded in the modified object list as the object resources whose validated state is changed from not validated to validated. For another example, when the object list records the identifier of the object resource in the object resource set, the terminal device may determine the object resource recorded in the original object list but not in the modified object list as the object resource whose effective state is changed from effective to non-effective, and determine the object resource recorded in the object list without the original object list but not in the modified object list as the object resource whose effective state is changed from non-effective. For another example, when the target object list records the identifier of each object resource in the object resource set in the target map scene and the corresponding logic switch state thereof, the terminal device may switch the logic switch state from on to off object resources, determine that the effective state is changed from effective to non-effective object resources, switch the logic switch state from off to on object resources, and determine that the effective state is changed from non-effective to effective object resources.
It should be understood that, in practical applications, the terminal device may also control the loading display of the object resources in the target map scene according to the modified target object list in other manners, and the implementation manner of the application is not limited in any way here.
According to the resource loading method provided by the embodiment of the application, only one object resource set is required to be configured for various map scenes supported by the target application, when related designers configure object resources for various map scenes, repeated rearrangement and export of each object resource are not required, and only corresponding object lists are configured for different map scenes, so that the workload of the related designers is reduced, and a large number of repeated object resources are avoided. In addition, when the related equipment loads various map scenes, the whole amount of object resources contained in each map scene are not needed 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 required by the related equipment can be greatly reduced.
In order to facilitate further understanding of the resource loading method provided in the embodiments of the present application, a target application is taken as an example of a network game application, and the resource loading method provided in the embodiments of the present application is described in an overall exemplary manner.
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 equipment detects that a user starts the target application and triggers to start a target playing mode in the target application (the target playing mode corresponds to a target map scene), the terminal equipment sends an object list request message to a server for providing logic processing service for the target application to request the server to provide a target object list corresponding to the target map scene; the server retrieves the pre-stored object list and feeds the object list back to the terminal equipment, and at the same time, the server starts to control the loading of the object resources in the object resource set based on the object list.
The terminal device can load all the object resources in the object resource set in the memory during the period that the terminal device waits for the server to feed back the object list, after the terminal device obtains the object list, the terminal device can further judge whether each object resource loaded by the terminal device takes effect in the object map scene according to the object list, the terminal device correspondingly displays the object in the object map scene aiming at the effective object resource, and the terminal device correspondingly does not display the object in the object map scene aiming at the non-effective object resource.
When the terminal device detects that the user triggers the target operation aiming at the target object in the target map scene, the terminal device can send an operation request to the server, wherein the operation request carries the identification of the target object and the operation information of the target operation. After receiving the operation request, the server can judge whether the target object is effective in the target map scene according to the target object list loaded by the server and the identification of the target object, if so, the server can generate indication information for indicating that the target object is effective, and further correspondingly modify the target object list according to the identification 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 equipment.
After receiving the response message, the terminal device can judge whether the target operation is effective according to the indication information therein, and under the condition of determining that the target operation is effective, the terminal device can further compare the modified target object list in the response message with the original target object list, for the object resource of which the effective state is changed from effective to non-effective, the terminal device can cancel to display the object in the target map scene correspondingly, and for the object resource of which the effective state is changed from non-effective to effective, the terminal device can display the object in the target map scene correspondingly.
The application further provides a corresponding resource loading device for the resource loading method, so that the resource loading method is applied and realized in practice.
Referring to fig. 7, fig. 7 is a schematic structural diagram of a resource loading device 700 corresponding to the resource loading method shown in fig. 3, where the resource loading device 700 includes:
a first obtaining module 701, configured to obtain an object resource set constructed for a target application; the object resource set 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 or not;
and the loading display module 703 is configured to control, according to the target object list, loading and displaying object resources in the object resource set in the target map scene.
Optionally, on the basis of the resource loading device shown in fig. 7, the loading display module 703 is specifically configured to:
Loading all object resources in the object resource set;
and judging whether the object resource is effective in the target map scene according to the target object list aiming at each loaded object resource, if so, displaying the object resource, and if not, not displaying the object resource.
Optionally, on the basis of the resource loading device shown in fig. 7, the loading display module 703 is specifically configured to:
and judging whether each object resource in the object resource set is effective or not according to the target object list, if so, loading and displaying the object resource, and if not, loading and displaying the object resource.
Optionally, referring to fig. 8, fig. 8 is a schematic structural diagram of another resource loading device 800 according to an embodiment of the present application, based on the resource loading device shown in fig. 7. As shown in fig. 8, the resource loading device 800 further includes:
an object list modification module 801, configured to modify, when a triggering target operation for a target object in the target map scene is detected, the target object list according to the target object and the target operation;
The loading display module 703 is further configured to control, according to the modified target object list, loading and displaying object resources in the object resource set in the target map scene.
Optionally, on the basis of the resource loading device shown in fig. 7, the target application is a network game application; referring to fig. 9, fig. 9 is a schematic structural diagram of another resource loading device 900 according to an embodiment of the present application. As shown in fig. 9, the resource loading device 900 further includes:
a sending module 901, configured to send an operation request to a server when detecting that a target operation is triggered for a target object in the target map scene; the operation request includes 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 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 device shown in fig. 9, the operation request further includes operation information of the target operation; the method comprises the steps that when the server determines that the target object is effective in the target map scene, the response message further comprises a modified target object list, and the modified target object list is obtained by modifying the target object list 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, loading display of the object resources in the object resource set in the target map scene.
Optionally, on the basis of the resource loading device shown in fig. 7, the target application is a multiplayer online game application; referring to fig. 10, fig. 10 is a schematic structural diagram of another resource loading device 1000 according to an embodiment of the present application. As shown in fig. 10, the resource loading device 1000 further includes:
a receiving module 1001, configured to receive a modified target object list issued by a server; the modified target object list is obtained by modifying the target object list loaded by the server according to the operation of triggering objects in the target map scene by each user in the same game in a preset period;
The loading display module 703 is further configured to control, according to the modified target object list, loading and displaying object resources in the object resource set in the target map scene.
Optionally, on the basis of the resource loading device 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 the effective state changed from effective to non-effective, canceling loading and displaying the first object resource in the target map scene;
and for a second object resource with the effective state changed from non-effective to effective, uploading and displaying the second object resource in the target map scene.
Optionally, on the basis of the resource loading device shown in fig. 7, an identifier of an object resource, which is not effective in the target map scene, in the object resource set is recorded in the target object list;
or, the object list records the identification of the object resources in the object resource set, which are effective in the object map scene;
or the object list records the identification of each object resource in the object resource set in the object map scene and the corresponding logic switch state thereof, wherein the logic switch state corresponding to the object resource is on to indicate that the object resource takes effect in the object map scene, and the logic switch state corresponding to the object resource is off to indicate that the object resource does not take effect in the object map scene.
Optionally, on the basis of the resource loading device 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 all object resources in the newly added map scene and various map scenes originally supported by the target application.
According to the resource loading device provided by the embodiment of the application, only one object resource set is required to be configured for a plurality of map scenes supported by the target application, when related designers configure object resources for a plurality of map scenes, each object resource does not need to be repeatedly rearranged and exported, and only corresponding object lists are configured for different map scenes, so that the workload of the related designers is reduced, and a large number of repeated object resources are avoided being introduced. In addition, when the related equipment loads various map scenes, the whole amount of object resources contained in each map scene are not needed 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 required by the related equipment can be greatly reduced.
The embodiment of the application also provides a device for controlling resource loading, which can be specifically a terminal device, and the terminal device provided by the embodiment of the application will be described 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 portions related to the embodiments of the present application are shown, and specific technical details are not disclosed, please refer to the method portions of the embodiments of the present application. The terminal can be any terminal equipment including a mobile phone, a tablet personal computer, a personal digital assistant (English full name: personal Digital Assistant, english abbreviation: PDA), a Sales terminal (English full name: point of Sales, english abbreviation: POS), a vehicle-mounted computer and the like, taking the terminal as a smart mobile phone as an example:
fig. 11 is a block diagram illustrating a part of a 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 (wireless fidelity, wiFi) module 1170, processor 1180, and power supply 1190. Those skilled in the art will appreciate that the smartphone structure shown in fig. 11 is not limiting of the smartphone and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
The memory 1120 may be used to store software programs and modules, and the processor 1180 executes various functional applications and data processing of the smartphone by executing 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 for 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, phonebooks, etc.) created according to the use of the smart phone, etc. In addition, 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 connects various parts of the entire smart phone using various interfaces and lines, and performs 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 performing overall monitoring of the smart phone. In the alternative, processor 1180 may include one or more processing units; preferably, the processor 1180 may integrate an application processor and a modem processor, wherein the application processor primarily handles operating systems, user interfaces, applications, etc., and the modem processor primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the 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 for a target application; 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 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 or not;
and controlling 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 perform steps of any implementation of the resource loading method provided in the embodiments of the present application.
The embodiments of the present application further provide a computer readable storage medium storing a computer program for executing any one of the resource loading methods described in the foregoing embodiments.
The present embodiments also provide a computer program product comprising instructions which, when run on a computer, cause the computer to perform any one of the implementations of a resource loading method described in the foregoing respective embodiments.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods may be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown 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 may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, including several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: u disk, mobile hard disk, read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic disk or optical disk, etc. various media for storing computer program.
It should be understood that in this application, "at least one" means one or more, and "a plurality" means two or more. "and/or" for describing the association relationship of the association object, the representation may have three relationships, for example, "a and/or B" may represent: only a, only B and both a and B are present, wherein a, B may be singular or plural. The character "/" generally indicates that the context-dependent object is an "or" relationship. "at least one of" or the like means any combination of these items, including any combination of single item(s) or plural items(s). 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 merely for illustrating the technical solution 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 scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the corresponding technical solutions.

Claims (11)

1. A method of resource loading, the method comprising:
acquiring an object resource set constructed for a target application; the object resource set comprises all object resources in a plurality of map scenes supported by the target application; the target application is a multiplayer online game application; the object resource set comprises all object resources in a plurality of map scenes supported by the target application, specifically, the object resource set comprises object resources shared in the plurality of map scenes supported by the target application and object resources specific to each map scene in the plurality of map scenes, and the same object resources in the object resource set only comprise one part;
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 or not; the object list is recorded with the identification of each object resource in the object resource set in the object map scene and the corresponding logic switch state thereof, wherein the logic switch state corresponding to the object resource represents that the object resource takes effect in the object map scene, and the logic switch state corresponding to the object resource represents that the object resource does not take effect in the object map scene;
According to the target object list, object resources in the object resource set are controlled to be loaded and displayed in the target map scene;
when triggering target operation aiming at a target object in the target map scene is detected, 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 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;
determining whether the target operation is effective or not according to the indication information in the response message;
the operation request also comprises operation information of the target operation; the method comprises the steps that when the server determines that the target object is effective in the target map scene, the response message further comprises a modified target object list, and the modified target object list is obtained by modifying the target object list according to the identification of the target object and the operation information of the target operation;
According to the modified target object list, controlling object resources in the object resource set to be loaded and displayed in the target map scene;
receiving a modified target object list issued by a server; the modified target object list is obtained by modifying the target object list loaded by the server according to the operation of triggering objects in the target map scene by each user in the same game in a preset period;
and controlling object resources in the object resource set to be loaded and displayed in the target map scene according to the modified target object list.
2. The method of claim 1, wherein the controlling the item resources in the set of item resources to be displayed on the target map scene according to the target item list comprises:
loading all object resources in the object resource set;
and judging whether the object resource is effective in the target map scene according to the target object list aiming at each loaded object resource, if so, displaying the object resource, and if not, not displaying the object resource.
3. The method of claim 1, wherein the controlling the item resources in the set of item resources to be displayed on the target map scene according to the target item list comprises:
and judging whether each object resource in the object resource set is effective or not according to the target object list, if so, loading and displaying the object resource, and if not, loading and displaying the object resource.
4. The method according to claim 1, wherein the method further comprises:
when triggering target operation aiming at a target object in the target map scene is detected, modifying the target object list according to the target object and the target operation;
and controlling 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 or 4, wherein controlling the object resources in the object resource set to be 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 the effective state changed from effective to non-effective, canceling loading and displaying the first object resource in the target map scene;
and for a second object resource with the effective state changed from non-effective to effective, uploading and displaying the second object resource in the target map scene.
6. The method of claim 1, wherein the target item list records therein an identification of item resources in the set of item resources that are not active in the target map scene;
or, the object list records the identification of the object resources in the object resource set, which are effective in the target map scene.
7. The method of claim 1, wherein when there is a new map scene, 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.
8. A resource loading device, the device comprising:
The first acquisition module is used for acquiring an object resource set constructed for the target application; the object resource set 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 the 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 or not; the target application is a multiplayer online game application; the object resource set comprises all object resources in a plurality of map scenes supported by the target application, specifically, the object resource set comprises object resources shared in the plurality of map scenes supported by the target application and object resources specific to each map scene in the plurality of map scenes, and the same object resources in the object resource set only comprise one part;
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; the object list is recorded with the identification of each object resource in the object resource set in the object map scene and the corresponding logic switch state thereof, wherein the logic switch state corresponding to the object resource represents that the object resource takes effect in the object map scene, and the logic switch state corresponding to the object resource represents that the object resource does not take effect in the object map scene;
The sending module is used for sending an operation request to a server when detecting that a target operation is triggered for a target object in the target map scene; the operation request includes an identification of the target object; the operation request also comprises operation information of the target operation;
the receiving module is used for receiving a response message returned by the server for the operation request; the response message comprises indication information 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; the method comprises the steps that when the server determines that the target object is effective in the target map scene, the response message further comprises a modified target object list, and the modified target object list is obtained by modifying the target object list according to the identification of the target object and the operation information of the target operation;
the operation validation judging module is used for determining whether the target operation is validated according to the indication information in the response message;
the loading display module is further used for controlling object resources in the object resource set to be loaded and displayed in the target map scene according to the modified target object list;
The receiving module is used for receiving the modified target object list issued by the server; the modified target object list is obtained by modifying the target object list loaded by the server according to the operation of triggering objects in the target map scene by each user in the same game in a preset period;
and the loading display module is also 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.
9. The apparatus of claim 8, wherein the apparatus further comprises:
the object list modification module is used for modifying the object list according to the object and the object operation when the object operation triggered by the object in the object map scene is detected;
the loading display module is further configured to control, according to the modified target object list, loading display of object resources in the object resource set in the target map scene.
10. An apparatus comprising a processor and a memory;
The memory is used for storing a computer program;
the processor is configured to perform the resource loading method of any one of claims 1 to 7 according to the computer program.
11. A computer readable storage medium for storing a computer program for executing the resource loading method according to any one of claims 1 to 7.
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 CN111346380A (en) 2020-06-30
CN111346380B true 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
CN111346380A (en) 2020-06-30

Similar Documents

Publication Publication Date Title
CN111084983B (en) Cloud game service method, device, equipment and storage medium
CN110898428B (en) Multi-virtual object interaction method, device, server and storage medium
US8612967B1 (en) Loading branded media outside system partition
US20160275560A1 (en) Server apparatus and server program
CN110333947B (en) Method, device, equipment and medium for loading subcontracting resources of game application
US20170048117A1 (en) Information processing device and method of displaying download progress state
US20130339937A1 (en) Dynamic application management
CN103778211B (en) The language switching method and device of game of mobile terminal software
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
CN111214828A (en) Game running method, device, equipment, medium and cloud game platform
US20170168807A1 (en) Method and electronic device for updating application program
CN108319554B (en) Application function testing method, computer readable storage medium and terminal device
US11024129B2 (en) Control program, control method, and computer
CN110947178A (en) Game switching method, electronic device and storage medium
CN112473144A (en) Game resource data processing method and device
CN106250536B (en) Method, device and system for setting space page background
CN111346380B (en) Resource loading method, device, equipment and storage medium
JP2007038011A (en) System and method for on-line flash game provision, method for providing web page for performing flash game, storage medium recorded with method performing program and web server providing web page
KR20230006518A (en) Skill selection method and apparatus for virtual objects, and devices, media and program products
US20120231880A1 (en) Data Access Management Method and Data Access Management System
JP6979803B2 (en) Information processing system, information processing device, information processing program, and information processing method
CN114327675B (en) Method and related device for starting mini-game application
CN112328292B (en) Virtual resource processing method and device, storage medium and electronic equipment
US11628372B2 (en) Video game page providing information and functionalities based on video game lifecycle

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