WO2021073365A1 - 局外环境下局内行为的预览方法、装置、终端及存储介质 - Google Patents

局外环境下局内行为的预览方法、装置、终端及存储介质 Download PDF

Info

Publication number
WO2021073365A1
WO2021073365A1 PCT/CN2020/116508 CN2020116508W WO2021073365A1 WO 2021073365 A1 WO2021073365 A1 WO 2021073365A1 CN 2020116508 W CN2020116508 W CN 2020116508W WO 2021073365 A1 WO2021073365 A1 WO 2021073365A1
Authority
WO
WIPO (PCT)
Prior art keywords
target
event
preview
behavior
office
Prior art date
Application number
PCT/CN2020/116508
Other languages
English (en)
French (fr)
Inventor
黄永亮
宋奕威
Original Assignee
腾讯科技(深圳)有限公司
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 腾讯科技(深圳)有限公司 filed Critical 腾讯科技(深圳)有限公司
Priority to KR1020217034584A priority Critical patent/KR102641797B1/ko
Priority to SG11202111725WA priority patent/SG11202111725WA/en
Priority to EP20876113.0A priority patent/EP3995189B1/en
Priority to JP2021564928A priority patent/JP7425805B2/ja
Publication of WO2021073365A1 publication Critical patent/WO2021073365A1/zh
Priority to US17/497,784 priority patent/US20220023758A1/en

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/60Generating or modifying game content before or while executing the game program, e.g. authoring tools specially adapted for game development or game-integrated level editor
    • A63F13/63Generating or modifying game content before or while executing the game program, e.g. authoring tools specially adapted for game development or game-integrated level editor by the player, e.g. authoring using a level editor
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/30Interconnection arrangements between game servers and game devices; Interconnection arrangements between game devices; Interconnection arrangements between game servers
    • A63F13/32Interconnection arrangements between game servers and game devices; Interconnection arrangements between game devices; Interconnection arrangements between game servers using local area network [LAN] connections
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/50Controlling the output signals based on the game progress
    • A63F13/53Controlling the output signals based on the game progress involving additional visual information provided to the game scene, e.g. by overlay to simulate a head-up display [HUD] or displaying a laser sight in a shooting game
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/50Controlling the output signals based on the game progress
    • A63F13/53Controlling the output signals based on the game progress involving additional visual information provided to the game scene, e.g. by overlay to simulate a head-up display [HUD] or displaying a laser sight in a shooting game
    • A63F13/533Controlling the output signals based on the game progress involving additional visual information provided to the game scene, e.g. by overlay to simulate a head-up display [HUD] or displaying a laser sight in a shooting game for prompting the player, e.g. by displaying a game menu
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/55Controlling game characters or game objects based on the game progress
    • A63F13/56Computing the motion of game characters with respect to other game characters, game objects or elements of the game scene, e.g. for simulating the behaviour of a group of virtual soldiers or for path finding
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/85Providing additional services to players
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/205Parsing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/237Lexical tools
    • G06F40/242Dictionaries
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/70Game security or game management aspects
    • A63F13/77Game security or game management aspects involving data related to game devices or game servers, e.g. configuration data, software version or amount of memory
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/30Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by output arrangements for receiving control signals generated by the game device
    • A63F2300/308Details of the user interface
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/40Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterised by details of platform network
    • A63F2300/404Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterised by details of platform network characterized by a local network connection
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/40Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterised by details of platform network
    • A63F2300/404Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterised by details of platform network characterized by a local network connection
    • A63F2300/405Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterised by details of platform network characterized by a local network connection being a wireless ad hoc network, e.g. Bluetooth, Wi-Fi, Pico net
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/50Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by details of game servers
    • A63F2300/57Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by details of game servers details of game services offered to the player
    • A63F2300/572Communication between players during game play of non game information, e.g. e-mail, chat, file transfer, streaming of audio and streaming of video
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/60Methods for processing data by generating or executing the game program
    • A63F2300/69Involving elements of the real world in the game world, e.g. measurement in live races, real video

Definitions

  • the embodiments of the present application relate to the field of computer technology, and in particular to a method, device, terminal, and storage medium for previewing intra-office behavior in an external environment.
  • out-of-office refers to the game environment outside of a battle in a MOBA game.
  • Players can learn about the game knowledge, obtain various benefits such as hero skins, and fight outside the game. Prepare, connect with other players and make friends, etc.
  • In-game refers to the level world in which a battle game is located, in which players engage in heroic battles, release skills, and win the game.
  • developers can pre-record a video containing the in-office behavior in the out-of-office environment, and then provide the corresponding playback interface in the out-of-office environment. Through the interface, the player can trigger to play the corresponding video, so as to achieve the effect of previewing in-game behavior outside the game.
  • the embodiments of the application provide a method, device, terminal and storage medium for previewing intra-office behaviors in an out-of-office environment, which can solve the need to occupy a large amount of storage space to store videos containing intra-office behaviors in related technologies, causing the game to occupy a large area.
  • Storage space problem The technical solution is as follows:
  • an embodiment of the present application provides a method for previewing intra-office behavior in an extra-office environment, and the method includes:
  • the target configuration file corresponding to the target preview control is obtained, and the target configuration file is used to control the target role model to perform corresponding actions in the game.
  • the target role model is controlled to perform the inside behavior in the outside environment interface.
  • an embodiment of the present application provides a device for previewing intra-office behavior in an external environment, the device including:
  • a display module for displaying an external environment interface, where the external environment interface is an environment interface outside of the game, and the target role model is displayed in the external environment interface;
  • the first obtaining module is configured to obtain a target configuration file corresponding to the target preview control when a trigger operation on the target preview control in the foreign environment interface is received, and the target configuration file is used to control the target role
  • the model executes the corresponding intra-office behavior in the game
  • a generating module which is used to generate preview information of the foreign model according to the target configuration file
  • the control module is configured to control the target role model to perform the in-office behavior in the out-of-office environment interface according to the preview information of the out-of-office model.
  • an embodiment of the present application provides a terminal, the terminal includes a processor and a memory; the memory stores at least one instruction, and the at least one instruction is used to be executed by the processor to implement the above-mentioned aspects.
  • a computer-readable storage medium stores at least one instruction, and the at least one instruction is used to be executed by a processor to implement the intra-office behavior in the out-of-office environment as described in the foregoing aspect Preview method.
  • a computer program product or computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium.
  • the processor of the computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the preview method of intra-office behavior in the out-of-office environment provided in the various optional implementations of the foregoing aspects .
  • the target character model is displayed on the out-of-office environment interface, and the target is obtained when a trigger operation of the target preview control corresponding to the target character model is received.
  • Preview the target configuration file corresponding to the control thereby generating the outside model preview information according to the target configuration file, and then controlling the target role model to perform the inside behavior in the outside environment interface according to the outside model preview information.
  • the preview of the role model's internal behavior in the external environment is realized, which enriches the types of internal behaviors that can be previewed, and does not need to store the video corresponding to the internal behavior, and avoids the internal behavior video occupying the storage space of the terminal.
  • FIG. 1 shows an implementation schematic diagram of a method for previewing an intra-office behavior in an out-of-office environment according to an exemplary embodiment of the present application
  • FIG. 2 shows a flowchart of a method for previewing intra-office behavior in an out-of-office environment according to an exemplary embodiment of the present application
  • Fig. 3 is a schematic diagram of an external environment interface provided by an exemplary embodiment of the present application.
  • Fig. 4 is a schematic diagram of an external environment interface provided by another exemplary embodiment of the present application.
  • Fig. 5 is a schematic diagram of an external environment interface provided by another exemplary embodiment of the present application.
  • FIG. 6 shows a flowchart of a method for previewing intra-office behavior in an out-of-office environment according to another exemplary embodiment of the present application
  • FIG. 7 shows a flowchart of a method for previewing intra-office behavior in an out-of-office environment according to another exemplary embodiment of the present application
  • FIG. 8 is a schematic diagram of an internal behavior object and an external behavior object provided by an exemplary embodiment
  • FIG. 9 shows an implementation schematic diagram of a method for previewing an intra-office behavior in an out-of-office environment according to another exemplary embodiment of the present application.
  • FIG. 10 is a flowchart showing a process of realizing a new out-of-office preview requirement according to an exemplary embodiment of the present application
  • FIG. 11 shows a structural block diagram of an apparatus for previewing intra-office behavior in an out-of-office environment provided by an exemplary embodiment of the present application
  • FIG. 12 shows a structural block diagram of a terminal provided by an exemplary embodiment of the present application.
  • the "plurality” mentioned herein means two or more.
  • “And/or” describes the association relationship of the associated objects, indicating that there can be three types of relationships, for example, A and/or B, which can mean: A alone exists, A and B exist at the same time, and B exists alone.
  • the character “/” generally indicates that the associated objects before and after are in an "or” relationship.
  • In-game In the level world where the battle game is located, users can conduct hero battles, release skills, and win the game. In-game is the core experience of the game.
  • the configuration file in the embodiment of this application refers to the file used in the game to control the role model to perform the corresponding in-game behavior in the game, where the in-game behavior can be the game effect of a role model, such as releasing skills and personality Action, kill effect, death effect, return to city effect, resurrection effect, etc.
  • the dictionary in program design is similar to the dictionary in reality. It is a collection of a certain number of key-value pairs. The key-value pairs have no specific arrangement order, and the values can be found by keys.
  • the dictionaries provided in the embodiments of this application are divided into static dictionaries and dynamic dictionaries. Among them, the static dictionary is a collection of the correspondence between event parameter categories and event parameter names, and the dynamic dictionary is a collection of correspondence between event parameter categories and event parameter values.
  • a schematic structure of static and dynamic dictionary is shown in Table 1. Show.
  • Outside preview system With this outside preview system, you can preview any inside behavior of any role model without entering the game mode.
  • previews of intra-office behaviors in the out-of-office environment can be realized.
  • previewing a certain character model dancing in an outside environment is achieved by pre-recording a video containing the character model dancing inside the office, and then providing a corresponding playback interface outside the office.
  • the playback interface is called to play the video, so that the user can preview the in-game behavior of a certain character model dancing in an out-of-office environment.
  • the preview method of the original intra-office behavior in the out-of-office environment is improved, and the implementation process of the improved method is shown in FIG. 1.
  • the outside preview system the outside role model of the role model is first created.
  • the terminal receives the trigger operation on the preview control 101, and then calls the external interface 102 and the external interface 102
  • the configuration file 103 corresponding to the preview control 101 can be called, and the configuration file 103 is an intra-office configuration file.
  • the terminal converts the configuration file 103 into a configuration document 104, and parses the configuration file 104 to generate a behavior object 105 that instructs the role model to perform in-office behavior, and then generates out-of-office model preview information 106, and The out-of-office model preview information 106 is input into the out-of-office preview system.
  • the terminal sequentially updates the outside preview system, model information, behavior objects, and preview event objects according to the outside model preview information 106, so as to control the role model to execute the corresponding inside office in the outside environment interface according to the update result. behavior.
  • the preview of the role model's internal behavior in the external environment is realized, which enriches the types of internal behaviors that can be previewed, and does not need to store the video corresponding to the internal behavior, and avoids the internal behavior video occupying the storage space of the terminal.
  • the methods for previewing in-game behaviors in an out-of-office environment shown in the various embodiments of the present application are all applied to terminals installed with game-type applications.
  • the game-type applications may be card games or MOBA-type games.
  • Role-playing games, strategy games, shooting games, etc. the game applications used in the embodiments of the present application all need to have an internal and external environment.
  • FIG. 2 shows a flowchart of a method for previewing an intra-office behavior in an out-of-office environment according to an exemplary embodiment of the present application.
  • the method is applied to a terminal installed with a game application program as an example for description, and the method includes:
  • Step 201 Display the external environment interface.
  • the outside environment interface is the outside environment interface of the game.
  • the user can preview any character model, and the previewed objects can include the character model's skin, individual actions, internal behavior (performance), and so on.
  • individual actions can be iconic actions such as anger, applause, ecstasy, sadness, etc.; in-game actions can be kill special effects, return to city special effects, etc., each special effect can be matched with a different form of expression.
  • individual actions and intra-office behaviors can have different manifestations according to different role models.
  • the user after opening the external environment interface, the user can click on the target role model that needs to be previewed.
  • the target role can be displayed on the external environment interface Model, the target role model at this time can be the original role model without any individual actions or in-game effects.
  • the hero replacement control 302 which can be used to select the character model that needs to be previewed
  • the skin control 303 which can be used to select the skin of any character model
  • the action control 304 can be used to select the individual action of any character model
  • the in-game performance control 305 can be used to select the in-game performance of any character model
  • the target role model 306 is displayed on the upper layer of the external environment interface 301; when the user clicks the action control 304, the terminal receives the The trigger operation of the action control 304 will display a plurality of personalized action controls 307 on the upper layer of the external environment interface 301.
  • Step 202 When a trigger operation on the target preview control in the external environment interface is received, obtain a target configuration file corresponding to the target preview control.
  • the external environment interface can contain several preview controls, and different preview controls correspond to different intra-office behaviors.
  • the user can preview the intra-office behavior by clicking any preview control. For example, the user can click the preview control of "Shangfentaiji" in the special effects of the city, and preview the target character model in the outside environment to perform the "Shangfentaiji" special effect.
  • the target configuration file is used to control the target role model to perform corresponding intra-office behaviors in the game
  • the target configuration file is an intra-office configuration file. Since the configuration file in the office can control the target role model to perform the corresponding internal behavior in the office, preview the internal behavior of the target role model in the external environment, and you can also call the same configuration file to control the implementation, and only need to provide the corresponding call interface.
  • the user clicks on the target preview control 402 of "Shangfentaiji" in the special effects of returning to the city of the target character model.
  • the terminal receives a trigger operation on the target preview control 402, it will Obtain the target configuration file corresponding to the target preview control 402 through the interface, that is, obtain the configuration file that can control the target character model to execute the special effect of "Shang Di Ji".
  • Step 203 Generate out-of-office model preview information according to the target configuration file.
  • the target configuration file cannot be directly executed in the external environment.
  • the terminal needs to process the target configuration file to generate a local environment that can run in the external environment (foreign preview system).
  • the outside model previews the information, so as to control the target character model to execute the inside behavior in the outside environment interface.
  • each out-of-office model preview information corresponds to all the preview information of a role model.
  • the out-of-office model preview information corresponding to different role models needs to be generated according to the target configuration file.
  • the killer special effect may include the killer role model (master model) and the killed person role model (subordinate model), so it is necessary to generate preview information of the outer model corresponding to each of the two models.
  • Step 204 According to the preview information of the outside model, the target role model is controlled to perform the inside behavior in the outside environment interface.
  • the terminal controls the target role model to execute the in-office behavior in the out-of-office environment interface according to the preview information of the out-of-office model.
  • the terminal obtains the preview information of the outer model corresponding to the two role models, and according to the preview information of the out-of-office model, controls the two target role models respectively. Perform their own internal actions in the external environment interface.
  • the terminal receives a trigger operation on the target preview control 502, and then obtains the target configuration file internally.
  • the internal behavior corresponding to the target preview control 502 requires the interaction between the main character model (killer) 503 and the subordinate character model (killed) 504. Therefore, the out-of-office model preview information corresponding to the two character models is generated according to the target configuration file. Therefore, according to the preview information of the outside model, the master role model 503 and the subordinate role model 504 are respectively controlled to execute the inside behavior on the outside environment interface 501.
  • the target role model is displayed on the external environment interface, and when the trigger operation of the target preview control corresponding to the target role model is received, the target configuration corresponding to the target preview control is obtained File to generate preview information of the outside model according to the target configuration file, and then according to the preview information of the outside model, the target role model is controlled to execute the inside behavior in the outside environment interface.
  • the preview of the role model's internal behavior in the external environment is realized, which enriches the types of internal behaviors that can be previewed, and does not need to store the video corresponding to the internal behavior, and avoids the internal behavior video occupying the storage space of the terminal.
  • the method for previewing intra-office behaviors in an out-of-office environment involves the interaction process of a user interface (UI) system, an out-of-office preview system, and an intra-office system in a terminal game.
  • UI user interface
  • the UI system is used to display the outside environment interface or the inside environment interface
  • the outside preview system is used to generate outside model preview information
  • the inside system is used to maintain the level world of the battle game, and there are characters stored in the inside system
  • the configuration file of the model's intra-office behavior which is used to control the role model's intra-office behavior in the game.
  • the external preview system provides an external interface.
  • the external preview system passes the The external interface calls the target configuration file in the internal system, and analyzes the target configuration file to generate preview information of the external model; the UI system can call the preview information of the external model according to the external interface, and preview the information according to the external model
  • the execution process of the role model corresponding to the internal behavior is displayed in the external environment interface.
  • the target configuration file is the inside configuration file, and some of the inside environment information contained therein does not need to be reflected in the outside environment. Therefore, in a possible implementation manner, when When the terminal obtains the target configuration file, it needs to process the target configuration file, obtain the target event in the target configuration file and the target event parameters corresponding to the target event, and then generate out-of-office model preview information according to the target event parameters corresponding to the target event .
  • FIG. 6 shows a flowchart of a method for previewing an intra-office behavior in an out-of-office environment according to another exemplary embodiment of the present application.
  • the method includes:
  • Step 601 Display the external environment interface.
  • Step 602 When a trigger operation on the target preview control in the external environment interface is received, a target configuration file corresponding to the target preview control is obtained.
  • the target configuration file is used to control the target role model to perform corresponding internal behaviors in the game.
  • step 601 and step 602 For the implementation manner of the foregoing step 601 and step 602, reference may be made to step 201 and step 202, and details are not described herein in this embodiment.
  • Step 603 Analyze the target configuration file to determine the target event in the target configuration file and target event parameters corresponding to the target event.
  • the target event is a part of the events included in the target configuration file.
  • the target configuration file contains several events corresponding to the intra-office behavior, that is, parsing the target configuration file in the intra-office environment can generate behavior objects for controlling the target role model to perform the intra-office behavior indicated by the target configuration file in the opponent office.
  • the target profile is a number of events corresponding to the "dancing" behavior of character model A in the game
  • the target profile can be parsed in the in-game environment to generate behavior objects for controlling the "dancing" of character model A in the game.
  • you can control the role model A to complete the "dancing" behavior in the game.
  • the same configuration file may contain several events corresponding to a single intra-office behavior. Since the role model has several intra-office behaviors in the game, the role model has several corresponding configuration files.
  • the target configuration file contains several events corresponding to the internal behavior, but when previewing the internal behavior in the external environment, not all events in the target configuration file need to be executed during the external preview. Therefore, in a possible way In the implementation, the target configuration file needs to be parsed, and the target event required for out-of-office preview is determined from the events contained in the target configuration file, and the target event parameters corresponding to the target event are used to determine the target event according to the target event. And the target event parameter controls the role model to execute the internal behavior in the external environment interface.
  • the possible events included in the configuration file corresponding to the intra-office behavior include action status, play animation, play sound, background special effects, stop current action, etc.
  • action status For example, if the intra-office behavior corresponding to the target preview control is "dancing", the possible events included in the configuration file corresponding to the intra-office behavior include action status, play animation, play sound, background special effects, stop current action, etc.
  • the target event parameters corresponding to the target event refer to some indication properties for completing the target event.
  • some of the target event parameters of the target event of playing animation are shown in Table 2. Show.
  • the name of the target event of playing animation is Dance
  • the duration of playing animation is 12.7s
  • the operation object of playing animation is Self, etc.
  • the terminal After the terminal obtains the target configuration file, it parses the target configuration file to obtain event information (Even Info) and other information (Other Info) required to preview the intra-office behavior in the external environment.
  • Event Info refers to the target event and target event parameters corresponding to the target event
  • Other Info may include the file path of the target configuration file.
  • the target configuration file cannot be parsed directly, it is necessary to convert the target configuration file into a target configuration document that can be executed by the program, so as to parse the target configuration document.
  • step 603 further includes step 603A to step 603C:
  • Step 603A Convert the target configuration file into a target configuration file.
  • the format of the target configuration document may be an eXtensible Markup Language Document (XmlDoc), or other document formats that can be directly executed by the program. This embodiment does not limit the format of the target configuration document.
  • XmlDoc eXtensible Markup Language Document
  • the terminal After the terminal obtains the target configuration file, it is converted into a target configuration file, where the target configuration file contains the corresponding relationship between the target event parameter name and the target event parameter value.
  • the target configuration file contains "target Id” and "1", where "target Id” is the target event parameter name, and "1" is the corresponding target event parameter value.
  • step 603B the target configuration document is parsed according to the static dictionary, and a dynamic dictionary containing the configuration analysis result is generated.
  • the static dictionary contains the correspondence between the event parameter category and the event parameter name
  • the static dictionary contains the correspondence between all the event parameter categories and the event parameter names required for out-of-office preview.
  • the event parameter category is the category of the event parameter corresponding to the target event, that is, the name of a certain event parameter is represented by a specific identifier.
  • the event parameter name "target Id” is represented by "Spawn Object Duration.
  • Event Param. Target ID that is, "Spawn Object Duration.
  • Event Param. Target ID is used as the key and "target Id” is used as the value.
  • the dynamic dictionary is used to store the corresponding relationship between the event parameter category and the event parameter value, and the event corresponding to the event parameter category is an event required for the outside preview of the internal behavior, and the event is filtered from the configuration file according to the static dictionary Part of the incident.
  • a dynamic dictionary is created according to the configuration parsing result.
  • the configuration analysis result is the correspondence between the event parameter category and the event parameter value, that is, the dynamic dictionary contains the correspondence between the event parameter category and the event parameter value.
  • the event parameter category "Spawn Object Duration. Event Param. Target ID" is used as the key, and the event parameter value "1" in the configuration analysis result is used as the value and stored in the dynamic dictionary.
  • the static dictionary is pre-stored in the terminal, and when the configuration document needs to be parsed, the static dictionary can be directly called.
  • the developer can add or delete the correspondence between the event parameter category and the event parameter name contained in the static dictionary according to actual outside preview requirements.
  • the process of parsing the target configuration document according to the static dictionary may include the following steps:
  • the parameter value corresponding to the candidate event parameter is determined as the event parameter value.
  • the terminal obtains the target configuration document and parses the target configuration document according to the static dictionary
  • the target configuration document contains the correspondence between the names of several event parameters and the values of the event parameters
  • the candidate event parameter name in the target configuration file matches the event parameter name in the static dictionary
  • the candidate event corresponding to the candidate event parameter name is the event required for out-of-office preview
  • the parameter corresponding to the candidate event parameter name needs to be obtained
  • the value is used to subsequently generate out-of-office preview model information. Therefore, the parameter value corresponding to the candidate event parameter is determined as the event parameter value.
  • the candidate event parameter name "targetId” in the target configuration document is parsed and matches the event parameter name "targetId” in the static dictionary, then the parameter value corresponding to the candidate event parameter name "targetId” 1" as the event parameter value.
  • the event parameter category corresponding to the event parameter name is used as the key, the event parameter value is used as the value, and the key value is associated and stored in the dynamic dictionary.
  • the event parameter category corresponding to the event parameter name is used as the key of the dynamic dictionary, and the event parameter value is used as the value of the dynamic dictionary, and the key value is associated and stored In the dynamic dictionary.
  • the event parameter category "Spawn Object Duration. Event Param. Target ID” corresponding to the event parameter name is used as the key, and the The event parameter value "1" is used as the value, and the key-value association is stored in the dynamic dictionary.
  • Step 603C Determine the configuration analysis result in the dynamic dictionary as the target event and target event parameters.
  • the terminal parses the target configuration document according to the static dictionary, generates a dynamic dictionary containing the analysis result, and then determines the configuration analysis result as the target event and target event parameters, that is, the key in the dynamic dictionary That is the target event, and the value corresponding to the key is the target event parameter.
  • Step 604 Generate out-of-office model preview information according to the target event and target event parameters.
  • the terminal may generate out-of-office model preview information according to the target event and target event parameters.
  • the out-of-office model preview information may include behavior objects, model background objects, model identifiers, and so on.
  • the acquired target event and target event parameters in the dynamic dictionary is not chronological, therefore, the acquired target event and target event should be changed
  • the parameters form a behavior object in chronological order, and the behavior object is used to instruct the target character to perform the intra-office behavior.
  • step 604 may further include step 604A and step 604B:
  • step 604A a behavior object is generated according to the target event and target event parameters.
  • the behavior object is used to instruct the target role model to perform the intra-office behavior
  • the behavior object includes at least one preview event object
  • each preview event object is used to indicate the same kind of events included in the intra-office behavior.
  • the behavior object contains multiple preview event objects such as action status, playing animation, playing sound, and stopping the current action.
  • the preview event object of playing animation can include multiple events. For example, playing the left-hand movement of the character model, playing the right-hand movement of the character model, and so on.
  • Each preview event object is arranged in chronological order, and each event contained in each preview event object is also arranged in chronological order.
  • the way to parse the target configuration file is also different. Therefore, when generating the external behavior object, it is necessary to redesign the behavior object plan, that is, the external generated behavior object is different from the internal behavior Object.
  • the intra-office behavior object generated according to the target configuration file includes a three-layer structure, namely, Action-Track-Event.
  • the behavior represents an intra-office behavior
  • the track includes a type of event in the intra-office behavior.
  • the events contained in each track can be either a Tick event or a Duration event.
  • Action801 contains Track802 and Track803
  • Track802 also contains Event(Tick)804 and Event(Tick)805
  • Track803 contains Event(Duration)806, which presents Action as a whole -The three-tier structure of Track-Event.
  • the outside behavior object generated based on the same target profile includes a two-layer structure, namely Action-Battle Preview Item.
  • the Battle Preview Item in the outside behavior object corresponds to the Event in the inside behavior object.
  • Action 807 includes Battle Preview Item 808, Battle Preview Item 809, and Battle Preview Item 810, and presents a two-tier structure of Action-Battle Preview Item as a whole.
  • the generated outside behavior object is relative to the inside behavior object, removing the track boundary, so that the battle preview events are arranged independently in the outside behavior object in chronological order.
  • Step 604B Generate out-of-office model preview information according to the behavior object.
  • the terminal generates outside model preview information (information directly required by the outside preview system) according to the acquired behavior object.
  • the preview information of the out-of-office model includes not only behavior objects, but also background information objects of the character model, and master and subordinate attribute identifications of the character model, and so on.
  • Step 605 Input the outside model preview information into the outside preview system, which is used to sequentially update the outside model preview information, the behavior object and the preview event object to obtain the update result.
  • the preview information of the outside model is input into the outside preview system, and the outside preview system is updated according to the outside model preview information and the behavior object. And the sequence of update of the preview event object is updated.
  • Step 606 Control the target role model to perform in-office behavior in the off-office environment interface according to the update result output by the out-of-office preview system.
  • the outside preview system, outside model preview information, behavior objects, and preview event objects are updated in sequence, and according to the update results according to time
  • the order of the characters in turn controls the role model to perform intra-office behavior in the external environment interface.
  • FIG. 9 a complete schematic diagram of the preview of the intra-office behavior in the external environment is shown in Figure 9.
  • First create a model (Create Model) on the external environment interface interface.
  • the configuration file 904 is loaded through the external interface 902.
  • the analysis phase 903 the loaded configuration file 904 is first converted into a configuration document 905, and the configuration file 905 is configured and analyzed to obtain the Event Info906 and Other required by the external preview.
  • Info907 and then generate Battle Preview Item and Action objects 908 according to Event Info906 and Other Info907 to generate Model Info 909, and finally enter Model Info 909 into the out-of-office preview system.
  • Model Info, Action and Battle Preview Item are updated layer by layer in order to control the role model to perform corresponding internal behaviors in the external environment interface according to the update results.
  • the target configuration file is converted into a target configuration file that can be run by the program, and the target configuration file is parsed using a pre-stored static dictionary, and then a dynamic dictionary is generated according to the configuration analysis result to determine what is needed for out-of-office preview
  • the target event and target event parameters are conducive to accurately obtaining the target event; in addition, according to the target event and target event parameters, a behavior object that is different from the inside office is generated, and then the outside model preview information is generated according to the behavior object, and the outside
  • the model preview information is input into the outside preview system for updating, so as to control the role model to execute the inside behavior in the outside environment interface according to the output update result.
  • the preview of the role model's internal behavior in the external environment is realized, which enriches the types of internal behaviors that can be previewed, and there is no need to store the video corresponding to the internal behavior to avoid the internal behavior.
  • Behavioral videos occupy terminal storage space.
  • the process of realizing a new out-of-office preview requirement may include the following steps:
  • Step 1001 Determine the required role model and how each role model interacts.
  • step 1002 is entered.
  • Step 1002 whether there is an internal behavior corresponding to the external preview requirement.
  • step 1004 If it exists, go to step 1004, if not, go to step 1003.
  • Step 1003 add new behaviors.
  • step 1005 is entered.
  • Step 1004 Determine events and event parameters required in the behavior.
  • step 1005 is entered.
  • Step 1005 preview whether all events exist.
  • the behavior object After the behavior object is generated according to the required events and event parameters or new behavior information, continue to determine whether the generated behavior object can instruct the character model to perform the behavior, that is, determine whether all preview events in the behavior object exist. If both exist, go to step 1007. If there are missing preview events, go to step 1006.
  • Step 1006 add a new preview event.
  • step 1007 is entered.
  • the configuration update information can be pushed to the terminal in the form of an installation package, and the terminal can perform a new out-of-office preview according to the following steps. Updates to external preview requirements.
  • the configuration update information includes at least one of behavior configuration update information and preview event configuration update information
  • the behavior configuration update information is configuration information corresponding to a newly added behavior
  • the preview event configuration update information is configuration information corresponding to the newly added event.
  • the configuration update information is pushed to the terminal in the form of an installation package, and the terminal obtains the configuration update information, that is, obtains the Configuration update information for behaviors or events.
  • the behavior configuration update information can be stored in any storage area in an internal file or an external file.
  • the obtained configuration update information is event update information, it should be stored in the storage area of the external file.
  • the terminal receives the instruction to add the preview control, it updates the preview control in the external environment interface.
  • the terminal on the basis of the existing outside preview system, after the terminal obtains the configuration update information, it stores the configuration update information and updates the preview controls in the outside environment interface, which can realize the new office.
  • External preview needs to provide richer game preview and experience functions.
  • FIG. 11 shows a structural block diagram of an apparatus for previewing intra-office behaviors in an out-of-office environment provided by an exemplary embodiment of the present application.
  • the device includes:
  • the display module 1101 is configured to display an outside environment interface, where the outside environment interface is an environment interface outside the game, and the target role model is displayed in the outside environment interface;
  • the first obtaining module 1102 is configured to obtain a target configuration file corresponding to the target preview control when a trigger operation on the target preview control in the external environment interface is received, and the target configuration file is used to control the target
  • the role model performs corresponding internal behaviors in the game
  • the generating module 1103 is configured to generate preview information of the out-of-office model according to the target configuration file;
  • the control module 1104 is configured to control the target role model to execute the in-office behavior in the out-of-office environment interface according to the preview information of the out-of-office model.
  • the generating module 1103 includes:
  • the parsing unit is used to parse the target configuration file to determine the target event in the target configuration file and target event parameters corresponding to the target event, the target event being a part of the events included in the target configuration file ;
  • the generating unit is configured to generate the out-of-office model preview information according to the target event and target event parameters.
  • the parsing unit is further used for:
  • the target configuration document is parsed according to a static dictionary to generate a dynamic dictionary containing configuration analysis results.
  • the static dictionary contains the correspondence between event parameter categories and event parameter names, and the event parameter category is the target event Corresponding to the category of the event parameter, the configuration analysis result is the correspondence between the event parameter category and the event parameter value;
  • the configuration analysis result in the dynamic dictionary is determined as the target event and the target event parameter.
  • the target configuration document contains the correspondence between parameters and parameter values
  • the parsing unit is further used for:
  • the event parameter category corresponding to the event parameter name is used as a key, the event parameter value is used as a value, and the key value is associated and stored in the dynamic dictionary.
  • the generating unit is further used for:
  • a behavior object is generated according to the target event and the target event parameters, the behavior object is used to indicate the intra-office behavior performed by the target role model, the behavior object includes at least one preview event object, and each preview The event object is used to indicate similar events in the intra-office behavior;
  • the outside model preview information is generated according to the behavior object.
  • control module includes:
  • the input unit is configured to input the outside model preview information into the outside preview system, and the outside preview system is used to sequentially update the outside model preview information, the behavior object and the preview event object to obtain the update result;
  • the control unit is configured to control the target role model to execute the intra-office behavior in the out-of-office environment interface according to the update result output by the out-of-office preview system.
  • the device further includes:
  • the second obtaining module is configured to obtain configuration update information, where the configuration update information includes at least one of behavior configuration update information and preview event configuration update information, and the behavior configuration update information is configuration information corresponding to a newly added behavior.
  • the configuration update information of the preview event is the configuration information corresponding to the newly added event;
  • the update module is used to store the configuration update information and update the preview control in the external environment interface.
  • the target role model is displayed on the external environment interface, and when the trigger operation of the target preview control corresponding to the target role model is received, the target configuration corresponding to the target preview control is obtained File to generate preview information of the outside model according to the target configuration file, and then according to the preview information of the outside model, the target role model is controlled to execute the inside behavior in the outside environment interface.
  • the preview of the role model's internal behavior in the external environment is realized, which enriches the types of internal behaviors that can be previewed, and does not need to store the video corresponding to the internal behavior, and avoids the internal behavior video occupying the storage space of the terminal.
  • FIG. 12 shows a structural block diagram of a terminal 1200 according to an exemplary embodiment of the present application.
  • the terminal 1200 may be a portable mobile terminal, such as a smart phone, a tablet computer, an MP3 (Moving Picture Experts Group Audio Layer III, dynamic image expert compression standard audio layer 3) player, an MP4 (Moving Picture Experts Group Audio Layer IV, dynamic Video expert compresses standard audio level 4) player.
  • the terminal 1200 may also be called user equipment, portable terminal and other names.
  • the terminal 1200 includes a processor 1201 and a memory 1202.
  • the processor 1201 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and so on.
  • the processor 1201 may adopt at least one hardware form among DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array, Programmable Logic Array). achieve.
  • the processor 1201 may also include a main processor and a coprocessor.
  • the main processor is a processor used to process data in the awake state, also called a CPU (Central Processing Unit, central processing unit); the coprocessor is A low-power processor used to process data in the standby state.
  • the processor 1201 may be integrated with a GPU (Graphics Processing Unit, image processor), and the GPU is used for rendering and drawing content that needs to be displayed on the display screen.
  • the processor 1201 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.
  • AI Artificial Intelligence
  • the memory 1202 may include one or more computer-readable storage media, which may be tangible and non-transitory.
  • the memory 1202 may also include high-speed random access memory and non-volatile memory, such as one or more magnetic disk storage devices and flash memory storage devices.
  • the non-transitory computer-readable storage medium in the memory 1202 is used to store at least one instruction, and the at least one instruction is used to be executed by the processor 1201 to implement the method provided in the embodiment of the present application.
  • the terminal 1200 may optionally further include: a peripheral device interface 1203 and at least one peripheral device.
  • the peripheral device includes: at least one of a radio frequency circuit 1204, a touch display screen 1205, a camera 1206, an audio circuit 1207, a positioning component 1208, and a power supply 1209.
  • the peripheral device interface 1203 can be used to connect at least one peripheral device related to I/O (Input/Output) to the processor 1201 and the memory 1202.
  • the processor 1201, the memory 1202, and the peripheral device interface 1203 are integrated on the same chip or circuit board; in some other embodiments, any one of the processor 1201, the memory 1202, and the peripheral device interface 1203 or The two can be implemented on a separate chip or circuit board, which is not limited in this embodiment.
  • the radio frequency circuit 1204 is used for receiving and transmitting RF (Radio Frequency, radio frequency) signals, also called electromagnetic signals.
  • the radio frequency circuit 1204 communicates with a communication network and other communication devices through electromagnetic signals.
  • the radio frequency circuit 1204 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals into electrical signals.
  • the radio frequency circuit 1204 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, and so on.
  • the radio frequency circuit 1204 can communicate with other terminals through at least one wireless communication protocol.
  • the wireless communication protocol includes but is not limited to: World Wide Web, Metropolitan Area Network, Intranet, various generations of mobile communication networks (2G, 3G, 4G, and 5G), wireless local area network and/or WiFi (Wireless Fidelity, wireless fidelity) network.
  • the radio frequency circuit 1204 may also include a circuit related to NFC (Near Field Communication), which is not limited in this application.
  • the touch screen 1205 is used to display UI (User Interface).
  • the UI can include graphics, text, icons, videos, and any combination thereof.
  • the touch display screen 1205 also has the ability to collect touch signals on or above the surface of the touch display screen 1205.
  • the touch signal can be input to the processor 1201 as a control signal for processing.
  • the touch screen 1205 is used to provide virtual buttons and/or virtual keyboards, also called soft buttons and/or soft keyboards.
  • the touch display screen 1205 may be a flexible display screen, which is arranged on the curved surface or the folding surface of the terminal 1200. Furthermore, the touch screen 1205 can also be configured as a non-rectangular irregular figure, that is, a special-shaped screen.
  • the touch display screen 1205 can be made of materials such as LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode, organic light-emitting diode).
  • the camera assembly 1206 is used to capture images or videos.
  • the camera assembly 1206 includes a front camera and a rear camera.
  • the front camera is used to implement video calls or selfies
  • the rear camera is used to implement photos or videos.
  • the camera assembly 1206 may also include a flash.
  • the flash can be a single-color flash or a dual-color flash. Dual color temperature flash refers to a combination of warm light flash and cold light flash, which can be used for light compensation under different color temperatures.
  • the audio circuit 1207 is used to provide an audio interface between the user and the terminal 1200.
  • the audio circuit 1207 may include a microphone and a speaker.
  • the microphone is used to collect sound waves of the user and the environment, and convert the sound waves into electrical signals and input them to the processor 1201 for processing, or input to the radio frequency circuit 1204 to implement voice communication. For the purpose of stereo collection or noise reduction, there may be multiple microphones, which are respectively set in different parts of the terminal 1200.
  • the microphone can also be an array microphone or an omnidirectional collection microphone.
  • the speaker is used to convert the electrical signal from the processor 1201 or the radio frequency circuit 1204 into sound waves.
  • the speaker can be a traditional thin-film speaker or a piezoelectric ceramic speaker.
  • the speaker When the speaker is a piezoelectric ceramic speaker, it can not only convert the electrical signal into human audible sound waves, but also convert the electrical signal into human inaudible sound waves for distance measurement and other purposes.
  • the audio circuit 1207 may also include a headphone jack.
  • the positioning component 1208 is used to locate the current geographic location of the terminal 1200 to implement navigation or LBS (Location Based Service, location-based service).
  • the positioning component 1208 may be a positioning component based on the GPS (Global Positioning System, Global Positioning System) of the United States, the Beidou system of China, or the Galileo system of Russia.
  • the power supply 1209 is used to supply power to various components in the terminal 1200.
  • the power source 1209 may be alternating current, direct current, disposable batteries, or rechargeable batteries.
  • the rechargeable battery may be a wired rechargeable battery or a wireless rechargeable battery.
  • a wired rechargeable battery is a battery charged through a wired line
  • a wireless rechargeable battery is a battery charged through a wireless coil.
  • the rechargeable battery can also be used to support fast charging technology.
  • the terminal 1200 further includes one or more sensors 1210.
  • the one or more sensors 1210 include, but are not limited to: an acceleration sensor 1211, a gyroscope sensor 1212, a pressure sensor 1213, a fingerprint sensor 1214, an optical sensor 1215, and a proximity sensor 1216.
  • the acceleration sensor 1211 can detect the magnitude of acceleration on the three coordinate axes of the coordinate system established by the terminal 1200.
  • the acceleration sensor 1211 can be used to detect the components of gravitational acceleration on three coordinate axes.
  • the processor 1201 may control the touch display screen 1205 to display the user interface in a horizontal view or a vertical view according to the gravity acceleration signal collected by the acceleration sensor 1211.
  • the acceleration sensor 1211 may also be used for the collection of game or user motion data.
  • the gyroscope sensor 1212 can detect the body direction and rotation angle of the terminal 1200, and the gyroscope sensor 1212 can cooperate with the acceleration sensor 1211 to collect the user's 3D actions on the terminal 1200.
  • the processor 1201 can implement the following functions according to the data collected by the gyroscope sensor 1212: motion sensing (for example, changing the UI according to the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.
  • the pressure sensor 1213 may be disposed on the side frame of the terminal 1200 and/or the lower layer of the touch display screen 1205.
  • the pressure sensor 1213 When the pressure sensor 1213 is arranged on the side frame of the terminal 1200, it can detect the user's holding signal of the terminal 1200, and perform left and right hand recognition or quick operation according to the holding signal.
  • the operability controls on the UI interface can be controlled according to the user's pressure operation on the touch display screen 1205.
  • the operability control includes at least one of a button control, a scroll bar control, an icon control, and a menu control.
  • the fingerprint sensor 1214 is used to collect the user's fingerprint to identify the user's identity according to the collected fingerprint.
  • the processor 1201 authorizes the user to perform related sensitive operations, including unlocking the screen, viewing encrypted information, downloading software, paying, and changing settings.
  • the fingerprint sensor 1214 may be provided on the front, back or side of the terminal 1200. When a physical button or a manufacturer logo is provided on the terminal 1200, the fingerprint sensor 1214 can be integrated with the physical button or the manufacturer logo.
  • the optical sensor 1215 is used to collect the ambient light intensity.
  • the processor 1201 may control the display brightness of the touch screen 1205 according to the intensity of the ambient light collected by the optical sensor 1215. Specifically, when the ambient light intensity is high, the display brightness of the touch display screen 1205 is increased; when the ambient light intensity is low, the display brightness of the touch display screen 1205 is decreased.
  • the processor 1201 may also dynamically adjust the shooting parameters of the camera assembly 1206 according to the ambient light intensity collected by the optical sensor 1215.
  • the proximity sensor 1216 also called a distance sensor, is usually arranged on the front of the terminal 1200.
  • the proximity sensor 1216 is used to collect the distance between the user and the front of the terminal 1200.
  • the processor 1201 controls the touch screen 1205 to switch from the on-screen state to the off-screen state; when the proximity sensor 1216 detects When the distance between the user and the front of the terminal 1200 gradually increases, the processor 1201 controls the touch display screen 1205 to switch from the rest screen state to the bright screen state.
  • FIG. 12 does not constitute a limitation on the terminal 1200, and may include more or fewer components than shown in the figure, or combine certain components, or adopt different component arrangements.
  • the embodiments of the present application also provide a computer-readable medium that stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the external environment as described in each of the above embodiments. Preview method of next intra-office behavior.
  • the embodiments of the present application also provide a computer program product or computer program.
  • the computer program product or computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium.
  • the processor of the computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the preview method of intra-office behavior in the out-of-office environment provided in the various optional implementations of the foregoing aspects .
  • the functions described in the embodiments of the present application may be implemented by hardware, software, firmware, or any combination thereof. When implemented by software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on the computer-readable medium.
  • the computer-readable medium includes a computer storage medium and a communication medium, where the communication medium includes any medium that facilitates the transfer of a computer program from one place to another.
  • the storage medium may be any available medium that can be accessed by a general-purpose or special-purpose computer.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Optics & Photonics (AREA)
  • General Business, Economics & Management (AREA)
  • Business, Economics & Management (AREA)
  • Computer Security & Cryptography (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)
  • Processing Or Creating Images (AREA)

Abstract

一种局外环境下局内行为的预览方法、装置、终端及存储介质,属于游戏领域。该方法包括:显示局外环境界面(201);当接收到对该局外环境界面中目标预览控件的触发操作时,获取该目标预览控件对应目标配置文件(202),该目标配置文件用于控制该目标角色模型在对局内执行相应的局内行为;根据该目标配置文件生成局外模型预览信息(203);根据该局外模型预览信息,控制该目标角色模型在该局外环境界面中执行该局内行为(204)。通过复用局内配置文件实现在局外环境下对角色模型的局内行为预览,丰富了可供预览的局内行为的种类,且无需存储局内行为对应的视频,避免局内行为视频占用终端存储空间。

Description

局外环境下局内行为的预览方法、装置、终端及存储介质
本申请要求于2019年10月17日提交的申请号为201910989757.0、发明名称为“局外环境下局内行为的预览方法、装置、终端及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请实施例涉及计算机技术领域,特别涉及一种局外环境下局内行为的预览方法、装置、终端及存储介质。
背景技术
多人在线战术竞技(Multiplayer Online Battle Arena,MOBA)游戏中,局外指MOBA游戏中一局战斗之外的游戏环境,玩家可以在局外了解游戏知识、获取英雄皮肤等各种收益、进行战斗准备、与其他玩家联系交友等;而局内指一局战斗游戏所在的关卡世界,玩家在其中进行英雄战斗、释放技能、争取游戏胜利等。
相关技术中,为了使玩家能够在局外环境下查看到角色在局内环境下的局内行为,开发人员可以预先在局内录制包含局内行为的视频,然后在局外提供相应的播放接口,通过该播放接口,玩家可以触发播放相应的视频,从而实现在局外预览局内行为的效果。
采用上述方式实现局内行为的预览时,需要占用大量的存储空间来存储包含局内行为的视频,从而导致游戏占据较大的存储空间。
发明内容
本申请实施例提供了一种局外环境下局内行为的预览方法、装置、终端及存储介质,可以解决相关技术中需要占用大量的存储空间来存储包含局内行为的视频,导致游戏占据较大的存储空间的问题。所述技术方案如下:
一方面,本申请实施例提供了一种局外环境下局内行为的预览方法,所述方法包括:
显示局外环境界面,所述局外环境界面是对局之外的环境界面,所述局外 环境界面中显示有目标角色模型;
当接收到对所述局外环境界面中目标预览控件的触发操作时,获取所述目标预览控件对应的目标配置文件,所述目标配置文件用于控制所述目标角色模型在对局内执行相应的局内行为;
根据所述目标配置文件生成局外模型预览信息;
根据所述局外模型预览信息,控制所述目标角色模型在所述局外环境界面中执行所述局内行为。
另一方面,本申请实施例提供了一种局外环境下局内行为的预览装置,所述装置包括:
显示模块,用于显示局外环境界面,所述局外环境界面是对局之外的环境界面,所述局外环境界面中显示有目标角色模型;
第一获取模块,用于当接收到对所述局外环境界面中目标预览控件的触发操作时,获取所述目标预览控件对应的目标配置文件,所述目标配置文件用于控制所述目标角色模型在对局内执行相应的局内行为;
生成模块,用于根据所述目标配置文件生成局外模型预览信息;
控制模块,用于根据所述局外模型预览信息,控制所述目标角色模型在所述局外环境界面中执行所述局内行为。
另一方面,本申请实施例提供了一种终端,所述终端包括处理器和存储器;所述存储器存储有至少一条指令,所述至少一条指令用于被所述处理器执行以实现如上述方面所述的局外环境下局内行为的预览方法。
另一方面,提供了一种计算机可读存储介质,所述存储介质存储有至少一条指令,所述至少一条指令用于被处理器执行以实现如上述方面所述的局外环境下局内行为的预览方法。
另一方面,提供了一种计算机程序产品或计算机程序,该计算机程序产品或计算机程序包括计算机指令,该计算机指令存储在计算机可读存储介质中。计算机设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该计算机设备执行上述方面的各种可选实现方式中提供的局外环境下局内行为的预览方法。
采用本申请实施例提供的局外环境下局内行为的预览方法,通过在局外环境界面上显示目标角色模型,并在接收到对该目标角色模型对应目标预览控件的触发操作时,获取该目标预览控件对应的目标配置文件,从而根据该目标配 置文件生成局外模型预览信息,进而根据该局外模型预览信息,控制该目标角色模型在局外环境界面中执行局内行为。通过复用局内的配置文件实现在局外环境下对角色模型的局内行为预览,丰富了可供预览的局内行为的种类,且无需存储局内行为对应的视频,避免局内行为视频占用终端存储空间。
附图说明
图1示出了本申请一个示例性实施例示出的局外环境下局内行为的预览方法的实施示意图;
图2示出了本申请一个示例性实施例示出的局外环境下局内行为的预览方法的流程图;
图3是本申请一个示例性实施例提供的局外环境界面的示意图;
图4是本申请另一个示例性实施例提供的局外环境界面的示意图;
图5是本申请另一个示例性实施例提供的局外环境界面的示意图;
图6示出了本申请另一个示例性实施例示出的局外环境下局内行为的预览方法的流程图;
图7示出了本申请另一个示例性实施例示出的局外环境下局内行为的预览方法的流程图;
图8是一个示例性实施例提供的局内行为对象和局外行为对象的示意图;
图9示出了本申请另一个示例性实施例示出的局外环境下局内行为的预览方法的实施示意图;
图10是本申请一个示例性实施例示出的实现新局外预览需求过程的流程图;
图11示出了本申请一个示例性实施例提供的局外环境下局内行为的预览装置的结构框图;
图12示出了本申请一个示例性实施例提供的终端的结构方框图。
具体实施方式
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。
在本文中提及的“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A, 同时存在A和B,单独存在B这三种情况。字符“/”一般表示前后关联对象是一种“或”的关系。
为了便于理解,下面对本申请实施例中涉及的一些名词进行简单介绍。
局外:游戏中对局战斗游戏之外的环境,用户可以在局外了解游戏知识、获取英雄皮肤、进行战斗准备、与其他用户联系交友等,局外是游戏的支撑和辅助。
局内:对局战斗游戏所在的关卡世界,用户可以在其中进行英雄战斗、释放技能、争取游戏胜利等,局内是游戏的核心体验。
配置文件:本申请实施例中的配置文件指在游戏中用于控制角色模型在对局内执行相应的局内行为的文件,其中,局内行为可以是一个角色模型的对战效果,比如,释放技能、个性动作、击杀效果、死亡效果、回城效果、复活效果等。
字典:程序设计中的字典与现实中的字典类似,是由一定数量的键值对组成的集合,键值对没有特定的排列顺序,可以通过键来查找值。本申请实施例中提供的字典分为静态字典与动态字典。其中,静态字典为事件参数类别与事件参数名称的对应关系的集合,动态字典为事件参数类别与事件参数值的对应关系的集合,一种示意性的静态字典和动态字典的结构如表一所示。
表一
Figure PCTCN2020116508-appb-000001
局外预览系统:借助该局外预览系统,无需进入对局模式,即可以实现对任一角色模型的任意局内行为的预览。
相关技术中,通过在局外环境界面中播放包含局内行为的视频,可以实现在局外环境下局内行为的预览。示意性的,在局外环境下预览某一角色模型跳舞这一局内行为的实现方式为,预先在局内录制包含该角色模型跳舞的视频,然后在局外提供相应的播放接口,当终端接收到对该跳舞行为的展示控件的触发操作时,则调用该播放接口进行视频播放,从而使用户可以在局外环境下预 览某一角色模型跳舞这一局内行为。
显然,采用相关技术提供的方法,由于角色模型以及个性动作的多样性,要提供完整的角色模型局内行为的展示,需要提供较多的视频调用接口,并存储大量局内行为视频,导致游戏占据较大的存储空间。
为了解决相关技术中存在的问题,本申请实施例提供的方法中,对原有局外环境下局内行为的预览方法进行了改进,改进后方法的实施过程如图1所示。该方法中,在局外预览系统中,首先创建角色模型的局外角色模型,当用户点击预览控件101时,终端接收到对该预览控件101的触发操作,则调用对外接口102,对外接口102可以调用该预览控件101对应的配置文件103,该配置文件103为局内配置文件。在分析阶段中,终端将该配置文件103转换为配置文档104,并对该配置文档104进行解析,生成指示该角色模型进行局内行为的行为对象105,进而生成局外模型预览信息106,并将该局外模型预览信息106输入局外预览系统中。在运行时阶段,终端根据局外模型预览信息106依次进行局外预览系统、模型信息、行为对象、预览事件对象的更新,从而根据更新结果,控制该角色模型在局外环境界面中执行相应局内行为。通过复用局内的配置文件实现在局外环境下对角色模型的局内行为预览,丰富了可供预览的局内行为的种类,且无需存储局内行为对应的视频,避免局内行为视频占用终端存储空间。
需要说明的是,本申请各个实施例所示的局外环境下局内行为的预览方法均应用于安装有游戏类应用程序的终端中,该游戏类应用程序可以是卡牌类游戏、MOBA类游戏、角色扮演类游戏、策略类游戏、射击类游戏等,本申请实施例中所应用的游戏类应用程序均需要具有局内和局外环境。
请参考图2,其示出了本申请一个示例性实施例示出的局外环境下局内行为的预览方法的流程图。本申请实施例以该方法应用于安装有游戏类应用程序的终端为例进行说明,该方法包括:
步骤201,显示局外环境界面。
其中,局外环境界面是对局之外的环境界面。在该游戏的局外环境界面中,用户可以对任意角色模型进行预览,预览的对象可以包括该角色模型的皮肤、个性动作、局内行为(表现)等。其中,个性动作可以是愤怒、鼓掌、狂喜、 悲伤等标志性的动作;局内行为可以是击杀特效、回城特效等,每一种特效可以搭配不同的表现形式。可选的,个性动作以及局内行为都可以根据不同的角色模型有不同的表现形式。
在一种可能的实施方式中,打开局外环境界面后,用户可以点选需要预览的目标角色模型,当终端接收到对该目标角色模型的触发操作,可以在局外环境界面显示该目标角色模型,此时的目标角色模型可以是无任何个性动作或局内效果的原始角色模型。
示意性的,如图3所示,在局外环境界面301上,显示有更换英雄控件302(可以用来选择需要预览的角色模型)、皮肤控件303(可以用来选择任一角色模型的皮肤)、动作控件304(可以用来选择任一角色模型的个性动作)、局内表现控件305(可以用来选择任一角色模型的局内表现)等。当用户选择某一角色模型,则终端接收到对该目标角色模型的触发操作之后,在局外环境界面301上层显示目标角色模型306;当用户点选动作控件304之后,则终端接收到对该动作控件304的触发操作,则在局外环境界面301上层显示多个个性动作控件307。
步骤202,当接收到对局外环境界面中目标预览控件的触发操作时,获取目标预览控件对应的目标配置文件。
其中,局外环境界面上可以包含若干预览控件,不同预览控件对应不同局内行为,用户可以通过点选任一预览控件进行局内行为预览。比如,用户可以点选回城特效中的“上分大吉”预览控件,在局外环境中预览目标角色模型执行“上分大吉”这一回城特效。
其中,目标配置文件用于控制目标角色模型在对局内执行相应的局内行为,且目标配置文件为局内配置文件。由于局内的配置文件可以控制目标角色模型在局内执行相应的局内行为,因此在局外环境下预览该目标角色模型的局内行为,也可以调用相同的配置文件来控制实现,只需要提供相应的调用接口。
示意性的,如图4所示,用户点选目标角色模型的回城特效中的“上分大吉”这一目标预览控件402,当终端接收到对该目标预览控件402的触发操作,则会通过接口获取与该目标预览控件402对应的目标配置文件,即获取可以控制该目标角色模型执行“上分大吉”这一回城特效的配置文件。
步骤203,根据目标配置文件生成局外模型预览信息。
由于局内环境与局外环境不同,因此目标配置文件并不能直接在局外环境 中执行,终端需要对该目标配置文件进行相关处理,生成能够在局外环境(局外预览系统)中运行的局外模型预览信息,从而控制目标角色模型在局外环境界面中执行该局内行为。
其中,每一个局外模型预览信息对应一个角色模型的全部预览信息,当预览的局内行为中包含多个角色模型进行交互时,需要根据目标配置文件生成不同角色模型各自对应的局外模型预览信息。比如,击杀特效中可能包含击杀者角色模型(主模型)和被杀者角色模型(从属模型),因此就需要生成两个模型各自对应的局外模型预览信息。
步骤204,根据局外模型预览信息,控制目标角色模型在局外环境界面中执行局内行为。
在一种可能的实施方式中,若完成局内行为只需一个目标角色模型来实现,则终端根据该局外模型预览信息控制该目标角色模型在局外环境界面中执行该局内行为。
可选的,若局内行为需要两个目标角色模型交互实现,则终端获取到两个角色模型各自对应的局外模型预览信息,并根据该局外模型预览信息,分别控制两个目标角色模型在局外环境界面中执行各自的局内行为。
示意性的,如图5所示,在局外环境界面501上,当用户点选目标预览控件502之后,终端接收到对目标预览控件502的触发操作,则在内部获取目标配置文件,由于该目标预览控件502对应的局内行为需要主角色模型(击杀者)503和从属角色模型(被杀者)504交互完成,因此,根据目标配置文件生成两个角色模型各自对应的局外模型预览信息,从而根据该局外模型预览信息,分别控制主角色模型503和从属角色模型504在局外环境界面501上执行该局内行为。
综上所述,本申请实施例中,通过在局外环境界面上显示目标角色模型,并在接收到对该目标角色模型对应目标预览控件的触发操作时,获取该目标预览控件对应的目标配置文件,从而根据该目标配置文件生成局外模型预览信息,进而根据该局外模型预览信息,控制该目标角色模型在局外环境界面中执行局内行为。通过复用局内的配置文件实现在局外环境下对角色模型的局内行为预览,丰富了可供预览的局内行为的种类,且无需存储局内行为对应的视频,避免局内行为视频占用终端存储空间。
在一种可能的应用场景中,本申请实施例提供的局外环境下局内行为的预览方法涉及到终端游戏中用户界面(User Interface,UI)系统、局外预览系统和局内系统的交互过程。其中,UI系统用于局外环境界面或局内环境界面的显示;局外预览系统用于生成局外模型预览信息;局内系统用于维护对局战斗游戏的关卡世界,且局内系统中存储有角色模型进行局内行为的配置文件,用于控制角色模型在对局内进行局内行为。
本申请实施例中,局外预览系统提供有对外接口,当在局外环境界面下预览局内行为时,即接收到对某个局内行为对应的预览控件的触发操作时,局外预览系统通过该对外接口调用局内系统中的目标配置文件,并对目标配置文件进行解析,生成局外模型预览信息;UI系统即可根据该对外接口调用该局外模型预览信息,并根据该局外模型预览信息在局外环境界面中显示角色模型执行对应局内行为的执行过程,通过局内系统、局外预览系统和UI系统之间的交互,实现在局外环境界面中预览角色模型的局内行为。
由于游戏局内和局外的运行环境完全不同,但是目标配置文件是局内的配置文件,其中包含的一些局内环境信息在局外环境中不需要体现,因此,在一种可能的实施方式中,当终端获取到目标配置文件时,需要对该目标配置文件进行处理,获取目标配置文件中的目标事件以及目标事件对应的目标事件参数,进而根据该目标事件对应的目标事件参数生成局外模型预览信息。
请参考图6,其示出了本申请另一个示例性实施例示出的局外环境下局内行为的预览方法的流程图。该方法包括:
步骤601,显示局外环境界面。
步骤602,当接收到对局外环境界面中目标预览控件的触发操作时,获取目标预览控件对应的目标配置文件,目标配置文件用于控制目标角色模型在对局内执行相应的局内行为。
上述步骤601和步骤602的实施方式可以参考步骤201和步骤202,本实施例在此不做赘述。
步骤603,对目标配置文件进行解析,确定目标配置文件中的目标事件以及目标事件对应的目标事件参数,目标事件是目标配置文件所包含事件的一部分。
其中,目标配置文件中包含局内行为对应的若干事件,即在局内环境中解析该目标配置文件,可以生成用于控制目标角色模型在对局内进行该目标配置 文件所指示的局内行为的行为对象,比如,该目标配置文件为角色模型A在对局内“跳舞”行为对应的若干事件,则在局内环境中解析该目标配置文件,可以生成用于控制角色模型A在对局内“跳舞”的行为对象,通过运行该行为对象,即可控制角色模型A在对局内完成“跳舞”行为。
可选的,同一配置文件可以包含单一局内行为对应的若干事件,由于角色模型在对局内具有若干局内行为,则该角色模型具有若干对应的配置文件。
由于目标配置文件中包含局内行为对应的若干事件,但是在局外环境下预览该局内行为时,并不是目标配置文件中的所有事件都需要在局外预览时执行,因此,在一种可能的实施方式中,需要对目标配置文件进行解析,在目标配置文件中包含的若干事件中确定出局外预览时所需要的目标事件,以及该目标事件所对应的目标事件参数,用于根据该目标事件和目标事件参数控制角色模型在局外环境界面中执行局内行为。
比如,目标预览控件对应的局内行为是“跳舞”,则该局内行为对应的配置文件中可能包含的事件有动作状态、播放动画、播放声音、背景特效、停止当前动作等。当在局外预览该局内行为时,由于不需要展现背景特效,因此,对目标配置文件解析时,只需在该目标配置文件所包含的事件中,确定出动作状态、播放动画、播放声音、停止当前动作这些目标事件,以及这些目标事件所对应的事件参数。
其中,目标事件对应的目标事件参数指完成该目标事件的一些指示属性,示意性的,以“跳舞”这一局内行为为例,其播放动画这一目标事件的部分目标事件参数如表二所示。
表二
Figure PCTCN2020116508-appb-000002
Figure PCTCN2020116508-appb-000003
由表二可以获得,播放动画这一目标事件的名称为Dance,播放动画的时长为12.7s,播放动画的操作对象为Self等。
在一种可能的实施方式中,当终端获取到目标配置文件后,对目标配置文件进行解析,获取局外环境下预览该局内行为所需的事件信息(Even Info)和其它信息(Other Info),其中,Event Info即目标事件以及目标事件对应的目标事件参数,Other Info可以包括该目标配置文件的文件路径。
由于目标配置文件不能直接进行解析,因此,需要将目标配置文件转化为可以被程序执行的目标配置文档,从而对目标配置文档进行解析。
在一种可能的实施方式中,在图6的基础上,如图7所示,步骤603还包括步骤603A至步骤603C:
步骤603A,将目标配置文件转化为目标配置文档。
其中,目标配置文档的格式可以是可扩展标记语言文档(eXtensible Markup Language Document,XmlDoc),也可以是其他的可以被程序直接执行的文档格式,本实施例对目标配置文档的格式不构成限定。
在一种可能的实施方式中,当终端获取到目标配置文件之后,将其转化为目标配置文档,其中,目标配置文档中包含目标事件参数名称与目标事件参数值的对应关系。比如,目标配置文档中包含“target Id”,“1”,其中“target Id”为目标事件参数名称,而“1”则是对应的目标事件参数值。
步骤603B,根据静态字典对目标配置文档进行解析,生成包含配置解析结果的动态字典。
其中,静态字典中包含事件参数类别与事件参数名称之间的对应关系,静态字典中包含局外预览所需的所有事件参数类别与事件参数名称之间的对应关系。其中,事件参数类别是目标事件对应事件参数的类别,即将某一个事件参数的名称用特定的标识来表示。
比如,将事件参数名称“target Id”用“Spawn Object Duration.Event Param.Target ID”来表示,即“Spawn Object Duration.Event Param.Target ID”作为键,而“target Id”作为值。
其中,动态字典用于存储事件参数类别和事件参数值的对应关系,且该事 件参数类别对应的事件为局外预览局内行为时所需要的事件,且该事件为根据静态字典从配置文档中筛选出的部分事件。
在一种可能的实施方式中,在解析目标配置文档的同时,会根据配置解析结果创建动态字典。其中,配置解析结果为事件参数类别与事件参数值之间的对应关系,即动态字典中包含事件参数类别与事件参数值之间的对应关系。比如,将事件参数类别“Spawn Object Duration.Event Param.Target ID”作为键,而将配置解析结果中的事件参数值“1”作为值,存储在动态字典中。
在一种可能的实施方式中,静态字典预先存储在终端中,当需要对配置文档进行解析时,可以直接调用该静态字典。
可选的,开发人员可以根据实际的局外预览需求,对该静态字典中包含的事件参数类别与事件参数名称之间的对应关系进行增加或删减。
在一种可能的实施方式中,根据静态字典对目标配置文档进行解析的过程可以包括以下步骤:
1、若目标配置文档中的候选事件参数与静态字典中的事件参数名称匹配,则将候选事件参数对应的参数值确定为事件参数值。
在一种可能的实施方式中,当终端获取到目标配置文档,并根据静态字典对目标配置文档进行解析,由于目标配置文档中包含若干事件参数名称与事件参数值的对应关系,因此,当解析到目标配置文档中的候选事件参数名称与静态字典中的事件参数名称匹配,则表示该候选事件参数名称对应的候选事件为局外预览所需的事件,需要获取该候选事件参数名称对应的参数值用于后续生成局外预览模型信息,因此,将该候选事件参数对应的参数值确定为事件参数值。
示意性的,当解析到目标配置文档中的候选事件参数名称“target Id”与静态字典中的事件参数名称“target Id”匹配,则将该候选事件参数名称“target Id”对应的参数值“1”作为事件参数值。
2、将事件参数名称对应的事件参数类别作为键,将事件参数值作为值,并将键值关联存储至动态字典。
在一种可能的实施方式中,当确定出事件参数值之后,则将事件参数名称对应的事件参数类别作为动态字典的键,将事件参数值作为动态字典的值,并将该键值关联存储在动态字典中。
示意性的,当解析到事件参数名称“target Id”对应的事件参数值为“1”,则将 该事件参数名称对应的事件参数类别“Spawn Object Duration.Event Param.Target ID”作为键,将事件参数值“1”作为值,并将该键值关联存储在动态字典中。
步骤603C,将动态字典中的配置解析结果确定为目标事件和目标事件参数。
在一种可能的实施方式中,当终端根据静态字典对目标配置文档进行解析,生成包含解析结果的动态字典,进而将该配置解析结果确定为目标事件和目标事件参数,即动态字典中的键即为目标事件,而与该键相对应的值即为目标事件参数。
步骤604,根据目标事件和目标事件参数生成局外模型预览信息。
在一种可能的实施方式中,当终端获取到目标事件和目标事件参数之后,可以根据该目标事件和目标事件参数生成局外模型预览信息。其中,局外模型预览信息可以包括行为对象、模型背景对象、模型标识等。
可选的,由于局内行为的展示都是按照时间的先后顺序执行的,而获取的目标事件和目标事件参数在动态字典中的顺序并没有时间先后,因此,应该将获取的目标事件和目标事件参数按照时间的先后顺序组成行为对象,该行为对象用来指示目标角色执行该局内行为。
在一种可能的实施方式中,在图6的基础上,如图7所示,步骤604还可以包括步骤604A和步骤604B:
步骤604A,根据目标事件和目标事件参数生成行为对象。
其中,行为对象用于指示目标角色模型执行该局内行为,行为对象中包含至少一个预览事件对象,各个预览事件对象用于指示局内行为中包含的同类事件。比如,对于“跳舞”这一局内行为来说,行为对象中包含动作状态、播放动画、播放声音、停止当前动作等多个预览事件对象,而播放动画这一预览事件对象可包括多个事件,比如,播放角色模型的左手动作、播放角色模型的右手动作等。其中每一个预览事件对象均按照时间的先后顺序排列,且每一个预览事件对象中包含的每一个事件也是按照时间的先后顺序排列。
由于局内和局外运行环境不同,对目标配置文件的解析方式也不同,因此在生成局外的行为对象的时候,需要重新设计行为对象的方案,即局外生成的行为对象不同于局内的行为对象。
在一种可能的实施方式中,根据目标配置文件生成的局内行为对象包括三层结构,分别是行为(Action)-轨道(Track)-事件(Event)。其中,行为表示一个局内行为,轨道包含该局内行为中的一类事件,每一个轨道中包含的事件 可以是瞬时(Tick)事件,也可以是持续(Duration)事件。
示意性的,如图8中的(A)所示,Action801中包含Track802和Track803,Track802中又包含Event(Tick)804和Event(Tick)805,Track803中包含Event(Duration)806,整体呈现Action-Track-Event的三层结构。
相对的,根据相同的目标配置文件生成的局外行为对象包括两层结构,分别为Action-战斗预览事件(Battle Preview Item)。其中,局外行为对象中的Battle Preview Item对应局内行为对象中的Event。
示意性的,如图8中的(B)所示,Action807中包含Battle Preview Item808、Battle Preview Item809以及Battle Preview Item810,整体呈现Action-Battle Preview Item的两层结构。
显然,生成的局外行为对象相对于局内行为对象,去掉了Track的界限,使得战斗预览事件均按照时间顺序独立排列在局外行为对象中。
步骤604B,根据行为对象生成局外模型预览信息。
在一种可能的实施方式中,终端根据获取到的行为对象生成局外模型预览信息(局外预览系统直接需要的信息)。其中,局外模型预览信息不只包括行为对象,还可以包括该角色模型的背景信息对象、角色模型的主从属性标识等。
步骤605,将局外模型预览信息输入局外预览系统,局外预览系统用于依次进行局外模型预览信息更新、行为对象更新和预览事件对象更新,得到更新结果。
在一种可能的实施方式中,当获取到局外模型预览信息之后,即将该局外模型预览信息输入局外预览系统,并在局外预览系统中按照局外模型预览信息更新、行为对象更新和预览事件对象更新的顺序进行更新。
需要说明的是,上述获取局外模型预览信息的过程以及局外模型预览信息更新的过程均在局外预览系统中进行。
步骤606,根据局外预览系统的输出的更新结果,控制目标角色模型在局外环境界面中执行局内行为。
在一种可能的实施方式中,局外模型预览信息在程序中运行的过程中,由局外预览系统、局外模型预览信息、行为对象、预览事件对象依次进行更新,并根据更新结果按照时间的先后顺序依次控制角色模型在局外环境界面中执行局内行为。
示意性的,局外环境下局内行为预览的完整示意图如图9所示,首先在局 外环境界面界面创建模型(Create Model),当终端接收到对预览(Preview)控件901的触发操作之后,则通过对外接口902加载配置文件904,在分析阶段903中,首先将加载的配置文件904转换为配置文档905,并对该配置文档905进行配置解析,得到局外预览所需要的Event Info906和Other Info907,再根据Event Info906和Other Info907生成Battle Preview Item和Action对象908,从而生成模型信息(Model Info)909,最后将Model Info909输入局外预览系统中,在运行时阶段910中,按照战斗(局外)预览系统(Battle Preview System)、Model Info、Action和Battle Preview Item的顺序进行逐层更新,从而根据更新结果,控制角色模型在局外环境界面中执行相应局内行为。
本实施例中,通过将目标配置文件转化为程序可运行的目标配置文档,并利用预先存储的静态字典对该目标配置文档进行解析,进而根据配置解析结果生成动态字典,确定局外预览所需要的目标事件以及目标事件参数,有利于准确的获取目标事件;此外,根据目标事件以及目标事件参数生成不同于局内的行为对象,进而根据该行为对象生成局外模型预览信息,并将该局外模型预览信息输入局外预览系统中进行更新,从而根据输出的更新结果控制角色模型在局外环境界面中执行局内行为。通过复用局内的配置文件以及使用不同的解析过程,实现在局外环境下对角色模型的局内行为预览,丰富了可供预览的局内行为的种类,且无需存储局内行为对应的视频,避免局内行为视频占用终端存储空间。
上述实例对局外预览的实现过程进行了说明,若有新的局外预览需求,可以在现有的局外预览需求实现过程的基础上,增加相应的配置信息,来实现新的预览需求。
在一种可能的实施方式中,如图10所示,实现新的局外预览需求的过程可以包括以下步骤:
步骤1001,确定需要的角色模型以及各个角色模型之间如何进行交互。
当需要设计新的局外预览需求时,应该确定该局外预览需求所需要的角色模型,若所需要的角色模型的数量大于1,则还应该确定各个角色模型之间如何进行交互。当确定完成之后,则进入步骤1002。
步骤1002,是否存在与该局外预览需求对应的局内行为。
若存在,则进入步骤1004,若不存在,则进入步骤1003。
步骤1003,补充新的行为。
当不存在与该局外预览需求对应的局内行为,则开发人员需要补充新的行为。新的行为补充完成之后,进入步骤1005。
步骤1004,确定行为中所需要的事件以及事件参数。
当存在与该局外预览需求对应的局内行为,则继续确定在局外预览时,行为中所需要的事件以及事件参数。确定完成之后,进入步骤1005。
步骤1005,预览事件是否都存在。
当根据所需要的事件以及事件参数或新的行为信息生成行为对象之后,继续判断生成的行为对象是否能够指示角色模型执行该行为,即判断行为对象中的预览事件是否都存在。若都存在,则进入步骤1007。若有缺少的预览事件,则进入步骤1006。
步骤1006,补充新的预览事件。
当缺少实现该局外行为预览需求的预览事件时,则开发人员需要补充新的预览事件。补充完成之后,则进入步骤1007。
步骤1007,完成。
开发人员按照上述流程,可以完成新的局外预览需求的设计。
在一种可能的实施方式中,当开发人员按照上述流程完成新的局外预览需求的设计之后,可以将配置更新信息以安装包的形式推送给终端,则终端可以按照以下步骤进行新的局外预览需求的更新。
1、获取配置更新信息。
其中,配置更新信息包括行为配置更新信息和预览事件配置更新信息中的至少一种,行为配置更新信息是新增行为对应的配置信息,预览事件配置更新信息是新增事件对应的配置信息。
在一种可能的实施方式中,当开发人员完成新的局外预览需求的设计之后,会将配置更新信息以安装包的形式推送给终端,则终端获取到该配置更新信息,即获取到对行为或事件的配置更新信息。
2、对配置更新信息进行存储,并更新局外环境界面中的预览控件。
在一种可能的实施方式中,当终端获取到的配置更新信息为行为配置更新信息,则可以将该行为配置更新信息存储在局内文件或局外文件中的任意存储区域。当获取到的配置更新信息是事件更新信息,则应该将其存储在局外文件的存储区域。
示意性的,当开发人员完成新的局外预览需求的设计之后,会对应在局外环境界面设计新的预览控件,以便用户可以点击该预览控件进行新的局外预览。当终端接收到新增预览控件的指令之后,即更新局外环境界面中的预览控件。
需要说明的是,用户点击新增的预览控件,当终端接收到对该预览控件的触发操作,则按照上述实施例提供的局外环境下局内行为的预览方法,实现在局外环境下对角色模型新的行为预览。
本实施例中,在现有的局外预览系统的基础上,当终端获取到配置更新信息之后,即对配置更新信息进行存储,并更新局外环境界面中的预览控件,可以实现新的局外预览需求,从而提供更丰富的游戏预览和体验功能。
请参考图11,其示出了本申请一个示例性实施例提供的局外环境下局内行为的预览装置的结构框图。该装置包括:
显示模块1101,用于显示局外环境界面,所述局外环境界面是对局之外的环境界面,所述局外环境界面中显示有目标角色模型;
第一获取模块1102,用于当接收到对所述局外环境界面中目标预览控件的触发操作时,获取所述目标预览控件对应的目标配置文件,所述目标配置文件用于控制所述目标角色模型在对局内执行相应的局内行为;
生成模块1103,用于根据所述目标配置文件生成局外模型预览信息;
控制模块1104,用于根据所述局外模型预览信息,控制所述目标角色模型在所述局外环境界面中执行所述局内行为。
可选的,所述生成模块1103,包括:
解析单元,用于对所述目标配置文件进行解析,确定所述目标配置文件中的目标事件以及所述目标事件对应的目标事件参数,所述目标事件是所述目标配置文件所包含事件的一部分;
生成单元,用于根据所述目标事件和目标事件参数生成所述局外模型预览信息。
可选的,所述解析单元,还用于:
将所述目标配置文件转化为目标配置文档;
根据静态字典对所述目标配置文档进行解析,生成包含配置解析结果的动态字典,所述静态字典中包含事件参数类别与事件参数名称之间的对应关系,所述事件参数类别是所述目标事件对应事件参数的类别,所述配置解析结果为 所述事件参数类别与事件参数值之间的对应关系;
将所述动态字典中的所述配置解析结果确定为所述目标事件和所述目标事件参数。
可选的,所述目标配置文档中包含参数与参数值之间的对应关系;
可选的,所述解析单元,还用于:
若所述目标配置文档中的候选事件参数与所述静态字典中的所述事件参数名称匹配,则将所述候选事件参数对应的参数值确定为所述事件参数值;
将所述事件参数名称对应的所述事件参数类别作为键,将所述事件参数值作为值,并将键值关联存储至所述动态字典。
可选的,所述生成单元,还用于:
根据所述目标事件和所述目标事件参数生成行为对象,所述行为对象用于指示所述目标角色模型执行的所述局内行为,所述行为对象中包含至少一个预览事件对象,各个所述预览事件对象用于指示所述局内行为中的同类事件;
根据所述行为对象生成所述局外模型预览信息。
可选的,所述控制模块,包括:
输入单元,用于将所述局外模型预览信息输入局外预览系统,所述局外预览系统用于依次进行局外模型预览信息更新、行为对象更新和预览事件对象更新,得到更新结果;
控制单元,用于根据所述局外预览系统的输出的所述更新结果,控制所述目标角色模型在所述局外环境界面中执行所述局内行为。
可选的,所述装置还包括:
第二获取模块,用于获取配置更新信息,所述配置更新信息包括行为配置更新信息和预览事件配置更新信息中的至少一种,所述行为配置更新信息是新增行为对应的配置信息,所述预览事件配置更新信息是新增事件对应的配置信息;
更新模块,用于对所述配置更新信息进行存储,并更新所述局外环境界面中的预览控件。
综上所述,本申请实施例中,通过在局外环境界面上显示目标角色模型,并在接收到对该目标角色模型对应目标预览控件的触发操作时,获取该目标预览控件对应的目标配置文件,从而根据该目标配置文件生成局外模型预览信息,进而根据该局外模型预览信息,控制该目标角色模型在局外环境界面中执行局 内行为。通过复用局内的配置文件实现在局外环境下对角色模型的局内行为预览,丰富了可供预览的局内行为的种类,且无需存储局内行为对应的视频,避免局内行为视频占用终端存储空间。
请参考图12,其示出了本申请一个示例性实施例提供的终端1200的结构框图。该终端1200可以是便携式移动终端,比如:智能手机、平板电脑、MP3(Moving Picture Experts Group Audio Layer III,动态影像专家压缩标准音频层面3)播放器、MP4(Moving Picture Experts Group Audio Layer IV,动态影像专家压缩标准音频层面4)播放器。终端1200还可能被称为用户设备、便携式终端等其他名称。
通常,终端1200包括有:处理器1201和存储器1202。
处理器1201可以包括一个或多个处理核心,比如4核心处理器、8核心处理器等。处理器1201可以采用DSP(Digital Signal Processing,数字信号处理)、FPGA(Field-Programmable Gate Array,现场可编程门阵列)、PLA(Programmable Logic Array,可编程逻辑阵列)中的至少一种硬件形式来实现。处理器1201也可以包括主处理器和协处理器,主处理器是用于对在唤醒状态下的数据进行处理的处理器,也称CPU(Central Processing Unit,中央处理器);协处理器是用于对在待机状态下的数据进行处理的低功耗处理器。在一些实施例中,处理器1201可以在集成有GPU(Graphics Processing Unit,图像处理器),GPU用于负责显示屏所需要显示的内容的渲染和绘制。一些实施例中,处理器1201还可以包括AI(Artificial Intelligence,人工智能)处理器,该AI处理器用于处理有关机器学习的计算操作。
存储器1202可以包括一个或多个计算机可读存储介质,该计算机可读存储介质可以是有形的和非暂态的。存储器1202还可包括高速随机存取存储器,以及非易失性存储器,比如一个或多个磁盘存储设备、闪存存储设备。在一些实施例中,存储器1202中的非暂态的计算机可读存储介质用于存储至少一个指令,该至少一个指令用于被处理器1201所执行以实现本申请实施例提供的方法。
在一些实施例中,终端1200还可选包括有:外围设备接口1203和至少一个外围设备。具体地,外围设备包括:射频电路1204、触摸显示屏1205、摄像头1206、音频电路1207、定位组件1208和电源1209中的至少一种。
外围设备接口1203可被用于将I/O(Input/Output,输入/输出)相关的至少 一个外围设备连接到处理器1201和存储器1202。在一些实施例中,处理器1201、存储器1202和外围设备接口1203被集成在同一芯片或电路板上;在一些其他实施例中,处理器1201、存储器1202和外围设备接口1203中的任意一个或两个可以在单独的芯片或电路板上实现,本实施例对此不加以限定。
射频电路1204用于接收和发射RF(Radio Frequency,射频)信号,也称电磁信号。射频电路1204通过电磁信号与通信网络以及其他通信设备进行通信。射频电路1204将电信号转换为电磁信号进行发送,或者,将接收到的电磁信号转换为电信号。可选地,射频电路1204包括:天线系统、RF收发器、一个或多个放大器、调谐器、振荡器、数字信号处理器、编解码芯片组、用户身份模块卡等等。射频电路1204可以通过至少一种无线通信协议来与其它终端进行通信。该无线通信协议包括但不限于:万维网、城域网、内联网、各代移动通信网络(2G、3G、4G及5G)、无线局域网和/或WiFi(Wireless Fidelity,无线保真)网络。在一些实施例中,射频电路1204还可以包括NFC(Near Field Communication,近距离无线通信)有关的电路,本申请对此不加以限定。
触摸显示屏1205用于显示UI(User Interface,用户界面)。该UI可以包括图形、文本、图标、视频及其它们的任意组合。触摸显示屏1205还具有采集在触摸显示屏1205的表面或表面上方的触摸信号的能力。该触摸信号可以作为控制信号输入至处理器1201进行处理。触摸显示屏1205用于提供虚拟按钮和/或虚拟键盘,也称软按钮和/或软键盘。在一些实施例中,触摸显示屏1205可以为一个,设置终端1200的前面板;在另一些实施例中,触摸显示屏1205可以为至少两个,分别设置在终端1200的不同表面或呈折叠设计;在再一些实施例中,触摸显示屏1205可以是柔性显示屏,设置在终端1200的弯曲表面上或折叠面上。甚至,触摸显示屏1205还可以设置成非矩形的不规则图形,也即异形屏。触摸显示屏1205可以采用LCD(Liquid Crystal Display,液晶显示器)、OLED(Organic Light-Emitting Diode,有机发光二极管)等材质制备。
摄像头组件1206用于采集图像或视频。可选地,摄像头组件1206包括前置摄像头和后置摄像头。通常,前置摄像头用于实现视频通话或自拍,后置摄像头用于实现照片或视频的拍摄。在一些实施例中,后置摄像头为至少两个,分别为主摄像头、景深摄像头、广角摄像头中的任意一种,以实现主摄像头和景深摄像头融合实现背景虚化功能,主摄像头和广角摄像头融合实现全景拍摄以及VR(Virtual Reality,虚拟现实)拍摄功能。在一些实施例中,摄像头组件 1206还可以包括闪光灯。闪光灯可以是单色温闪光灯,也可以是双色温闪光灯。双色温闪光灯是指暖光闪光灯和冷光闪光灯的组合,可以用于不同色温下的光线补偿。
音频电路1207用于提供用户和终端1200之间的音频接口。音频电路1207可以包括麦克风和扬声器。麦克风用于采集用户及环境的声波,并将声波转换为电信号输入至处理器1201进行处理,或者输入至射频电路1204以实现语音通信。出于立体声采集或降噪的目的,麦克风可以为多个,分别设置在终端1200的不同部位。麦克风还可以是阵列麦克风或全向采集型麦克风。扬声器则用于将来自处理器1201或射频电路1204的电信号转换为声波。扬声器可以是传统的薄膜扬声器,也可以是压电陶瓷扬声器。当扬声器是压电陶瓷扬声器时,不仅可以将电信号转换为人类可听见的声波,也可以将电信号转换为人类听不见的声波以进行测距等用途。在一些实施例中,音频电路1207还可以包括耳机插孔。
定位组件1208用于定位终端1200的当前地理位置,以实现导航或LBS(Location Based Service,基于位置的服务)。定位组件1208可以是基于美国的GPS(Global Positioning System,全球定位系统)、中国的北斗系统或俄罗斯的伽利略系统的定位组件。
电源1209用于为终端1200中的各个组件进行供电。电源1209可以是交流电、直流电、一次性电池或可充电电池。当电源1209包括可充电电池时,该可充电电池可以是有线充电电池或无线充电电池。有线充电电池是通过有线线路充电的电池,无线充电电池是通过无线线圈充电的电池。该可充电电池还可以用于支持快充技术。
在一些实施例中,终端1200还包括有一个或多个传感器1210。该一个或多个传感器1210包括但不限于:加速度传感器1211、陀螺仪传感器1212、压力传感器1213、指纹传感器1214、光学传感器1215以及接近传感器1216。
加速度传感器1211可以检测以终端1200建立的坐标系的三个坐标轴上的加速度大小。比如,加速度传感器1211可以用于检测重力加速度在三个坐标轴上的分量。处理器1201可以根据加速度传感器1211采集的重力加速度信号,控制触摸显示屏1205以横向视图或纵向视图进行用户界面的显示。加速度传感器1211还可以用于游戏或者用户的运动数据的采集。
陀螺仪传感器1212可以检测终端1200的机体方向及转动角度,陀螺仪传 感器1212可以与加速度传感器1211协同采集用户对终端1200的3D动作。处理器1201根据陀螺仪传感器1212采集的数据,可以实现如下功能:动作感应(比如根据用户的倾斜操作来改变UI)、拍摄时的图像稳定、游戏控制以及惯性导航。
压力传感器1213可以设置在终端1200的侧边框和/或触摸显示屏1205的下层。当压力传感器1213设置在终端1200的侧边框时,可以检测用户对终端1200的握持信号,根据该握持信号进行左右手识别或快捷操作。当压力传感器1213设置在触摸显示屏1205的下层时,可以根据用户对触摸显示屏1205的压力操作,实现对UI界面上的可操作性控件进行控制。可操作性控件包括按钮控件、滚动条控件、图标控件、菜单控件中的至少一种。
指纹传感器1214用于采集用户的指纹,以根据采集到的指纹识别用户的身份。在识别出用户的身份为可信身份时,由处理器1201授权该用户执行相关的敏感操作,该敏感操作包括解锁屏幕、查看加密信息、下载软件、支付及更改设置等。指纹传感器1214可以被设置终端1200的正面、背面或侧面。当终端1200上设置有物理按键或厂商Logo时,指纹传感器1214可以与物理按键或厂商Logo集成在一起。
光学传感器1215用于采集环境光强度。在一个实施例中,处理器1201可以根据光学传感器1215采集的环境光强度,控制触摸显示屏1205的显示亮度。具体地,当环境光强度较高时,调高触摸显示屏1205的显示亮度;当环境光强度较低时,调低触摸显示屏1205的显示亮度。在另一个实施例中,处理器1201还可以根据光学传感器1215采集的环境光强度,动态调整摄像头组件1206的拍摄参数。
接近传感器1216,也称距离传感器,通常设置在终端1200的正面。接近传感器1216用于采集用户与终端1200的正面之间的距离。在一个实施例中,当接近传感器1216检测到用户与终端1200的正面之间的距离逐渐变小时,由处理器1201控制触摸显示屏1205从亮屏状态切换为息屏状态;当接近传感器1216检测到用户与终端1200的正面之间的距离逐渐变大时,由处理器1201控制触摸显示屏1205从息屏状态切换为亮屏状态。
本领域技术人员可以理解,图12中示出的结构并不构成对终端1200的限定,可以包括比图示更多或更少的组件,或者组合某些组件,或者采用不同的组件布置。
本申请实施例还提供了一种计算机可读介质,该计算机可读介质存储有至少一条指令,所述至少一条指令由所述处理器加载并执行以实现如上各个实施例所述的局外环境下局内行为的预览方法。
本申请实施例还提供了一种计算机程序产品或计算机程序,该计算机程序产品或计算机程序包括计算机指令,该计算机指令存储在计算机可读存储介质中。计算机设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该计算机设备执行上述方面的各种可选实现方式中提供的局外环境下局内行为的预览方法。
本领域技术人员应该可以意识到,在上述一个或多个示例中,本申请实施例所描述的功能可以用硬件、软件、固件或它们的任意组合来实现。当使用软件实现时,可以将这些功能存储在计算机可读介质中或者作为计算机可读介质上的一个或多个指令或代码进行传输。计算机可读介质包括计算机存储介质和通信介质,其中通信介质包括便于从一个地方向另一个地方传送计算机程序的任何介质。存储介质可以是通用或专用计算机能够存取的任何可用介质。
以上所述仅为本申请的可选实施例,并不用以限制本申请,凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。

Claims (15)

  1. 一种局外环境下局内行为的预览方法,应用于终端中,所述方法包括:
    显示局外环境界面,所述局外环境界面是对局之外的环境界面,所述局外环境界面中显示有目标角色模型;
    当接收到对所述局外环境界面中目标预览控件的触发操作时,获取所述目标预览控件对应的目标配置文件,所述目标配置文件用于控制所述目标角色模型在对局内执行相应的局内行为;
    根据所述目标配置文件生成局外模型预览信息;
    根据所述局外模型预览信息,控制所述目标角色模型在所述局外环境界面中执行所述局内行为。
  2. 根据权利要求1所述的方法,其中,所述根据所述目标配置文件生成局外模型预览信息,包括:
    对所述目标配置文件进行解析,确定所述目标配置文件中的目标事件以及所述目标事件对应的目标事件参数,所述目标事件是所述目标配置文件所包含事件的一部分;
    根据所述目标事件和目标事件参数生成所述局外模型预览信息。
  3. 根据权利要求2所述的方法,其中,所述对所述目标配置文件进行解析,确定所述目标配置文件中的目标事件以及所述目标事件对应的目标事件参数,包括:
    将所述目标配置文件转化为目标配置文档;
    根据静态字典对所述目标配置文档进行解析,生成包含配置解析结果的动态字典,所述静态字典中包含事件参数类别与事件参数名称之间的对应关系,所述事件参数类别是所述目标事件对应事件参数的类别,所述配置解析结果为所述事件参数类别与事件参数值之间的对应关系;
    将所述动态字典中的所述配置解析结果确定为所述目标事件和所述目标事件参数。
  4. 根据权利要求3所述的方法,其中,所述目标配置文档中包含参数与参 数值之间的对应关系;
    所述根据静态字典对所述目标配置文档进行解析,生成包含配置解析结果的动态字典,包括:
    若所述目标配置文档中的候选事件参数与所述静态字典中的所述事件参数名称匹配,则将所述候选事件参数对应的参数值确定为所述事件参数值;
    将所述事件参数名称对应的所述事件参数类别作为键,将所述事件参数值作为值,并将键值关联存储至所述动态字典。
  5. 根据权利要求2至4任一所述的方法,其中,所述根据所述目标事件和目标事件参数生成所述局外模型预览信息,包括:
    根据所述目标事件和所述目标事件参数生成行为对象,所述行为对象用于指示所述目标角色模型执行的所述局内行为,所述行为对象中包含至少一个预览事件对象,各个所述预览事件对象用于指示所述局内行为中的同类事件;
    根据所述行为对象生成所述局外模型预览信息。
  6. 根据权利要求5所述的方法,其中,所述根据所述局外模型预览信息,控制所述目标角色模型在所述局外环境界面中执行所述局内行为,包括:
    将所述局外模型预览信息输入局外预览系统,所述局外预览系统用于依次进行局外模型预览信息更新、行为对象更新和预览事件对象更新,得到更新结果;
    根据所述局外预览系统的输出的所述更新结果,控制所述目标角色模型在所述局外环境界面中执行所述局内行为。
  7. 根据权利要求1至4任一所述的方法,其中,所述方法还包括:
    获取配置更新信息,所述配置更新信息包括行为配置更新信息和预览事件配置更新信息中的至少一种,所述行为配置更新信息是新增行为对应的配置信息,所述预览事件配置更新信息是新增事件对应的配置信息;
    对所述配置更新信息进行存储,并更新所述局外环境界面中的预览控件。
  8. 一种局外环境下局内行为的预览装置,,所述装置包括:
    显示模块,用于显示局外环境界面,所述局外环境界面是对局之外的环境界面,所述局外环境界面中显示有目标角色模型;
    第一获取模块,用于当接收到对所述局外环境界面中目标预览控件的触发操作时,获取所述目标预览控件对应的目标配置文件,所述目标配置文件用于控制所述目标角色模型在对局内执行相应的局内行为;
    生成模块,用于根据所述目标配置文件生成局外模型预览信息;
    控制模块,用于根据所述局外模型预览信息,控制所述目标角色模型在所述局外环境界面中执行所述局内行为。
  9. 根据权利要求8所述的装置,其中,所述生成模块,包括:
    解析单元,用于对所述目标配置文件进行解析,确定所述目标配置文件中的目标事件以及所述目标事件对应的目标事件参数,所述目标事件是所述目标配置文件所包含事件的一部分;
    生成单元,用于根据所述目标事件和目标事件参数生成所述局外模型预览信息。
  10. 根据权利要求9所述的装置,其中,所述解析单元,还用于:
    将所述目标配置文件转化为目标配置文档;
    根据静态字典对所述目标配置文档进行解析,生成包含配置解析结果的动态字典,所述静态字典中包含事件参数类别与事件参数名称之间的对应关系,所述事件参数类别是所述目标事件对应事件参数的类别,所述配置解析结果为所述事件参数类别与事件参数值之间的对应关系;
    将所述动态字典中的所述配置解析结果确定为所述目标事件和所述目标事件参数。
  11. 根据权利要求10所述的装置,其中,所述目标配置文档中包含参数与参数值之间的对应关系;
    所述解析单元,还用于:
    若所述目标配置文档中的候选事件参数与所述静态字典中的所述事件参数名称匹配,则将所述候选事件参数对应的参数值确定为所述事件参数值;
    将所述事件参数名称对应的所述事件参数类别作为键,将所述事件参数值作为值,并将键值关联存储至所述动态字典。
  12. 根据权利要求9至11任一所述的装置,其中,所述生成单元,还用于:
    根据所述目标事件和所述目标事件参数生成行为对象,所述行为对象用于指示所述目标角色模型执行的所述局内行为,所述行为对象中包含至少一个预览事件对象,各个所述预览事件对象用于指示所述局内行为中的同类事件;
    根据所述行为对象生成所述局外模型预览信息。
  13. 根据权利要求12所述的装置,其中,所述控制模块,包括:
    输入单元,用于将所述局外模型预览信息输入局外预览系统,所述局外预览系统用于依次进行局外模型预览信息更新、行为对象更新和预览事件对象更新,得到更新结果;
    控制单元,用于根据所述局外预览系统的输出的所述更新结果,控制所述目标角色模型在所述局外环境界面中执行所述局内行为。
  14. 一种终端,所述终端包括处理器和存储器;所述存储器存储有至少一条指令,所述至少一条指令用于被所述处理器执行以实现如权利要求1至7任一所述的局外环境下局内行为的预览方法。
  15. 一种计算机可读存储介质,所述存储介质存储有至少一条指令,所述至少一条指令用于被处理器执行以实现如权利要求1至7任一所述的局外环境下局内行为的预览方法。
PCT/CN2020/116508 2019-10-17 2020-09-21 局外环境下局内行为的预览方法、装置、终端及存储介质 WO2021073365A1 (zh)

Priority Applications (5)

Application Number Priority Date Filing Date Title
KR1020217034584A KR102641797B1 (ko) 2019-10-17 2020-09-21 게임 외 환경 하에서 게임 내 행동들을 미리보기하기 위한 방법 및 디바이스, 단말 및 저장 매체
SG11202111725WA SG11202111725WA (en) 2019-10-17 2020-09-21 Method and device for previewing in-game behaviors under out-of-game environment, terminal and storage medium
EP20876113.0A EP3995189B1 (en) 2019-10-17 2020-09-21 Method and device for previewing in-game behaviors under out-of-game environment and storage medium
JP2021564928A JP7425805B2 (ja) 2019-10-17 2020-09-21 対戦外環境での対戦中の行動のプレビュー方法、装置、端末、及びコンピュータプログラム
US17/497,784 US20220023758A1 (en) 2019-10-17 2021-10-08 Method and apparatus for previewing in-game action in out-of-game environment, terminal, and storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910989757.0A CN110732136B (zh) 2019-10-17 2019-10-17 局外环境下局内行为的预览方法、装置、终端及存储介质
CN201910989757.0 2019-10-17

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US17/497,784 Continuation US20220023758A1 (en) 2019-10-17 2021-10-08 Method and apparatus for previewing in-game action in out-of-game environment, terminal, and storage medium

Publications (1)

Publication Number Publication Date
WO2021073365A1 true WO2021073365A1 (zh) 2021-04-22

Family

ID=69269144

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/116508 WO2021073365A1 (zh) 2019-10-17 2020-09-21 局外环境下局内行为的预览方法、装置、终端及存储介质

Country Status (7)

Country Link
US (1) US20220023758A1 (zh)
EP (1) EP3995189B1 (zh)
JP (1) JP7425805B2 (zh)
KR (1) KR102641797B1 (zh)
CN (1) CN110732136B (zh)
SG (1) SG11202111725WA (zh)
WO (1) WO2021073365A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113713395A (zh) * 2021-08-31 2021-11-30 网易(杭州)网络有限公司 游戏数据的读取方法、装置、设备及存储介质

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110732136B (zh) * 2019-10-17 2023-03-31 腾讯科技(深圳)有限公司 局外环境下局内行为的预览方法、装置、终端及存储介质
CN112316423B (zh) * 2020-11-27 2022-09-23 腾讯科技(深圳)有限公司 虚拟对象状态变化的显示方法、装置、设备及介质
CN113101657B (zh) * 2021-05-14 2024-02-13 网易(杭州)网络有限公司 游戏界面元素的控制方法、装置、计算机设备和存储介质
CN113599826A (zh) * 2021-08-16 2021-11-05 北京字跳网络技术有限公司 一种虚拟人物展示方法、装置、计算机设备以及存储介质

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106502670A (zh) * 2016-10-20 2017-03-15 网易(杭州)网络有限公司 一种游戏场景切换方法与装置
CN106730839A (zh) * 2016-11-24 2017-05-31 腾讯科技(深圳)有限公司 一种信息显示的方法及终端
US20180161682A1 (en) * 2016-12-09 2018-06-14 Unity IPR ApS Systems and methods for creating, broadcasting, and viewing 3d content
CN109126130A (zh) * 2018-08-15 2019-01-04 宏诚盛世(天津)网络科技有限公司 一种网络游戏录像与回放方法
CN109771957A (zh) * 2019-02-02 2019-05-21 网易(杭州)网络有限公司 游戏中观战的方法及装置、电子设备、存储介质
CN110732136A (zh) * 2019-10-17 2020-01-31 腾讯科技(深圳)有限公司 局外环境下局内行为的预览方法、装置、终端及存储介质

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103326732B (zh) * 2013-05-10 2016-12-28 华为技术有限公司 压缩数据的方法、解压数据的方法、编码器和解码器
JP6907948B2 (ja) * 2018-01-04 2021-07-21 富士通株式会社 ファイル生成プログラム、ファイル生成方法及びファイル生成装置
CN109513211B (zh) * 2018-10-15 2022-06-24 网易(杭州)网络有限公司 美术资源文件的处理方法、装置以及游戏资源展示系统

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106502670A (zh) * 2016-10-20 2017-03-15 网易(杭州)网络有限公司 一种游戏场景切换方法与装置
CN106730839A (zh) * 2016-11-24 2017-05-31 腾讯科技(深圳)有限公司 一种信息显示的方法及终端
US20180161682A1 (en) * 2016-12-09 2018-06-14 Unity IPR ApS Systems and methods for creating, broadcasting, and viewing 3d content
CN109126130A (zh) * 2018-08-15 2019-01-04 宏诚盛世(天津)网络科技有限公司 一种网络游戏录像与回放方法
CN109771957A (zh) * 2019-02-02 2019-05-21 网易(杭州)网络有限公司 游戏中观战的方法及装置、电子设备、存储介质
CN110732136A (zh) * 2019-10-17 2020-01-31 腾讯科技(深圳)有限公司 局外环境下局内行为的预览方法、装置、终端及存储介质

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113713395A (zh) * 2021-08-31 2021-11-30 网易(杭州)网络有限公司 游戏数据的读取方法、装置、设备及存储介质

Also Published As

Publication number Publication date
EP3995189A4 (en) 2022-08-17
EP3995189B1 (en) 2023-08-23
KR102641797B1 (ko) 2024-03-05
JP7425805B2 (ja) 2024-01-31
SG11202111725WA (en) 2021-11-29
US20220023758A1 (en) 2022-01-27
JP2022531372A (ja) 2022-07-06
EP3995189A1 (en) 2022-05-11
CN110732136A (zh) 2020-01-31
KR20210143282A (ko) 2021-11-26
CN110732136B (zh) 2023-03-31

Similar Documents

Publication Publication Date Title
WO2021073365A1 (zh) 局外环境下局内行为的预览方法、装置、终端及存储介质
WO2020186988A1 (zh) 资讯的展示方法、装置、终端及存储介质
CN111921197B (zh) 对局回放画面的显示方法、装置、终端及存储介质
WO2019149028A1 (zh) 应用程序的下载方法及终端
CN109646944B (zh) 控制信息处理方法、装置、电子设备及存储介质
TWI802978B (zh) 應用程式內的控制項位置調整方法及裝置、設備及存儲介質
CN114205324A (zh) 消息显示方法、装置、终端、服务器及存储介质
CN114116053B (zh) 资源展示方法、装置、计算机设备及介质
CN112261481B (zh) 互动视频的创建方法、装置、设备及可读存储介质
CN111589125A (zh) 虚拟对象控制方法、装置、计算机设备及存储介质
WO2022088765A1 (zh) 交互处理方法及计算机设备
CN112007362B (zh) 虚拟世界中的显示控制方法、装置、存储介质及设备
CN113613028A (zh) 直播数据处理方法、装置、终端、服务器及存储介质
JP7483056B2 (ja) 選択ターゲットの決定方法、装置、機器、及びコンピュータプログラム
CN112367533B (zh) 交互业务的处理方法、装置、设备及计算机可读存储介质
CN112023403B (zh) 基于图文信息的对战过程展示方法及装置
JP7236551B2 (ja) キャラクタ推薦方法、キャラクタ推薦装置、コンピュータ装置およびプログラム
CN112596807A (zh) 应用程序加速方法、装置、计算机设备及存储介质
CN109107163B (zh) 模拟按键检测方法、装置、计算机设备及存储介质
WO2022095506A1 (zh) 直播方法及装置
WO2021143262A1 (zh) 地图元素添加方法、装置、终端及存储介质
CN112717381A (zh) 虚拟场景展示方法、装置、计算机设备及存储介质
TW202017627A (zh) 互動式遊戲系統
CN116896649B (zh) 直播互动方法、装置、电子设备及存储介质
CN114816622B (zh) 场景画面显示方法、装置、电子设备及存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20876113

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 20217034584

Country of ref document: KR

Kind code of ref document: A

ENP Entry into the national phase

Ref document number: 2021564928

Country of ref document: JP

Kind code of ref document: A

ENP Entry into the national phase

Ref document number: 2020876113

Country of ref document: EP

Effective date: 20220201

NENP Non-entry into the national phase

Ref country code: DE