CN111408142B - Method and device for determining object with association relationship, medium and electronic equipment - Google Patents

Method and device for determining object with association relationship, medium and electronic equipment Download PDF

Info

Publication number
CN111408142B
CN111408142B CN202010374017.9A CN202010374017A CN111408142B CN 111408142 B CN111408142 B CN 111408142B CN 202010374017 A CN202010374017 A CN 202010374017A CN 111408142 B CN111408142 B CN 111408142B
Authority
CN
China
Prior art keywords
sub
resources
configuration
determining
objects
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
CN202010374017.9A
Other languages
Chinese (zh)
Other versions
CN111408142A (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.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network 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 Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN202010374017.9A priority Critical patent/CN111408142B/en
Publication of CN111408142A publication Critical patent/CN111408142A/en
Application granted granted Critical
Publication of CN111408142B publication Critical patent/CN111408142B/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/70Game security or game management aspects
    • A63F13/77Game security or game management aspects involving data related to game devices or game servers, e.g. configuration data, software version or amount of memory
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/80Special adaptations for executing a specific game genre or game mode
    • A63F13/822Strategy games; Role-playing games
    • 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/80Special adaptations for executing a specific game genre or game mode
    • A63F13/825Fostering virtual characters
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/80Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game specially adapted for executing a specific type of game
    • A63F2300/807Role playing or strategy games
    • 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
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Abstract

The disclosure relates to the technical field of data processing, and provides a method and a device for determining an object with an association relationship, a computer-readable storage medium and electronic equipment. The method comprises the following steps: acquiring a plurality of sub-objects forming a first object; determining configuration resources of each sub-object to obtain a first relation table which is mapped to the configuration resources by the sub-objects; reversely mapping the first relation table to obtain a second relation table about mapping of the configuration resource to the sub-object; acquiring updated resources of the first object, and determining target sub-objects corresponding to the updated resources according to the second relation table; and obtaining a second object containing the target sub-object to obtain the object with the association relation with the first object. According to the technical scheme, the accuracy and the efficiency of determining the object with the association relation can be effectively improved, the testing range can be effectively shortened, and the testing efficiency can be improved.

Description

Method and device for determining object with association relationship, medium and electronic equipment
Technical Field
The present disclosure relates to the field of data processing technologies, and in particular, to a method for determining an object having an association relationship, a device for determining an object having an association relationship, a computer-readable storage medium, and an electronic device.
Background
The same resource may be configured between different virtual objects in the game, and thus, there is an association relationship between virtual objects configured with the same resource. In the existing game, the variety of the possible resources is complex, and the number of virtual objects referencing the same configuration resources is also large. Meanwhile, the association relationship between different kinds of resources is complex. Thus causing that it is not easy to determine virtual objects having an association relationship with each other. For example, after an art resource of a certain virtual object (such as fashion) is updated, other sets of fashion with association relationship are affected.
In the prior art, when testing various virtual resources in a game in order to ensure the normal running of the game, objects with association relations cannot be accurately and efficiently determined, so that the testing efficiency is low.
It should be noted that the information disclosed in the above background section is only for enhancing understanding of the background of the present disclosure and thus may include information that does not constitute prior art known to those of ordinary skill in the art.
Disclosure of Invention
The disclosure aims to provide a method and a device for determining an object with an association relationship, a computer-readable storage medium and electronic equipment, so as to improve the accuracy and efficiency of determining the object with the association relationship at least to a certain extent, and further improve the test efficiency.
Other features and advantages of the present disclosure will be apparent from the following detailed description, or may be learned in part by the practice of the disclosure.
According to a first aspect of the present disclosure, there is provided a method for determining an object having an association relationship, including:
acquiring a plurality of sub-objects forming a first object;
determining configuration resources of each sub-object, and obtaining a first relation table which is mapped to the configuration resources by the sub-objects;
reversely mapping the first relation table to obtain a second relation table which is mapped to the sub-object by the configuration resource;
acquiring updated resources of the first object, and determining a target sub-object corresponding to the updated resources according to the second relation table;
and obtaining a second object containing the target sub-object to obtain objects with association relations with the first object.
In some embodiments of the disclosure, based on the foregoing aspect, after obtaining the second object including the target sub-object, the method further includes:
determining to generate a test instruction for the object identification of the second object, and testing the second object according to the test instruction.
In some embodiments of the present disclosure, based on the foregoing solution, determining to generate the test instruction for the object identifier of the second object includes:
Acquiring a preset template of a test instruction, and taking an object identifier of the second object as an instruction parameter;
and filling the instruction parameters into the preset template to obtain an object identification generation test instruction of the second object.
In some embodiments of the present disclosure, based on the foregoing scheme, obtaining a plurality of sub-objects that make up the first object includes:
and determining the combination relation of a plurality of sub-objects forming the first object according to the unique object identification of the first object to obtain a plurality of sub-objects forming the first object.
In some embodiments of the present disclosure, based on the foregoing scheme, determining a configuration resource of each sub-object, and obtaining a first relationship table for mapping the sub-object to the configuration resource includes:
respectively acquiring configuration resources referenced by each sub-object;
classifying the configuration resources to obtain a plurality of types of configuration resources;
and aiming at the current sub-object, acquiring the type of the configuration resource referenced by the current sub-object, and obtaining a first relation table reflecting the relation between the sub-object and the configuration resources of the types.
In some embodiments of the present disclosure, based on the foregoing scheme, obtaining the updated resource of the first object includes:
Comparing the resource information of the pre-update version of the first object with the resource information of the post-update version of the first object to determine a target type corresponding to the difference resource information, thereby obtaining the updated resource of the first object and the type of the updated resource.
In some embodiments of the disclosure, based on the foregoing, the first object and the second object are virtual fashion; wherein:
the sub-objects include one or more of the following information: apparel, headwear, back decoration and pendants; the type of configuration resource of the sub-object includes one or more of the following information: model resources, material resources, map resources, animation resources, and special effects resources.
According to a second aspect of the present disclosure, there is provided a determination apparatus of an object having an association relationship, the apparatus including: the system comprises an acquisition module, a first relation determination module and a second relation determination module. Wherein:
the acquisition module is configured to acquire a plurality of sub-objects forming a first object;
the first relation determining module is configured to determine configuration resources of each sub-object, and obtain a first relation table which is mapped to the configuration resources by the sub-objects; the method comprises the steps of,
The second relation determining module is configured to reversely map the first relation table to obtain a second relation table of the configuration resource mapping to the sub-object;
the acquisition module is further configured to acquire updated resources of the first object, and determine a target sub-object corresponding to the updated resources according to the second relation table; and obtaining a second object containing the target sub-object to obtain an object with an association relation with the first object.
According to a third aspect of the present disclosure, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the method for determining an object having an association relationship as described in the first aspect in the above embodiment.
According to a fourth aspect of embodiments of the present disclosure, there is provided an electronic device, comprising: a processor; and a storage device for storing one or more programs, which when executed by the one or more processors, cause the one or more processors to implement the method for determining objects having an association relationship as described in the first aspect in the above embodiments.
As can be seen from the foregoing technical solutions, the method for determining an object with an association relationship, the device for determining an object with an association relationship, and the computer-readable storage medium and the electronic device for implementing the method for determining an object with an association relationship in the exemplary embodiments of the present disclosure have at least the following advantages and positive effects:
in some embodiments of the present disclosure, a plurality of sub-objects forming a first object are first obtained, and configuration resources of each sub-object are determined, so as to obtain a first relationship table for mapping the sub-objects to the configuration resources. The first relationship table is mapped reversely to obtain a second relationship table about mapping of the configuration resource to the sub-object. Further, updated resources of the first object are obtained, and a target sub-object corresponding to the updated resources is determined according to the second relation table. And obtaining a second object containing the target sub-object, thereby obtaining the object with the association relation with the first object. Therefore, based on the mapping relation between the sub-object and the configuration resource, the technical scheme can accurately position the target sub-object related to the updated resource, thereby effectively reducing the test range. And finally, accurately acquiring the object promotion with the association relation with the first object to determine the second object with the association relation. Therefore, the technical scheme can effectively improve the accuracy and efficiency of determining the object with the association relation, and further improve the testing efficiency.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure. It will be apparent to those of ordinary skill in the art that the drawings in the following description are merely examples of the disclosure and that other drawings may be derived from them without undue effort.
FIG. 1 is a flow chart illustrating a method of determining objects having an association relationship in an exemplary embodiment of the present disclosure;
fig. 2 is a flowchart illustrating a method of determining an object having an association relationship in another exemplary embodiment of the present disclosure;
FIG. 3 illustrates a directory structure diagram of fashion resources in an exemplary embodiment of the present disclosure;
FIG. 4 illustrates a directory structure diagram of fashion resources in another exemplary embodiment of the present disclosure;
fig. 5 is a schematic diagram showing the structure of a determining apparatus of an object having an association relationship in an exemplary embodiment of the present disclosure;
FIG. 6 illustrates a schematic diagram of a computer storage medium in an exemplary embodiment of the present disclosure; the method comprises the steps of,
Fig. 7 shows a schematic structural diagram of an electronic device in an exemplary embodiment of the present disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. However, the exemplary embodiments may be embodied in many forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of the example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the present disclosure. One skilled in the relevant art will recognize, however, that the aspects of the disclosure may be practiced without one or more of the specific details, or with other methods, components, devices, steps, etc. In other instances, well-known technical solutions have not been shown or described in detail to avoid obscuring aspects of the present disclosure.
The terms "a," "an," "the," and "said" are used in this specification to denote the presence of one or more elements/components/etc.; the terms "comprising" and "having" are intended to be inclusive and mean that there may be additional elements/components/etc. in addition to the listed elements/components/etc.; the terms "first" and "second" and the like are used merely as labels, and are not intended to limit the number of their objects.
Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus a repetitive description thereof will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities.
In an embodiment of the present disclosure, a method for determining an object having an association relationship is provided first, which overcomes the drawbacks existing in the prior art at least to some extent. The technical scheme of the embodiment of the method of the present disclosure is described in detail below:
fig. 1 is a flowchart illustrating a method for determining an object having an association relationship in an exemplary embodiment of the present disclosure. Specifically, referring to fig. 1, the method shown in this embodiment includes:
step S110, a plurality of sub-objects forming a first object are acquired;
step S120, determining configuration resources of each sub-object, and obtaining a first relation table which is mapped to the configuration resources by the sub-objects;
step S130, reversely mapping the first relation table to obtain a second relation table of mapping the configuration resource to the sub-object;
step S140, acquiring updated resources of the first object, and determining a target sub-object corresponding to the updated resources according to the second relationship table; the method comprises the steps of,
Step S150, obtaining a second object containing the target sub-object, and obtaining objects with association relation with the first object.
In the technical solution provided in the embodiment shown in fig. 1, a plurality of sub-objects forming a first object are first obtained, and configuration resources of each sub-object are determined, so as to obtain a first relationship table about mapping of the sub-objects to the configuration resources. The first relationship table is mapped reversely to obtain a second relationship table about mapping of the configuration resource to the sub-object. Further, updated resources of the first object are obtained, and a target sub-object corresponding to the updated resources is determined according to the second relation table. And obtaining a second object containing the target sub-object, thereby obtaining the object with the association relation with the first object. Therefore, based on the mapping relation between the sub-object and the configuration resource, the technical scheme can accurately position the target sub-object related to the updated resource, thereby effectively reducing the test range. And finally, accurately acquiring the object promotion with the association relation with the first object to determine the second object with the association relation. Therefore, the technical scheme can effectively improve the accuracy and efficiency of determining the object with the association relation, and further improve the testing efficiency.
The implementation of the steps in the example shown in fig. 1 is described in detail below:
in an exemplary embodiment, the first object and the second object may be virtual fashion items of a character in a game. In order for a character to have an exquisite, toront-like display effect after wearing, each set of fashion clothing may be divided into a plurality of constituent parts, such as apparel, headwear, back-ornaments, and pendants, to highlight character features by sub-objects of different colors, shapes, or sizes. That is, the above sub-objects include one or more of the following information: apparel (e.g., blouse, coat, etc.), headwear (e.g., hat, hair, etc.), back decoration (e.g., mantles, wings, etc.), and pendants (e.g.,:).
Then in step S110, a plurality of sub-objects constituting the first object may be acquired, which may be a plurality of parts of the set of fashion items.
The specific embodiment of step S110 may be that, according to the unique object identifier of the first object, a combination relationship of a plurality of sub-objects forming the first object is determined, so as to obtain a plurality of sub-objects forming the first object. By way of example, table 1 shows a time-pack combination table showing the set of fashion items and their object identifications, and sub-objects making up the set of fashion items and their respective corresponding identifications:
TABLE 1
Referring to table 1, each set of time-wear has a unique identification (i.e., object identification or object Id) at the server side, and each child object also has a unique identification (i.e., child object identification, resource Id or equipment Id) at the server side, respectively. Specifically, the combination relation of the component parts (i.e., the sub-objects) corresponding to the fashion can be determined according to the unique identification of the fashion by looking up the preset Id combination relation table. For example, the Id of the object of the fashion is "600009", and the sub-object combination and the equipment Id corresponding to the fashion can be determined by looking up the preset Id combination relation table as follows: headwear "4155", back trim "6285", apparel "143" and pendant "125". It can be seen that after the combination relationship is determined, a plurality of sub-objects that can compose the first object are obtained.
In an exemplary embodiment, the fashion composition table may be expressed in an Excel format for convenience of user reading. Furthermore, in order to facilitate the test program to acquire the related data, the related data can be guided into a Python format, and then the computer program can obtain the sub-object combination relation in each set of fashion by traversing the fashion combination table in the Python format.
With continued reference to FIG. 1, the configuration resources for each child object are determined in step S120. In order to bring a realistic and vivid visual effect to the player, different resources need to be configured for each sub-object. Illustratively, the sub-object headwear of the set of fashion items references the A1 resource, the B2 resource, and the C resource; the child object "apparel" of the set refers to the A2 resource as well as the C resource, and so on.
In an exemplary embodiment, the configuration resources referenced by the child objects of each fashion are recorded by a fashion configuration table. The configuration resources referenced by the various child objects in each set of fashion may be determined by parsing the fashion combination table and assembling the device table in time. Thereby yielding a first relationship table for the mapping of sub-objects to configuration resources.
In an exemplary embodiment, to improve accuracy of the resource reference relationship, the configuration resources may be classified according to suffix names of the configuration resources, so as to obtain multiple types of configuration resources. Such as: configuration resources can be divided into the following categories: model resources, material resources, map resources, animation resources, and special effects resources.
Wherein, model resource: the method is used for describing related information such as vertex and skin data of the 3D model; material resources: a loader file (a file of code that can be run on the GPU) for describing some rendering parameters when the model is rendered; mapping resources: an appearance texture representation for describing the model; animation resources: key frame animation information for describing a bone skinning animation; special effect resource: a series of action manifestations of the model will be described.
Meanwhile, model resources, map resources and special effect resource information respectively referenced by sub-objects of each fashion are recorded on the inner surface of the fashion configuration table. And the material resources and animation resources referenced by each sub-object can be determined through the model resources, so that all model resources, material resources, map resources, animation resources, special effect resources and the like used in each set of time are calculated. Further, the first relationship table may be determined by the resource Id of the child object and the resource type referenced by the child object.
With continued reference to FIG. 1, in step S130, the first relationship table is reverse mapped to obtain a second relationship table for mapping configuration resources to sub-objects.
In an exemplary embodiment, all the model resources, material resources, map resources, animation resources, special effects resources and other types of configuration resources referenced by the set of fashion can be determined according to the first relation table. And then carrying out reverse mapping on the first relation table to obtain a second relation table which is mapped to the sub-object by the configuration resource. I.e. to determine to record all the time-slots sub-objects to which each of the above-mentioned classes of configuration resources are referenced. For example, in the first relationship list, the headwear a of the fashion M and the pendant B of the fashion N both refer to the C resource, and in the second relationship list obtained by reverse mapping, the C resource may be mapped to the headwear a of the fashion M and the pendant B of the fashion N.
Therefore, according to each configuration resource in the first object, other objects with association relation with the first object are accurately positioned. Further, in the game test process, since not all sub-objects in the first object are updated with resources, it is further necessary to locate updated configuration resources by the following embodiments, and accurately locate the associated second object according to the updated configuration resources. Therefore, the range of the related objects is effectively reduced, namely, the number of the test objects is effectively reduced, and the test efficiency is further improved.
Specifically, in step S140, updated resources of the first object are obtained. For example, the difference between the version of the first object and the version of the first object may be compared to obtain the target type corresponding to the difference resource information, so as to obtain the updated resource of the first object and the type of the updated resource.
Specifically, a version control software system svn (Subversion for short) is utilized to obtain an art resource modification content list, 3D resource list information of each version, such as paths of each resource and CRC (Cyclic Redundancy Check for short, namely cyclic redundancy check; CRC is a most commonly used error checking check code in the field of data communication, specifically, a hash function of a fixed bit verification code is generated according to computer file data), the version number of svn is stored in a file form, then the current week version resource list information is calculated, and CRC comparison is carried out with the resource list information stored in the previous week version, so that an art resource modification list of the current week version is obtained. Based on the classification of the art resource, updated resources of the first object and the type of updated resources are appreciated.
Further, the second relation table contains the mapping relation between the configuration resource of each type and the fashion sub-object. Therefore, according to the second relation table, the target sub-object corresponding to each updated resource can be determined. And in step S150: and obtaining a second object containing the target sub-object to obtain objects with association relations with the first object.
In an exemplary embodiment, the second object including the target sub-object is obtained through a fashion combination table, so that the object having an association relationship with the first object is obtained. Further, a second object associated with the updated resource in the first object is also determined.
In an exemplary embodiment, determining to generate a test instruction for the object identifier of the second object, and testing the second object according to the test instruction.
In an exemplary embodiment, the preset templates of the fashion test instruction format are consistent, except that the instruction parameters corresponding to different fashion are different.
In this embodiment, a preset template of the test instruction may be obtained first, and the object identifier of the second object may be used as an instruction parameter. And filling the instruction parameters into the preset template to obtain an object identification generation test instruction of the second object. Thereby automatically generating corresponding fashion test instructions. Similarly, the determination manner of the test instruction of the first object is the same, and is not described herein.
In an exemplary embodiment, fig. 2 is a flowchart illustrating a method for determining an object having an association relationship in another exemplary embodiment of the present disclosure. Specifically, referring to fig. 2, the method shown in this embodiment includes steps S210-S270.
In step S210, a part combination relationship of the target fashion is generated, and the parts include: one or more of headwear, clothing, back decoration and hanging parts. The target fashion contains updated art resources and requires testing of fashion related to the updated resources.
In step S220, configuration resources referenced by each part in the target fashion are calculated, where the configuration resources include one or more of model resources, texture resources, map resources, animation resources, and special effects resources. The specific functions of the various types of configuration resources are described in detail in the above embodiments, and are not described herein.
In an exemplary embodiment, reference is made to a directory structure 300 for fashion resources shown in FIG. 3. The configuration resources referenced by each location in the target fashion can be determined based on the directory structure of the fashion resources and the contents thereof. Wherein:
1. gate directory: storing a category_info.xml file; specifically, in order to facilitate the file and improve the modification efficiency, the discrete xml file can be split from the category_info.xml file according to different game roles, body types and other factors (as shown in fig. 4).
Illustratively, the role factors are as follows: xys (Xiaoyao), jxk (swordlike), qqj (pretty thousand gold) and fyn (Feiyan woman), and the like, and body type factors such as: man01 (men type 1), man02 (men type 2), man03 (men type 3), man04 (men type 4), man01 (women type 1), and man02 (women type 2) are respectively configured with one discrete file for different roles and different body types, and the discrete file naming is combined according to the node id attribute-node tag, and referring to fig. 4, such as 1-xs. Xml, 2-jxk. Xml, and the like.
1.1, wherein, with regard to category_info.xml, introduction:
the 3D fashion resource may always contain 6 body types: male body type: man01, man02, man03, man04; female body type: woman01, woman02; one body type represents a set of bone trees, and the bone trees of different body types are different; each body type has a base.gim, called the body model, that is, the main gim resource (model file storage format for storing information about 3d model vertices and skin data, etc.) used to construct model objects, namely the first gim resource, and a model may be composed of multiple gim resources. The rest sub_mesh model is added to the model in a direct add_mesh mode, for example, an addon 'pendant' is used as a separate model, and is hung on a certain hanging point of the character model.
1.2, more specifically, description about man01 body type:
the "id" is used for indicating the character identification cataid, different characters have corresponding cataid, and the cata information of the character configures part position information used when a model of the character is created;
configuration information of which merging map rule is used is represented by a 'tex_part_table_name';
the body gim resource of the body type is represented by "default_model_path", which is used to construct the main gim of the model object;
The default_tex_name is adopted to indicate which merging map resource is used by the base.gim, and the base corresponds to the map path corresponding to the child node base of texes in the above map. Because multiple roles may share a single body type, the corresponding merge maps for the body types that may be used by different roles are not the same;
recording the original mapping resources of all the possible used merging mapping of the body type by adopting a texes node;
1.3, regarding "part_mutexes" node:
the part_mutexes node records all part information of the body type, such as addon, armor, back, chest, head, hand, leg; part represents each part of the body, and one character is formed by combining a main body base.gim+a plurality of parts; in addition, a plurality of mutually exclusive sub-parts are defined in each part, and because the body type is applicable to a plurality of roles, different sub-parts can be created for different roles: each sub part occurs mutually exclusively, that is, sub armor below armor only exists one in one role, and a plurality of sub armors do not occur at the same time; each sub part corresponds to gim resources of the corresponding part, and the part is composed of submeshes of the model.
Wherein, addons node: some pieces of pendant information of the fashion are configured, the pendant is different from part, part is a sub mesh belonging to the body type, and the addon pendant is actually an independent model and is only hung on a certain hanging point of the character model.
1.4, model resource composition:
for gim resources corresponding to a complete model, a plurality of sub-meshes are defined in the model, wherein the sub-meshes represent sub-grids, which is equivalent to splitting the grid of the model into a plurality of sub-grids;
the sub-mesh at different positions is combined into a plurality of gim to be output, namely one part position corresponds to one gim;
these part correspondences gim belonging to body type are all the same as the skeletal tree of body type base.
1.5, role gate information introduction:
the cate attribute represents the body type used by the current role;
anim node: the action mapping relation is that when the zznxm role plays an attock action, the corresponding real gis action name is attock_zznxm; because in script layer logic, the playing attack logic is used for all roles, but the actual actions of each role are different, so that the mapping relation is needed;
default_mutex node: representing the parts used when the current character die, which are all well defined in body type.
2. Effect directory: the method comprises an equip weapon special effect resource file, various files reflecting effect effects and a loader code.
2.1, equiv_db.xml description:
an "id" is used to denote an equipment id, such as "458895", as a proprietary id (the proprietary id identifies that this equipment can only be worn by a particular persona). Wherein, the cataid corresponding to the exclusive number can be obtained by 458895> > 16=7; the equivid is obtained with 458895&0 xffff=143; that is, this Equip configuration corresponds to a role wear 143 fashion with a cateid of 7; and 143 is the fashion resource number configured in the fashion table; specifically, the table is shown in a fashion combination table shown in table 1.
2.2, gis _map.xml description:
gis _map.xml records the actions used by each 3D model, the directory in which the animation is located, and the initial default animation actions, etc.
3. Mesh directory: the method comprises a model resource file, a material resource file and an animation resource file;
wherein, the Meies node: part information (i.e., sub-object information/part information) used for configuring the set of time-wear, and map information.
4. Texture directory: including common wrapper resource files, color separation wrapper resource files, and the like.
Wherein, texes node: the position map information which needs to be merged and updated in the time-packed merge map is configured.
In step S230, a first relationship table reflecting the reference relationship between "location-configuration resources" is determined, and a second relationship table reflecting the referenced relationship between "configuration resources-locations" is mapped reversely to the first relationship table.
In step S240, a list of art resource modification contents in the target fashion is acquired. The specific embodiment may refer to the specific embodiment of step S140, which is not described herein.
In step S250, a related fashion having an association relationship with the modified resource in the target fashion is determined according to the modified content list and the second relationship table. The specific embodiment may refer to the specific embodiment of step S150, which is not described herein.
In step S260, a test instruction for each set of related fashion and a test instruction for a target fashion are determined, and a test is performed according to the test instructions. And, in step S270, the test result and feedback are counted.
Illustratively, a statistics is generated in which all relevant fashion items affected by the modification of the art asset in the target fashion item are recorded, as well as which assets are specifically modified per set of fashion items. And meanwhile, the method can also comprise a test instruction for each set of fashion and a test result corresponding to each set of fashion. This statistics may also be fed back, for example, in the form of mail or chat notification messages.
According to the technical scheme, the testing efficiency can be effectively improved, related fashion possibly influenced can be automatically analyzed according to the modified content of the artistic 3D fashion resource, so that testing related personnel can conduct targeted testing according to the result, and content of some artistic mismodification or missubmission can be found according to the result and the planning function single content. The testing quality is improved while the testing workload is reduced.
Those skilled in the art will appreciate that all or part of the steps implementing the above embodiments are implemented as a computer program executed by a processor (including a CPU and GPU). The above-described functions defined by the above-described methods provided by the present disclosure are performed when the computer program is executed by a CPU. The program may be stored in a computer readable storage medium, which may be a read-only memory, a magnetic disk or an optical disk, etc.
Furthermore, it should be noted that the above-described figures are merely illustrative of the processes involved in the method according to the exemplary embodiments of the present disclosure, and are not intended to be limiting. It will be readily appreciated that the processes shown in the above figures do not indicate or limit the temporal order of these processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, for example, among a plurality of modules.
The following describes an embodiment of a determining apparatus for an object with an association relationship of the present disclosure, which may be used to execute the above-described determining method for an object with an association relationship of the present disclosure.
Fig. 5 shows a schematic structural diagram of a determining apparatus for an object with an association relationship according to an embodiment of the present disclosure, and referring to fig. 5, the determining apparatus 500 for an object with an association relationship provided in the present embodiment includes: an acquisition module 501, a first relationship determination module 502, and a second relationship determination module 503. Wherein:
the acquiring module 501 is configured to acquire a plurality of sub-objects that constitute a first object;
the first relationship determining module 502 is configured to determine a configuration resource of each sub-object, and obtain a first relationship table regarding mapping of the sub-objects to the configuration resource; the method comprises the steps of,
The second relationship determining module 503 is configured to reversely map the first relationship table to obtain a second relationship table of the configuration resource mapping to the sub-object;
the obtaining module 501 is further configured to obtain an updated resource of the first object, and determine a target sub-object corresponding to the updated resource according to the second relationship table; and obtaining a second object containing the target sub-object to obtain an object with an association relation with the first object.
In some embodiments of the present disclosure, based on the foregoing solution, the determining apparatus 500 for an object having an association relationship further includes: the test instruction determining module and the test module. Wherein:
the test instruction determining module is configured to: after obtaining the second object including the target sub-object, determining to generate a test instruction for the object identifier of the second object, where the test module is configured to: and testing the second object according to the test instruction.
In some embodiments of the present disclosure, based on the foregoing solution, the test instruction determining module is specifically configured to:
acquiring a preset template of a test instruction, and taking an object identifier of the second object as an instruction parameter; and filling the instruction parameters into the preset template to obtain an object identification generation test instruction of the second object.
In some embodiments of the present disclosure, based on the foregoing scheme, the obtaining module 501 is further specifically configured to:
and determining the combination relation of a plurality of sub-objects forming the first object according to the unique object identification of the first object to obtain a plurality of sub-objects forming the first object.
In some embodiments of the present disclosure, based on the foregoing scheme, the first relationship determination module 502 is specifically configured to:
respectively acquiring configuration resources referenced by each sub-object; classifying the configuration resources to obtain a plurality of types of configuration resources; and aiming at the current sub-object, acquiring the type of the configuration resource referenced by the current sub-object, and obtaining a first relation table reflecting the relation between the sub-object and the configuration resources of the types.
In some embodiments of the present disclosure, based on the foregoing scheme, the obtaining module 501 is further specifically configured to:
comparing the resource information of the pre-update version of the first object with the resource information of the post-update version of the first object to determine a target type corresponding to the difference resource information, thereby obtaining the updated resource of the first object and the type of the updated resource.
In some embodiments of the disclosure, based on the foregoing, the first object and the second object are virtual fashion; wherein:
The sub-objects include one or more of the following information: apparel, headwear, back decoration and pendants; the type of configuration resource of the sub-object includes one or more of the following information: model resources, material resources, map resources, animation resources, and special effects resources.
Since each functional module of the determining apparatus for an object with an association relationship according to the exemplary embodiment of the present disclosure corresponds to a step of the exemplary embodiment of the determining method for an object with an association relationship described above, for details not disclosed in the embodiment of the apparatus of the present disclosure, please refer to the embodiment of the determining method for an object with an association relationship described above according to the present disclosure.
It should be noted that although in the above detailed description several modules or units of a device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit in accordance with embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into a plurality of modules or units to be embodied.
Furthermore, although the steps of the methods in the present disclosure are depicted in a particular order in the drawings, this does not require or imply that the steps must be performed in that particular order or that all illustrated steps be performed in order to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step to perform, and/or one step decomposed into multiple steps to perform, etc.
From the above description of embodiments, those skilled in the art will readily appreciate that the example embodiments described herein may be implemented in software, or may be implemented in software in combination with the necessary hardware. Thus, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (may be a CD-ROM, a U-disk, a mobile hard disk, etc.) or on a network, including several instructions to cause a computing device (may be a personal computer, a server, a mobile terminal, or a network device, etc.) to perform the method according to the embodiments of the present disclosure.
In an exemplary embodiment of the present disclosure, a computer storage medium capable of implementing the above method is also provided. On which a program product is stored which enables the implementation of the method described above in the present specification. In some possible embodiments, the various aspects of the present disclosure may also be implemented in the form of a program product comprising program code for causing a terminal device to carry out the steps according to the various exemplary embodiments of the disclosure as described in the "exemplary methods" section of this specification, when the program product is run on the terminal device.
Referring to fig. 6, a program product 600 for implementing the above-described method according to an embodiment of the present disclosure is described, which may employ a portable compact disc read-only memory (CD-ROM) and include program code, and may be run on a terminal device, such as a personal computer. However, the program product of the present disclosure is not limited thereto, and in this document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The program product described above may take the form of any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium would include the following: an electrical connection having one or more wires, a portable disk, a hard disk, random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The computer readable signal medium may include a data signal propagated in baseband or as part of a carrier wave with readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of remote computing devices, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., connected via the Internet using an Internet service provider).
In addition, in an exemplary embodiment of the present disclosure, an electronic device capable of implementing the above method is also provided.
Those skilled in the art will appreciate that the various aspects of the present disclosure may be implemented as a system, method, or program product. Accordingly, various aspects of the disclosure may be embodied in the following forms, namely: an entirely hardware embodiment, an entirely software embodiment (including firmware, micro-code, etc.) or an embodiment combining hardware and software aspects may be referred to herein as a "circuit," module "or" system.
An electronic device 700 according to such an embodiment of the present disclosure is described below with reference to fig. 7. The electronic device 700 shown in fig. 7 is merely an example and should not be construed to limit the functionality and scope of use of embodiments of the present disclosure in any way.
As shown in fig. 7, the electronic device 700 is embodied in the form of a general purpose computing device. Components of electronic device 700 may include, but are not limited to: the at least one processing unit 710, the at least one memory unit 720, a bus 730 connecting the different system components (including the memory unit 720 and the processing unit 710), and a display unit 740.
Wherein the storage unit stores program code that is executable by the processing unit 710 such that the processing unit 710 performs steps according to various exemplary embodiments of the present disclosure described in the "exemplary method" section of the present specification. For example, the processing unit 710 may perform the operations as shown in fig. 1: step S110, a plurality of sub-objects forming a first object are acquired; step S120, determining configuration resources of each sub-object, and obtaining a first relation table which is mapped to the configuration resources by the sub-objects; step S130, reversely mapping the first relation table to obtain a second relation table of mapping the configuration resource to the sub-object; step S140, acquiring updated resources of the first object, and determining a target sub-object corresponding to the updated resources according to the second relationship table; and step S150, obtaining a second object containing the target sub-object, and obtaining objects with association relation with the first object.
For example, the processing unit 710 may also perform a method for determining objects having an association relationship as shown in fig. 2.
The memory unit 720 may include readable media in the form of volatile memory units, such as Random Access Memory (RAM) 7201 and/or cache memory 7202, and may further include Read Only Memory (ROM) 7203.
The storage unit 720 may also include a program/utility 7204 having a set (at least one) of program modules 7205, such program modules 7205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment.
Bus 730 may be a bus representing one or more of several types of bus structures including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
The electronic device 700 may also communicate with one or more external devices 800 (e.g., keyboard, pointing device, bluetooth device, etc.), one or more devices that enable a user to interact with the electronic device 700, and/or any device (e.g., router, modem, etc.) that enables the electronic device 700 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 750. Also, electronic device 700 may communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network, such as the Internet, through network adapter 760. As shown, network adapter 760 communicates with other modules of electronic device 700 over bus 730. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with electronic device 700, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
From the above description of embodiments, those skilled in the art will readily appreciate that the example embodiments described herein may be implemented in software, or may be implemented in software in combination with the necessary hardware. Thus, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (may be a CD-ROM, a U-disk, a mobile hard disk, etc.) or on a network, including several instructions to cause a computing device (may be a personal computer, a server, a terminal device, or a network device, etc.) to perform the method according to the embodiments of the present disclosure.
Furthermore, the above-described figures are only schematic illustrations of processes included in the method according to the exemplary embodiments of the present disclosure, and are not intended to be limiting. It will be readily appreciated that the processes shown in the above figures do not indicate or limit the temporal order of these processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, for example, among a plurality of modules.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

Claims (10)

1. A method for determining objects having an association relationship, the method comprising:
acquiring a plurality of sub-objects forming a first object;
determining configuration resources of each sub-object, and obtaining a first relation table which is mapped to the configuration resources by the sub-object, wherein the type of the configuration resources of the sub-object comprises one or more of the following information: model resources, material resources, map resources, animation resources, and special effects resources;
reversely mapping the first relation table to obtain a second relation table of mapping the configuration resource to the sub-object;
acquiring updated resources of the first object, and determining a target sub-object corresponding to the updated resources according to the second relation table;
obtaining a second object containing the target sub-object, and obtaining objects with association relations with the first object;
the obtaining a plurality of sub-objects that make up the first object includes:
and determining the combination relation of a plurality of sub-objects forming the first object according to the unique object identification of the first object to obtain a plurality of sub-objects forming the first object.
2. The method of claim 1, wherein after obtaining the second object containing the target sub-object, the method further comprises:
Determining an object identifier of the second object to generate a test instruction, and testing the second object according to the test instruction.
3. The method of claim 2, wherein determining to generate a test instruction for the object identification of the second object comprises:
acquiring a preset template of a test instruction, and taking an object identifier of the second object as an instruction parameter;
and filling the instruction parameters into the preset template to obtain an object identification generation test instruction of the second object.
4. The method of claim 1, wherein determining the configuration resource for each child object results in a first relationship table for the child object mapped to the configuration resource, comprising:
respectively acquiring configuration resources referenced by each sub-object;
classifying the configuration resources to obtain a plurality of types of configuration resources;
and aiming at the current sub-object, acquiring the type of the configuration resource referenced by the current sub-object, and obtaining a first relation table reflecting the relation between the sub-object and the configuration resources of the multiple types.
5. The method of claim 4, wherein obtaining updated resources of the first object comprises:
Comparing the resource information of the pre-update version of the first object with the resource information of the post-update version of the first object to determine a target type corresponding to the difference resource information, and obtaining updated resources of the first object and types of the updated resources.
6. The method of any one of claims 1 to 5, wherein the first object and the second object are virtual fashion items; wherein:
the child object includes one or more of the following information: apparel, headwear, back trim, and pendants.
7. The method of claim 6, wherein the determining the configuration resources for each child object comprises:
and determining configuration resources of each sub-object in each set of virtual fashion by analyzing a fashion combination table and a fashion configuration table, wherein the fashion combination table records virtual fashion and sub-objects forming the virtual fashion, and the fashion configuration table records the configuration resources referenced by each sub-object.
8. An apparatus for determining an object having an association relationship, the apparatus comprising:
an acquisition module configured to acquire a plurality of sub-objects constituting a first object;
a first relationship determination module configured to determine a configuration resource of each sub-object, and obtain a first relationship table regarding mapping of the sub-object to the configuration resource, wherein the type of the configuration resource of the sub-object includes one or more of the following information: model resources, material resources, map resources, animation resources, and special effects resources;
A second relation determining module configured to reversely map the first relation table to obtain a second relation table of mapping the configuration resource to the sub-object;
the acquisition module is further configured to acquire updated resources of the first object, and determine a target sub-object corresponding to the updated resources according to the second relation table; obtaining a second object containing the target sub-object, and obtaining objects with association relation with the first object;
the obtaining a plurality of sub-objects that make up the first object includes:
and determining the combination relation of a plurality of sub-objects forming the first object according to the unique object identification of the first object to obtain a plurality of sub-objects forming the first object.
9. A computer-readable storage medium, on which a computer program is stored, characterized in that the program, when executed by a processor, implements the method of determining an object having an association according to any one of claims 1 to 7.
10. An electronic device, comprising:
one or more processors;
storage means for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement the method of determining objects with an association as claimed in any one of claims 1 to 7.
CN202010374017.9A 2020-05-06 2020-05-06 Method and device for determining object with association relationship, medium and electronic equipment Active CN111408142B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010374017.9A CN111408142B (en) 2020-05-06 2020-05-06 Method and device for determining object with association relationship, medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010374017.9A CN111408142B (en) 2020-05-06 2020-05-06 Method and device for determining object with association relationship, medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN111408142A CN111408142A (en) 2020-07-14
CN111408142B true CN111408142B (en) 2023-09-08

Family

ID=71487186

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010374017.9A Active CN111408142B (en) 2020-05-06 2020-05-06 Method and device for determining object with association relationship, medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN111408142B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112156463B (en) * 2020-10-22 2023-04-07 腾讯科技(深圳)有限公司 Role display method, device, equipment and medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107423214A (en) * 2017-04-18 2017-12-01 恒生电子股份有限公司 Software regression testing use-case acquisition methods, device and storage medium and electronic equipment
CN109992496A (en) * 2017-12-29 2019-07-09 北京京东尚科信息技术有限公司 A kind of data processing method and device for automatic test
CN110975293A (en) * 2019-11-29 2020-04-10 米哈游科技(上海)有限公司 Method, device, server and medium for establishing resource reference relation table

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107423214A (en) * 2017-04-18 2017-12-01 恒生电子股份有限公司 Software regression testing use-case acquisition methods, device and storage medium and electronic equipment
CN109992496A (en) * 2017-12-29 2019-07-09 北京京东尚科信息技术有限公司 A kind of data processing method and device for automatic test
CN110975293A (en) * 2019-11-29 2020-04-10 米哈游科技(上海)有限公司 Method, device, server and medium for establishing resource reference relation table

Also Published As

Publication number Publication date
CN111408142A (en) 2020-07-14

Similar Documents

Publication Publication Date Title
US11726822B2 (en) Systems and methods for providing digital twin-enabled applications
US20200285464A1 (en) Location tracking system and methods
US10620921B2 (en) Application system for generating 3D applications
US11922564B2 (en) Generative content system that supports location-based services and methods therefor
US20200004759A1 (en) Generative content system and methods therefor
US11321896B2 (en) 3D avatar rendering
WO2019143412A1 (en) Configurable server kit
CN105511873B (en) User interface control display method and device
US11030786B1 (en) Hair styles system for rendering hair strands based on hair spline data
US11887229B2 (en) Method and system for populating a digital environment using a semantic map
US20230152598A1 (en) Systems and methods for photometrically extracting 3-dimensional depth
CN111408142B (en) Method and device for determining object with association relationship, medium and electronic equipment
CN113018870A (en) Data processing method and device and computer readable storage medium
US11347371B2 (en) Automatic translation of user interface elements from wireframe tools to production augmented reality framework
US20230259500A1 (en) Data storage and retrieval
CN112755534B (en) Data processing method, device and storage medium
CN114816972A (en) Coloring language testing method and device, electronic equipment and storage medium
WO2023136739A1 (en) Model customization
CN117909514A (en) Knowledge graph design method and device in text industry scene
CN113297639A (en) Data processing method and system and electronic equipment
CN117258303A (en) Model comparison method and related device
CN114528043A (en) File loading method, device, equipment and computer readable storage medium
CN116966593A (en) Data processing method, apparatus, device, readable storage medium, and program product
CN116407834A (en) Processing method and device of virtual equipment, storage medium and electronic equipment
CN112035561A (en) Data processing method, data processing device, storage medium and computer equipment

Legal Events

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