CN109298899A - A kind of file automating application method of juvenile's game configuration and electronic equipment - Google Patents
A kind of file automating application method of juvenile's game configuration and electronic equipment Download PDFInfo
- Publication number
- CN109298899A CN109298899A CN201811061786.2A CN201811061786A CN109298899A CN 109298899 A CN109298899 A CN 109298899A CN 201811061786 A CN201811061786 A CN 201811061786A CN 109298899 A CN109298899 A CN 109298899A
- Authority
- CN
- China
- Prior art keywords
- file
- configuration file
- configuration
- json format
- game
- 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.)
- Withdrawn
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/131—Protocols for games, networked simulations or virtual reality
Abstract
The present invention discloses a kind of file automating application method of juvenile's game configuration and electronic equipment, wherein method is comprising steps of A, upload configuration file to server;B, the configuration file is parsed, configuration file is converted into json format;C, whether the configuration file for verifying json format meets preset rules, if then entering step D;D, the configuration file of json format is cached;E, the configuration file that json format is read from the caching, makes game application be loaded into the configuration file of corresponding json format.The present invention configures automation application scheme, caching technology can be added by program dynamic analysis configuration file, can quickly, low-risk allow configuration take-effective, even if modifying game configuration file, this document directly can also be submitted by management backstage, and not need exploitation O&M intervention.
Description
Technical field
The present invention relates to field of computer technology more particularly to a kind of file automating application method of juvenile's game configuration and
Electronic equipment.
Background technique
In the exploitation of game rear end, it can generally be stored in json file there are many configuration parameter, be read for game services
It uses, and these parameter origin, it is to act on game if needed to make to configure by planning to configure in advance in the files such as excel,
The json format that excel file is converted into needs will first be configured by then needing to develop, and be then substituted into corresponding in game server
Json configuration file restarts game services and loads new configuration file and comes into force.
Whole process needs to plan and develop intervention, and O&M may also be needed to restart the operations such as service hair version.Step is excessive,
It is easy error, and change some configuration take-effective period to be elongated.
Therefore, the existing technology needs to be improved and developed.
Summary of the invention
In view of above-mentioned deficiencies of the prior art, the purpose of the present invention is to provide a kind of juvenile's game configuration is file automating
Application method and electronic equipment, it is intended to which the applying step for solving game configuration file in the prior art is excessive, is easy error, period
The problems such as long.
Technical scheme is as follows:
A kind of file automating application method of juvenile's game configuration, wherein comprising steps of
A, upload configuration file is to server;
B, the configuration file is parsed, configuration file is converted into json format;
C, whether the configuration file for verifying json format meets preset rules, if then entering step D;
D, the configuration file of json format is cached;
E, the configuration file that json format is read from the caching, makes game application be loaded into the configuration of corresponding json format
File.
The file automating application method of juvenile's game configuration, wherein in the step A, the configuration file of upload
For execl format.
The file automating application method of juvenile's game configuration, wherein in the step D, with newest json lattice
The configuration file of formula replaces the configuration file of existing json format, and is cached.
The file automating application method of juvenile's game configuration, wherein the step A is specifically included:
A1, the configuration file of execl format is uploaded to server;
A2, the file format of the configuration file of the execl format is verified.
The file automating application method of juvenile's game configuration, wherein the step B is specifically included:
B1, the configuration file that execl format is parsed by Apache Poi technology, obtain list data;
B2, pass through mapping ruler, the list data conversion that parsing is obtained obtains the configuration of json format at json format
File.
The file automating application method of juvenile's game configuration, wherein in the step D, connect using redis update
Mouth is cached.
The file automating application method of juvenile's game configuration, wherein the preset rules are the text of json format
Part syntax rule.
A kind of electronic equipment, wherein include:
Processor is adapted for carrying out each instruction, and
Equipment is stored, is suitable for storing a plurality of instruction, described instruction is suitable for being loaded and being executed by processor:
Upload configuration file is to server;
The configuration file is parsed, configuration file is converted into json format;
Whether the configuration file of verification json format meets preset rules;
If meeting preset rules, the configuration file of json format is cached;
The configuration file that json format is read from the caching makes game application be loaded into the configuration text of corresponding json format
Part.
A kind of non-volatile computer readable storage medium storing program for executing, wherein the non-volatile computer readable storage medium storing program for executing is deposited
Computer executable instructions are contained, when which is executed by one or more processors, may make described one
A or multiple processors execute the file automating application method of juvenile's game configuration.
A kind of computer program product, wherein non-volatile computer is readable to be deposited computer program product including being stored in
Computer program on storage media, computer program include program instruction, when program instruction is executed by processor, make the place
It manages device and executes the file automating application method of juvenile's game configuration.
The utility model has the advantages that the present invention configures automation application scheme, can be added slow by program dynamic analysis configuration file
Technology is deposited, quick, low-risk can allow configuration take-effective, even if modification game configuration file, can also directly pass through after managing
Platform submits this document, and does not need exploitation O&M intervention.
Detailed description of the invention
Fig. 1 is a kind of flow chart of the file automating application method preferred embodiment of juvenile's game configuration of the present invention.
Fig. 2 is the structural block diagram of a kind of electronic equipment preferred embodiment of the present invention.
Specific embodiment
The present invention provides a kind of file automating application method of juvenile's game configuration and electronic equipment, to make mesh of the invention
, technical solution and effect it is clearer, clear, the present invention is described in more detail below.It should be appreciated that described herein
Specific embodiment be only used to explain the present invention, be not intended to limit the present invention.
Referring to Fig. 1, Fig. 1 is a kind of stream of the file automating application method preferred embodiment of juvenile's game configuration of the present invention
Cheng Tu, as shown, itself comprising steps of
S1, upload configuration file to server;
S2, the configuration file is parsed, configuration file is converted into json format;
Whether S3, the configuration file for verifying json format meet preset rules, if then entering step S4;
S4, the configuration file of json format is cached;
S5, the configuration file that json format is read from the caching, make game application be loaded into matching for corresponding json format
Set file.
The present invention configures automation application scheme, caching technology can be added by program dynamic analysis configuration file, can
Allow configuration take-effective directly can also submit this article by management backstage even if modifying game configuration file with quick, low-risk
Part, and do not need exploitation O&M intervention.
Specifically, in the step S1, first upload configuration file is to server.
The configuration file that this step uploads is not also json format, needs to convert it.
Its format of the configuration file of upload can be execl format, such as suffix is xls or xlsx.
Further, the step S1 is specifically included:
S11, the configuration file of execl format is uploaded to server;
S12, the file format of the configuration file of the execl format is verified.
I.e. after the configuration file to server for uploading execl format, it is also necessary to be verified to its file format.
If file format is undesirable, needs to upload again, if met the requirements, enter step S2.
In the step S2, the configuration file is parsed, configuration file is converted into json format.Because of trip
Configuration file needed for costume business is json format, so needing format transformation.
Specifically, the step S2 is specifically included:
S21, the configuration file that execl format is parsed by Apache Poi technology, obtain list data;
S22, pass through mapping ruler, the list data conversion that parsing is obtained obtains matching for json format at json format
Set file.
In the step s 21, after server receives the configuration file of execl format, pass through Apache Poi technology and execute
Resolution file, obtains list data, i.e. table data, has a plurality of configuration to record in table data.
In step S22, by mapping ruler, the list data conversion that parsing is obtained is at json format.Such as excel
First row field id correspond to a field outpost id of configuration file, every a line excel data are exactly a configuration record, will
The list data conversion finally parsed is at json format, to obtain the configuration file of json format.
In the step S3, whether the configuration file for verifying json format meets preset rules, if then entering step
S4。
Preset rules therein are the file syntax rule of json format.
For example whether id is non-empty etc., if not meeting preset rules, returns to error message and gives calling end.
In the step S4, the configuration file of json format is cached.Specifically using redis more new interface into
Row caching.
Further, in the step S4, matching for existing json format is replaced with the configuration file of newest json format
File is set, and is cached.
It such as to allow game services to be loaded into newest configuration json information, then call the redis more new interface of game services, it will
The value of former game configuration key value is brushed into newest json information, covers original configuration.
In the step S5, the configuration file of json format is read from the caching, is loaded into game application corresponding
The configuration file of json format.
That is, from redis caching in read it is newest brush into configuration file.
Embodiment:
One, such as in a game application, the pass of outpost 18 is newly opened, planning needs first to configure organ's row that the 18th pass needs
Several and clearance condition etc. is recorded in planning allocation list levelconfig.xlsx, i.e. the configuration file of excel format.
Two, new configuration file levelconfig.xlsx is uploaded onto the server by game management platform, before upload
Program needs trial inspection file format.After server receives configuration file, parsing text is executed by Apache Poi technology
Part corresponds to a field outpost id of configuration file, every a line by the first row field id of mapping ruler, such as excel
Excel data are exactly a configuration record, by the list data conversion finally parsed at json format.
Three, whether the json format of verification parsing conversion meets preset rules, for example whether id is non-empty, if parsing is sentenced
Disconnected format is undesirable, then returns to error message and give calling end.
Four, it after newest configuration file being converted into the json format that game services can be understood, needs that game services is allowed to carry
Enter newest configuration json information, call the redis more new interface of game services, by the value of former game configuration key value brush into
Newest json information, covers original configuration.
Five, game services can from redis caching in read it is newest brush into configuration file, reach planning in real time adjustment trip
The demand of play configuration.This process is intervened without program and O&M, issuing service again.It is completed entirely by back-end system program.
In the present invention, after the configuration file for obtaining new excel format, the upload page uploading provided by program, clothes
Business device receives new configuration file, parses to it, obtains the configuration file of the json format of game services needs, and pass through
Whether the json format configuration file content that verification rule verification generates meets preset rules, meets the json format then by generation
Configuration file brush game services redis caching in.
Game services get newest configuration information from redis, so that after modification game configuration file, it can be direct
This document is submitted by management backstage, program can simultaneously make it quickly come into force, and not need exploitation O&M intervention.
The present invention also provides a kind of electronic equipment 10, as shown in Fig. 2, comprising:
Processor 1110 is adapted for carrying out each instruction, and
Equipment 120 is stored, is suitable for storing a plurality of instruction, described instruction is suitable for being loaded and being executed by processor 110:
Upload configuration file is to server;
The configuration file is parsed, configuration file is converted into json format;
Whether the configuration file of verification json format meets preset rules;
If meeting preset rules, the configuration file of json format is cached;
The configuration file that json format is read from the caching makes game application be loaded into the configuration text of corresponding json format
Part.
The processor 110 can for general processor, digital signal processor (DSP), specific integrated circuit (ASIC),
Field programmable gate array (FPGA), single-chip microcontroller, ARM (Acorn RISC Machine) or other programmable logic device are divided
Any combination of vertical door or transistor logic, discrete hardware component or these components.In addition, processor can also be any
Conventional processors, microprocessor or state machine.Processor also may be implemented as calculating the combination of equipment, for example, DSP and Wei Chu
Manage combination, multi-microprocessor, one or more microprocessors combination DSP core, any other this configuration of device.
It stores equipment 120 and is used as a kind of non-volatile computer readable storage medium storing program for executing, can be used for storing non-volatile software
Program, non-volatile computer executable program and module, as juvenile's game configuration file in the embodiment of the present invention is automatic
Change the corresponding program instruction of application method.Processor is stored in the non-volatile software program stored in equipment by operation, referred to
It enables and unit, thereby executing the various function application and data processing of the file automating application method of juvenile's game configuration,
Realize above method embodiment.
It has been described in detail in the method for particular technique details in front about above-mentioned electronic equipment 10, so it will not be repeated.
The present invention also provides a kind of non-volatile computer readable storage medium storing program for executing, the non-volatile computer readable storage
Media storage has computer executable instructions, when which is executed by one or more processors, may make
One or more of processors execute the file automating application method of juvenile's game configuration.
The present invention also provides a kind of computer program product, computer program product includes being stored in non-volatile computer
Computer program on readable storage medium storing program for executing, computer program include program instruction, when program instruction is executed by processor, are made
The processor executes the file automating application method of juvenile's game configuration.
It should be understood that the application of the present invention is not limited to the above for those of ordinary skills can
With improvement or transformation based on the above description, all these modifications and variations all should belong to the guarantor of appended claims of the present invention
Protect range.
Claims (10)
1. a kind of file automating application method of juvenile's game configuration, which is characterized in that comprising steps of
A, upload configuration file is to server;
B, the configuration file is parsed, configuration file is converted into json format;
C, whether the configuration file for verifying json format meets preset rules, if then entering step D;
D, the configuration file of json format is cached;
E, the configuration file that json format is read from the caching makes game application be loaded into the configuration text of corresponding json format
Part.
2. the file automating application method of juvenile's game configuration according to claim 1, which is characterized in that the step A
In, the configuration file of upload is execl format.
3. the file automating application method of juvenile's game configuration according to claim 1, which is characterized in that the step D
In, the configuration file of existing json format is replaced with the configuration file of newest json format, and cached.
4. the file automating application method of juvenile's game configuration according to claim 2, which is characterized in that the step A
It specifically includes:
A1, the configuration file of execl format is uploaded to server;
A2, the file format of the configuration file of the execl format is verified.
5. the file automating application method of juvenile's game configuration according to claim 2, which is characterized in that the step B
It specifically includes:
B1, the configuration file that execl format is parsed by Apache Poi technology, obtain list data;
B2, pass through mapping ruler, the list data conversion that parsing is obtained obtains the configuration text of json format at json format
Part.
6. the file automating application method of juvenile's game configuration according to claim 3, which is characterized in that the step D
In, it is cached using redis more new interface.
7. the file automating application method of juvenile's game configuration according to claim 1, which is characterized in that the default rule
It is then the file syntax rule of json format.
8. a kind of electronic equipment characterized by comprising
Processor is adapted for carrying out each instruction, and
Equipment is stored, is suitable for storing a plurality of instruction, described instruction is suitable for being loaded and being executed by processor:
Upload configuration file is to server;
The configuration file is parsed, configuration file is converted into json format;
Whether the configuration file of verification json format meets preset rules;
If meeting preset rules, the configuration file of json format is cached;
The configuration file that json format is read from the caching, makes game application be loaded into the configuration file of corresponding json format.
9. a kind of non-volatile computer readable storage medium storing program for executing, which is characterized in that the non-volatile computer readable storage medium
Matter is stored with computer executable instructions, when which is executed by one or more processors, may make institute
It states one or more processors perform claim and requires the described in any item file automating application methods of juvenile's game configuration of 1-7.
10. a kind of computer program product, which is characterized in that computer program product can including being stored in non-volatile computer
The computer program on storage medium is read, computer program includes program instruction, when program instruction is executed by processor, makes institute
It states processor perform claim and requires the described in any item file automating application methods of juvenile's game configuration of 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811061786.2A CN109298899A (en) | 2018-09-12 | 2018-09-12 | A kind of file automating application method of juvenile's game configuration and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811061786.2A CN109298899A (en) | 2018-09-12 | 2018-09-12 | A kind of file automating application method of juvenile's game configuration and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109298899A true CN109298899A (en) | 2019-02-01 |
Family
ID=65166627
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811061786.2A Withdrawn CN109298899A (en) | 2018-09-12 | 2018-09-12 | A kind of file automating application method of juvenile's game configuration and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109298899A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110795142A (en) * | 2019-10-18 | 2020-02-14 | 郑州阿帕斯科技有限公司 | Configuration file generation method and device |
CN112379949A (en) * | 2021-01-14 | 2021-02-19 | 腾讯科技(深圳)有限公司 | Data processing method, device, equipment and storage medium |
CN113901271A (en) * | 2021-12-10 | 2022-01-07 | 飞狐信息技术(天津)有限公司 | Method, device, storage medium and equipment for configuring system based on electronic form |
-
2018
- 2018-09-12 CN CN201811061786.2A patent/CN109298899A/en not_active Withdrawn
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110795142A (en) * | 2019-10-18 | 2020-02-14 | 郑州阿帕斯科技有限公司 | Configuration file generation method and device |
CN110795142B (en) * | 2019-10-18 | 2023-04-07 | 郑州阿帕斯科技有限公司 | Configuration file generation method and device |
CN112379949A (en) * | 2021-01-14 | 2021-02-19 | 腾讯科技(深圳)有限公司 | Data processing method, device, equipment and storage medium |
CN112379949B (en) * | 2021-01-14 | 2021-04-13 | 腾讯科技(深圳)有限公司 | Data processing method, device, equipment and storage medium |
CN113901271A (en) * | 2021-12-10 | 2022-01-07 | 飞狐信息技术(天津)有限公司 | Method, device, storage medium and equipment for configuring system based on electronic form |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10901791B2 (en) | Providing configurable workflow capabilities | |
US10705942B1 (en) | Simulated testing of API | |
JP6816136B2 (en) | Unified interface specification for interacting with and running models in a variety of runtime environments | |
US9183064B2 (en) | Intelligent mediation of messages in a healthcare product integration platform | |
CN108280023B (en) | Task execution method and device and server | |
CN106980560B (en) | ICD database based multi-bus protocol testing and simulating method and platform | |
US10462261B2 (en) | System and method for configuring a data access system | |
CN109298899A (en) | A kind of file automating application method of juvenile's game configuration and electronic equipment | |
CN106649164B (en) | Hardware interface management method | |
CN110162544B (en) | Heterogeneous data source data acquisition method and device | |
US10701213B2 (en) | Dynamically generating an aggregation routine | |
Calcote et al. | Istio: Up and running: Using a service mesh to connect, secure, control, and observe | |
CN109906597A (en) | To with data set that restricted data set and untethered system are stored and fetched from cloud network | |
CN110351325A (en) | A kind of data processing method and relevant device | |
CN108563789A (en) | Data cleaning method based on Spark frames and device | |
Bocciarelli et al. | A model-driven method for building distributed simulation systems from business process models | |
US20210294814A1 (en) | Systems and methods for generating, deploying, and managing data infrastructure stacks | |
CN108269056A (en) | Government information resources manage system | |
CN109445832A (en) | Language carries out the method and electronic equipment of hot update to application program based on programming | |
CN104731606A (en) | System and method based on identification grasping technology to achieve enterprise application integration management | |
CN108696559B (en) | Stream processing method and device | |
CN112883088B (en) | Data processing method, device, equipment and storage medium | |
TWI680411B (en) | Electronic form building system and method | |
US9369352B1 (en) | Method of capturing server and operating system metrics for virtual to physical topology reporting | |
CN114116908A (en) | Data management method and device and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20190201 |
|
WW01 | Invention patent application withdrawn after publication |