Some thoughts on using JAVA to develop game plug-__java

Source: Internet
Author: User
Tags modifier

Can use Java to edit the game plug-in, this is really a very interesting topic.

Before discussing this topic, we first come to do not play the network game's person to fill a class, first the network game concept everybody should know, from the shrimp earliest contact the text mud "to be out of the River Lake", one until now the popular World of Warcraft and so on games, are the net swims. If more accurately, the shrimp think it should be those through the WAN for the game, no one will be the LAN card is called online games. Then the so-called plug-in is for the development of a network game software, the function is to intercept data from the client to the server, simulation of the operation of the player in order to achieve faster upgrades, more money for the purpose. Plug-in from the game type, can be divided into two kinds, one is for local data modification. It is believed that programmers on earth have played "Diablo" and have used the modifier. In fact, the modifier can be called plug-in. Because it modifies the local data and the other is used for network data modification, the most common means is to intercept and modify the packet to deceive the server. For example, a 1-level rookie would have hurt only 10 points, but you can modify the packet sent to the server, the damage modified to any value, the person playing the fist may have encountered this situation, by the other side of a light fist to play waste, it is likely that this reason. (The example is theoretically feasible, most of the case your plug-in has not been developed to complete will be the official seal).

Simple knowledge we first mentioned here, in the discussion with Java supernumerary before hanging, there is a topic to discuss, that is the work of the plug-in or the way. The above example has actually put the work of the plug-in to tell the truth: 1, simulation player action 2, analysis and capture the local memory game data, 3, the modified data sent to the server (for network games). But now the various operators to prevent the level of plug is very high, if it is modified packets then the server will not accept, or even be judged to use illegal plug-in and sealed. Here's a scenario example: You are playing strange time, your blood will continue to reduce, the monster was killed after death will drop items, then the plug-in should get your blood value and whether there are items fall and the coordinates, and then trigger the corresponding mouse time to drink medicine or pick things up. Note that here we do not discuss the use of Button Wizard to implement plug-in. Because I have always thought that simply relying on the interface coordinates to locate the operation of the program can not be called plug-in

Now let's talk about using Java development plug-in. The development of plug-people know that the development of plug-ins are generally used VC,VB, language is mostly C++,VB,DEPHL, this is because China's online games 99.9% are running in the Windows environment, so it is necessary to invoke the Windows API, in this regard, The above development language has a unique advantage. On the other hand, the plug-in developed with VC,VB can be run directly under the Windows host, but Java is not, Java is required to run the JRE. I'm sure there's no reason to use a dozens of KB plug-in to install a dozens of M Java runtime environment. But technically, I think Java can be used to develop plug-ins.

First of all, Java fully has the ability to analyze memory, but I do not know how to do (sweat). The efficiency and performance of Java programs may be lower than C + +, but it is no problem to run a Java virtual machine in the current mainstream configuration run game. Even using Java to read the memory of the data, but also to play the advantages of Java itself. Second, the Java network programming is powerful, getting data packets is not a problem, but to resolve the packet that is not the same, this belongs to another area of knowledge. Some people may ask, Java can invoke the Windows API. I am not sure whether or not I can make a full call, but I believe that this has to do with the strength of people, and language is not related.

Write here today, there are a lot of things to say slowly to add, now my fingers are pounding pain.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.