CN102984124B - A kind of method and system that client gaming program is quickly implanted browser - Google Patents

A kind of method and system that client gaming program is quickly implanted browser Download PDF

Info

Publication number
CN102984124B
CN102984124B CN201210427986.1A CN201210427986A CN102984124B CN 102984124 B CN102984124 B CN 102984124B CN 201210427986 A CN201210427986 A CN 201210427986A CN 102984124 B CN102984124 B CN 102984124B
Authority
CN
China
Prior art keywords
game
data
unit
download
resource
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.)
Expired - Fee Related
Application number
CN201210427986.1A
Other languages
Chinese (zh)
Other versions
CN102984124A (en
Inventor
孙继峥
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
BEIJING KUNLUN TECH Co Ltd
Original Assignee
BEIJING KUNLUN TECH 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 KUNLUN TECH Co Ltd filed Critical BEIJING KUNLUN TECH Co Ltd
Priority to CN201210427986.1A priority Critical patent/CN102984124B/en
Publication of CN102984124A publication Critical patent/CN102984124A/en
Application granted granted Critical
Publication of CN102984124B publication Critical patent/CN102984124B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a kind of method and system that client gaming program is quickly implanted browser, the method includes: obtain the going game information of game role, finds out going game according to going game information and run necessary game resource group in whole game resource groups;Download game resource group necessary to the running game found out, and in Preset Time, judge game resource group whether to have downloaded;If it is, the interior game resource data loaded in required game resource group of plug-in unit in a browser;The completion status if it does not, the interior display of plug-in unit in a browser waits for downloads, and stop the input process of user.Compared with prior art, the method greatly reduces and recompiles client game data and test job, reduces client game and becomes the production cost of web game instead.

Description

A kind of method and system that client gaming program is quickly implanted browser
Technical field
The present invention relates to webpage connector and implant field, particularly relate to a kind of that client gaming program is quick Implant the method and system of browser.
Background technology
Player is before playing networking game, it is necessary to first download the client game application of this game, To be downloaded be fully completed after could enter gaming platform.And the client game application of legacy network game Program is the hugest, the most all reaches more than 300M, the most several G sizes, takes long enough Can download.Therefore, before playing game, it is necessary to trip could be entered through waiting for a long time Play platform.
In order to solve the problems referred to above, existing another kind of technical scheme is as follows: program staff puts down according to difference The requirement of platform carries out the substantial amounts of work recompiling and testing to client game application, is changed Cause the program easy to spread fitting through the network platform.In this technical scheme, due to client The secondary development of game application needs to carry out the work of substantial amounts of coding and test, and, if it is desired to Multiple browser is supported in game simultaneously, needs repeatedly to encode, and safeguards multiple project simultaneously, to manpower and The consumption of material resources is very big, so that production cost is too high.
Therefore need a kind of needing not move through before playing game badly to wait for a long time and production cost is relatively low Client game application is quickly implanted the method and system of browser.
Summary of the invention
In view of this, the invention provides a kind of method that client gaming program is quickly implanted browser And system, wait for a long time and requirement that production cost is relatively low to meet to need not move through before a game.
To achieve these goals, the technical scheme that the embodiment of the present application provides is as follows:
A kind of method that client gaming program is quickly implanted browser, in advance according to whether needs same The game resource data loaded in described client being played in one time period are divided into multiple game resource group, The method includes:
Obtaining the going game information of game role, the going game information of described game role includes: trip Occupation selected by the play class information of role, the cartographic information at game role place and player;
In multiple described game resource groups, find out going game according to described going game information and run institute Required game resource group;
Download game resource group necessary to the running game found out, and in Preset Time, judge institute State and must game resource group whether download;
If it is, control games to load the game resource data in described required game resource group;
The completion status if it does not, the interior display of plug-in unit in a browser waits for downloads, and freeze main journey of playing Sequence process, and stop the input process of user, until having downloaded.
Preferably, described client is played by described loading within the same time period according to whether needs in advance Interior game resource data are first divided into multiple game resource group in advance, including:
Game resource data in described client being played carry out preliminary classification according to dissimilar;
Judge that the game resource data in same classification load the need of within the same time period, described same The game data loaded in one time period has a same characteristic features, and described same characteristic features includes: resource is No belong in same map, same grade or same game occupation etc.;
Will determine that the game data needing to load within the same time period obtained is divided into a game resource Group, and the game resource data in the game of described client are divided into multiple game resource group.
Preferably, game resource data set necessary to described running game includes: form map frame The game resource data set that the game resource data set of frame and game role caste match.
Preferably, browser plug-in shows waiting state, and stop the input process of user, specifically Including:
Use webpage connector that game process is locked, and show at the top of former game picture window and include The download progress window of lower carrier strip progress;
System focus is arranged to described download progress window, and stop the game process any user's of reception Input operation;
Use webpage connector to take over the network interface of former game in another thread, preserve what network transmitted Information, and replace game logic to send for keeping the heartbeat message connected, to keep network to connect.
A kind of system that client gaming program is quickly implanted browser, including: pre-grouped element, obtains Take unit, lookup unit, download unit, download judging unit, running unit and waiting state and list is set Unit, wherein:
Described pre-grouped element, for playing described client according to whether loading within the same time period Interior game data is first divided into multiple game data group in advance;
Described acquiring unit for obtaining the going game information of game role, described game role current Game information includes: the class information of game role and the cartographic information at game role place;
Described lookup unit for the going game information that acquires according to described acquiring unit in multiple institutes Find out going game in stating game data group and run necessary game data group;
Described download unit, downloads the fortune found out on the most improved webpage The necessary game data group of row game;
Described download judging unit, for judge in Preset Time described must game data group whether under Load completes;
Described running unit, for when described download judging unit judges that download completes, loads and is searched Game data group necessary to the running game gone out;
Described waiting state arranges unit, is used for when described download judging unit judges that download is not fully complete, Show waiting state on the most improved webpage, and freeze mastery routine process of playing, and stop The input process of user, until having downloaded.
Preferably, described pre-grouped element includes: taxon, loading judging unit and pre-packet are single Unit, wherein:
Described taxon game data in described client being played is at the beginning of according to dissimilar carrying out Step classification;
Whether the game data that described loading judging unit is used for judging in same classification is within the same time period Loading, the game data loaded in the described same time period has a same characteristic features, described same characteristic features Including: occupation in same map nomenclature, same grade or same game;
Described pre-packet subelement is for will determine that the game data loaded within the same time period obtained divides It is a game resource group, and game resource that is described and that be grouped in described client is played by subelement Data are divided into multiple game resource group.
Preferably, described waiting state arranges unit and includes: lock cell, system focus arrange unit and Network connection unit, wherein:
Described lock cell is used for using webpage connector that game process is locked, and with showing lower carrier strip progress Download progress window cover former game picture window;
Described system focus arranges unit for system focus being arranged to described download progress window, and stops Only receive the input operation of any user;
Described network connection unit takes over the network of former game for using webpage connector in another thread Interface, preserves the information that network transmits, and replaces game logic to send for keeping the heartbeat message connected, To keep network to connect.
From above technical scheme, the method that the embodiment of the present application provides before execution, the most in advance Game resource data in described client being played are divided into multiple game resource group, the most different game The time that in resource group, data load all differs, but data in same game resource group load time Between the most identical, and the method is upon execution, by obtaining the going game information of game role, it is possible to According to the current concrete condition of game role, search in multiple game resource groups necessary to running game and swim Play resource group, and after finding required game resource group, be directly downloaded;Finally, when in advance If having downloaded in the time, being loaded directly into the required game resource group after downloading, and working as Preset Time Interior download does not complete, then will interrupt current gaming session, until having downloaded.
The method that the embodiment of the present application provides, when download games data, first downloads those and can protect The required resource that card going game is properly functioning, owing to the percentage ratio of required game resource group is the least, now User only need to download and resource must can enter gaming platform on a small quantity, and i.e. when starting to play, user needs The time waited is the least.Compared with prior art, the method greatly reduces and carries out client game data Recompile and test job, reduce client game and become the production cost of web game instead.And Can realize quickly implanting client game application browser, simultaneously by client gaming program When implanting browser, the time that user waits is shorter.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to reality Execute the required accompanying drawing used in example or description of the prior art to be briefly described, it should be apparent that below, Accompanying drawing in description is only some embodiments of the present invention, for those of ordinary skill in the art, On the premise of not paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
A kind of side that client gaming program is quickly implanted browser that Fig. 1 provides for the embodiment of the present application The schematic flow sheet of method;
The flow process that the game resource in client game is grouped that Fig. 2 provides for the embodiment of the present application Schematic diagram;
The schematic flow sheet that Fig. 3 waits for downloads for the display that the embodiment of the present application provides and stops user to input;
Described required game resource is loaded in the plug-in unit in a browser that Fig. 4 provides for the embodiment of the present application The detailed process schematic diagram of the game resource data in group;
The system that client gaming program is quickly implanted browser that Fig. 5 provides for the embodiment of the present application Structural representation;
The detailed construction schematic diagram of the pre-grouped element that Fig. 6 provides for the embodiment of the present application;
The detailed construction schematic diagram treating state set unit that Fig. 7 provides for the embodiment of the present application.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out Clearly and completely describe, it is clear that described embodiment is only a part of embodiment of the present invention, and It is not all, of embodiment.Based on the embodiment in the present invention, those of ordinary skill in the art are not doing Go out the every other embodiment obtained under creative work premise, broadly fall into the scope of protection of the invention.
Embodiment one:
A kind of side that client gaming program is quickly implanted browser that Fig. 1 provides for the embodiment of the present application The schematic flow sheet of method.
Before the method for the embodiment of the present application offer is carried out, needing to do some preparations, these prepare Work includes: load the trip in described client being played within the same time period according to whether needs in advance Play resource data is divided into multiple game resource group.
After above-mentioned packet transaction in advance, the numerous game resource data in client game carry out one Individual preliminary combing, the game resource data after combing will be divided into multiple game resource group, different The time that in game resource group, data load all differs, but the data in same game resource group load Time the most identical.
As it is shown in figure 1, the embodiment of the present application provide client gaming program is quickly implanted browser Method comprises the following steps:
S101: obtain the going game information of game role.
In gaming, user is by playing the part of one or several specific role in virtual world in specific field Play under scape, and role is according to different game episode and statistical data (such as strength, sensitive Degree, intelligence, magic etc.) there is different abilities.In the embodiment of the present application, game role is current Game information may include that the class information of game role, the cartographic information at game role place and player Selected occupations etc., it will be recognized by those skilled in the art that the current information of above-mentioned game role is only this Some embodiments that application embodiment provides, in the application other embodiments, according to different situations, Out of Memory can also be included.
S102: find out going game in multiple described game resource groups according to described going game information Run necessary game resource group.
In aforementioned set-up procedure, the multiple game resource groups being divided in client game resource In, although may determine that in different game resource group that the load time of data is different, but difference cannot be determined The sequencing that game resource group loads.
By this step, the loading of multiple game resource groups successively can be carried out a preliminary differentiation.This In, the required game resource described by the embodiment of the present application refers to resource indispensable in program or game. Such as: game role enters a map, now without loading map resource, then player sees Will be game role be in blank out environment or games can because resource disappearance and can not It is properly functioning, so now model or the material of map are often the required resource in map.And phase For to, the background music customized for certain map can be then nonessential resource, even if i.e. player listens not Do not interfere with player to play normally to background music yet.
For the game environment that game role is presently in, its required required game resource is relative For all game resources of client game, shared proportion is relatively small.
S103: download game resource group necessary to the running game found out, and in Preset Time Judge described must game resource group whether to have downloaded.
Lookup through above-mentioned steps S102, it may be determined that go out the game resource group needing first to download, In this step, directly can download in browser plug-in necessary to the running game found out and play Resource group.
It addition, after starting to download, also need to judge in Preset Time whether above-mentioned download action completes, The time of here presetting at typically refers to the time postponed in advance in game, i.e. player can tolerate in gaming The maximum delay time.
When download action is complete in Preset Time, directly perform step S104;On the contrary, when in advance If download action has not been completed in the time, then need to perform step S105.
S104: load the game resource in described required game resource group in improved game mastery routine Data.
Must game resource group download owing to having determined that in step s 103, so at this Step just can be direct, and the required game resource group after downloading directly carries out recording.
Show the completion status that waits for downloads in S105: plug-in unit in a browser, and freeze mastery routine of playing Process, and stop the input process of user.
Owing to, in Preset Time, game resource group not loading necessary to running game completes, that Now it is accomplished by suspending the interface of user, and freezes mastery routine process of playing, to wait that these must The game resource group needed has been downloaded, and otherwise games may can not be normal because of the disappearance of resource Run, even if or games can run, game role that user sees (can be to play here Environment residing for role itself or game role) it would appear that severe deviations even distortion.
So must need to interrupt current game process, and return before game resource group downloaded Step S103, until must game resource group download, just can load so that play permissible Properly functioning.
Additionally, in the embodiment of the present application, for those nonessential client game resource data sets, clear Device plug-in unit of looking at can select to be downloaded on backstage during game running, and logical after having downloaded Know that games have been downloaded, in order to games load nonessential game resource.Backstage is downloaded Process, those of ordinary skill in the art know about its process, do not repeat them here.
From above technical scheme, the method that the embodiment of the present application provides before execution, the most in advance Game resource data in described client being played are divided into multiple game resource group, the most different game The time that in resource group, data load all differs, but data in same game resource group load time Between the most identical, and the method is upon execution, by obtaining the going game information of game role, it is possible to According to the current concrete condition of game role, search in multiple game resource groups necessary to running game and swim Play resource group, and after finding required game resource group, be directly downloaded;Finally, when in advance If having downloaded in the time, being loaded directly into the required game resource group after downloading, and working as Preset Time Interior download does not complete, then will interrupt current gaming session, until having downloaded.
The method that the embodiment of the present application provides, when download games data, first downloads those and can protect The required resource that card going game is properly functioning, owing to the percentage ratio of required game resource group is the least, now User only need to download and resource must can enter gaming platform on a small quantity, and i.e. when starting to play, user needs The time waited is the least.Compared with prior art, the method greatly reduces and carries out client game data Recompile and test job, reduce client game and become the production cost of web game, simultaneously instead When client gaming program is implanted browser, the time that user waits is shorter.
Embodiment two:
In the above-described embodiments, before client gaming program is quickly implanted browser, need game The preparation of set of resources group, when being grouped, its objective is: according to whether needs with for the moment Between load in section.In the embodiment of the present application, about how game resource being carried out packet it is described in detail.
The flow process that the game resource in client game is grouped that Fig. 2 provides for the embodiment of the present application Schematic diagram.
As in figure 2 it is shown, this packet step includes:
S201: the game resource data in described client being played carry out preliminary classification according to dissimilar.
The standard of preliminary classification here refers to the type of game resource data, i.e. different in game maps Data are segmented into map class, and in game, the data of same class plant are segmented into plant, such as: plant Species can be divided into: broad-leaf forest class, Coniferous forest class, shrub etc., by above-mentioned preliminary classification, and can A preliminary classification is carried out, to facilitate follow-up lookup with all game resource data in client is played Process.
S202: judge that the game resource data in same classification load the need of within the same time period.
Due to the game resource data in same classification, can be the most same according to different user's requests Load in time period.Such as: in view of the problem of user's resolution, for same one tree, work as trip During play role and this tree distant, now can only load trunk part, it is possible to meet game fortune Row requirement, and when subscriber station is near this tree or when user is positioned on this tree, it is necessary to loading branch, The detailed information such as leaves, flower even fruit, even if otherwise game can run, but for a user, Its game role by the environment that is in it would appear that deviation even distortion.
In the embodiment of the present application, a same characteristic features is had for the game data loaded in the same time period, Same characteristic features mentioned here includes: whether resource belongs to same map, same grade or same game Interior occupation etc., namely from the point of view of the present case of game role, required required for going game role Game resource is to the result after again selecting in difference classification.
S203: will determine that the game data loaded within the same time period obtained is divided into a game resource Group, and the game resource data in the game of described client are divided into multiple game resource group.
By this step, it is possible to all game resources in client being played are divided into multiple game resource Group, the time that in the most different game resource groups, data load all differs, but same game resource The time that data in group load is the most identical.And game resource necessary to the running game finally obtained Data set includes: form game resource data set and the game role caste phase of map framework The game resource data set of coupling.
Embodiment three:
When embodiment one judges in Preset Time must the download action of game resource group not complete, So it is accomplished by interrupting current game process, until must game resource group download.In the application In embodiment, for showing the completion status that waits for downloads in plug-in unit the most in a browser, and stop use The input process at family, is described in detail.
The schematic flow sheet that Fig. 3 waits for downloads for the display that the embodiment of the present application provides and stops user to input.
As it is shown on figure 3, this step includes:
S301: use webpage connector that game process is locked, and show at the top of former game picture window Include the download progress window of lower carrier strip progress.
The top having game picture window as described herein, does not implies that and is positioned at browser screen plane Top, and refer to former game picture window is being placed in bottom, and download progress window is positioned at former game picture The front in face.
S302: system focus is arranged to described download progress window, and it is any to stop game process reception The input operation of user.
By stopping, game process reception is any the input operation that can transfer ownership so that user cannot manipulate trip Play process, and then so that the game role of user is waited for, i.e. make whole game process It is waited for.
S303: use webpage connector to take over the network interface of former game in another thread, preserve network The information transmitted, and replace game logic to send for keeping the heartbeat message connected, to keep network even Connect.
By above-mentioned steps, can be current game must be interrupted and enters before game resource group downloaded Journey is also until must game resource group download.
Embodiment four:
In the above-described embodiments, must the download action of game resource group complete when judging in Preset Time After, then it is accomplished by the required game resource group to having downloaded and loads.In the embodiment of the present application, Game resource data in loading described required game resource group, need client gaming program to carry out one The least transformation, illustrates in detail below.
Load in the game that Fig. 4 provides for the embodiment of the present application plug-in unit in a browser and described must play The detailed process schematic diagram of the game resource data in resource group.
As shown in Figure 4, this step includes:
S401: call the interface function of Development Framework offer to access described game resource.
S402: the interface function that amendment network interface function provides for Development Framework of the same name.
S403: use the function creation game main window that Development Framework provides.
By above-mentioned steps, some little transformations can be carried out to needing client gaming program, and can To utilize in improved games must game resource group load.
Embodiment five:
The embodiment of the present application also provides for a kind of system that client gaming program is quickly implanted browser, Fig. 5 Structural representation for the system that client gaming program is quickly implanted browser that the embodiment of the present application provides Figure.
As it is shown in figure 5, this system includes: pre-grouped element 10, acquiring unit 20, search unit 30, Download unit 40, download judging unit 50, running unit 60 and waiting state arrange unit 70.
Pre-grouped element 10, for according to whether loading in the game of described client within the same time period Game data be first divided into multiple game data group in advance.
After above-mentioned packet transaction in advance, the numerous game resource data in client game carry out one Individual preliminary combing, the game resource data after combing will be divided into multiple game resource group, different The time that in game resource group, data load all differs, but the data in same game resource group load Time the most identical.
Acquiring unit 20, for obtaining the going game information of game role, described game role current Game information includes: the class information of game role and the cartographic information at game role place.
In gaming, user is by playing the part of one or several specific role in virtual world in specific field Play under scape, and role is according to different game episode and statistical data (such as strength, sensitive Degree, intelligence, magic etc.) there is different abilities.In the embodiment of the present application, game role is current Game information may include that the class information of game role, the cartographic information at game role place and player Selected occupations etc., it will be recognized by those skilled in the art that the current information of above-mentioned game role is only this Some embodiments that application embodiment provides, in the application other embodiments, according to different situations, Out of Memory can also be included.
Search unit 30, for the going game information that acquires according to described acquiring unit in multiple institutes Find out going game in stating game data group and run necessary game data group.
In aforementioned set-up procedure, the multiple game resource groups being divided in client game resource In, although may determine that in different game resource group that the load time of data is different, but difference cannot be determined The sequencing that game resource group loads.
By this step, the loading of multiple game resource groups successively can be carried out a preliminary differentiation.This In, the required game resource described by the embodiment of the present application refers to resource indispensable in program or game. Such as: game role enters a map, now without loading map resource, then player sees Will be game role be in blank out environment or games can because resource disappearance and can not It is properly functioning, so now model or the material of map are often the required resource in map.And phase For to, the background music customized for certain map can be then nonessential resource, even if i.e. player listens not Do not interfere with player to play normally to background music yet.
For the game environment that game role is presently in, its required required game resource is relative For all game resources of client game, shared proportion is relatively small.
Download unit 40, downloads the operation found out on the most improved webpage The necessary game data group of game.
Download judging unit 50, for judging described in Preset Time must game data group whether to download Complete.The time of here presetting at typically refers to the time postponed in advance in game, i.e. player is the most permissible The maximum delay time of tolerance.
Running unit 60, for when described download judging unit judges that download completes, at browser plug-in Game data group necessary to the running game that middle download is found out.Owing to having downloaded judging unit 50 Judge game resource group to have downloaded, so running unit 60 just can be direct, will download After required game resource group directly carry out recording.
Waiting state arranges unit 70, is used for when described download judging unit judges that download is not fully complete, Browser shows on improved webpage waiting state, and freezes mastery routine process of playing, and stop use The input process at family, until having downloaded.
Owing to, in Preset Time, game resource group not loading necessary to running game completes, that Now it is accomplished by suspending the interface of user, to wait that these required game resource groups have been downloaded, Otherwise games may be not normally functioning because of the disappearance of resource, even if or games can To run, the game role that user sees (here can be residing for game role itself or game role Environment) it would appear that severe deviations even distortion.
So be must need to interrupt current game process before game resource group downloaded, until must Need game resource group to download, just can load so that game can be properly functioning.
From above technical scheme, this system that the embodiment of the present application provides, the most in advance by described visitor Game resource data in the end game of family are divided into multiple game resource group, in the most different game resource groups The time that data load all differs, but the time that the data in same game resource group load is the most identical. Then by obtaining the going game information of game role, it is possible to according to the current concrete condition of game role, Game resource group necessary to running game is searched in multiple game resource groups, and required finding After game resource group, directly it is downloaded.Finally, when having downloaded in Preset Time, it is loaded directly into Required game resource group after download, and work as download in Preset Time and do not complete, then Jiang Huizhong Disconnected current gaming session, until having downloaded.
This system that the embodiment of the present application provides, when download games data, first downloads those and can protect The required resource that card going game is properly functioning, owing to the percentage ratio of required game resource group is the least, now User only need to download and resource must can enter gaming platform on a small quantity, and i.e. when starting to play, user needs The time waited is the least.Compared with prior art, the method is without carrying out again client game data Coding and test job, reduce the production cost of client game, and can realize swimming client Play application program quickly implants browser, simultaneously when client gaming program is implanted browser, and user The time waited is shorter.
Embodiment six:
The detailed construction schematic diagram of the pre-grouped element that Fig. 6 provides for the embodiment of the present application.
As shown in Figure 6, pre-grouped element 10 includes: taxon 11, load judging unit 12 and pre- Packet subelement 13, wherein:
The taxon 11 game data in described client being played is carried out tentatively according to dissimilar Classification;
Load judging unit 12 to be connected with taxon 11, for judging the game number in same classification Whether according to loading within the same time period, the game data loaded in the described same time period has a phase Same feature, described same characteristic features includes: occupation in same map nomenclature, same grade or same game;
Pre-packet subelement 13 is connected with loading judging unit 12, be used for will determine that obtain same The game data loaded in time period is divided into a game resource group, and described with packet subelement by institute The game resource data stated in client game are divided into multiple game resource group.
Embodiment seven
The detailed construction schematic diagram treating state set unit that Fig. 7 provides for the embodiment of the present application.
As it is shown in fig. 7, treat that state set unit 70 includes: lock cell 71, system focus arrange unit 72 and network connection unit 73, wherein:
Lock cell 71 is used for using webpage connector that game process is locked, and with showing lower carrier strip progress Download progress window cover former game picture window;
System focus arranges Unit 72 for system focus being arranged to described download progress window, and stops Receive the input operation of any user;
Network connection unit 73 connects for the network using webpage connector to take over former game in another thread Mouthful, preserve the information that network transmits, and replace game logic to send for keeping the heartbeat message connected, To keep network to connect.
In real case, the running unit that the present invention provides can use KLWebX system to realize, Here KLWebX system includes following 5 main functional modules:
1, KLWebX_AXPlayer: be and embed Internet Explorer browser ActiveX plug-in unit, communicates with page script, and be responsible for upgrading and load XModule with XDownloader module.
2, KLWebX_NSPlayer: be to embed Google Chrome, Safari, Firefox, Opera Deng the webpage connector of browser, it is also responsible for communicating with page script, and upgrades and load XModule Yu XDownloader module.
3, XModule: be standard DLL without any display, is page script and game Between the bridge of communication, it is adaptable to multiple browser.Can download according to the data that page script transmits and open Dynamic games.
4, XDownloader: be an EXE program not having any display, controlled by XModule System performs HTTP and downloads the management of queue.
5, XFramework: embed code and the static link library of game, download for game offer, The function communicated with XModule with script communication.
In KLWebX system, when KLWebX framework finds the necessary resource that games system is to be accessed When not yet downloading, KLWebX is first locked by game process, and at this moment intervalometer circulates or logic with rendering Circulation will not reoperate;While locked game process, KLWebX can be with display download progress bar Window cover former game picture window, and system focus is arranged to download progress window, now playing is System will no longer receive the input operation of any user.Meanwhile, KLWebX takes over former in another thread The network interface played, preserves the message that network transmits, and sends for keeping connection for game logic Idle message or tick message keep the connection of network.Through aforesaid operations, game client enters dormancy State, but still remain with game server and be connected normally.Necessary resource downloading knot needed for game Shu Hou, KLWebX will pack up download progress window, discharge game process, and the internet message that will receive Issue games system.Now games system is waken up from dormancy, and required resource has been downloaded complete, just That can carry on as usual carries out game logic.
As seen through the above description of the embodiments, those skilled in the art is it can be understood that arrive The application can add the mode of required general hardware platform by software and realize.Based on such understanding, The part that prior art is contributed by the technical scheme of the application the most in other words can be with software product Form embody, this computer software product can be stored in storage medium, as ROM/RAM, Magnetic disc, CD etc., including some instructions with so that computer equipment (can be personal computer, Server, or the network equipment etc.) perform each embodiment of the application or some part institute of embodiment The method stated.
Each embodiment in this specification all uses the mode gone forward one by one to describe, identical between each embodiment Similar part sees mutually, and what each embodiment stressed is different from other embodiments Part.For system embodiment, owing to it is substantially similar to embodiment of the method, so retouching Stating fairly simple, relevant part sees the part of embodiment of the method and illustrates.Described above is System embodiment is only schematically, and the wherein said unit that illustrates as separating component can be or also Can not be physically separate, the parts shown as unit can be or may not be physics list Unit, i.e. may be located at a place, or can also be distributed on multiple NE.Can be according to reality The needing of border selects some or all of module therein to realize the purpose of the present embodiment scheme.This area Those of ordinary skill, in the case of not paying creative work, is i.e. appreciated that and implements.
The application can be used in numerous general or special purpose computing system environment or configuration.Such as: Ge Renji Calculation machine, server computer, handheld device or portable set, laptop device, multicomputer system, System based on microprocessor, set top box, programmable consumer-elcetronics devices, network PC, small-sized calculating Machine, mainframe computer, the distributed computing environment including any of the above system or equipment etc..
The application can described in the general context of computer executable instructions, Such as program module.Usually, program module includes performing particular task or realizing specific abstract data class The routine of type, program, object, assembly, data structure etc..Can also be in a distributed computing environment Put into practice the application, in these distributed computing environment, by by communication network connected remotely Reason equipment performs task.In a distributed computing environment, program module may be located at and includes storage device In interior local and remote computer-readable storage medium.
Described above to the disclosed embodiments, makes professional and technical personnel in the field be capable of or uses The present invention.Multiple amendment to these embodiments will be aobvious and easy for those skilled in the art See, generic principles defined herein can without departing from the spirit or scope of the present invention, Realize in other embodiments.Therefore, the present invention is not intended to be limited to the embodiments shown herein, And it is to fit to the widest scope consistent with principles disclosed herein and features of novelty.

Claims (5)

1. the method that client gaming program is quickly implanted browser, it is characterised in that in advance It is divided into according to whether needing the game resource data loaded within the same time period in described client being played Multiple game resource groups, the method includes:
Obtaining the going game information of game role, the going game information of described game role includes: trip Occupation selected by the play class information of role, the cartographic information at game role place and player;
In multiple described game resource groups, find out going game according to described going game information and run institute Required game resource group, successively tentatively to distinguish the loading of multiple game resource groups;
Download game resource group necessary to the running game found out, and in Preset Time, judge institute State and must game resource group whether download;
If it is, control games to load the game resource data in described required game resource group;
The completion status if it does not, the interior display of plug-in unit in a browser waits for downloads, and freeze main journey of playing Sequence process, and stop the input process of user, until having downloaded;
Described in advance according to whether needing to load the game in described client being played within the same time period Resource data is first divided into multiple game resource group in advance, including:
Game resource data in described client being played carry out preliminary classification according to dissimilar, including By in game, different map datums is divided into map class, the data of same class plant are divided into plant;
Judge that the game resource data in same classification load the need of within the same time period, including base Resolution in user judges, the game data loaded in the described same time period have one identical Feature, described same characteristic features includes: whether resource belongs to same map, same grade or same game Interior occupation;
Will determine that the game data needing to load within the same time period obtained is divided into a game resource Group, and the game resource data in the game of described client are divided into multiple game resource group, different The time that in game resource group, data load all differs.
Method the most according to claim 1, it is characterised in that the necessary trip of described running game Play resource data group includes: form game resource data set and the game role occupation of map framework The game resource data set that grade matches.
Method the most according to claim 2, it is characterised in that show wait in browser plug-in State, and stop the input process of user, specifically include:
Use webpage connector that game process is locked, and show at the top of former game picture window and include The download progress window of lower carrier strip progress;
System focus is arranged to described download progress window, and stop the game process any user's of reception Input operation;
Use webpage connector to take over the network interface of former game in another thread, preserve what network transmitted Information, and replace game logic to send for keeping the heartbeat message connected, to keep network to connect.
4. the system that client gaming program is quickly implanted browser, it is characterised in that including: Pre-grouped element, acquiring unit, lookup unit, download unit, download judging unit, running unit and Waiting state arranges unit, wherein:
Described pre-grouped element, for playing described client according to whether loading within the same time period Interior game data is first divided into multiple game data group in advance;
Described acquiring unit for obtaining the going game information of game role, described game role current Game information includes: the class information of game role and the cartographic information at game role place;
Described lookup unit for the going game information that acquires according to described acquiring unit in multiple institutes Find out going game in stating game data group and run necessary game data group, with to multiple game moneys The loading of source group is successively tentatively distinguished;
Described download unit, downloads the fortune found out on the most improved webpage The necessary game data group of row game;
Described download judging unit, for judge in Preset Time described must game data group whether under Load completes;
Described running unit, for when described download judging unit judges that download completes, loads and is searched Game data group necessary to the running game gone out;
Described waiting state arranges unit, is used for when described download judging unit judges that download is not fully complete, Show waiting state on the most improved webpage, and freeze mastery routine process of playing, and stop The input process of user, until having downloaded;
Described pre-grouped element includes: taxon, load judging unit and be grouped subelement in advance, wherein:
Described taxon game data in described client being played is at the beginning of according to dissimilar carrying out Step classification, including by game, different map datums is divided into map class, the data of same class plant are divided into Plant;
Whether the game data that described loading judging unit is used for judging in same classification is within the same time period Load, judge including resolution based on user, the game data loaded in the described same time period Having a same characteristic features, described same characteristic features includes: same map nomenclature, same grade or same Occupation in game;
Described pre-packet subelement is for will determine that the game data loaded within the same time period obtained divides It is a game resource group, and described pre-packet subelement is by the game resource in the game of described client Data are divided into multiple game resource group, and the time that in different game resource groups, data load all differs.
System the most according to claim 4, it is characterised in that described waiting state arranges unit bag Include: lock cell, system focus arrange unit and network connection unit, wherein:
Described lock cell is used for using webpage connector that game process is locked, and with showing lower carrier strip progress Download progress window cover former game picture window;
Described system focus arranges unit for system focus being arranged to described download progress window, and stops Only receive the input operation of any user;
Described network connection unit takes over the network of former game for using webpage connector in another thread Interface, preserves the information that network transmits, and replaces game logic to send for keeping the heartbeat message connected, To keep network to connect.
CN201210427986.1A 2012-10-31 2012-10-31 A kind of method and system that client gaming program is quickly implanted browser Expired - Fee Related CN102984124B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210427986.1A CN102984124B (en) 2012-10-31 2012-10-31 A kind of method and system that client gaming program is quickly implanted browser

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210427986.1A CN102984124B (en) 2012-10-31 2012-10-31 A kind of method and system that client gaming program is quickly implanted browser

Publications (2)

Publication Number Publication Date
CN102984124A CN102984124A (en) 2013-03-20
CN102984124B true CN102984124B (en) 2016-08-17

Family

ID=47857872

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210427986.1A Expired - Fee Related CN102984124B (en) 2012-10-31 2012-10-31 A kind of method and system that client gaming program is quickly implanted browser

Country Status (1)

Country Link
CN (1) CN102984124B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103729558A (en) * 2013-12-26 2014-04-16 北京像素软件科技股份有限公司 Scene change method
CN104360871A (en) * 2014-10-12 2015-02-18 厦门雅基软件有限公司 Quick starting method for installation of cell phone games
CN106202141A (en) * 2016-05-24 2016-12-07 北京畅游天下网络技术有限公司 A kind of resource loading method and device
CN107038044A (en) * 2017-03-27 2017-08-11 长沙趣动文化科技有限公司 The discrete loading method of game resource and system based on Unity3D
CN107609065B (en) * 2017-08-30 2019-12-03 武汉斗鱼网络科技有限公司 A kind of game classification method, apparatus and electronic equipment
CN111008048B (en) * 2019-11-22 2023-12-26 珠海豹趣科技有限公司 File loading method and device and readable storage medium
CN114579000A (en) * 2020-12-01 2022-06-03 鸿富锦精密电子(天津)有限公司 Method and device for forbidding user operation, electronic equipment and storage medium
CN112527171B (en) * 2020-12-14 2022-06-21 北京聪明核桃教育科技有限公司 Multimedia file playing method, device, equipment and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101226525A (en) * 2007-01-19 2008-07-23 国际商业机器公司 Method, server, client terminal and system for controlling download and display of web page layout
CN102081528A (en) * 2009-11-26 2011-06-01 冼剑光 Method for running large-scale software being loaded
CN102238156A (en) * 2010-05-07 2011-11-09 盛乐信息技术(上海)有限公司 Online game client side resource downloading method
CN102340497A (en) * 2010-07-23 2012-02-01 北京乐升科技有限公司 Online game system and online game resource processing method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI263908B (en) * 2005-07-12 2006-10-11 Inventec Corp Update system and method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101226525A (en) * 2007-01-19 2008-07-23 国际商业机器公司 Method, server, client terminal and system for controlling download and display of web page layout
CN102081528A (en) * 2009-11-26 2011-06-01 冼剑光 Method for running large-scale software being loaded
CN102238156A (en) * 2010-05-07 2011-11-09 盛乐信息技术(上海)有限公司 Online game client side resource downloading method
CN102340497A (en) * 2010-07-23 2012-02-01 北京乐升科技有限公司 Online game system and online game resource processing method

Also Published As

Publication number Publication date
CN102984124A (en) 2013-03-20

Similar Documents

Publication Publication Date Title
CN102984124B (en) A kind of method and system that client gaming program is quickly implanted browser
CN105184847B (en) The rendering intent of 3D game rendering engines
CN109815252A (en) Test data generating method, device, computer equipment and readable storage medium storing program for executing
CN104598841B (en) A kind of the dual system bootstrap technique and device of terminaloriented safety
CN103873534B (en) A kind of application cluster moving method and device
CN103595770B (en) Method and device for achieving file downloading through SDK
CN111552550A (en) Task scheduling method, device and medium based on GPU (graphics processing Unit) resources
CN107678962A (en) The automated testing method and device of a kind of cli interface
CN109740765A (en) A kind of machine learning system building method based on Amazon server
CN107115673A (en) A kind of behavior of Behavior-based control tree performs method and apparatus
SA114360073B1 (en) Determining artificial intelligence behavior
CN106774277A (en) A kind of data sharing method between many Virtual Controllers
CN107832143A (en) A kind for the treatment of method and apparatus of physical machine resource
CN108134690A (en) Network service deployment flow control method, apparatus and system
CN107947965A (en) Service chaining compiler
CN105320510B (en) A kind of method and device of automatic tracing data relationship
CN101800669A (en) Network port test system and method
CN109522128A (en) Segmented multithreading task executing method and device
CN107741874A (en) A kind of GIS clouds virtual machine automatically creates method and system
CN107395456A (en) Distributed file system stream directly deposits method of testing and platform
CN106874485A (en) The method and picture that a kind of picture is presented are presented device
CN106294530B (en) The method and system of rule match
CN106201679A (en) Information processing method and electronic equipment
CN104866373B (en) Real time operating system emulation mode based on Cross Platform Technology
CN103218251A (en) Method and device for validating multi-core system level chip

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20160817

Termination date: 20171031

CF01 Termination of patent right due to non-payment of annual fee