CN113713395B - Game data reading method, device, equipment and storage medium - Google Patents

Game data reading method, device, equipment and storage medium Download PDF

Info

Publication number
CN113713395B
CN113713395B CN202111013206.4A CN202111013206A CN113713395B CN 113713395 B CN113713395 B CN 113713395B CN 202111013206 A CN202111013206 A CN 202111013206A CN 113713395 B CN113713395 B CN 113713395B
Authority
CN
China
Prior art keywords
target
data
file
game
parameter
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
CN202111013206.4A
Other languages
Chinese (zh)
Other versions
CN113713395A (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 CN202111013206.4A priority Critical patent/CN113713395B/en
Publication of CN113713395A publication Critical patent/CN113713395A/en
Application granted granted Critical
Publication of CN113713395B publication Critical patent/CN113713395B/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/60Generating or modifying game content before or while executing the game program, e.g. authoring tools specially adapted for game development or game-integrated level editor
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/55Controlling game characters or game objects based on the game progress
    • A63F13/56Computing the motion of game characters with respect to other game characters, game objects or elements of the game scene, e.g. for simulating the behaviour of a group of virtual soldiers or for path finding

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Stored Programmes (AREA)

Abstract

The application provides a method, a device, equipment and a storage medium for reading game data, and relates to the field of data processing. The method comprises the following steps: obtaining a target game editor, wherein the target game editor consists of a target event, a target condition and a target action, and the execution parameters of the target action are as follows: form parameters and target location parameters; if the target event is triggered and the target condition is met, acquiring data corresponding to the target position parameter from a data file corresponding to a table file indicated by the table parameter according to the table parameter and the target position parameter as target data; and executing the target action by adopting the target data. Compared with the prior art, the method and the device avoid the problems that the content corresponding to each action needs to be initialized before the data is read and the initialization efficiency is too low.

Description

Game data reading method, device, equipment and storage medium
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a method, an apparatus, a device, and a storage medium for reading game data.
Background
In a common game editor, game logic is typically implemented using visual scripts in combination with triggers. When writing logic, game data needs to be processed, and a user initializes the data needed to be used. Existing editors do use a script action such as "variable assignment" to complete initialization of data.
In the visual script of the game editor, each action script typically performs only one action. When the value is initialized, the action of variable assignment is used, and since the variable assignment can only assign one variable at a time, all the used data is initialized by using one action script alone. For example, when a certain unit is upgraded, the attack force is changed into a prescribed value according to the level of the unit, at this time, the initialized content is the value of the attack force corresponding to each of the unit level 1 to level 5 to be initialized, and then when the target action is triggered in the subsequent game process, the initialized content corresponding to the target action is directly read to execute the target action.
However, since the read mode requires initializing the content corresponding to each action before reading, and the initialization mode can only initialize one data at a time, the operation mode becomes very inefficient when the amount of data to be initialized becomes large.
Disclosure of Invention
The application aims to overcome the defects in the prior art and provide a method, a device, equipment and a storage medium for reading game data, so as to solve the problems that the prior art needs to initialize contents corresponding to all actions before reading, and the initialization mode can only initialize one data at a time, so that the initialization efficiency is very low.
In order to achieve the above purpose, the technical scheme adopted by the embodiment of the application is as follows:
in a first aspect, an embodiment of the present application provides a method for reading game data, including:
Obtaining a target game editor, wherein the target game editor consists of a target event, a target condition and a target action, and the execution parameters of the target action are as follows: form parameters and target location parameters;
If the target event is triggered and the target condition corresponding to the target event is met, acquiring target data from a data file corresponding to a table file indicated by the table parameter according to the table parameter and the target position parameter; the target data are data corresponding to the target position parameters in the data file;
And executing the target action corresponding to the target event by adopting the target data.
Optionally, the obtaining, according to the table parameter and the target position parameter, data corresponding to the target position parameter from a data file corresponding to a table file indicated by the table parameter as target data includes:
And calling a data reading function corresponding to a preset reading mode according to the table parameters and the target position parameters so as to acquire the target data from the data file by adopting the data reading function.
Optionally, the preset reading mode is a first reading mode, and the target position parameter is a position parameter in the table file; or alternatively
And if the preset reading mode is a second reading mode, the target position parameter is a field position parameter in the table file.
Optionally, before the data corresponding to the target position parameter is obtained from the data file corresponding to the table file indicated by the table parameter according to the table parameter and the target position parameter as the target data, the method further includes:
Responding to a data file generation operation input through a form management interface, and converting the form file into the data file in a preset format; each data in the data file is provided with positioning mark information, and the positioning mark information is used for indicating the position of each data in the table file.
Optionally, before the converting the table file into the data file in the preset format, the method further includes:
in response to a form file creation operation entered through the form management interface, a form application is invoked to create and configure the form file.
Optionally, the method further comprises:
and establishing a corresponding relation between the table file and the game scene to be edited.
Optionally, the method further comprises:
responding to a form file opening triggering operation input through a form management interface, and displaying a form display interface; the table display interface displays parameter information of at least one table file;
And responding to the selection operation of the at least one table file, and displaying the table contents of the target table file selected by the selection operation.
Optionally, the method further comprises:
And updating the target table file in response to a content adjustment operation on the target table file.
Optionally, the method further comprises:
and setting the file name of the table file in response to the file naming operation input through the table management interface.
Optionally, the preset cells in the data file have indication information of the data type.
Optionally, the acquiring the target game editor includes:
creating the target event in response to an event creation operation input through a game editor creation interface;
creating the target condition in response to a condition creation operation input through the game editor creation interface;
Creating the target action in response to an action creation operation input through the game editor creation interface;
and generating the target game editor by adopting the target event, the target condition and the target action.
In a second aspect, another embodiment of the present application provides a game data reading apparatus, the apparatus including: the device comprises an acquisition module and an execution module, wherein:
The acquisition module is used for acquiring a target game editor, wherein the target game editor consists of a target event, a target condition and a target action, and the execution parameters of the target action are as follows: form parameters and target location parameters; if the target event is triggered and the target condition corresponding to the target event is met, acquiring target data from a data file corresponding to a table file indicated by the table parameter according to the table parameter and the target position parameter; the target data are data corresponding to the target position parameters in the data file;
The execution module is used for executing the target action corresponding to the target event by adopting the target data.
Optionally, the apparatus further comprises: and the calling module is used for calling a data reading function corresponding to a preset reading mode according to the table parameters and the target position parameters so as to acquire the target data from the data file by adopting the data reading function.
Optionally, the preset reading mode is a first reading mode, and the target position parameter is a position parameter in the table file; or the preset reading mode is a second reading mode, and the target position parameter is a field position parameter in the table file.
Optionally, the apparatus further comprises: the conversion module is used for responding to the data file generation operation input through the form management interface and converting the form file into the data file with a preset format; each data in the data file is provided with positioning mark information, and the positioning mark information is used for indicating the position of each data in the table file.
Optionally, the calling module is specifically configured to call a table application to create and configure the table file in response to a table file creation operation input through the table management interface.
Optionally, the apparatus further comprises: the establishing module is used for establishing the corresponding relation between the table file and the game scene to be edited.
Optionally, the apparatus further comprises: the display module is used for responding to the form file opening triggering operation input through the form management interface and displaying the form display interface; the table display interface displays parameter information of at least one table file; and responding to the selection operation of the at least one table file, and displaying the table contents of the target table file selected by the selection operation.
Optionally, the apparatus further comprises: and the updating module is used for responding to the content adjustment operation of the target table file and updating the target table file.
Optionally, the apparatus further comprises: and the setting module is used for setting the file name of the table file.
Optionally, the preset cells in the data file have indication information of the data type.
Optionally, the apparatus further comprises: a generation module, wherein:
The building module is specifically used for responding to an event creation operation input through a game editor creation interface to create the target event; creating the target condition in response to a condition creation operation input through the game editor creation interface; creating the target action in response to an action creation operation input through the game editor creation interface;
The generation module is used for generating the target game editor by adopting the target event, the target condition and the target action.
In a third aspect, another embodiment of the present application provides a game data reading apparatus, including: a processor, a storage medium and a bus, the storage medium storing machine-readable instructions executable by the processor, the processor and the storage medium communicating over the bus when the game data reading device is running, the processor executing the machine-readable instructions to perform the steps of the method according to any of the first aspects above.
In a fourth aspect, another embodiment of the application provides a storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the method according to any of the first aspects described above.
The beneficial effects of the application are as follows: after the target game editor is obtained, if the target event is triggered and the target condition corresponding to the target event is met, obtaining data corresponding to the target position parameter from a data file corresponding to a table file indicated by the table parameter according to the table parameter and the target position parameter as target data, and executing a target action corresponding to the target event according to the target data, wherein the method for obtaining the target data corresponding to the target action does not need to initialize the data content corresponding to each action before reading, but directly according to the data content; the method comprises the steps of acquiring the table parameters and the target position parameters corresponding to the target actions from the data files corresponding to the table files indicated by the table parameters, so that the data content of each action does not need to be initialized one by one before reading, and the operation efficiency of a user is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method for reading game data according to an embodiment of the application;
FIG. 2 is a flowchart illustrating a method for reading game data according to another embodiment of the present application;
FIG. 3 is an interface diagram of a graphical user interface according to an embodiment of the present application;
FIG. 4 is a flowchart illustrating a method for reading game data according to another embodiment of the present application;
FIG. 5 is a schematic diagram of a game data reading apparatus according to an embodiment of the present application;
FIG. 6 is a schematic diagram of a game data reading apparatus according to another embodiment of the present application;
fig. 7 is a schematic structural diagram of a game data reading device according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments of the present application.
The components of the embodiments of the present application generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the application, as presented in the figures, is not intended to limit the scope of the application, as claimed, but is merely representative of selected embodiments of the application. All other embodiments, which can be made by a person skilled in the art without making any inventive effort, are intended to be within the scope of the present application.
Additionally, flowcharts used in this disclosure illustrate operations implemented according to some embodiments of the present application. It should be understood that the operations of the flow diagrams may be implemented out of order and that steps without logical context may be performed in reverse order or concurrently. Moreover, one or more other operations may be added to or removed from the flow diagrams by those skilled in the art under the direction of the present disclosure.
To facilitate an understanding of the present application, the following description of partial terms related to the present application will be given:
game editor: the game machine is a tool for users to make games, the users can realize customized game scenes according to own editing logic in the games through the game editor, and different from a game engine, the game editor faces more non-professional and non-programming-foundation users, and the game engine faces more teams for professional game development, so that the game editor generally performs and packages complex functions, and the use threshold of the users is reduced. A general game editor is provided with the following main modules: scene editing, logic implementation and resource management; wherein, the trigger and the visual script are one logic implementation mode adopted by the editor.
A trigger: a logic editing tool is executed in a three-stage structure such as an 'event-condition-action'.
Visual script: a piece of logic code is packaged as an integral logic unit and allows a user to add to a graphical control executing in a trigger.
The following explains a method for reading game data provided by the embodiment of the application in combination with a plurality of specific application examples. Fig. 1 is a flow chart of a method for reading game data according to an embodiment of the present application, as shown in fig. 1, the method includes:
s101: a target game editor is obtained.
The target game editor is preconfigured by a user and consists of a target event, a target condition and a target action; the execution parameters of the target action are as follows: form parameters and target location parameters; the target event, the target condition and the target action all have scripts corresponding to the target event, the target condition and the target action, and one script can execute the appointed action only by inputting the specified parameters.
Each target event has a corresponding target condition and a target action, one target event may correspond to one or more target conditions, one target event may correspond to one or more target actions, the target conditions and the target actions corresponding to different target events may be different, the number of the target events may be different, and the corresponding relation between a specific target event and the target conditions and between the specific target events and the target actions may be flexibly adjusted according to user configuration.
S102: if the target event is triggered and the target condition corresponding to the target event is met, acquiring target data from a data file corresponding to a table file indicated by the table parameter according to the table parameter and the target position parameter.
The target data are data corresponding to target position parameters in the data file; different target events may correspond to different target conditions, and when the number of target conditions corresponding to the target event is a plurality of target events, only when all target conditions of the target event are met, the target action corresponding to the target event is executed.
S103: and executing the target action corresponding to the target event by adopting the target data.
For example, in one embodiment, when the role level of the virtual object a is upgraded, the upgraded unit attack force needs to be modified to a set value, then a target event of "the unit event of the upgrade of the virtual role a" may be edited, the target condition is "the role level upgrade of the virtual role a", the target actions may be, for example, two target actions may be "determining the current level of the role level upgrade of the virtual role a", and "setting the attack force value of the current level of the virtual role a to be the three columns B in the table 1", after confirming that the current level of the role level upgrade of the virtual role a is the three columns B, the target action corresponding to the target event is executed by adopting the target data of the three columns B in the table 1, for example, the third column in the table itself stores the attack force value corresponding to the different level of the virtual role a, and only the current level of the virtual role a needs to be determined according to the three columns B, for example, the attack force value corresponding to the current level of the virtual role a may be obtained, for example, the target data of the three columns B in the table 1 is 10, that is executed "the current level of the virtual role a is set to be 10", and the application may be understood as an embodiment of the application, which is not limited to the embodiment of the application.
After the target game editor is obtained, if the target event is triggered and the target condition corresponding to the target event is met, obtaining data corresponding to the target position parameter from a data file corresponding to a table file indicated by the table parameter according to the table parameter and the target position parameter as target data, and executing a target action corresponding to the target event according to the target data, wherein the method for obtaining the target data corresponding to the target action does not need to initialize the data content corresponding to each action before reading, but directly according to the data content; the method comprises the steps of acquiring the table parameters and the target position parameters corresponding to the target actions from the data files corresponding to the table files indicated by the table parameters, so that the data content of each action does not need to be initialized one by one before reading, and the operation efficiency of a user is improved.
In one embodiment of the present application, the method for obtaining the target data may be, for example, calling a data reading function corresponding to a preset reading mode according to the table parameter and the target position parameter, so as to obtain the target data from the data file by using the data reading function.
Different preset reading modes may correspond to different data reading functions, for example, a reading function corresponding to a first reading mode may be a sequential reading function, a reading function corresponding to a second reading mode may be a field reading function, that is, the preset reading mode is the first reading mode, and the target position parameter is a position parameter in the table file; or the preset reading mode is a second reading mode, and the target position parameter is a field position parameter in the table file.
For example, for the first reading mode, a sequential reading function is adopted, the position parameter is configured according to the rows and columns in the table file, and is used for determining specific data of the target data in the table file, for example, if the position parameter of the current target data is C3 (where C represents column information of the target data and 3 represents row information of the target data), it is indicated that the target data is in the third row and the third column of the table file, and then it is only necessary to directly obtain the cell value stored in the cell of the third row and the third column in the table file as the target data, and even if the subsequent application process modifies the cell value of the position parameter C3 in the table file, the reading position will not be affected.
For the second reading mode, when a field reading function is adopted, the position parameters are formed according to field names, and are used for determining specific data of target data in the table file, for example, the position parameters of the current target parameters are level 3 blood volume values, the retrieval can be carried out in the table file according to the name position parameters, column name information in the table file is level 3, cell values corresponding to cells with the column name information being the blood volume values are directly obtained as the target data, and the reading mode is convenient for maintaining and using the subsequent table file as long as the column field names or the row field names of the table file are unchanged, or row and column positions are adjusted.
Optionally, on the basis of the foregoing embodiment, the embodiment of the present application may further provide a method for reading game data, where an implementation procedure of the method is described below by way of example with reference to the accompanying drawings. Fig. 2 is a flow chart of a method for reading game data according to another embodiment of the present application, and fig. 3 is an interface diagram of a gui according to an embodiment of the present application, as shown in fig. 2, before S102, the method may further include:
s104: and converting the form file into a data file in a preset format in response to a data file generation operation input through the form management interface.
As shown in fig. 3, for example, in response to an editing operation of a user, the editing interface is displayed on the graphical user interface, where the editing operation may be triggered by, for example, the user clicking a preset editing control in the game scene, or by a preset shortcut key, and a specific manner of triggering the editing operation may be flexibly adjusted according to the needs of the user, and is not limited by the foregoing embodiments; in response to a game setting operation in the editing interface, the game setting interface is presented, and a corresponding plurality of functions of form management are presented after the form management operation, wherein the plurality of functions may include, for example, a generation function of a data file, the form file is converted into a preset data file in response to the generation operation of the data file, and in one embodiment of the present application, the generating operation of the data file may be triggered by the user after clicking the generating data control in the plurality of function controls, and in other possible embodiments, the user may trigger the generating operation by, for example, presetting a way of generating a data shortcut key, and a specific triggering way of the generating operation may be flexibly adjusted according to the needs of the user, which is not limited to the above embodiments.
Each data in the data file is provided with positioning mark information, and the positioning mark information is used for indicating the position of each data in the form file; in some possible embodiments, the conversion of the table file may be performed by a preset conversion program, for example, the data in the table file may be converted into a json format data file that can be identified by an editor through the preset conversion program, and the preset conversion program marks each data in the table file during the conversion process, and marks each data in a positioning way, for example, if the positioning mark of a certain data in the table file is A2, the column information representing the data is a, the first column in the table file, the row information is 2, and the 2 nd row in the table file, that is, the data is located in the first column and the second row in the table file, by marking the positioning mark information for each data, the subsequent unit cell of each data may be determined directly according to the positioning mark information, and the value in the unit cell is directly obtained as the data value corresponding to each data.
In an embodiment of the present application, before converting the table file, it is also necessary to call the table application in response to a table file creation operation input through the table management interface to create and configure the table file.
As further shown in fig. 3, the multiple functions may include a form creation function, for example, the form creation interface may be entered in response to a clicking operation of creating a form control in the multiple function controls, or the form creation interface may be triggered by a shortcut key for creating a form, and the triggering manner of the form creation operation may be flexibly adjusted according to the needs of the user, which is not limited to the foregoing embodiments.
When the data is configured in the table file, the data value of each target action is directly determined by reading the data in the table file, and when the data value is configured in the table file, the configuration efficiency can be improved by using the function of the table, such as modifying or arranging the data by using a formula, copying the data, modifying the data in batches and the like, so that the efficiency of a user in greatly increasing, deleting or modifying the data can be greatly improved, the development time of the user is saved, and the energy required by the user for making the table is saved.
In the process of configuring the table file, the user determines the data type of the acquired cell data in the process of acquiring the target data by using the editor because the data type supported by the table is not unique, such as supporting integer type data, floating point type data and character type data, and therefore, the preset cells in each data file have indication information of the data type.
In an embodiment of the present application, for convenience in data management during editing, for example, a row or a column of a data type row or a data type column may be set in a table file, for specifying the data type of each row or column, for example, a second row of a data type row in the table file is set, and the data type specified in a third column of the data type row is illustrated as integer type data, where the data types of all cells corresponding to the third column in the table file are integer type data, for example, if a certain cell is located in the data type of integer type data column, then when the cell value of the cell is 5, the value returned by the cell is "5" instead of "5" of the character string, which should be understood that the specific table configuration manner is only illustrative and may be flexibly adjusted according to the needs of the user, and is not limited to the foregoing embodiment.
Each table file has a corresponding game scene, one table can only correspond to one game scene, but one game scene can have a plurality of corresponding tables, so that the corresponding relation between the table file and the game scene to be edited needs to be established in advance, and a clear one-to-one relation between the table and the game scene can avoid the problem of data confusion when the table files corresponding to different game scenes are edited, and the unified management of the data of each game scene is convenient for users.
In the embodiment of the present application, in order to distinguish different tables, the file name of each table file needs to be preset, and the setting manner may be, for example, setting the file name of the table file in response to the file naming operation input through the table management interface; it should be understood that, during the application of the table file, the file name of the table file may be modified, in some possible embodiments, the file name of the table file may not include special symbols, may include words and numerals, and when the user inputs the special symbols in the name of the table file, the user is prompted that the current table name does not conform to the naming standard, and needs to be modified, and after the table name conforms to the naming standard, the name of the table file is set to be the modified name, which is to be understood that the above embodiment is only illustrative, and the naming mode and naming limitation of the specific file name may be flexibly adjusted according to the user needs, and not limited to the above embodiment.
As further shown in fig. 3, the plurality of functions may include a renaming function, for example, the renaming interface of the table file may be entered in response to a clicking operation of the renaming control in the plurality of function controls, or the renaming interface of the table file may be triggered by a preset renaming shortcut key, and a specific manner of setting the file name of each table file may be flexibly adjusted according to a user need, which is not limited to the foregoing embodiment.
In the embodiment of the application, since a plurality of game scenes may exist in one game, and different game scenes have corresponding table files, when reading data, table parameters and target position parameters need to be acquired, wherein the table parameters can be, for example, table names or table identifiers, etc. the table parameters of the target table can be uniquely determined in a plurality of tables, that is, after the currently required table file is determined in a plurality of tables according to the table parameters, the data value of the target data in the table file is determined according to the target position parameters, the setting mode is such that the user cannot make errors when reading the target data, and the ensured uniqueness and accuracy of the read data should be understood, and the form of the specific table parameters can be flexibly adjusted according to the needs of the user, not limited by the embodiment.
In some possible embodiments, a form display interface is presented in response to a form file open trigger operation entered through a form management interface; the table display interface displays parameter information of at least one table file; in response to a selection operation on at least one of the table files, table contents of the target table file selected by the selection operation are presented.
As further shown in fig. 3, the plurality of functions may include a form opening function, for example, the form display interface may be displayed in response to a clicking operation of opening a form control in the plurality of function controls, or a form display interface may be triggered by a shortcut key for opening a form, and a manner of specifically displaying the form display interface may be flexibly adjusted according to a user requirement, which is not limited to the foregoing embodiment.
After the target table is successfully created, the content of the target table can be adjusted in the application process, and the adjustment process can be, for example, to update the target table file in response to the content adjustment operation on the target table file.
Optionally, on the basis of the foregoing embodiment, the embodiment of the present application may further provide a method for reading game data, and an implementation process of obtaining the target game editor in the foregoing method is described below by way of example with reference to the accompanying drawings. Fig. 4 is a flowchart of a method for reading game data according to another embodiment of the present application, as shown in fig. 4, S101 may include:
S105: in response to an event creation operation input through the game editor creation interface, a target event is created.
S106: in response to a condition creation operation input through the game editor creation interface, a target condition is created.
S107: in response to an action creation operation input through the game editor creation interface, a target action is created.
S108: and generating a target game editor by adopting the target event, the target condition and the target action.
The user can configure the self-defined game scene and game content in the game scene by means of self-defining the mode of creating the target event, the target condition and the target action, so that the game experience of the user is enriched.
By adopting the method for reading the game data, the application can separate the function of data initialization when initializing the parameters of each target action, and uses the table file as a carrier for data initialization, so that when determining the parameter data corresponding to the target action, the game editor can directly read the data value in the table file according to the execution parameters after determining the execution parameters of the target action, and takes the read data value as the parameter value of the target action parameters, thereby leading a user to break away from complicated initialization steps, improving the use efficiency of the editor, and improving the use experience and use efficiency of the user.
The following explanation is made on the game data reading device provided by the present application with reference to the accompanying drawings, and the game data reading device can execute the method for reading the game data in any one of fig. 1 to fig. 4, and the specific implementation and the beneficial effects thereof are referred to the above and are not repeated herein.
Fig. 5 is a schematic structural diagram of a game data reading device according to an embodiment of the present application, as shown in fig. 5, the device includes: an acquisition module 201 and an execution module 202, wherein:
The obtaining module 201 is configured to obtain a target game editor, where the target game editor is composed of a target event, a target condition, and a target action, and execution parameters of the target action are: form parameters and target location parameters; if the target event is triggered and the target condition corresponding to the target event is met, acquiring target data from a data file corresponding to a table file indicated by the table parameter according to the table parameter and the target position parameter; the target data are data corresponding to target position parameters in the data file;
the execution module 202 is configured to execute a target action corresponding to the target event by using the target data.
Optionally, on the basis of the foregoing embodiment, an embodiment of the present application may further provide a game data reading device, where an implementation procedure of the device shown in fig. 5 is described below by way of example with reference to the accompanying drawings. Fig. 6 is a schematic structural diagram of a game data reading device according to another embodiment of the present application, as shown in fig. 6, where the device further includes: and the calling module 203 is configured to call a data reading function corresponding to a preset reading mode according to the table parameter and the target position parameter, so as to acquire target data from the data file by adopting the data reading function.
Optionally, the preset reading mode is a first reading mode, and the target position parameter is a position parameter in a table file; or the preset reading mode is a second reading mode, and the target position parameter is a field position parameter in the table file.
As shown in fig. 6, the apparatus further includes: a conversion module 204, configured to convert a table file into a data file in a preset format in response to a data file generation operation input through the table management interface; each data in the data file is provided with positioning mark information, and the positioning mark information is used for indicating the position of each data in the table file.
Optionally, the calling module 203 is specifically configured to call the table application to create and configure the table file in response to the table file creation operation input through the table management interface.
As shown in fig. 6, the apparatus further includes: the establishing module 205 is configured to establish a correspondence between the table file and the game scene to be edited.
As shown in fig. 6, the apparatus further includes: the display module 206 is configured to display a table display interface in response to a table file opening trigger operation input through the table management interface; the table display interface displays parameter information of at least one table file; in response to a selection operation on at least one of the table files, table contents of the target table file selected by the selection operation are presented.
As shown in fig. 6, the apparatus further includes: an updating module 207 for updating the target table file in response to a content adjustment operation on the target table file.
As shown in fig. 6, the apparatus further includes: a setting module 208, configured to set a file name of the table file.
Optionally, the preset cells in the data file have indication information of the data type.
As shown in fig. 6, the apparatus further includes: a generation module 209, wherein:
a building module 205, specifically configured to create a target event in response to an event creation operation input through the game editor creation interface; creating a target condition in response to a condition creation operation input through a game editor creation interface; creating a target action in response to an action creation operation input through the game editor creation interface;
a generating module 209 is configured to generate a target game editor using the target event, the target condition, and the target action.
The foregoing apparatus is used for executing the method provided in the foregoing embodiment, and its implementation principle and technical effects are similar, and are not described herein again.
The above modules may be one or more integrated circuits configured to implement the above methods, for example: one or more Application SPECIFIC INTEGRATED Circuits (ASIC), or one or more microprocessors, or one or more field programmable gate arrays (Field Programmable GATE ARRAY FPGA), etc. For another example, when a module above is implemented in the form of a processing element scheduler code, the processing element may be a general-purpose processor, such as a central processing unit (Central Processing Unit, CPU) or other processor that may invoke the program code. For another example, the modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
Fig. 7 is a schematic structural diagram of a game data reading device according to an embodiment of the present application, where the game data reading device may be integrated in a terminal device or a chip of the terminal device.
The game data reading apparatus includes: a processor 501, a storage medium 502, and a bus 503.
The processor 501 is configured to store a program, and the processor 501 invokes the program stored in the storage medium 502 to execute the method embodiments corresponding to fig. 1 to fig. 4. The specific implementation manner and the technical effect are similar, and are not repeated here.
Optionally, the present application also provides a program product, such as a storage medium, on which a computer program is stored, including a program which, when being executed by a processor, performs the corresponding embodiments of the above-mentioned method.
In the several embodiments provided by the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. 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 the embodiments 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 hardware plus software functional units.
The integrated units implemented in the form of software functional units described above may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium, and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (english: processor) to perform some of the steps of the methods according to the embodiments of the 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.

Claims (13)

1. A method of reading game data, the method comprising:
Obtaining a target game editor, wherein the target game editor consists of a target event, a target condition and a target action, and the execution parameters of the target action are as follows: form parameters and target location parameters;
If the target event is triggered and the target condition corresponding to the target event is met, acquiring target data from a data file corresponding to a table file indicated by the table parameter according to the table parameter and the target position parameter; the target data are data corresponding to the target position parameters in the data file;
Executing a target action corresponding to the target event by adopting the target data;
Before the data corresponding to the target position parameter is obtained from the data file corresponding to the table file indicated by the table parameter according to the table parameter and the target position parameter as the target data, the method further includes:
Responding to a data file generation operation input through a form management interface, and converting the form file into the data file in a preset format; each data in the data file is provided with positioning mark information, and the positioning mark information is used for indicating the position of each data in the table file.
2. The method of claim 1, wherein the obtaining, from the data file corresponding to the table file indicated by the table parameter, the data corresponding to the target location parameter as the target data according to the table parameter and the target location parameter includes:
And calling a data reading function corresponding to a preset reading mode according to the table parameters and the target position parameters so as to acquire the target data from the data file by adopting the data reading function.
3. The method of claim 2, wherein the predetermined reading mode is a first reading mode, and the target location parameter is a location parameter in the table file; or alternatively
And if the preset reading mode is a second reading mode, the target position parameter is a field position parameter in the table file.
4. The method of claim 1, wherein prior to converting the table file into the data file in a preset format, the method further comprises:
in response to a form file creation operation entered through the form management interface, a form application is invoked to create and configure the form file.
5. The method of claim 4, wherein the method further comprises:
and establishing a corresponding relation between the table file and the game scene to be edited.
6. The method of claim 1, wherein the method further comprises:
responding to a form file opening triggering operation input through a form management interface, and displaying a form display interface; the table display interface displays parameter information of at least one table file;
And responding to the selection operation of the at least one table file, and displaying the table contents of the target table file selected by the selection operation.
7. The method of claim 6, wherein the method further comprises:
And updating the target table file in response to a content adjustment operation on the target table file.
8. The method of claim 1, wherein the method further comprises:
and setting the file name of the table file in response to the file naming operation input through the table management interface.
9. The method of any one of claims 1-8, wherein the predetermined cells in the data file have indication information of a data type.
10. The method of any of claims 1-8, wherein the obtaining a target game editor comprises:
creating the target event in response to an event creation operation input through a game editor creation interface;
creating the target condition in response to a condition creation operation input through the game editor creation interface;
Creating the target action in response to an action creation operation input through the game editor creation interface;
and generating the target game editor by adopting the target event, the target condition and the target action.
11. A game data reading apparatus, the apparatus comprising: the device comprises an acquisition module and an execution module, wherein:
The acquisition module is used for acquiring a target game editor, wherein the target game editor consists of a target event, a target condition and a target action, and the execution parameters of the target action are as follows: form parameters and target location parameters; if the target event is triggered and the target condition corresponding to the target event is met, acquiring target data from a data file corresponding to a table file indicated by the table parameter according to the table parameter and the target position parameter; the target data are data corresponding to the target position parameters in the data file;
the execution module is used for executing the target action corresponding to the target event by adopting the target data;
The apparatus further comprises: the conversion module is used for responding to the data file generation operation input through the form management interface and converting the form file into the data file with a preset format; each data in the data file is provided with positioning mark information, and the positioning mark information is used for indicating the position of each data in the table file.
12. A game data reading apparatus, characterized in that the apparatus comprises: a processor, a storage medium and a bus, the storage medium storing machine-readable instructions executable by the processor, the processor and the storage medium communicating over the bus when the game data reading device is running, the processor executing the machine-readable instructions to perform the method of any one of the preceding claims 1-10.
13. A storage medium having stored thereon a computer program which, when executed by a processor, performs the method of any of the preceding claims 1-10.
CN202111013206.4A 2021-08-31 2021-08-31 Game data reading method, device, equipment and storage medium Active CN113713395B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111013206.4A CN113713395B (en) 2021-08-31 2021-08-31 Game data reading method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111013206.4A CN113713395B (en) 2021-08-31 2021-08-31 Game data reading method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113713395A CN113713395A (en) 2021-11-30
CN113713395B true CN113713395B (en) 2024-08-23

Family

ID=78679810

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111013206.4A Active CN113713395B (en) 2021-08-31 2021-08-31 Game data reading method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113713395B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112748906A (en) * 2019-10-30 2021-05-04 武汉雷龙网络科技有限公司 Game development system based on natural language

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103618753B (en) * 2013-12-18 2017-03-22 中国电子科技集团公司第五十四研究所 Trans-secret-region data exchange method based on one-way transmission equipment
KR101965732B1 (en) * 2017-10-26 2019-04-04 (주)이노시뮬레이션 the method for controling motion platform using the authoring tool
CN110393918B (en) * 2019-07-26 2024-07-23 网易(杭州)网络有限公司 Method and device for manufacturing game trigger
CN110732136B (en) * 2019-10-17 2023-03-31 腾讯科技(深圳)有限公司 Method, device, terminal and storage medium for previewing in-office behavior in out-office environment
CN111124371A (en) * 2019-12-25 2020-05-08 上海米哈游天命科技有限公司 Game-based data processing method, device, equipment and storage medium
CN111803940B (en) * 2020-01-14 2022-05-31 厦门雅基软件有限公司 Game processing method and device, electronic equipment and computer-readable storage medium
CN111330280B (en) * 2020-02-26 2024-04-09 网易(杭州)网络有限公司 Method and device for processing data in game, storage medium and electronic equipment
CN112165482B (en) * 2020-09-24 2021-07-27 腾讯科技(深圳)有限公司 Data processing method, data processing device, computer equipment and medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112748906A (en) * 2019-10-30 2021-05-04 武汉雷龙网络科技有限公司 Game development system based on natural language

Also Published As

Publication number Publication date
CN113713395A (en) 2021-11-30

Similar Documents

Publication Publication Date Title
US20180081642A1 (en) Connectors framework
CN110968509B (en) Method and system for batch customizing of variables
CN104915297B (en) A kind of automated testing method of the APP power consumption of android equipment
CN111399840A (en) Module development method and device
CN109766139B (en) Configuration method and device of configuration file
CN106371869B (en) IEC61850 configuration software implementation method for bay level equipment of intelligent substation
CN110795162B (en) Method and device for generating container mirror image file
CN109840201B (en) UI test method, device, electronic equipment and computer readable storage medium
CN110750310A (en) Binary and source code switching method based on IOS system componentization development
CN113713395B (en) Game data reading method, device, equipment and storage medium
CN113407254B (en) Form generation method and device, electronic equipment and storage medium
CN107423291A (en) A kind of data translating method and client device
CN104572454B (en) A kind of method and device of locating resource
CN111488286B (en) Method and device for independently developing Android modules
CN113703755A (en) Code generation method and code generation device
CN111309558B (en) Method, device, equipment and storage medium for collecting vue event data in frame
CN114201382A (en) Test case generation method and device, storage medium and electronic equipment
CN111984293A (en) Information processing method, device and storage medium
CN109144624B (en) Method, storage medium, device and system for displaying unequal height lists in IOS
CN105979021B (en) A kind of information processing method and user terminal
CN111124386B (en) Animation event processing method, device, equipment and storage medium based on Unity
CN108334313A (en) Continuous integrating method, apparatus and code management system for large-scale SOC research and development
CN111273913B (en) Method and device for outputting application program interface data represented by specifications
CN113918254A (en) Language text management method and device, storage medium and electronic equipment
CN109800457B (en) Elevation symbol marking method and device based on MicroStation

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