Game data configuration table conversion method and device, medium and electronic equipment

Through the combination of framework conversion tools and code conversion tools, the game data configuration table on the server side is automatically converted into a format available to the client, solving the problems of low conversion efficiency and poor accuracy in the existing technology, and achieving efficient and accurate data conversion.

CN119818949AActive Publication Date: 2025-04-15BEIJING PIXEL SOFTWARE TECH
View PDF 5 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

The prior art is difficult to quickly and accurately convert the game data configuration table on the server side into a format that the client can use, resulting in manual operations being time-consuming and labor-intensive and error-prone.

Method used

By starting the framework conversion tool, loading the game data configuration table on the server side, determining the game data configuration table framework corresponding to the client, and using the code conversion tool to convert the server side data to generate the game data configuration table available to the client.

Benefits of technology

Automatic conversion is realized, which significantly improves conversion efficiency, ensures the accuracy of conversion results, and greatly reduces the manpower burden.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119818949A_ABST
    Figure CN119818949A_ABST
Patent Text Reader

Abstract

The invention provides a game data configuration table conversion method and device, a medium and electronic equipment, and the method comprises the steps: starting a frame conversion tool, and loading a game data configuration table at a server side to determine a game data configuration table frame corresponding to a client side; performing conversion processing on the ith row and the jth column in the game data configuration table of the server side by using the jth code conversion tool to obtain an (i-j) th conversion result; and according to the row number and the column number, adding the (i-j) th conversion result to a game data configuration table framework to obtain a game data configuration table of the client. And the jth code conversion tool is used for automatic conversion, so that the conversion efficiency can be improved, the accuracy of a conversion result is guaranteed, and the labor burden is greatly reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a method, device, medium and electronic equipment for converting a game data configuration table. Background Art

[0002] Under normal circumstances, mobile game clients need to write frequently updated game logic in a scripting language, while the game server generally needs to be written in an efficient language, such as C++. In this way, all game data configuration tables of the game need to generate a game data configuration table specifically for the client scripting language that conforms to the grammatical structure of this scripting language, such as Lua, which is used as the client programming language.

[0003] After a new row of configuration data is added to a game data configuration table used by the server, the new content needs to be manually added to the game data configuration table that can be used by the client Lua language, which is also a very time-consuming and laborious physical task. In addition, it is also time-consuming to keep the two formats of data in the same data configuration table completely consistent when the data is updated, and it is easy to forget to synchronize. In addition, when releasing a version, checking whether the configuration content in the two formats of files of nearly 100 data configuration tables is consistent is itself a time-consuming and error-prone process.

[0004] Therefore, how to quickly and accurately convert the game data configuration table on the server side into the game data configuration table on the client side has become a difficult problem that technicians in this field are concerned about. Summary of the invention

[0005] The object of the present invention is to provide a game data configuration table conversion method, device, medium and electronic device to improve the above-mentioned problem.

[0006] In order to achieve the above purpose, the technical solution adopted by the embodiment of the present invention is as follows:

[0007] In a first aspect, an embodiment of the present invention provides a method for converting a game data configuration table, the method comprising:

[0008] Start the framework conversion tool and load the game data configuration table on the server to determine the game data configuration table framework corresponding to the client;

[0009] The game data configuration table framework includes the header data and footer 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 in a programming language based on the game server, and the game data configuration table of the client is a game data configuration table written in a programming language based on the client;

[0010] Using the jth code conversion tool to convert the i-th row and j-th column in the game data configuration table on the server side to obtain the ijth 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;

[0011] According to the row number and column number, the ijth conversion result is added to the game data configuration table frame to obtain the game data configuration table of the client.

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

[0013] The first processing unit is used to start the framework conversion tool and load the game data configuration table on the server side to determine the game data configuration table framework corresponding to the client side;

[0014] The game data configuration table framework includes the header data and footer 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 in a programming language based on the game server, and the game data configuration table of the client is a game data configuration table written in a programming language based on the client;

[0015] The first processing unit is further used to use the jth code conversion tool to convert the i-th row and j-th column in the game data configuration table on the server side to obtain the ijth 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;

[0016] The second processing unit is used to add the ijth conversion result to the game data configuration table frame according to the row number and the column number to obtain the game data configuration table of the client.

[0017] In a third aspect, an embodiment of the present invention provides a storage medium having a computer program stored thereon, and the computer program implements the above method when executed by a processor.

[0018] In a fourth aspect, an embodiment of the present invention provides an electronic device, comprising: a processor and a memory, wherein the memory is used to store one or more programs; when the one or more programs are executed by the processor, the above method is implemented.

[0019] Compared with the prior art, the game data configuration table conversion method, device, medium and electronic device provided in the embodiment of the present invention start the framework conversion tool, load the game data configuration table on the server side, so as to determine the game data configuration table framework corresponding to the client; wherein the game data configuration table framework includes the header data and footer data of the game data configuration table on the client side, the game data configuration table on the server side is a game data configuration table written in the programming language based on the game server side, and the game data configuration table on the client side is a game data configuration table written in the programming language based on the client side; using the jth code conversion tool to convert the i-th row and j-th column in the game data configuration table on the server side to obtain the ijth conversion result, 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; according to the row number and column number, the ijth conversion result is added to the game data configuration table framework to obtain the game data configuration table on the client side. In the game data configuration table conversion method provided in the embodiment of the present invention, the jth code conversion tool is used for automatic conversion, which can improve the conversion efficiency, ensure the accuracy of the conversion result, and greatly reduce the manpower burden.

[0020] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0022] Figure 1 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention.

[0023] Figure 2 This is one of the flow charts of the game data configuration table conversion method provided by an embodiment of the present invention.

[0024] Figure 3 The second flowchart of the game data configuration table conversion method provided in the embodiment of the present invention.

[0025] Figure 4 The third flowchart of the game data configuration table conversion method provided in the embodiment of the present invention.

[0026] Figure 5 A unit schematic diagram of a game data configuration table conversion device provided by an embodiment of the present invention.

[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 purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.

[0029] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

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

[0031] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0032] In the description of the present invention, it should be noted that the terms "upper", "lower", "inside", "outside", etc. indicate directions or positional relationships based on the directions or positional relationships shown in the accompanying drawings, or are directions or positional relationships in which the product of the invention is usually placed when in use. They are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific direction, be constructed and operated in a specific direction, and therefore should not be understood as a limitation on the present invention.

[0033] In the description of the present invention, it is also necessary to explain that, unless otherwise clearly specified and limited, the terms "disposed" and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be an indirect connection through an intermediate medium, or it can be the internal communication of two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0034] Some embodiments of the present invention are described in detail below in conjunction with the accompanying drawings. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.

[0035] The embodiment of the present invention provides a game data configuration table conversion method, which efficiently converts the game data configuration table of the server into the game data configuration table of the client through an automated tool, thereby improving the conversion efficiency of the game data configuration table and ensuring the accuracy of the conversion result.

[0036] The embodiment of the present invention provides an electronic device, which may be a computer device, a server device, a mobile phone device, etc. Figure 1 , a schematic diagram of the structure of an 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 via the bus 12, and the processor 10 is used to execute an executable module stored in the memory 11, such as a computer program.

[0037] The processor 10 may be an integrated circuit chip having the ability to process signals. In the implementation process, each step of the game data configuration table conversion method may be completed by an integrated logic circuit of hardware in the processor 10 or by instructions in the form of software. The above-mentioned processor 10 may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may 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 gates or transistor logic devices, or discrete hardware components.

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

[0039] The bus 12 may be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, or an EISA (Extended Industry Standard Architecture) bus. Figure 1 Although only one bidirectional arrow is used in the figure, 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 fixed in the operating system (OS) of the electronic device. After receiving the 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 invention further includes a communication interface 13. The communication interface 13 is connected to the processor 10 via a bus.

[0042] It should be understood that Figure 1 The structure shown is only a schematic diagram of a portion of the electronic device. The electronic device may also include Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown. Figure 1 Each component shown in the figure can be implemented by hardware, software or a combination thereof.

[0043] A game data configuration table conversion method provided by an embodiment of the present invention can be applied to, but not limited to, Figure 1 For detailed procedures, please refer to the electronic equipment shown in Figure 2 , the game data configuration table conversion method includes: S14, S15 and S16, which are specifically described as follows.

[0044] S14, 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 side.

[0045] Among them, the game data configuration table framework includes the header data and footer data of the client's game data configuration table, the server's game data configuration table is a game data configuration table written in the programming language based on the game server, and the client's game data configuration table is a game data configuration table written in the programming language based on the client.

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

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

[0048] The reference example of the game data configuration table framework is:

[0049] local t_clothesInfo=

[0050] {…}

[0051] return t_clothesInfo.

[0052] S15, using the jth code conversion tool to convert the i-th row and j-th column in the game data configuration table on the server side to obtain the ijth conversion result.

[0053] Among them, 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 a total of 160 columns of data items, including:

[0055] ID, part, name, description, icon, front art resource, front art resource overwrite parameter, middle art resource, middle art resource overwrite parameter, back art resource, back art resource overwrite parameter, front component X-axis offset, front component Y-axis offset, middle component X-axis offset, middle component Y-axis offset, rear component X-axis offset, rear component Y-axis offset, unlock type, competitive level limit, sale quantity, gold coin purchase price, diamond unlock price, token 1, token 2, upgrade to provide experience for the character, whether it can be donated, experience gained by donating 1 item, money gained by donating 1 item, quantity required for upgrade 1, money required for upgrade 1, quantity required for upgrade 2, money required for upgrade 2, quantity required for upgrade 3, money required for upgrade 3, quantity required for upgrade 4, money required for upgrade 4, upgrade Required quantity for level 5, Required money for upgrade 5, Required quantity for upgrade 6, Required money for upgrade 6, Required quantity for upgrade 7, Required money for upgrade 7, Required quantity for upgrade 8, Required money for upgrade 8, Required quantity for upgrade 9, Required money for upgrade 9, Required quantity for upgrade 10, Required money for upgrade 10, Required quantity for upgrade 11, Required money for upgrade 11, Display ID, Quality, Limited Edition, Component Value, Style Label 1, X Coordinate, Y Coordinate, Level 1 Score Weight, Level 2 Score Weight, Level 3 Score Weight, Level 4 Score Weight, Level 5 Score Weight, Level 6 Score Weight, Level 7 Score Weight, Level 8 Score Weight, Level 9 Score Weight, Level 10 Score Weight, Level 11 Score Weight, Level 12 Score Weight, Pattern Parameters, Color 1, Color Parameters 1, Color 2. Color parameter 2. Color 3. Color parameter 3. Theme 1. Theme 2. Level 1 gorgeous score. Level 1 simple score. Level 1 sexy score. Level 1 pure score. Level 1 elegant score. Level 1 cute score. Level 2 label 1. Level 2 label 2. Level 2 gorgeous score. Level 2 simple score. Level 2 sexy score. Level 2 pure score. Level 2 elegant score. Level 2 cute score. Level 3 label 1. Level 3 label 2. Level 3 gorgeous score. Level 3 simple score. Level 3 sexy score. Level 3 pure score. Level 3 elegant score. Level 3 cute score. Level 4 label 1. Level 4 label 2. Level 4 gorgeous score. Level 4 simple score. Level 4 sexy score. Level 4 pure score. Level 4 elegant score. Level 4 cute score. Level 5 label 1. Level 5 label 2. Level 5 gorgeous score. Level 5 1, 2, 3, 4, 5, 6, 7, 8, ...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 cute score, related website, price, donated fragments, set ID.

[0056] Each row in the table corresponds to an object. During the conversion process, each column in each row needs to be converted. The Lua format game data table in the above table needs to convert the 160 columns of data in each row of the above table structure into a format that can be recognized by the corresponding Lua programming language: for example, the first three columns of ID, part, and name, rewrite the data in the above table into a game data configuration table in a format that can be recognized by the Lua language: nID = 10000007, nPartId = 1004, szName = "1009_091_0", then if the 160 columns of data are manually copied from the game data configuration table used on the server side and then pasted into the game data configuration table that can be recognized by the client Lua language, it will be cumbersome and laborious, and it is difficult to ensure that there will be no errors, and the update process is also time-consuming and labor-intensive.

[0057] Among them, taking the first three columns as an example, the corresponding code conversion tools are as follows:

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

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

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

[0061] S16, adding the ijth conversion 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.

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

[0063] The game data configuration table conversion method provided in the embodiment of the present invention uses the jth code conversion tool for automatic conversion, which can improve conversion efficiency, ensure the accuracy of conversion results, and greatly reduce the manpower 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 also be sent to the client, so that the client can perform data configuration based on it.

[0065] Optionally, when the i-th row and j-th column in the game data configuration table on the server side is in a string format, the j-th code conversion tool is a code conversion tool in a string format;

[0066] When the i-th row and j-th column in the game data configuration table on the server side is in digital format, the j-th code conversion tool is a code conversion tool in digital format.

[0067] On the basis of the above, when the jth code conversion tool is a code conversion tool in a string format, the embodiment of the present invention also provides an optional implementation method for the content in S15, please refer to the following. S15, using the jth code conversion tool to convert the i-th row and j-th column in the game data configuration table on the server side to obtain the ijth conversion result, includes: S151 and S152, which are specifically described as follows.

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

[0069] S152, the jth code conversion tool adds a characteristic symbol corresponding to the string format to the content to be converted to obtain the ijth conversion result.

[0070] The characteristic symbol corresponding to the string format is double quotation marks.

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

[0072] On the basis of the above, when the jth code conversion tool is a code conversion tool in digital format, the embodiment of the present invention also provides an optional implementation method for the content in S15, please refer to the following. S15, using the jth code conversion tool to convert the i-th row and j-th column in the game data configuration table on the server side to obtain the ijth conversion result, includes: S153 and S154, which are specifically described as follows.

[0073] S153, the j-th code conversion tool extracts the content to be converted corresponding to the i-th row and j-th column in the game data configuration table on the server side.

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

[0075] Taking the first column (ID) and the second column (position) in the above example as an example, the corresponding first code conversion tool is a code conversion tool in string format: cmd<<"nID="< <pcfg->nID<<","; the corresponding second code conversion tool is a code conversion tool in string format: cmd<<"nPartId="< <pcfg->nPartId<<",".

[0076] Based on the above, regarding how to automatically generate a code conversion tool, the embodiment of the present invention also provides an optional implementation method, please refer to Figure 3 , the game data configuration table conversion method also includes: S11, S12 and S13, which are specifically described as follows.

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

[0078] The identification information may 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 digital format, the conversion function generates a jth code conversion tool in digital format according to the identification information.

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

[0081] The conversion function can automatically identify whether each column of data is in string format. The principle is to use C++ macro definitions to encapsulate the conversion code, and the C++ macro definition nests the encapsulation code to determine whether each column of data is in string format, thereby simplifying the conversion code writing process. When the server generates a new game data configuration table, there is no need to manually write the conversion tool, which saves the tedious writing process and improves processing efficiency.

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

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

[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 for comparison, or the name of the game data configuration table on the server side is the same as the name of the game data configuration table on the client side.

[0085] A conversion program is used to automatically convert all game data configuration tables in server-side C++ into game data configuration tables in client-side Lua format. When writing the conversion program, the names of the columns of the corresponding tables used in the C++ program are parsed to automatically name the corresponding columns of the Lua table. This saves the client-side Lua programmer the trouble of naming the corresponding game data configuration table columns in the Lua program again and the need to keep the naming consistent with that in the server-side C++. After the corresponding columns in the C++ program are modified, the names of the corresponding table columns in Lua will be automatically modified in the next update.

[0086] See also Figure 5 , Figure 5 A game data configuration table conversion device is provided in an embodiment of the present invention. Optionally, the game data configuration table conversion device is applied to the electronic device described above.

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

[0088] The first processing unit 201 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 side;

[0089] The game data configuration table framework includes the header data and footer 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 in the programming language of the game server, and the game data configuration table of the client is a game data configuration table written in the programming language of the client;

[0090] The first processing unit 201 is further used to convert the i-th row and j-th column in the game data configuration table on the server side using the j-th code conversion tool 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;

[0091] The second processing unit 202 is used to add the ijth conversion result to the game data configuration table frame according to the row number and the column number to obtain the game data configuration table of the client.

[0092] Optionally, the second processing unit 202 may execute the above-mentioned S16, and the first processing unit 201 may execute the above-mentioned other steps.

[0093] It should be noted that the game data configuration table conversion device provided in this embodiment can execute the method flow shown in the above method flow embodiment to achieve the corresponding technical effect. For the sake of brief description, for parts not mentioned in this embodiment, reference can be made to the corresponding contents in the above embodiment.

[0094] The embodiment of the present invention further provides a storage medium, which stores computer instructions and programs, and when the computer instructions and programs are read and run, the game data configuration table conversion method of the above embodiment is executed. The storage medium may include a memory, a flash memory, a register, or a combination thereof.

[0095] The following provides an electronic device, which may be a computer device, a server device, a mobile phone device, etc. The electronic device is as follows: Figure 1 As shown, the above-mentioned game data configuration table conversion method can be implemented; 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. When the one or more programs are executed by the processor 10, the game data configuration table conversion method of the above-mentioned embodiment is executed.

[0096] In summary, the game data configuration table conversion method, device, medium and electronic device provided by the embodiment of the present invention start the framework conversion tool, load the game data configuration table of the server side, so as to determine the game data configuration table framework corresponding to the client; wherein the game data configuration table framework includes the header data and footer data of the game data configuration table of the client side, the game data configuration table of the server side is a game data configuration table written in the programming language based on the game server side, and the game data configuration table of the client side is a game data configuration table written in the programming language based on the client side; using the jth code conversion tool to convert the i-th row and j-th column in the game data configuration table on the server side to obtain the ijth conversion result, 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; according to the row number and column number, the ijth conversion result is added to the game data configuration table framework to obtain the game data configuration table of the client side. In the game data configuration table conversion method provided in the embodiment of the present invention, the jth code conversion tool is used for automatic conversion, which can improve the conversion efficiency, ensure the accuracy of the conversion result, and greatly reduce the manpower burden.

[0097] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

[0098] It will be apparent to those skilled in the art that the invention is not limited to the details of the exemplary embodiments described above and that the invention can be implemented in other specific forms without departing from the spirit or essential features of the invention. Therefore, the embodiments should be considered exemplary and non-limiting in all respects, and the scope of the invention is defined by the appended claims rather than the foregoing description, and it is intended that all variations falling within the meaning and scope of the equivalent elements of the claims be included in the invention. Any reference numeral in a claim should not be considered as limiting the claim to which it relates.

Claims

1. A method for converting a game data configuration table, characterized in that: The method comprises: Start the framework conversion tool and load the game data configuration table on the server to determine the game data configuration table framework corresponding to the client; The game data configuration table framework includes the header data and footer 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 in a programming language based on the game server, and the game data configuration table of the client is a game data configuration table written in a programming language based on the client; Using the jth code conversion tool to convert the i-th row and j-th column in the game data configuration table on the server side to obtain the ijth 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 ijth conversion result is added to the game data configuration table frame to obtain the game data configuration table of the client.

2. The game data configuration table conversion method according to claim 1, characterized in that: When the i-th row and j-th column in the game data configuration table of the server is in a string format, the j-th code conversion tool is a code conversion tool in a string format; When the i-th row and j-th column in the game data configuration table on the server side is in digital format, the j-th code conversion tool is a code conversion tool in digital format.

3. The game data configuration table conversion method according to claim 2, characterized in that: When the j-th code conversion tool is a code conversion tool in a string format, the step of using the j-th code conversion tool to convert the i-th row and j-th column in 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 corresponding to the i-th row and j-th column in the game data configuration table on the server side; The j-th code conversion tool adds a characteristic symbol corresponding to the string format to the content to be converted to obtain the ij-th conversion result.

4. The game data configuration table conversion method according to claim 3, characterized in that: The characteristic symbol corresponding to the string format is a double quotation mark.

5. The game data configuration table conversion method according to claim 2, characterized in that: When the j-th code conversion tool is a code conversion tool in a digital format, the step of using the j-th code conversion tool to convert the i-th row and j-th column in 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 corresponding to the i-th row and j-th column in the game data configuration table on the server side; The j-th code conversion tool determines the content to be converted as the ij-th conversion result.

6. The method for converting a game data configuration table according to claim 1, wherein: The method further comprises: Calling a conversion function, wherein the conversion function obtains the format and identification information of the jth column in the game data configuration table of the server; When the jth column in the game data configuration table of the server side is in digital format, the conversion function generates a jth code conversion tool in digital format according to the identification information; When the jth column in the game data configuration table at the server end is in a string format, the conversion function generates a jth code conversion tool in a string format according to the identification information.

7. The game data configuration table conversion method according to claim 1, characterized in that: The method further comprises: The game data configuration table of the client is named according to the name of the game data configuration table of the server.

8. A game data configuration table conversion device, characterized in that: The device comprises: The first processing unit is used to start the framework conversion tool and load the game data configuration table on the server side to determine the game data configuration table framework corresponding to the client side; The game data configuration table framework includes the header data and footer 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 in a programming language based on the game server, and the game data configuration table of the client is a game data configuration table written in a programming language based on the client; The first processing unit is further used to use the jth code conversion tool to convert the i-th row and j-th column in the game data configuration table on the server side to obtain the ijth 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 ijth conversion result to the game data configuration table frame according to the row number and the column number to obtain the game data configuration table of the client.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.

10. An electronic device, characterized in that: include: A processor and a memory, the memory being used to store one or more programs; When the one or more programs are executed by the processor, the method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Method and device for managing game play, electronic equipment and storage medium

    CN111054077A

  • Application configuration method and device and computer equipment

    CN111984305A

  • 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

  • Game debugging method and device, electronic equipment and readable storage medium

    CN118170634A