Home > other >  Want to ask next game about monsters props drop to pick up this is how to implement a series of proc
Want to ask next game about monsters props drop to pick up this is how to implement a series of proc

Time:09-22

Actually I game development is small white, this two days suddenly want to know the knowledge about network game monsters,
I hope to have who can tell me about your
"The monster was struck -> system - item drop - players pick up items selected items"
How is this a series of process server receives and return to the game data, the client is what kind of operation, and at the time of data interaction problems such as how to avoid intercepted by a third party program modification,

CodePudding user response:

Attacking players (attack, skills, etc.), the client will the relevant action by agreement (generally includes attack type, object ID, etc.) are sent to the server, the server for the corresponding calculation, and then return the results to the client, the results including the loss of blood, death, after the client receives the news make a drop of blood, death and so on movement performance, server monster death, according to the relevant configuration of monsters ID lookup drop, and then calculated (are generally based on probability and random), it is concluded that the item drop, then notify the client in xyz coordinate put the props, the client is, accordingly,
Players see items, click on the pick up props, the client pick up props and structure of the message, sent to the server, the server accordingly, generally is determining the player coordinates, props coordinates, the player can pick up, after testing by gather items, will return to the client, the client accordingly, in general, this return notice as a result, it is divided into removes the specified object from the world and add the specified object in the player package two,

CodePudding user response:

About security, can't be intercepted tampering with one hundred percent to avoid network news, can only increase the difficulty of the interception of tampering with as much as possible, are generally implemented by message encryption, after encryption processing, general won't be cracked, to solve the difficulty of this kind of custom protocol is quite big, crack or almost no one can achieve this agreement, unless there is a ghost, and even if the agreement is cracked, no obvious loophole, if the server is not so good out useful plugins, so generally RPG games, logic operation is the server, the client only work performance, this kind of game is not possible in the true sense of plugins,

CodePudding user response:

Well, look at is very detailed, educated, give to you, but I'd like to ask a few questions,
That have this kind of situation in which a drop of my captures the encrypted data, I continue to intercept data in next fall, but I don't need, just put the last time the ciphertext returned to the client, get two same items will happen? Or is just performance change, props itself is unable to change?

CodePudding user response:

refer to the second floor heyuhang112 response:
about security, can't be intercepted tampering with one hundred percent to avoid network news, can only increase the difficulty of the interception of tampering with as much as possible, are generally implemented by message encryption, after encryption processing, general won't be cracked, to solve the difficulty of this kind of custom protocol is quite big, crack or almost no one can achieve this agreement, unless there is a ghost, and even cracked the agreement, if the server no obvious flaw, is not so good out useful plugins, so generally RPG games, logic operation is the server, the client only work performance, this kind of game is not possible in the true sense of plugins,

Well, look at is very detailed, educated, give to you, but I'd like to ask a few questions,
That have this kind of situation in which a drop of my captures the encrypted data, I continue to intercept data in next fall, but I don't need, just put the last time the ciphertext returned to the client, get two same items will happen? Or is just performance change, props itself is unable to change?

CodePudding user response:

reference 4 floor u012163877 response:
Quote: refer to the second floor heyuhang112 response:

About security, can't be intercepted tampering with one hundred percent to avoid network news, can only increase the difficulty of the interception of tampering with as much as possible, are generally implemented by message encryption, after encryption processing, general won't be cracked, to solve the difficulty of this kind of custom protocol is quite big, crack or almost no one can achieve this agreement, unless there is a ghost, and even if the agreement is cracked, no obvious loophole, if the server is not so good out useful plugins, so generally RPG games, logic operation is the server, the client only work performance, this kind of game is not possible in the true sense of plugins,

Well, look at is very detailed, educated, give to you, but I'd like to ask a few questions,
That have this kind of situation in which a drop of my captures the encrypted data, I continue to intercept data in next fall, but I don't need, just put the last time the ciphertext returned to the client, get two same items will happen? Or is just performance change, props itself is unable to change?

In this case, only can let the client on the performance of props like last time, and only affects you tamper with the information of the client, other client and the server is not affected, as for the pick up props are specific implementation logic on the server, client and server data inconsistencies, players click on the pick up, the server can also make you don't succeed, also can't pick up,

CodePudding user response:

Item fell when the server has a record,,,,
Basic before pick up, the server will do judgment test
Practice is different, have never seen two company is the same way, even if A company copy B company could not have copied completely
If we from company A to company B, basic will feel different, two teams practice may not exactly the same as
But these basic elements must be considered, if these logical all have no? Me!!!!!!! . %... % @... @ @, then make a 2 years, you have,,,,,,,
Basic training (programmer)
The so-called holes are man-made, for is what you make to
Take, for example, usually I don't want to metaphor,,,,
When you write a test by ID, general duplicate submissions will not be accepted, but without the timestamp or ID may be repeated, crackers (I am not), analysis the law of this ID, you have been copied this ID do attack, is too much for you server
(basically, I'm not going to make you an account or an item, of course, does not rule out the boss asked me to go to the money to an account, but I suggest the boss money how to don't buy the whole server?? )
You write test ID code is not perfect, it is likely that they will be in my analysis to and use of,,,,,,, you write the code, written by the way, is no problem, think more useless, but you have to constantly debugging
Programmers are not to come out,,,,,

CodePudding user response:

reference u012163877 reply: 3/f
well, looking at very detailed, educated, give to you, but I'd like to ask a few questions,
That have this kind of situation in which a drop of my captures the encrypted data, I continue to intercept data in next fall, but I don't need, just put the last time the ciphertext returned to the client, get two same items will happen? Or is just performance change, props itself is unable to change?


Feel you is to get a binary code I think this is encrypted, I see a lot of source code is not encrypted, almost didn't also the time to make ostentatious, I made it myself would be encrypted, but is not the point, really just casually do, the key is the server robustness, code to write, and test well,
Because I have seen a lot of source code are not encrypted, so people don't always YouRenJia not encryption reason
Said that encryption is invincible, you think so, and those who are not encrypted message, also not received what can black server
Give everyone understand, certainly no one said a wrong example,,,,,,,,,,,,,,
Ma actually really not afraid tell you the method of his fortune, he also said to all 1.3 billion Chinese a lot, but the real rich only he a
He said those methods, said a lot of bullshit, is not the key, said he was the most, but there is a small, he said,,,,,,,
  • Related