A game data configuration table conversion method, device, medium and electronic equipment

By using framework conversion tools and code conversion tools, the game data configuration table on the server side is automatically loaded, which solves the problem of inconsistent formats between the mobile game client and the game server data configuration table, improves conversion efficiency and accuracy, and reduces manpower burden.

CN119818949BActive Publication Date: 2025-12-16BEIJING PIXEL SOFTWARE TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411890278.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-12-20
Publication Date
2025-12-16
Estimated Expiration
2044-12-20

AI Technical Summary

Technical Problem

In existing technologies, the game data configuration table formats of mobile game clients and game servers are inconsistent, which makes updating and synchronization difficult, time-consuming, laborious, and prone to errors.

Method used

Using frame conversion tools and code conversion tools, the game data configuration table on the server is automatically loaded, the corresponding game data configuration table frame on the client is determined, and the conversion is performed according to row and column numbers to generate a format that the client can recognize.

Benefits of technology

The process achieves efficient and accurate conversion, solving the problem in existing technologies where the formats of mobile game clients and game data configuration tables are inconsistent, leading to difficulties in updating and synchronizing, which is time-consuming, labor-intensive, and prone to errors. By employing framework conversion tools and code conversion tools, the system automatically loads the game data configuration table on the server side, determines the corresponding game data configuration table framework on the client side, and performs conversion processing according to row and column numbers to generate a format that the client can recognize.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119818949B_ABST
    Figure CN119818949B_ABST
Patent Text Reader

Abstract

The application provides a game data configuration table conversion method and device, a medium and an electronic equipment. A framework conversion tool is started, and a game data configuration table on a server side is loaded to determine a game data configuration table framework corresponding to a client. An i-j conversion result is obtained by using a jth code conversion tool to perform conversion processing on an ith row and jth column in the game data configuration table on the server side. The i-j conversion result is added to the game data configuration table framework according to the row number and the column number, so as to obtain a game data configuration table of the client. Automatic conversion by using the jth code conversion tool can improve conversion efficiency, guarantee the accuracy of the conversion result, and greatly reduce the labor burden.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of computer, in particular to a game data configuration table conversion method and device, medium and electronic equipment. BACKGROUND

[0002] In general, the game logic of the mobile game client needs to be written in a script language, and the game server generally needs to be written in a language with high efficiency, such as C++, so that all game data configuration tables of the game need to generate a game data configuration table for the client script language, which meets the syntax structure of the script language, for example, the client programming language uses Lua.

[0003] After a new configuration data is added to a game data configuration table for the server, the new content needs to be manually added to the game data configuration table for the client Lua language, which is a very time-consuming and laborious physical activity, and it is also very time-consuming to keep the data of the two formats of the same data configuration table consistent, and it is easy to forget synchronization, and it is also a time-consuming and error-prone process to check whether the configuration contents in the two formats of the files of nearly a hundred data configuration tables are consistent when releasing the version.

[0004] Therefore, how to quickly and accurately convert the game data configuration table of the server into the game data configuration table of the client has become a difficult problem for those skilled in the art. SUMMARY

[0005] The purpose of the present application is to provide a game data configuration table conversion method, device, medium and electronic equipment to improve the above problems.

[0006] In order to achieve the above purpose, the technical scheme adopted by the embodiments of the present application is as follows:

[0007] In a first aspect, the embodiments of the present application provide a game data configuration table conversion method, which comprises:

[0008] Starting a framework conversion tool, loading the game data configuration table of the server to determine the game data configuration table framework corresponding to the client;

[0009] The game data configuration table framework includes the table header data and the table tail data of the game data configuration table of the client, the game data configuration table of the server is a game data configuration table written based on the programming language of the game server, and the game data configuration table of the client is a game data configuration table written based on the programming language of the client.

[0010] convert the i-th row and the j-th column in the server-side game data configuration table by using the j-th code conversion tool to obtain an i-j conversion result, where 1≤i≤I and 1≤j≤J, I represents the total number of rows in the server-side game data configuration table, and J represents the total number of columns in the server-side game data configuration table;

[0011] add the i-j conversion result to the game data configuration table framework according to the row number and the column number to obtain the client-side game data configuration table.

[0012] In a second aspect, an embodiment of the present application provides a game data configuration table conversion device, and the device comprises:

[0013] a first processing unit configured to start a framework conversion tool, load a server-side game data configuration table, and determine a client-side game data configuration table framework;

[0014] The game data configuration table framework comprises table header data and table tail data of the client-side game data configuration table, the server-side game data configuration table is a game data configuration table written based on a programming language of a game server side, and the client-side game data configuration table is a game data configuration table written based on a programming language of a client side.

[0015] The first processing unit is further configured to convert the i-th row and the j-th column in the server-side game data configuration table by using the j-th code conversion tool to obtain an i-j conversion result, where 1≤i≤I and 1≤j≤J, I represents the total number of rows in the server-side game data configuration table, and J represents the total number of columns in the server-side game data configuration table.

[0016] a second processing unit configured to add the i-j conversion result to the game data configuration table framework according to the row number and the column number to obtain the client-side game data configuration table.

[0017] In a third aspect, an embodiment of the present application provides a storage medium having a computer program stored thereon, and the computer program is executed by a processor to implement the method.

[0018] In a fourth aspect, an embodiment of the present application provides an electronic device, and the electronic device comprises a processor and a memory, the memory is configured to store one or more programs, and the one or more programs are executed by the processor to implement the method.

[0019] Compared with the prior art, the game data configuration table conversion method, device, medium and electronic equipment provided by the embodiment of the application start a framework conversion tool, load the game data configuration table of the server end to determine the game data configuration table framework corresponding to the client; wherein the game data configuration table framework comprises the table head data and the table tail data of the game data configuration table of the client, the game data configuration table of the server end is a game data configuration table written based on the programming language of the game server end, and the game data configuration table of the client is a game data configuration table written based on the programming language of the client; the jth code conversion tool is used to perform conversion processing on the ith row and the jth column in the game data configuration table of the server end to obtain an ith-j conversion result, wherein 1≤i≤I and 1≤j≤J, I represents the total number of rows in the game data configuration table of the server end, and J represents the total number of columns in the game data configuration table of the server end; the ith-j conversion result is added to the game data configuration table framework according to the row number and the column number to obtain the game data configuration table of the client. In the game data configuration table conversion method provided by the embodiment of the application, automatic conversion is performed by using the jth code conversion tool, which can improve the conversion efficiency, guarantee the accuracy of the conversion result, and greatly reduce the labor burden.

[0020] In order to make the above objectives, characteristics and advantages of the present application more apparent, clear and easy to understand, the following preferred embodiments are specifically described below with reference to the accompanying drawings. BRIEF DESCRIPTION OF DRAWINGS

[0021] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following will briefly introduce the drawings needed to be used in the embodiments. It should be understood that the following drawings only show some embodiments of the present application, and therefore should not be regarded as a limitation on the scope. For those skilled in the art, other related drawings can also be obtained without creative labor.

[0022] Figure 1 The structural schematic diagram of the electronic equipment provided by the embodiment of the present application.

[0023] Figure 2 The flowchart of the game data configuration table conversion method provided by the embodiment of the present application.

[0024] Figure 3 The flowchart of the game data configuration table conversion method provided by the embodiment of the present application.

[0025] Figure 4 The flowchart of the game data configuration table conversion method provided by the embodiment of the present application.

[0026] Figure 5 The unit schematic diagram of the game data configuration table conversion device provided by the embodiment of the present application.

[0027] In the figure: 10 - processor; 11 - memory; 12 - bus; 13 - communication interface; 201 - first processing unit; 202 - second processing unit. DETAILED DESCRIPTION

[0028] In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only some but not all of the embodiments of the present application. The components of the embodiments of the present application described and shown in the accompanying drawings can be arranged and designed in various different configurations.

[0029] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the claimed present application, but only represents selected embodiments of the present application. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in the present application without creative work fall within the scope of protection of the present application.

[0030] It should be noted that: similar reference numerals and letters represent similar items in the following drawings, therefore, once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. Meanwhile, in the description of the present application, the terms "first", "second" and the like are only used to distinguish description, and cannot be understood as indicating or implying relative importance.

[0031] It should be noted that: similar reference numerals and letters represent similar items in the following drawings, therefore, once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. Meanwhile, in the description of the present application, the terms "first", "second" and the like are only used to distinguish description, and cannot be understood as indicating or implying relative importance.

[0032] In the description of the present application, it should be noted that the terms "upper", "lower", "inner", "outer" and the like indicate the orientation or positional relationship shown in the drawings, or the orientation or positional relationship commonly used when the product of the present application is used, and are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the device or element referred to must have a particular orientation, be constructed and operated in a particular orientation, and therefore cannot be understood as a limitation on the present application.

[0033] In the description of the present application, it should be noted that, unless otherwise specified and limited, the terms "set", "connected" should be understood broadly, for example, it can be fixedly connected, or it can be detachably connected, or integrally connected, it can be mechanically connected, or it can be electrically connected, it can be directly connected, or it can be indirectly connected through an intermediate medium, it can be the communication inside two elements. For those skilled in the art, the specific meaning of the above terms in the present application can be understood according to the specific circumstances.

[0034] Some embodiments of the present application will be described in detail below with reference to the accompanying drawings. The following examples and features in the examples can be combined with each other without conflict.

[0035] The game data configuration table conversion method provided by the embodiment of the present application can efficiently convert the game data configuration table on the server side into the game data configuration table on the client side through an automatic tool, improve the game data configuration table conversion efficiency, and guarantee the accuracy of the conversion result.

[0036] The embodiment of the present application provides an electronic device, which can be a computer device, a server device, a mobile phone device and the like. Please refer to Figure 1 , a structural schematic diagram of the electronic device. The electronic device includes a processor 10, a memory 11 and a bus 12. The processor 10 and the memory 11 are connected through the bus 12, and the processor 10 is used to execute the executable modules stored in the memory 11, such as computer programs.

[0037] The processor 10 can be an integrated circuit chip with signal processing capability. In implementation, the steps of the game data configuration table conversion method can be completed by integrated logic circuits of hardware in the processor 10 or instructions in the form of software. The processor 10 described above can be a general processor, including a central processing unit (CPU), a network processor (NP), etc.; can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0038] The memory 11 can include a high-speed random access memory (RAM) and can also include a non-volatile memory, such as at least one disk memory.

[0039] The bus 12 can be an industry standard architecture (ISA) bus, a peripheral component interconnect (PCI) bus, an extended industry standard architecture (EISA) bus, etc. Figure 1 Only one bidirectional arrow is used to represent the bus 12, but it does not mean that there is only one bus 12 or only one type of bus 12.

[0040] The memory 11 is used to store programs, such as programs corresponding to the game data configuration table conversion device. The game data configuration table conversion device includes at least one software function module that can be stored in the memory 11 in the form of software or firmware or solidified in the operating system (OS) of the electronic device. After receiving an execution instruction, the processor 10 executes the program to implement the game data configuration table conversion method.

[0041] Possibly, the electronic device provided by the embodiment of the present application further includes a communication interface 13. The communication interface 13 is connected with the processor 10 through the bus.

[0042] It should be understood that, Figure 1 The structure shown is only a structural schematic diagram of part of the electronic device, and the electronic device can further include more components than those shownFigure 1 more or less components than those shown in the figures or described above, or configured differently from those shown in the figures. For example, the configuration of the electronic device shown in Figure 1 may be different from that shown in the figures. Figure 1 The components shown in the figures can be implemented in hardware, software, or a combination thereof.

[0043] The game data configuration table conversion method provided by the embodiments of the present application can be applied to, but is not limited to, the electronic device shown in Figure 1 , and the specific process is described in detail in Figure 2 . The game data configuration table conversion method comprises the following steps: S14, S15 and S16, which are described as follows.

[0044] In S14, a framework conversion tool is started, and a game data configuration table on a server side is loaded to determine a game data configuration table framework corresponding to a client.

[0045] The game data configuration table framework comprises table head data and table tail data of the game data configuration table of the client, the game data configuration table on the server side is a game data configuration table written based on a programming language on the server side of the game, and the game data configuration table of the client is a game data configuration table written based on a programming language of the client.

[0046] Optionally, the programming language on the server side of the game is C++ language, and the programming language of the client is Lua language.

[0047] In an optional implementation, a configuration table acquisition request can be sent to the server side, and the server side feeds back a game data configuration table newly created or changed in the server side when the configuration table acquisition request is acquired. The framework conversion tool can load the game data configuration table on the server side received by the framework conversion tool, and then generate the game data configuration table framework corresponding to the client.

[0048] A reference example of the game data configuration table framework is as follows:

[0049] local t_clothesInfo=

[0050] {…}

[0051] return t_clothesInfo.

[0052] In S15, the jth code conversion tool is used to perform conversion processing on the ith row and jth column in the game data configuration table on the server side to obtain an i-j conversion result.

[0053] Wherein, 1≤i≤I, 1≤j≤J, I represents the total number of rows in the game data configuration table on the server side, and J represents the total number of columns in the game data configuration table on the server side.

[0054] For example, the game data configuration table on the server side has 160 column data items, including:

[0055] ID, part, name, description, icon, art resource front, art resource front overlay parameter, art resource middle, art resource middle overlay parameter, art resource back, art resource back overlay parameter, front part X axis offset, front part Y axis offset, middle part X axis offset, middle part Y axis offset, back part X axis offset, back part Y axis offset, unlock type, competitive level limit, sale quantity, gold purchase price, diamond unlock price, token 1, token 2, provide experience for upgrading to role, whether can be donated, experience obtained by donating 1, money obtained by donating 1, quantity required for upgrading 1, money required for upgrading 1, quantity required for upgrading 2, money required for upgrading 2, quantity required for upgrading 3, money required for upgrading 3, quantity required for upgrading 4, money required for upgrading 4, quantity required for upgrading 5, money required for upgrading 5, quantity required for upgrading 6, money required for upgrading 6, quantity required for upgrading 7, money required for upgrading 7, quantity required for upgrading 8, money required for upgrading 8, quantity required for upgrading 9, money required for upgrading 9, quantity required for upgrading 10, money required for upgrading 10, quantity required for upgrading 11, money required for upgrading 11, display ID, quality, limited edition, part value, style label 1, X coordinate, Y coordinate, 1st level score weight, 2nd level score weight, 3rd level score weight, 4th level score weight, 5th level score weight, 6th level score weight, 7th level score weight, 8th level score weight, 9th level score weight, 10th level score weight, 11th level score weight, 12th level score weight, pattern parameter, color 1, color parameter 1, color 2, color parameter 2, color 3, color parameter 3, theme 1, theme 2, 1st level gorgeous score, 1st level simple score, 1st level sexy score, 1st level pure score, 1st level elegant score, 1st level lovely score, 2nd level label 1, 2nd level label 2, 2nd level gorgeous score, 2nd level simple score, 2nd level sexy score, 2nd level pure score, 2nd level elegant score, 2nd level lovely score, 3rd level label 1, 3rd level label 2, 3rd level gorgeous score, 3rd level simple score, 3rd level sexy score, 3rd level pure score, 3rd level elegant score, 3rd level lovely score, 4th level label 1, 4th level label 2, 4th level gorgeous score, 4th level simple score, 4th level sexy score, 4th level pure score, 4th level elegant score, 4th level lovely score, 5th level label 1, 5th level label 2, 5th level gorgeous score, 5th level simple score, 5th level sexy score, 5th level pure score, 5th level elegant score, 5th level lovely score, 6th level label 1, 6th level label 2, 6th level gorgeous score, 6th level simple score, 6th level sexy score, 6th level pure score, 6th level elegant score, 6th level lovely score, 7th level label 1, 7th level label 2, 7th level gorgeous score, 7th level simple score, 7th level sexy score, 7th level pure score, 7th level elegant score, 7th level lovely score, 8th level label 1, 8th level label 2, 8th level gorgeous score, 8th level simple score, 8th level sexy score, 8th level pure score, 8th level elegant score, 8th level lovely score, 9th level label 1, 9th level label 2, 9th level gorgeous score, 9th level simple score, 9th level sexy score, 9th level pure score, 9th level elegant score, 9th level lovely score,10 level label 1, 10 level label 2, 10 level gorgeous score, 10 level simple score, 10 level sexy score, 10 level pure score, 10 level elegant score, 10 level lovely score, relevant website, price, donation of the gift fragments, set ID.

[0056] Each row in the table corresponds to an object, and in the conversion process, each column in each row needs to be converted. The Lua format game data table of the above table needs to convert the 160 column data of each row of the above table structure into a format that can be recognized by the Lua programming language: for example, the first three columns ID, part, and name, the above table data is rewritten into a game data configuration table that can be recognized by the Lua language: nID=10000007, nPartId=1004, szName="1009_091_0", then 160 column data, if all manually copy from the game data configuration table used by the server side, and paste into the game data configuration table that can be recognized by the client side lua language, it is tedious, the workload is huge, it is difficult to ensure that there is no error, and the updating process is time-consuming and laborious.

[0057] Among them, the first three columns are taken as an example, and the corresponding code conversion tool is as follows:

[0058] cmd<<"nID=" <pcfg->nID<<",";

[0059] cmd<<"nPartId=" <pcfg->nPartId << ",";

[0060] cmd << "szName=" << "\"" <pcfg->szName<<"\""<<",".

[0061] S16, adding the i-j conversion result to the game data configuration table framework according to the row number and the column number, to obtain the game data configuration table of the client.

[0062] Wherein, the row number is i, and the column number is j.

[0063] In the game data configuration table conversion method provided by the embodiment of the application, the automatic conversion by the jth code conversion tool can improve the conversion efficiency, guarantee the accuracy of the conversion result, and greatly reduce the labor burden.

[0064] It should be noted that after obtaining the game data configuration table of the client, the game data configuration table of the client can be sent to the client, so that the client performs data configuration based on the game data configuration table.

[0065] Optionally, when the i-th row and the j-th column in the game data configuration table of the server are in a string format, the jth code conversion tool is a code conversion tool in a string format.

[0066] When the i-th row and the j-th column in the game data configuration table of the server are in a number format, the jth code conversion tool is a code conversion tool in a number format.

[0067] On the basis of the foregoing, when the jth code conversion tool is a code conversion tool in a string format, the embodiment of the application further provides an optional implementation of the content in S15, which is described below. S15, the step of converting the i-th row and the j-th column in the game data configuration table of the server by using the jth code conversion tool to obtain the i-j conversion result, comprises: S151 and S152, which are specifically described as follows.

[0068] S151, the jth code conversion tool extracts the to-be-converted content corresponding to the i-th row and the j-th column in the game data configuration table of the server.

[0069] S152, the jth code conversion tool adds a feature symbol corresponding to the string format to the to-be-converted content, to obtain the i-j conversion result.

[0070] The feature symbol corresponding to the string format is a double quotation mark.

[0071] The jth code conversion tool corresponding to the third column (name) in the above example is a code conversion tool in a string format: cmd<<"szName="<<"\""< <pcfg->szName<<"\""<<",".

[0072] On the basis of the foregoing, when the jth code conversion tool is a code conversion tool in a numerical format, regarding the content in S15, the embodiment of the present application further provides an alternative implementation, please refer to the following. S15, the step of converting the jth column of the ith row in the game data configuration table on the server side by using the jth code conversion tool to obtain an ith-j conversion result, comprises: S153 and S154, which are specifically described as follows.

[0073] S153, the jth code conversion tool extracts the to-be-converted content corresponding to the jth column of the ith row in the game data configuration table on the server side.

[0074] S154, the jth code conversion tool determines the to-be-converted content as the ith-j conversion result.

[0075] In the above example, the first column (ID) and the second column (part) are taken as examples, and the first code conversion tool corresponding thereto is a code conversion tool in a string format: cmd<<"nID="< <pcfg->nID<<", "; its corresponding 2nd code conversion tool is a code conversion tool in string format: cmd << "nPartId=" << partID <pcfg->nPartId << ",".

[0076] On the basis of the foregoing, as to how to automatically generate the code conversion tool, the embodiment of the application further provides an optional implementation, please refer to Figure 3 The game data configuration table conversion method further includes S11, S12 and S13, which are specifically described as follows.

[0077] S11, a conversion function is called, and the conversion function acquires the format and identification information of the jth column in the game data configuration table on the server side.

[0078] The identification information can be the field name of the jth column.

[0079] S12, when the jth column in the game data configuration table on the server side is in a number format, the conversion function generates the jth code conversion tool in the number format according to the identification information.

[0080] S13, when the jth column in the game data configuration table on the server side is in a string format, the conversion function generates the jth code conversion tool in the string format according to the identification information.

[0081] The conversion function can automatically identify whether each column of data is in a string format, and the principle is to encapsulate the conversion code by using the macro definition of C++, and the code encapsulated by the C++ macro definition judges whether each column of data is in a string format, so as to achieve the purpose of simplifying the conversion code writing process. When the game data configuration table on the server side is newly generated, the conversion tool does not need to be manually written, the cumbersome writing process is saved, and the processing efficiency is improved.

[0082] Please refer to Figure 4 In an optional implementation, after S16, the game data configuration table conversion method further includes S17, which is specifically described as follows.

[0083] S17, according to the name of the game data configuration table on the server side, the game data configuration table on the client side is named.

[0084] Optionally, the name of the game data configuration table on the server side and the name of the game data configuration table on the client side are generated and recorded, so as to facilitate comparison. Or the name of the game data configuration table on the server side and the name of the game data configuration table on the client side are the same.

[0085] The server-side C++ game data configuration table is automatically converted into the client-side Lua game data configuration table by a conversion program, and when the conversion program is written, the corresponding table column name in the C++ program is parsed to automatically name the corresponding column name of the Lua table, so that the Lua programmer does not need to name the corresponding game data configuration table column in the Lua program again, and the naming is consistent with that of the server-side C++. When the corresponding column in the C++ program is modified, the next update automatically modifies the column name of the corresponding table in the Lua.

[0086] Please refer to Figure 5 , Figure 5 A game data configuration table conversion device is provided in the embodiments of the application. Optionally, the game data configuration table conversion device is applied to the electronic device described above.

[0087] The game data configuration table conversion device comprises a first processing unit 201 and a second processing unit 202.

[0088] The first processing unit 201 is configured to start a framework conversion tool, load a server-side game data configuration table, and determine a corresponding client-side game data configuration table framework.

[0089] The game data configuration table framework comprises table header data and table tail data of the client-side game data configuration table. The server-side game data configuration table is a game data configuration table written based on a programming language of a game server side. The client-side game data configuration table is a game data configuration table written based on a programming language of a client side.

[0090] The first processing unit 201 is further configured to perform conversion processing on an i-th row and a j-th column in the server-side game data configuration table by using a j-th code conversion tool, to obtain an i-j conversion result, where 1≤i≤I and 1≤j≤J. I represents a total number of rows in the server-side game data configuration table. J represents a total number of columns in the server-side game data configuration table.

[0091] The second processing unit 202 is configured to add the i-j conversion result to the game data configuration table framework according to the row number and the column number, to obtain the client-side game data configuration table.

[0092] Optionally, the second processing unit 202 can perform the S16 described above, and the first processing unit 201 can perform other steps described above.

[0093] It should be noted that the game data configuration table conversion device provided in the embodiments can perform the method processes shown in the method process embodiments to achieve the corresponding technical effects. For brevity, some parts of the embodiments are not mentioned in the above embodiments.

[0094] The embodiment of the present application also provides a storage medium which stores computer instructions and programs, and the computer instructions and programs perform the game data configuration table conversion method of the above embodiment when being read and run. The storage medium can include memory, flash memory, register or combination thereof.

[0095] An electronic device is provided below, which can be a computer device, a server device, a mobile phone device and the like. The electronic device can implement the game data configuration table conversion method as shown in the above embodiment. Specifically, the electronic device includes a processor 10, a memory 11 and a bus 12. The processor 10 can be a CPU. The memory 11 is used to store one or more programs, and when the one or more programs are executed by the processor 10, the game data configuration table conversion method of the above embodiment is performed. Figure 1

[0096] In summary, the embodiment of the present application provides a game data configuration table conversion method, device, medium and electronic device. A framework conversion tool is started, and a game data configuration table of a server end is loaded to determine a game data configuration table framework corresponding to a client end. The game data configuration table framework includes table head data and table tail data of the game data configuration table of the client end. The game data configuration table of the server end is a game data configuration table written based on a programming language of the game server end, and the game data configuration table of the client end is a game data configuration table written based on a programming language of the client end. An i-th column of an i-th row in the game data configuration table of the server end is converted by using a j-th code conversion tool to obtain an i-j conversion result, where 1≤i≤I and 1≤j≤J. I represents a total number of rows in the game data configuration table of the server end, and J represents a total number of columns in the game data configuration table of the server end. The i-j conversion result is added to the game data configuration table framework according to a row number and a column number to obtain the game data configuration table of the client end. In the game data configuration table conversion method provided by the embodiment of the present application, automatic conversion is performed by using the j-th code conversion tool, which can improve conversion efficiency, guarantee accuracy of the conversion result and greatly reduce human burden.

[0097] The above only describes preferred embodiments of the present application and is not used to limit the present application. For those skilled in the art, the present application can have various modifications and changes. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

[0098] ​It will be apparent to those skilled in the art that the application is not limited to the details of the above-exemplified embodiments and that the present application can be implemented in other particular forms without departing from the spirit or essential characteristics of the present application. The embodiments should therefore be considered in all respects as illustrative and not restrictive, the scope of the application being indicated by the appended claims rather than by the above description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. No reference signs in the claims should be considered as limiting the scope of the claims with respect to the figures of the patent document.

Claims

1. A method for converting game data configuration tables, characterized in that, The method includes: The framework conversion tool is launched to load the game data configuration table on the server side to determine the game data configuration table framework corresponding to the client. The client's programming language is Lua. The game data configuration table framework includes the header and footer data of the client's game data configuration table, the server-side game data configuration table is a game data configuration table written in a game server-side programming language, and the client-side game data configuration table is a game data configuration table written in a client-side programming language. The j-th code conversion tool is used to convert the i-th row and j-th column of the game data configuration table on the server side to obtain the ij-th conversion result, where 1≤i≤I, 1≤j≤J, I represents the total number of rows in the game data configuration table on the server side, and J represents the total number of columns in the game data configuration table on the server side. According to the row number and column number, the ij-th transformation result is added to the game data configuration table frame to obtain the game data configuration table of the client; When the i-th row and j-th column of the game data configuration table on the server is in string format, the j-th code conversion tool is a string format code conversion tool; When the i-th row and j-th column of the game data configuration table on the server is in numeric format, the j-th code conversion tool is a numeric code conversion tool; When the j-th code conversion tool is a string-format code conversion tool, the step of using the j-th code conversion tool to convert the i-th row and j-th column of the game data configuration table on the server side to obtain the ij-th conversion result includes: The j-th code conversion tool extracts the content to be converted from the i-th row and j-th column of the game data configuration table on the server. The j-th code conversion tool adds characteristic symbols corresponding to the string format to the content to be converted, so as to obtain the ij-th conversion result.

2. The game data configuration table conversion method as described in claim 1, characterized in that, The characteristic symbol corresponding to the string format is double quotes.

3. The game data configuration table conversion method as described in claim 1, characterized in that, When the j-th code conversion tool is a number format code conversion tool, the step of using the j-th code conversion tool to convert the i-th row and j-th column of the game data configuration table on the server side to obtain the ij-th conversion result includes: The j-th code conversion tool extracts the content to be converted from the i-th row and j-th column of the game data configuration table on the server. The j-th code conversion tool determines the content to be converted as the ij-th conversion result.

4. The game data configuration table conversion method as described in claim 1, characterized in that, The method further includes: Call the conversion function, which obtains the format and identification information of the j-th column in the game data configuration table on the server side; When the j-th column of the game data configuration table on the server side is in numeric format, the conversion function generates the j-th code conversion tool in numeric format based on the identification information; When the j-th column of the game data configuration table on the server side is in string format, the conversion function generates the j-th code conversion tool in string format based on the identification information.

5. The game data configuration table conversion method as described in claim 1, characterized in that, The method further includes: Name the game data configuration table on the client side according to the name of the game data configuration table on the server side.

6. A game data configuration table conversion device, characterized in that, The device includes: The first processing unit is used to start the framework conversion tool, load the game data configuration table on the server side, and determine the game data configuration table framework corresponding to the client. The client's programming language is Lua. The game data configuration table framework includes the header and footer data of the client's game data configuration table, the server-side game data configuration table is a game data configuration table written in a game server-side programming language, and the client-side game data configuration table is a game data configuration table written in a client-side programming language. The first processing unit is further configured to use the j-th code conversion tool to perform conversion processing on the i-th row and j-th column of the game data configuration table on the server side to obtain the ij-th conversion result, where 1≤i≤I, 1≤j≤J, I represents the total number of rows in the game data configuration table on the server side, and J represents the total number of columns in the game data configuration table on the server side. The second processing unit is used to add the ij-th transformation result to the game data configuration table frame according to the row number and column number to obtain the game data configuration table of the client; When the i-th row and j-th column of the game data configuration table on the server is in string format, the j-th code conversion tool is a string format code conversion tool; When the i-th row and j-th column of the game data configuration table on the server is in numeric format, the j-th code conversion tool is a numeric code conversion tool; When the j-th code conversion tool is a string format code conversion tool, the step of using the j-th code conversion tool to convert the i-th row and j-th column of the game data configuration table on the server side to obtain the ij-th conversion result includes: the j-th code conversion tool extracting the content to be converted corresponding to the i-th row and j-th column of the game data configuration table on the server side; and the j-th code conversion tool adding string format characteristic symbols to the content to be converted to obtain the ij-th conversion result.

7. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the method as described in any one of claims 1-5.

8. An electronic device, characterized in that, include: Processor and memory, the memory being used to store one or more programs; When the one or more programs are executed by the processor, the method as described in any one of claims 1-5 is implemented.

Citation Information

Patent Citations

  • Method and system for converting table data into game and electronic equipment

    CN112363691A

  • Excel spreadsheet data import and export method for realizing multi-level header and multi-type data structure

    CN115905384A