CN104645610A - Game object identification code coding method and system - Google Patents

Game object identification code coding method and system Download PDF

Info

Publication number
CN104645610A
CN104645610A CN201410486067.0A CN201410486067A CN104645610A CN 104645610 A CN104645610 A CN 104645610A CN 201410486067 A CN201410486067 A CN 201410486067A CN 104645610 A CN104645610 A CN 104645610A
Authority
CN
China
Prior art keywords
classification
level
identification code
sequence number
coding method
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.)
Pending
Application number
CN201410486067.0A
Other languages
Chinese (zh)
Inventor
李荣峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
BEIJING LOCOJOY TECHNOLOGY Co Ltd
Original Assignee
BEIJING LOCOJOY TECHNOLOGY Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by BEIJING LOCOJOY TECHNOLOGY Co Ltd filed Critical BEIJING LOCOJOY TECHNOLOGY Co Ltd
Priority to CN201410486067.0A priority Critical patent/CN104645610A/en
Publication of CN104645610A publication Critical patent/CN104645610A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a game object identification code coding method and system and relates to the communication field. The game object identification code coding method comprises performing N level classification on every specific coding object layer by layer to obtain N classes from the first level classification to the N <th> level classification, wherein N is any positive integer which is larger than 1; representing different subclasses under the same level of classification by different serial numbers; extracting every specific coding object serial number corresponding to every level of classification in turn from the first level classification or the N <th> level classification and performing arrangement according to the extracting order to form identification codes which are in one-to-one correspondence to the coding objects. According to the game object identification code coding method, the sequential arrangement is performed on the serial numbers of every level of classification of every specific coding object to form the identification codes and accordingly the transmission is performed in a unique identification code mode and type numbers, ID (Identity) numbers and other data do not need to be transmitted during storage and transmission, the technical effects that the memory is saved and the transmission of the information is reduced are achieved, and meanwhile the operation speed of the system is improved.

Description

A kind of coding method of game object identification code and system
Technical field
The present invention relates to the communications field, particularly relate to a kind of coding method and system of game object identification code.
Background technology
In the prior art, when game object is encoded, often sequence number and classification number are encoded respectively.Classification number as hero is 001, and No. ID of hero 1 is 01, and No. ID of hero 2 is 02, when transferring the data of hero 1, often needs to transfer the classification number 001 of hero 1 and No. ID 01 of hero 1 simultaneously.When game object is for equipment or audio files, its rule is suitable for too.
This scheme makes server need simultaneously storage class model and No. ID, and committed memory is larger.And, when certain resource will be obtained, first to know that type just can go to fetch data in corresponding configuration file, its cause client and server mutual in, in the communication of modules between the inner or server internal of client, need to transmit type parameter and ID parameter, messaging protocol is longer simultaneously.When classifying more, this transmission is particularly inconvenient.
Summary of the invention
An object of the present invention is to provide a kind of and make that game coding committed memory is less, messaging protocol is shorter, transmit coding method and the system of conveniently game object identification code.
To achieve these goals, the invention provides a kind of coding method of game object identification code, comprising: the classification of N level is successively carried out to specific coding object, obtain the N number of classification being categorized into the classification of N level from 1 grade; N be greater than 1 any positive integer; Different groups under same first-level class are represented with different sequence number; From the 1st grade of classification or the classification of N level, extract the sequence number corresponding with every first-level class of described specific coding object successively, arrange according to the sequencing extracted, formed and described coded object identification code one to one.
Alternatively, when communicating between clients and servers, represent described coded object with described identification code.
Alternatively, when communicating between the modules of client inside, or when communicating between the modules of server internal, described coded object is represented with described identification code.
Alternatively, described coding method also comprises: according to the corresponding order that puts in order with described sequence number, reads the described sequence number of the N level classification of described identification code successively.
Alternatively, N equals 3.
To achieve these goals, present invention also offers a kind of coded system of game object identification code, comprising: sort module, be configured to: the classification of N level is successively carried out to specific coding object, obtain the N number of classification being categorized into the classification of N level from 1 grade; N be greater than 1 any positive integer; Different groups under same first-level class are represented with different sequence number; Order module, is configured to: from the 1st grade of classification or the classification of N level, extract the sequence number corresponding with every first-level class of described specific coding object successively, arrange according to the sequencing extracted, formed and described coded object identification code one to one.
Alternatively, when communicating between clients and servers, represent described coded object with described identification code.
Alternatively, when communicating between the modules of client inside, or when communicating between the modules of server internal, described coded object is represented with described identification code.
Alternatively, described coded system also comprises: read module, is configured to: according to the corresponding order that puts in order with described sequence number, reads the described sequence number of the N level classification of described identification code successively.
Alternatively, N equals 3.
The coding method of game object identification code of the present invention and system form identification code owing to each sequence number of classifying of specific coding object being carried out being arranged in order, therefore when storing and transmit, style number and No. ID and other data need not be transmitted with the form transmission of exclusive identification code, reach the technique effect saved internal memory and reduce transmission of information amount, while minimizing transmission of information amount, also in a disguised form accelerate the speed of service of system.
According to hereafter by reference to the accompanying drawings to the detailed description of the specific embodiment of the invention, those skilled in the art will understand above-mentioned and other objects, advantage and feature of the present invention more.
Accompanying drawing explanation
Hereinafter describe specific embodiments more of the present invention with reference to the accompanying drawings by way of example, and not by way of limitation in detail.Reference numeral identical in accompanying drawing denotes same or similar parts or part.It should be appreciated by those skilled in the art that these accompanying drawings may not be drawn in proportion.In accompanying drawing:
Fig. 1 be the coding method of the game object identification code of one embodiment of the present of invention and system obtain with the schematic diagram of specific coding object identification code one to one;
Fig. 2 is the schematic diagram of the system of the game object identification code of one embodiment of the present of invention.
Detailed description of the invention
Below with reference to accompanying drawings exemplary embodiment of the present invention is described in more detail.Although show exemplary embodiment of the present invention in accompanying drawing, however should be appreciated that can realize the present invention in a variety of manners and not should limit by the embodiment set forth here.On the contrary, provide these embodiments to be in order to thoroughly the present invention can be understood, and complete for scope of the present invention can be conveyed to those skilled in the art.
Intrinsic not relevant to any certain computer, virtual system or miscellaneous equipment with display at this algorithm provided.Various general-purpose system also can with use based on together with this teaching.According to description above, the structure constructed required by this type systematic is apparent.In addition, the present invention is not also for any certain programmed language.It should be understood that and various programming language can be utilized to realize content of the present invention described here, and the description done language-specific is above to disclose preferred forms of the present invention.
In description provided herein, describe a large amount of detail.But can understand, embodiments of the invention can be put into practice when not having these details.In some instances, be not shown specifically known method, structure and technology, so that not fuzzy understanding of this description.
Fig. 1 be the coding method of the game object identification code of one embodiment of the present of invention and system obtain with the schematic diagram of specific coding object identification code one to one.In the embodiment shown in fig. 1, this identification code is obtained mainly through following steps.
First, to specific coding object (such as certain specific stage property: cutter), successively carry out 3 grades of classification, obtain 3 classification being categorized into 3 grades of classification from 1 grade.1st grade of classification 101 is for be divided into stage property, personage's two large classes by all objects, 2nd grade of classification 102 is that segmentation to stage property, personage is (as being divided into weapon and equipment by stage property, personage is divided into player and NPC), 3rd level classification 103 is the segmentation to the object (as weapon) obtained under the classification of the second level.Object under same first-level class is represented with different sequence number, in other words, the object of first order classification lower 101 is represented with different sequence number, the second level object of classifying under 102 represents with different sequence number, the object that the third level is classified under 103 represents with different sequence number, to show differentiation.The sequence number of the object under different fractions class can be the same or different.
The sequence number of 3 of specific coding object grades of classification correspondences is arranged in order according to ascending order or descending.In other words, from the 1st grade of classification 101, (being the ascending order according to level alias) extracts the sequence number corresponding with every first-level class of specific coding object herein successively.Extracted sequence number is arranged according to the sequencing extracted, then defines and coded object identification code one to one.Such as, in the embodiment shown in fig. 1, cutter (sequence number 00 of lower weapon of the sequence number 00, second of lower for the first classification stage property being classified, the sequence number 01 of the lower cutter of the 3rd classification are connected in turn, and obtain the identification code that specific coding object " cutter " is corresponding) is represented with 000001.In like manner, can using 000002 as the identification code of rifle.In other embodiments of the invention, also from 2 grades of classification, the sequence number corresponding with level alias can be extracted successively according to the descending of level alias, carry out subsequent operation.Level alias herein refers to 2 of 1,2 grade of classification number of 1 grade of classification number.
Those of ordinary skill in the art easily draw, when specific coding object is successively divided into 3 grades of classification, 4 grades of classification ..., N-1 level classification or N level classification time, can also can be obtained by similar following step and specific coding object identification code one to one.
The classification of N level is successively carried out to specific coding object, obtains the N number of classification being categorized into the classification of N level from 1 grade; N be greater than 1 any positive integer; Different groups under same first-level class are represented with different sequence number;
From the 1st grade of classification or the classification of N level, extract the sequence number corresponding with every first-level class of specific coding object successively, arrange according to the sequencing extracted, formed and coded object identification code one to one." extracting successively " herein can be understood as: from the 1st grade of classification, extract according to the ascending order of level alias, or from the classification of N level, extracts according to the descending of level alias.Level alias herein refer to 2,3 grades of classification of 1 grade classify 1,2 grade classification 3 ..., N-1 level classification N-1, N level classification N.Therefore, from the 1st grade of classification, extract the sequence number (being assumed to be 6) of the lower specific coding object of this classification, then according to the ascending order of level alias extract the sequence number (being assumed to be 9) of the 2nd grade of lower specific coding object of classification, the lower specific coding object of 3rd level classification sequence number (being assumed to be 4) ..., the sequence number (being assumed to be 1) of the lower specific coding object of N-1 level classification, the sequence number (being assumed to be 17) of the lower specific coding object of N level classification, according to the sequencing extracted, obtaining identification code is 694 ... 117.In like manner, from the classification of N level, extract sequence number corresponding to the lower specific coding of each classification successively according to the descending of level alias and arrange, the identification code obtained is 171 ... 496.Utilize the decimal system to encode herein, in other embodiments of the invention, also can encode with binary system.
In one embodiment of the invention, when communicating between the modules of client inside, when communicating between the modules of server internal, or when communicating between clients and servers, coded object can be represented with identification code.After client, server or its internal module receive identifying code, according to the corresponding order that puts in order with sequence number, the sequence number of the N level classification of identification code can be read successively.Such as, for from the classification of N level, extract sequence number corresponding to the lower specific coding of each classification successively according to the descending of level alias and arrange, the identification code obtained is 171 ... 496, can read successively the 17, the N-1 class of N class 1 ..., the 3rd class the 4, the 2nd class the 9, the 1st class 6.
Illustrate with identifying code invoked procedure below, to be further described its effect.
In this invoked procedure, first perform step 201, client receives the operation (such as user clicks knapsack, wants the cutter in weaponize) of user, and instruction and account information are transferred in the request of sending.Then perform step 202, step 203 successively, step 202 is: server receives request and transfers instruction and account information, and step 203 is transferred instruction for: server authentication request and whether met the condition that server presets for this account.If meet, then perform step 204 successively to step 206.Wherein step 204 transfers instruction for server sends confirmation, and step 205 transfers instruction for client confirmation of receipt, and step 206 be that client transfers according to confirmation the record that correspondence is transferred in instruction.If instruction is transferred in this request do not meet the condition that server presets for this account, then perform step 207 and step 208 successively.Wherein, step 207 is: server returns refusal to client and transfers instruction; Step 208 is: client receives refusal and transfers instruction, the operation of refusal response user.
In this operating process, step 201, step 204 may relate to calling of identification code to step 206 and read, in the process called and read, style number and No. ID and other data need not be transmitted with the form transmission of exclusive identification code, reach the technique effect saved internal memory and reduce transmission of information amount, while minimizing transmission of information amount, also in a disguised form accelerate the speed of service of system.
Fig. 2 is the schematic diagram of the system of the game object identification code of one embodiment of the present of invention.In the embodiment shown in Figure 2, the coded system of game object identification code of the present invention can comprise sort module and order module.Sort module, is configured to: successively carry out the classification of N level to specific coding object, obtains the N number of classification being categorized into the classification of N level from the 1st grade; N be greater than 1 any positive integer; Different groups under same first-level class are represented with different sequence number; Order module, is configured to: from the 1st grade of classification or the classification of N level, extract the sequence number corresponding with every first-level class of specific coding object successively, arrange according to the sequencing extracted, formed and coded object identification code one to one.
In an embodiment of the present invention, when communicating between the modules of client inside, when communicating between the modules of server internal, or when communicating between clients and servers, coded object can be represented with identification code.In another embodiment of the present invention, this system also comprises read module, and it after receiving identifying code, according to the corresponding order that puts in order with sequence number, can read the sequence number of the N level classification of identification code successively.
In one embodiment of the invention, N can be 3.
Be to be understood that, in order to simplify the present invention and to help to understand in each inventive aspect one or more, in the description above to exemplary embodiment of the present invention, each feature of the present invention is grouped together in single embodiment, figure or the description to it sometimes.But, the method for this invention should be construed to the following intention of reflection: namely the present invention for required protection requires feature more more than the feature clearly recorded in each claim.Or rather, as the following claims reflect, all features of inventive aspect disclosed single embodiment before being to be less than.Therefore, the claims following detailed description of the invention are incorporated to this detailed description of the invention thus clearly, and wherein each claim itself is as independent embodiment of the present invention.
Those skilled in the art are appreciated that and adaptively can change the module in the equipment in embodiment and they are arranged in one or more equipment different from this embodiment.Module in embodiment or unit or assembly can be combined into a module or unit or assembly, and multiple submodule or subelement or sub-component can be put them in addition.Except at least some in such feature and/or process or unit be mutually repel except, any combination can be adopted to combine all processes of all features disclosed in this description (comprising adjoint claim, summary and accompanying drawing) and so disclosed any method or equipment or unit.Unless expressly stated otherwise, each feature disclosed in this description (comprising adjoint claim, summary and accompanying drawing) can by providing identical, alternative features that is equivalent or similar object replaces.
In addition, those skilled in the art can understand, although embodiments more described herein to comprise in other embodiment some included feature instead of further feature, the combination of the feature of different embodiment means and to be within scope of the present invention and to form different embodiments.Such as, in the following claims, the one of any of embodiment required for protection can use with arbitrary combination.
All parts embodiment of the present invention with hardware implementing, or can realize with the software module run on one or more processor, or realizes with their combination.It will be understood by those of skill in the art that the some or all functions that microprocessor or digital signal processor (DSP) can be used in practice to realize according to the some or all parts in the Web page display apparatus of the embodiment of the present invention.The present invention can also be embodied as part or all equipment for performing method as described herein or device program (such as, computer program and computer program).Realizing program of the present invention and can store on a computer-readable medium like this, or the form of one or more signal can be had.Such signal can be downloaded from internet website and obtain, or provides on carrier signal, or provides with any other form.
The present invention will be described instead of limit the invention to it should be noted above-described embodiment, and those skilled in the art can design alternative embodiment when not departing from the scope of claims.In the claims, any reference symbol between bracket should be configured to limitations on claims.Word " comprises " not to be got rid of existence and does not arrange element in the claims or step.Word "a" or "an" before being positioned at element is not got rid of and be there is multiple such element.The present invention can by means of including the hardware of some different elements and realizing by means of the computer of suitably programming.In the unit claim listing some devices, several in these devices can be carry out imbody by same hardware branch.Word first, second and third-class use do not represent any order.Can be title by these word explanations.
So far, those skilled in the art will recognize that, although multiple exemplary embodiment of the present invention is illustrate and described herein detailed, but, without departing from the spirit and scope of the present invention, still can directly determine or derive other modification many or amendment of meeting the principle of the invention according to content disclosed by the invention.Therefore, scope of the present invention should be understood and regard as and cover all these other modification or amendments.

Claims (10)

1. a coding method for game object identification code, is characterized in that, comprising:
The classification of N level is successively carried out to specific coding object, obtains the N number of classification being categorized into the classification of N level from 1 grade; N be greater than 1 any positive integer; Different groups under same first-level class are represented with different sequence number;
From the 1st grade of classification or the classification of N level, extract the sequence number corresponding with every first-level class of described specific coding object successively, arrange according to the sequencing extracted, formed and described coded object identification code one to one.
2. coding method according to claim 1, is characterized in that,
When communicating between clients and servers, represent described coded object with described identification code.
3. coding method according to claim 1 and 2, is characterized in that,
When communicating between the modules of client inside, or when communicating between the modules of server internal, represent described coded object with described identification code.
4. coding method according to claim 1, is characterized in that, also comprises:
According to the corresponding order that puts in order with described sequence number, read the described sequence number of the N level classification of described identification code successively.
5. coding method according to claim 1, wherein,
N equals 3.
6. a coded system for game object identification code, is characterized in that, comprising:
Sort module, is configured to: successively carry out the classification of N level to specific coding object, obtains the N number of classification being categorized into the classification of N level from 1 grade; N be greater than 1 any positive integer; Different groups under same first-level class are represented with different sequence number;
Order module, is configured to: from the 1st grade of classification or the classification of N level, extract the sequence number corresponding with every first-level class of described specific coding object successively, arrange according to the sequencing extracted, formed and described coded object identification code one to one.
7. coded system according to claim 6, is characterized in that,
When communicating between clients and servers, represent described coded object with described identification code.
8. the coded system according to claim 6 or 7, is characterized in that,
When communicating between the modules of client inside, or when communicating between the modules of server internal, represent described coded object with described identification code.
9. coded system according to claim 6, is characterized in that, also comprises:
Read module, is configured to: according to the corresponding order that puts in order with described sequence number, reads the described sequence number of the N level classification of described identification code successively.
10. coded system according to claim 6, wherein,
N equals 3.
CN201410486067.0A 2014-09-22 2014-09-22 Game object identification code coding method and system Pending CN104645610A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410486067.0A CN104645610A (en) 2014-09-22 2014-09-22 Game object identification code coding method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410486067.0A CN104645610A (en) 2014-09-22 2014-09-22 Game object identification code coding method and system

Publications (1)

Publication Number Publication Date
CN104645610A true CN104645610A (en) 2015-05-27

Family

ID=53237559

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410486067.0A Pending CN104645610A (en) 2014-09-22 2014-09-22 Game object identification code coding method and system

Country Status (1)

Country Link
CN (1) CN104645610A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105718938A (en) * 2015-12-30 2016-06-29 深圳先进技术研究院 Encoding method of user label and encoding apparatus of user label
CN108255877A (en) * 2016-12-29 2018-07-06 北京国双科技有限公司 The storage method and device of judgement document
CN110647525A (en) * 2018-12-29 2020-01-03 北京奇虎科技有限公司 Base station data storage method and device
CN111729310A (en) * 2020-06-24 2020-10-02 网易(杭州)网络有限公司 Game prop sorting method and device and electronic equipment
WO2022143239A1 (en) * 2020-12-31 2022-07-07 欧普照明股份有限公司 Device information query method and query device for control system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1523518A (en) * 2003-02-17 2004-08-25 郭慧民 Intelligent Chinese cultural dictionary system
CN101482955A (en) * 2008-01-11 2009-07-15 李建辉 Security mode and trade mode of virtual properties in network game
CN101527018A (en) * 2009-04-10 2009-09-09 吴淑容 Method for dealing virtual objects in network game
JP2010221065A (en) * 2000-08-23 2010-10-07 Nintendo Co Ltd Information processing system
CN102104602A (en) * 2011-01-28 2011-06-22 刘承哲 Network resource accessing method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010221065A (en) * 2000-08-23 2010-10-07 Nintendo Co Ltd Information processing system
CN1523518A (en) * 2003-02-17 2004-08-25 郭慧民 Intelligent Chinese cultural dictionary system
CN101482955A (en) * 2008-01-11 2009-07-15 李建辉 Security mode and trade mode of virtual properties in network game
CN101527018A (en) * 2009-04-10 2009-09-09 吴淑容 Method for dealing virtual objects in network game
CN102104602A (en) * 2011-01-28 2011-06-22 刘承哲 Network resource accessing method and device

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105718938A (en) * 2015-12-30 2016-06-29 深圳先进技术研究院 Encoding method of user label and encoding apparatus of user label
CN108255877A (en) * 2016-12-29 2018-07-06 北京国双科技有限公司 The storage method and device of judgement document
CN108255877B (en) * 2016-12-29 2020-11-24 北京国双科技有限公司 Storage method and device of referee document
CN110647525A (en) * 2018-12-29 2020-01-03 北京奇虎科技有限公司 Base station data storage method and device
CN110647525B (en) * 2018-12-29 2022-06-10 北京奇虎科技有限公司 Base station data storage method and device
CN111729310A (en) * 2020-06-24 2020-10-02 网易(杭州)网络有限公司 Game prop sorting method and device and electronic equipment
CN111729310B (en) * 2020-06-24 2024-02-09 网易(杭州)网络有限公司 Method and device for sorting game props and electronic equipment
WO2022143239A1 (en) * 2020-12-31 2022-07-07 欧普照明股份有限公司 Device information query method and query device for control system

Similar Documents

Publication Publication Date Title
CN104645610A (en) Game object identification code coding method and system
CN101246486B (en) Method and apparatus for improved process of expressions
CN103209153B (en) Message treatment method, Apparatus and system
CN103346800B (en) A kind of data compression method and device
CN104301207B (en) Web information processing method and device
CN103685308A (en) Detection method and system of phishing web pages, client and server
CN105472052A (en) Login method and system of cross-domain server
CN106970820A (en) Code storage method and code storage
CN102833258A (en) Website access method and system
CN110489466B (en) Method and device for generating invitation code, terminal equipment and storage medium
CN110201393A (en) Configuration data storage method and device and electronic equipment
CN104951484A (en) Search result processing method and search result processing device
CN104463296A (en) Two-dimension code structured information generation, obtaining and processing method and system
CN105554136A (en) Backup data restoration method, device and system
CN104143110A (en) Two-dimensional code generating method with web site information
JP2012507767A5 (en)
CN117093619A (en) Rule engine processing method and device, electronic equipment and storage medium
CN104346460A (en) Method and device for downloading file and browser client
CN106407470A (en) Fingerprint sharing method, terminal and server
CN108092670B (en) Coding method and device
CN105224414A (en) For realizing method of calibration and the device of the code of business task
CN101261645A (en) Method and apparatus for obtaining multiple layer information
CN105512305B (en) A kind of document compression, document decompressing method and device based on serializing
CN105335531B (en) A kind of compression of document, decompressing method and device
CN106067876B (en) A kind of HTTP request packet identification method based on pattern match

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20150527